Commit 10f9acfe by wuwx

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

1 parent ddfcc34e
......@@ -225,7 +225,7 @@ export default {
mounted() {
this.getCustomerDetail(this.id)
this.getStatistic()
this.refreshData()
this.time = dayjs(new Date().getTime()).format('YYYY-MM-DD HH:mm:ss')
// console.log(this.basicInfo.condition, '----')
},
computed: {
......
......@@ -329,12 +329,23 @@ export default {
if (pathArr[2] == 'addCustomerGroup' || pathArr[2] == 'detaiCustomeGroup') {
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() {
// 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() {
this.$message.closeAll()
},
......@@ -361,11 +372,9 @@ export default {
if (val == 1) {
this.key = new Date()
if (this.$refs.customer) this.$refs.customer.refreshTable()
this.refreshData('1')
} else {
this.groupKey = new Date()
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!