From c6d325113d6ddc2d7b317bc3d20d3f073246f092 Mon Sep 17 00:00:00 2001 From: luyan Date: Tue, 16 May 2023 21:09:20 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=8B=E4=BB=B6?= =?UTF-8?q?=E4=B8=BB=E8=A1=A8=E5=8D=95=EF=BC=8C=E5=A2=9E=E5=8A=A0=E4=BA=8B?= =?UTF-8?q?=E4=BB=B6=E5=88=86=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/shequzhili/event/cpts/add.vue | 96 ++++++++++--------- .../shequzhili/event/cpts/categoryArray.vue | 62 ++++++++++++ .../event/cpts/process-form-replay.vue | 4 +- .../shequzhili/event/cpts/process-form.vue | 4 +- .../modules/shequzhili/event/eventList.vue | 4 +- 5 files changed, 120 insertions(+), 50 deletions(-) create mode 100644 src/views/modules/shequzhili/event/cpts/categoryArray.vue diff --git a/src/views/modules/shequzhili/event/cpts/add.vue b/src/views/modules/shequzhili/event/cpts/add.vue index 6062946..0663570 100644 --- a/src/views/modules/shequzhili/event/cpts/add.vue +++ b/src/views/modules/shequzhili/event/cpts/add.vue @@ -82,7 +82,21 @@ v-model="formData.idCard" > - + +
+ +
+
{ @@ -423,10 +419,13 @@ export default { trigger: "blur", }, ], - // idCard: [ - // { required: true, message: "身份证号不能为空", trigger: "blur" }, - // { required: true, validator: checkIdCard, trigger: "blur" }, - // ], + categoryList:[ + { + required: true, + message: "事件分类不能为空", + trigger: "blur", + }, + ], sourceType: [ { required: true, @@ -465,7 +464,12 @@ export default { }; }, }, - props: {}, + props: { + source: {//展示来源:manage 管理平台 visiual 可视化平台 + type: String, + default: 'manage' + } + }, watch: { "formData.name": function (val) { this.$emit("changeName", val); @@ -503,6 +507,16 @@ export default { }, methods: { + handleChangeCate(obj) { + this.selCateObj = obj + this.formData.categoryList = []; + let flag = JSON.stringify(obj) == '{}' + if(flag) + this.formData.categoryList = [] + else + this.formData.categoryList.push(this.selCateObj); + + }, async handleShowPersonList() { if (this.formData.gridId) { await this.handleChangeGrid(); @@ -565,19 +579,13 @@ export default { }, async getCategoryList() { const url = "/gov/issue/issueprojectcategorydict/list"; - let params = {}; - const { data, code, msg } = await requestPost(url, params); - if (code === 0) { let treeDataNew = this.filterTree(data); - // this.categrayList = data - //组织级联数据 ++this.iscascaderShow; this.casOptions = []; this.selCategoryArray = []; - this.casOptions = treeDataNew; } else { this.$message.error(msg); diff --git a/src/views/modules/shequzhili/event/cpts/categoryArray.vue b/src/views/modules/shequzhili/event/cpts/categoryArray.vue new file mode 100644 index 0000000..aca9042 --- /dev/null +++ b/src/views/modules/shequzhili/event/cpts/categoryArray.vue @@ -0,0 +1,62 @@ + + + + > \ No newline at end of file diff --git a/src/views/modules/shequzhili/event/cpts/process-form-replay.vue b/src/views/modules/shequzhili/event/cpts/process-form-replay.vue index 0eeceaa..560c075 100644 --- a/src/views/modules/shequzhili/event/cpts/process-form-replay.vue +++ b/src/views/modules/shequzhili/event/cpts/process-form-replay.vue @@ -5,7 +5,7 @@ :inline="false" :model="formData" :rules="dataRule"> - @@ -19,7 +19,7 @@ :show-all-levels="false" @change="handleChangeCate"> - + --> 暂不处理 回复 - 立项 + diff --git a/src/views/modules/shequzhili/event/eventList.vue b/src/views/modules/shequzhili/event/eventList.vue index deb4447..539f37f 100644 --- a/src/views/modules/shequzhili/event/eventList.vue +++ b/src/views/modules/shequzhili/event/eventList.vue @@ -181,7 +181,7 @@ size="small" >导出 - + Date: Tue, 16 May 2023 21:49:38 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E5=8A=A0=E4=BA=86=E5=87=A0=E4=B8=AAinput?= =?UTF-8?q?=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../event/cpts/process-form-replay.vue | 88 +++++++++++++++++-- 1 file changed, 83 insertions(+), 5 deletions(-) diff --git a/src/views/modules/shequzhili/event/cpts/process-form-replay.vue b/src/views/modules/shequzhili/event/cpts/process-form-replay.vue index 560c075..24bcf94 100644 --- a/src/views/modules/shequzhili/event/cpts/process-form-replay.vue +++ b/src/views/modules/shequzhili/event/cpts/process-form-replay.vue @@ -20,7 +20,66 @@ @change="handleChangeCate"> --> - + + +
+ + + + +
+ +
+ + + + + +
+ +
+ +
+ +
+ +
+ +
+ Date: Wed, 17 May 2023 09:22:05 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=A4=84=E7=90=86?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../shequzhili/event/cpts/process-form-replay.vue | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/views/modules/shequzhili/event/cpts/process-form-replay.vue b/src/views/modules/shequzhili/event/cpts/process-form-replay.vue index 24bcf94..ccc4b6d 100644 --- a/src/views/modules/shequzhili/event/cpts/process-form-replay.vue +++ b/src/views/modules/shequzhili/event/cpts/process-form-replay.vue @@ -20,7 +20,7 @@ @change="handleChangeCate"> --> - + -