Commit d94b01bf by 前端

sentry

1 parent cb56bde6
...@@ -552,9 +552,10 @@ export default { ...@@ -552,9 +552,10 @@ export default {
}, },
handleSelect(val) { handleSelect(val) {
this.isUpdate = true this.isUpdate = true
this.tagging = val this.tagging = val || []
let arr = [] let arr = []
this.tagging.forEach(item => { this.tagging.forEach(item => {
item.labelList = item.labelList || []
item.labelList.forEach(tag => { item.labelList.forEach(tag => {
arr.push({ arr.push({
groupId: item.labelGroup.id, groupId: item.labelGroup.id,
...@@ -579,6 +580,7 @@ export default { ...@@ -579,6 +580,7 @@ export default {
} }
let arr = [] let arr = []
this.tagging.forEach(item => { this.tagging.forEach(item => {
item.labelList = item.labelList || []
item.labelList.forEach(tag => { item.labelList.forEach(tag => {
arr.push({ arr.push({
groupId: item.labelGroup.id, groupId: item.labelGroup.id,
......
...@@ -358,10 +358,10 @@ export default { ...@@ -358,10 +358,10 @@ export default {
if (res.code == '0') { if (res.code == '0') {
if (type == 1) { if (type == 1) {
this.time = res.data.createdTime this.time = res.data.createdTime
this.$refs.customer.refreshTable() this.$refs.customer && this.$refs.customer.refreshTable()
} else if (type == 2) { } else if (type == 2) {
this.times = res.data.createdTime this.times = res.data.createdTime
this.$refs.customerGroup.refreshTable() this.$refs.customerGroup && this.$refs.customerGroup.refreshTable()
} }
} }
}) })
...@@ -412,9 +412,9 @@ export default { ...@@ -412,9 +412,9 @@ export default {
message: '操作成功!' message: '操作成功!'
}) })
if (type == 1) { if (type == 1) {
this.$refs.customer.refreshTable() this.$refs.customer && this.$refs.customer.refreshTable()
} else { } else {
this.$refs.customerGroup.refreshTable() this.$refs.customerGroup && this.$refs.customerGroup.refreshTable()
} }
}) })
// } else { // } else {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!