From 6b5780f76f00f8296da44251ab0f6bd4cbbabc6e Mon Sep 17 00:00:00 2001
From: wanggongfeng <1305282856@qq.com>
Date: Tue, 22 Sep 2020 14:58:02 +0800
Subject: [PATCH] =?UTF-8?q?=E3=80=90=E9=A1=B9=E7=9B=AE=E5=A4=84=E7=90=86?=
=?UTF-8?q?=E7=B1=BB=E5=9E=8B=E7=AE=A1=E7=90=86=E6=B7=BB=E5=8A=A0typekey?=
=?UTF-8?q?=E3=80=91-=E7=8E=8B=E5=85=AC=E5=B3=B0-2020-09-22?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../events/handlecategory-add-or-update.vue | 51 ++++++++++++++++++-
1 file changed, 50 insertions(+), 1 deletion(-)
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(() => {})
},
// 表单提交