From 5a81c3f48f91e10183d9ae374024deafd32b6b7d Mon Sep 17 00:00:00 2001 From: yujintao Date: Thu, 12 Sep 2019 17:06:12 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../user/partymembers-add-or-update.vue | 130 ++++++++++-------- src/views/modules/user/user-add-or-update.vue | 27 +--- 2 files changed, 79 insertions(+), 78 deletions(-) diff --git a/src/views/modules/user/partymembers-add-or-update.vue b/src/views/modules/user/partymembers-add-or-update.vue index 581a7652..8d6f882a 100755 --- a/src/views/modules/user/partymembers-add-or-update.vue +++ b/src/views/modules/user/partymembers-add-or-update.vue @@ -1,64 +1,88 @@ @@ -86,13 +110,7 @@ export default { streetOptions: [], communityOptions: [], gridOptions: [], - cadreOptions: [{ - cadreFlag: '1', - cadreTitle: '是' - }, { - cadreFlag: '0', - cadreTitle: '否' - }], + cadreOptions: [{ cadreFlag: '1', cadreTitle: '是' }, { cadreFlag: '0', cadreTitle: '否' }], tagOptions: [] } }, @@ -144,7 +162,7 @@ export default { return this.$message.error(res.msg) } this.tagOptions = res.data - }).catch(() => {}) + }).catch(() => { }) }, getStreetList () { this.$http.get(`/sys/dept/sublist/1169154711480528897`).then(({ data: res }) => { @@ -152,7 +170,7 @@ export default { return this.$message.error(res.msg) } this.streetOptions = res.data - }).catch(() => {}) + }).catch(() => { }) }, getCommunityList () { let choosenItem = this.streetOptions.filter(item => item.id === this.dataForm.streetId)[0] @@ -164,7 +182,7 @@ export default { return this.$message.error(res.msg) } this.communityOptions = res.data - }).catch(() => {}) + }).catch(() => { }) }, getGridList () { let choosenItem = this.communityOptions.filter(item => item.id === this.dataForm.communityId)[0] @@ -175,7 +193,7 @@ export default { return this.$message.error(res.msg) } this.gridOptions = res.data - }).catch(() => {}) + }).catch(() => { }) }, evaluation () { let choosenItem = this.gridOptions.filter(item => item.id === this.dataForm.gridId)[0] @@ -197,14 +215,14 @@ export default { return this.$message.error(res.msg) } this.communityOptions = res.data - }).catch(() => {}) + }).catch(() => { }) this.$http.get(`/sys/dept/sublist/` + this.dataForm.communityId).then(({ data: res }) => { if (res.code !== 0) { return this.$message.error(res.msg) } this.gridOptions = res.data - }).catch(() => {}) - }).catch(() => {}) + }).catch(() => { }) + }).catch(() => { }) }, // 表单提交 dataFormSubmitHandle: debounce(function () { @@ -225,7 +243,7 @@ export default { this.$emit('refreshDataList') } }) - }).catch(() => {}) + }).catch(() => { }) }) }, 1000, { 'leading': true, 'trailing': false }) } diff --git a/src/views/modules/user/user-add-or-update.vue b/src/views/modules/user/user-add-or-update.vue index 753b491e..17fb4658 100644 --- a/src/views/modules/user/user-add-or-update.vue +++ b/src/views/modules/user/user-add-or-update.vue @@ -49,15 +49,13 @@ prop="address"> {{dataForm.address}} - -

+ @@ -92,20 +90,8 @@ export default { tagIds: [], registTime: '' }, - partyFlagOptions: [{ - id: '0', - name: '不是' - }, { - id: '1', - name: '是' - }], - cadreOptions: [{ - cadreFlag: '1', - cadreTitle: '是' - }, { - cadreFlag: '0', - cadreTitle: '否' - }], + partyFlagOptions: [{ id: '0', name: '不是' }, { id: '1', name: '是' }], + cadreOptions: [{ cadreFlag: '1', cadreTitle: '是' }, { cadreFlag: '0', cadreTitle: '否' }], tagOptions: [] } }, @@ -130,9 +116,6 @@ export default { partyFlag: [ { required: true, message: this.$t('validate.required'), trigger: 'blur' } ], - registerWay: [ - { required: true, message: this.$t('validate.required'), trigger: 'blur' } - ], gridId: [ { required: true, message: this.$t('validate.required'), trigger: 'blur' } ]