Commit f685f659 authored by zhengyi's avatar zhengyi

跟进记录批量修改状态功能修正

parent 4165fa37
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
<script> <script>
import {DICT_TYPE, getDictDatas, getDictDatas2} from "@/utils/dict"; import {DICT_TYPE, getDictDatas, getDictDatas2} from "@/utils/dict";
import {updateCustomerFollowupStatus} from "@/api/ecw/customerFollow"; import {getCustomerFollowList, updateCustomerFollowupStatus} from "@/api/ecw/customerFollow";
export default { export default {
name: "customerFollowUpdateStatus", name: "customerFollowUpdateStatus",
...@@ -70,18 +70,20 @@ export default { ...@@ -70,18 +70,20 @@ export default {
status: this.status status: this.status
}).then(r => { }).then(r => {
if (r.code === 0) { if (r.code === 0) {
if (r.data) {
this.$message.success(r.data)
this.$emit('update:show', false)
this.$emit('update:followupIds', [])
this.status = '';
} else {
this.$emit('update:show', false)
this.$emit('update:followupIds', [])
this.status = null;
this.$message.success(this.$t('修改成功!')) this.$message.success(this.$t('修改成功!'))
}
} }
getCustomerFollowList()
})
},
getCustomerFollowList() {
this.loading = true
getCustomerFollowList({
...this.followForm,
...this.formatQuery()
}).then((r) => {
this.customerFollowList = r.data.list
this.customerFollowTotal = r.data.total
this.loading = false
}) })
}, },
close() { close() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment