This commit is contained in:
yanran200730
2023-03-30 09:45:08 +08:00
parent c848ad8063
commit ebf1802374
6 changed files with 16 additions and 504 deletions

View File

@@ -7,10 +7,7 @@
</template>
<script>
import Detail from './components/Detail'
import List from './components/List'
import Add from './components/Add'
export default {
name: 'AppIntegratingRules',
label: '积分规则',
@@ -29,34 +26,10 @@
},
components: {
Add,
List,
Detail
List
},
methods: {
onChange (data) {
if (data.type === 'Add') {
this.component = 'Add'
this.params = data.params
}
if (data.type === 'Detail') {
this.component = 'Detail'
this.params = data.params
}
if (data.type === 'List') {
this.component = 'List'
this.params = data.params
this.$nextTick(() => {
if (data.isRefresh) {
this.$refs.component.getList()
}
})
}
}
}
}
</script>