From 0b8a45a6dd9cbb1236f27ebb07a1ae595b0f0d11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E9=87=91=E9=B9=8F?= Date: Wed, 4 Sep 2019 17:03:04 +0800 Subject: [PATCH 1/5] no message --- src/views/modules/user/partymembers-add-or-update.vue | 6 +++--- src/views/modules/user/partymembers.vue | 9 +++++++-- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/views/modules/user/partymembers-add-or-update.vue b/src/views/modules/user/partymembers-add-or-update.vue index 0788c694..581a7652 100755 --- a/src/views/modules/user/partymembers-add-or-update.vue +++ b/src/views/modules/user/partymembers-add-or-update.vue @@ -52,7 +52,7 @@ - {{item.tagName}} + {{item.tagName}} @@ -144,11 +144,10 @@ export default { return this.$message.error(res.msg) } this.tagOptions = res.data - console.log(this.tagOptions) }).catch(() => {}) }, getStreetList () { - this.$http.get(`/sys/dept/sublist/0`).then(({ data: res }) => { + this.$http.get(`/sys/dept/sublist/1169154711480528897`).then(({ data: res }) => { if (res.code !== 0) { return this.$message.error(res.msg) } @@ -192,6 +191,7 @@ export default { ...this.dataForm, ...res.data } + this.dataForm.tagIds = res.data.tagIdsNew this.$http.get(`/sys/dept/sublist/` + this.dataForm.streetId).then(({ data: res }) => { if (res.code !== 0) { return this.$message.error(res.msg) diff --git a/src/views/modules/user/partymembers.vue b/src/views/modules/user/partymembers.vue index d00adf1f..1a964583 100755 --- a/src/views/modules/user/partymembers.vue +++ b/src/views/modules/user/partymembers.vue @@ -174,7 +174,7 @@ export default { this.dataForm.endTime = this.timeRange[1] }, getStreetList () { - this.$http.get(`/sys/dept/sublist/0`).then(({ data: res }) => { + this.$http.get(`/sys/dept/sublist/1169154711480528897`).then(({ data: res }) => { if (res.code !== 0) { return this.$message.error(res.msg) } @@ -220,12 +220,17 @@ export default { return row.cadreFlag === '1' ? '是' : row.cadreFlag === '0' ? '否' : '未知' }, formatRegist: function (row, column) { - console.log(row.registFlag) return row.registFlag === '1' ? '是' : row.registFlag === '0' ? '否' : '未知' }, importData () { }, exportData () { + this.$http.get(`/app-user/partymembers/export`).then(({ data: res }) => { + if (res.code !== 0) { + return this.$message.error(res.msg) + } + console.log(res) + }).catch(() => {}) } } } From c1311e3a4e8b7b76374c1dc9da5a5d6a7e804145 Mon Sep 17 00:00:00 2001 From: qushutong <1976590620@qq.com> Date: Wed, 4 Sep 2019 17:30:10 +0800 Subject: [PATCH 2/5] 1 --- src/views/modules/user/user-add-or-update.vue | 252 ++---------------- src/views/modules/user/user.vue | 19 +- 2 files changed, 31 insertions(+), 240 deletions(-) diff --git a/src/views/modules/user/user-add-or-update.vue b/src/views/modules/user/user-add-or-update.vue index 81f633b1..e5462718 100644 --- a/src/views/modules/user/user-add-or-update.vue +++ b/src/views/modules/user/user-add-or-update.vue @@ -22,6 +22,16 @@ :value="item.id"> + + + + + + {{dataForm.street}} - @@ -29,109 +39,13 @@ {{dataForm.grid}} - + {{dataForm.address}} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -