fix:修改 关闭 bottomBox 未监听的问题
This commit is contained in:
@@ -968,6 +968,8 @@ export default {
|
|||||||
objectInfo.type = val.valnum
|
objectInfo.type = val.valnum
|
||||||
} else if (val.label === 'issueState') {
|
} else if (val.label === 'issueState') {
|
||||||
objectInfo.state = val.valnum
|
objectInfo.state = val.valnum
|
||||||
|
} else if (val.label === 'silenceState') {
|
||||||
|
objectInfo.state = val.valnum
|
||||||
} else if (val.label === 'priority') {
|
} else if (val.label === 'priority') {
|
||||||
objectInfo.priority = val.valnum
|
objectInfo.priority = val.valnum
|
||||||
} else if (typeof (val.valnum) === 'undefined' || val.valnum == '') {
|
} else if (typeof (val.valnum) === 'undefined' || val.valnum == '') {
|
||||||
@@ -1614,7 +1616,11 @@ export default {
|
|||||||
item.valnum = JSON.parse(localStorage.getItem('nz-history-' + this.where))[0][0].valnum
|
item.valnum = JSON.parse(localStorage.getItem('nz-history-' + this.where))[0][0].valnum
|
||||||
item.val = JSON.parse(localStorage.getItem('nz-history-' + this.where))[0][0].val
|
item.val = JSON.parse(localStorage.getItem('nz-history-' + this.where))[0][0].val
|
||||||
} else {
|
} else {
|
||||||
item.val = this[item.listStr].find(r => r.id == item.valnum).name
|
if (this.selectInfoList[item.listStr]) {
|
||||||
|
item.val = this.selectInfoList[item.listStr].find(r => r.value == item.valnum).label
|
||||||
|
} else {
|
||||||
|
item.val = this[item.listStr].find(r => r.id == item.valnum).name
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -347,6 +347,18 @@ export default {
|
|||||||
label: this.$t('overall.cancel')
|
label: this.$t('overall.cancel')
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
silenceState: [
|
||||||
|
{
|
||||||
|
value: 1,
|
||||||
|
label: this.$t('issue.open')
|
||||||
|
}, {
|
||||||
|
value: 2,
|
||||||
|
label: this.$t('issue.hasBeenAssigned')
|
||||||
|
}, {
|
||||||
|
value: 3,
|
||||||
|
label: this.$t('issue.beingProcessed')
|
||||||
|
}
|
||||||
|
],
|
||||||
priority: [
|
priority: [
|
||||||
{
|
{
|
||||||
value: 1,
|
value: 1,
|
||||||
|
|||||||
@@ -220,7 +220,6 @@ export default {
|
|||||||
this.bottomBox.targetTab = targetTab
|
this.bottomBox.targetTab = targetTab
|
||||||
this.bottomBox.object = JSON.parse(JSON.stringify(row))
|
this.bottomBox.object = JSON.parse(JSON.stringify(row))
|
||||||
this.bottomBox.showSubList = true
|
this.bottomBox.showSubList = true
|
||||||
this.updatePath(this.$route.query, this.$route.path, 'nzDatalist')
|
|
||||||
},
|
},
|
||||||
search (searchObj) {
|
search (searchObj) {
|
||||||
this.$emit('search', searchObj)
|
this.$emit('search', searchObj)
|
||||||
@@ -239,6 +238,7 @@ export default {
|
|||||||
'bottomBox.showSubList': function (n) {
|
'bottomBox.showSubList': function (n) {
|
||||||
const vm = this
|
const vm = this
|
||||||
bottomBoxWindow.showSubListWatch(vm, n)
|
bottomBoxWindow.showSubListWatch(vm, n)
|
||||||
|
this.updatePath(this.$route.query, this.$route.path, 'nzDatalist')
|
||||||
},
|
},
|
||||||
layout: {
|
layout: {
|
||||||
immediate: true,
|
immediate: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user