diff --git a/src/views/modules/events/handlecategory-add-or-update.vue b/src/views/modules/events/handlecategory-add-or-update.vue index b0a65d4..abc1256 100644 --- a/src/views/modules/events/handlecategory-add-or-update.vue +++ b/src/views/modules/events/handlecategory-add-or-update.vue @@ -23,6 +23,19 @@ + + + + + + 0) { + key = key.substring(0, key.length - 1) + } + this.dataForm.typeKey = key + }, + // 获取二级党委字典列表 + getSecondOrgDicList () { + this.$http.get(`/sys/dict/listSimple/org_type`).then(({ data: res }) => { + if (res.code !== 0) { + return this.$message.error(res.msg) + } + this.secondOrgDictList = res.data + }).catch(() => { }) }, // 获取信息 getInfo () { @@ -133,10 +178,14 @@ export default { if (res.code !== 0) { return this.$message.error(res.msg) } + this.dataForm.typeKey = '' this.dataForm = { ...this.dataForm, ...res.data } + if (this.dataForm.typeKey !== '' && this.dataForm.typeKey !== null) { + this.dataForm.typeKeyList = this.dataForm.typeKey.split(',') + } }).catch(() => {}) }, // 表单提交