Commit 10f9acfe by wuwx

修改群发更新数据按钮请求规则

1 parent ddfcc34e
...@@ -225,7 +225,7 @@ export default { ...@@ -225,7 +225,7 @@ export default {
mounted() { mounted() {
this.getCustomerDetail(this.id) this.getCustomerDetail(this.id)
this.getStatistic() this.getStatistic()
this.refreshData() this.time = dayjs(new Date().getTime()).format('YYYY-MM-DD HH:mm:ss')
// console.log(this.basicInfo.condition, '----') // console.log(this.basicInfo.condition, '----')
}, },
computed: { computed: {
......
...@@ -329,12 +329,23 @@ export default { ...@@ -329,12 +329,23 @@ export default {
if (pathArr[2] == 'addCustomerGroup' || pathArr[2] == 'detaiCustomeGroup') { if (pathArr[2] == 'addCustomerGroup' || pathArr[2] == 'detaiCustomeGroup') {
vm.activeIndex = 2 vm.activeIndex = 2
} }
vm.refreshData(vm.activeIndex) if (vm.activeIndex == 1) {
vm.time = dayjs(new Date().getTime()).format('YYYY-MM-DD HH:mm:ss')
}
}) })
}, },
mounted() { mounted() {
// this.wxTips() // this.wxTips()
}, },
watch: {
activeIndex (newVal,oldVal) {
if (newVal == 2) {
this.times = dayjs(new Date().getTime()).format('YYYY-MM-DD HH:mm:ss')
} else if (newVal == 1) {
this.time = dayjs(new Date().getTime()).format('YYYY-MM-DD HH:mm:ss')
}
}
},
beforeDestroy() { beforeDestroy() {
this.$message.closeAll() this.$message.closeAll()
}, },
...@@ -361,11 +372,9 @@ export default { ...@@ -361,11 +372,9 @@ export default {
if (val == 1) { if (val == 1) {
this.key = new Date() this.key = new Date()
if (this.$refs.customer) this.$refs.customer.refreshTable() if (this.$refs.customer) this.$refs.customer.refreshTable()
this.refreshData('1')
} else { } else {
this.groupKey = new Date() this.groupKey = new Date()
if (this.$refs.customerGroup) this.$refs.customerGroup.refreshTable() if (this.$refs.customerGroup) this.$refs.customerGroup.refreshTable()
this.refreshData('2')
} }
}) })
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!