From 615857a60490cb7895c9cbb4018428baf46d71e7 Mon Sep 17 00:00:00 2001 From: 13176889840 <13176889840@163.com> Date: Mon, 14 Feb 2022 14:08:28 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=85=9A=E5=91=98?= =?UTF-8?q?=E9=A3=8E=E9=87=87=E5=88=86=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/communityParty/elegant/index.vue | 58 +++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/src/views/modules/communityParty/elegant/index.vue b/src/views/modules/communityParty/elegant/index.vue index 422df400..1bb3dfc4 100644 --- a/src/views/modules/communityParty/elegant/index.vue +++ b/src/views/modules/communityParty/elegant/index.vue @@ -13,6 +13,16 @@ + + + + + + + + + + + + @@ -215,6 +235,8 @@ export default { value: '', optionsEditG: [], optionsG: [], + optionsC: [], + optionsEditC: [], options: [ { label: '是', @@ -238,6 +260,12 @@ export default { columnName: 'gridName', width: '300', options: [] + }, { + label: '分类类别', + align: 'center', + columnName: 'categoryName', + width: '200', + options: [] }, { label: '主要事迹', columnName: 'mainDeed', @@ -249,6 +277,7 @@ export default { customerId: '', searchForm: { gridId: '', + categoryId: '', mainDeed: '', name: '' }, @@ -256,11 +285,13 @@ export default { agencyId: '', gridId: '', name: '', + categoryId: '', mainDeed: '', imageList: [] }, rules: { gridId: [{ required: true, message: '网格不能为空', trigger: 'blur' }], + categoryId: [{ required: true, message: '分类类别不能为空', trigger: 'blur' }], name: [{ required: true, message: '姓名不能为空', trigger: 'blur' }], mainDeed: [{ required: true, message: '主要事迹不能为空', trigger: 'blur' }], } @@ -272,6 +303,8 @@ export default { this.getTableData() this.getGridList('query') this.getGridList('addorupdate') + this.getCateList('query') + this.getCateList('addorupdate') }, 200) this.pageLoading = true }, @@ -439,6 +472,7 @@ export default { this.handleSearch() }, handleAdd() { + this.dialogVisible = true }, @@ -555,6 +589,30 @@ export default { return this.$message.error('网络错误') }) }, + async getCateList(type) { + const { user } = await this.$store.state + console.log('user---ppp', user) + const params = { + customerId: this.customerId, + type + } + // addorupdate query + await this.$http + .post('/resi/partymember/stylecategorydict/select-list', params) + .then(({ data: res }) => { + if (res.code !== 0) { + return this.$message.error(res.msg) + } else { + console.log('获取查询详情成功', res.data) + + if (type === 'query') this.optionsC = res.data + else this.optionsEditC = res.data + } + }) + .catch(() => { + return this.$message.error('网络错误') + }) + }, async getTableData() { this.tableLoading = true const { user } = await this.$store.state From c92fb9e3e175b776799abe2c9b29f44701e9bdf4 Mon Sep 17 00:00:00 2001 From: 13176889840 <13176889840@163.com> Date: Mon, 14 Feb 2022 14:38:18 +0800 Subject: [PATCH 2/3] dd --- .../modules/communityParty/elegant/index.vue | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/views/modules/communityParty/elegant/index.vue b/src/views/modules/communityParty/elegant/index.vue index 1bb3dfc4..e24c2a0d 100644 --- a/src/views/modules/communityParty/elegant/index.vue +++ b/src/views/modules/communityParty/elegant/index.vue @@ -149,7 +149,17 @@ - + + + + + + + item.categoryId) + + if (!_arr.includes(res.data.categoryId) && !this.disabled) this.form.categoryId = '' + // this.optionsEditC.forEach(item => { + // if (item.categoryId === res.data.categoryId) + // }) this.dialogVisible = true } }) From 69d142ac26771264d7b8ea224636ceb6185e8e23 Mon Sep 17 00:00:00 2001 From: 13176889840 <13176889840@163.com> Date: Mon, 14 Feb 2022 15:19:10 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/communityParty/elegant/index.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/modules/communityParty/elegant/index.vue b/src/views/modules/communityParty/elegant/index.vue index e24c2a0d..e7d9257b 100644 --- a/src/views/modules/communityParty/elegant/index.vue +++ b/src/views/modules/communityParty/elegant/index.vue @@ -24,14 +24,15 @@ - + +