From 16bd57d83e8aba954dc1e556734a7a57fdd18e6a Mon Sep 17 00:00:00 2001 From: zhangyuan Date: Fri, 22 May 2020 17:27:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B0=91=E8=AD=A6=E4=BF=A1=E6=81=AF=E5=8F=8A?= =?UTF-8?q?=E8=AD=A6=E6=B0=91=E7=BE=A4=E4=BF=A1=E6=81=AF=EF=BC=8C=E8=A1=A5?= =?UTF-8?q?=E5=BB=BA=E7=BE=A4=E6=94=B9=E4=B8=BA=E5=8D=95=E6=9D=A1=E6=93=8D?= =?UTF-8?q?=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/police/police.vue | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/views/modules/police/police.vue b/src/views/modules/police/police.vue index 8010767..a685718 100644 --- a/src/views/modules/police/police.vue +++ b/src/views/modules/police/police.vue @@ -27,7 +27,7 @@ - 警民群补建 + 警民群补建 @@ -46,6 +46,9 @@ {{ $t('delete') }} + 补建群 + @@ -107,7 +110,7 @@ handleChange(value) { this.dataForm.deptId = value.slice(-1).shift() }, - beforeDeleteHandle (id) { + beforeDeleteHandle(id) { this.$confirm('删除民警将会解散全部警民群,是否继续操作?', this.$t('prompt.title'), { confirmButtonText: this.$t('confirm'), cancelButtonText: this.$t('cancel'), @@ -116,20 +119,20 @@ this.deleteHandle(id); }) }, - supplementHandle(id) { - if (!id && this.dataListSelections.length <= 0) { + supplementHandle(data) { + if (!data && this.dataListSelections.length <= 0) { return this.$message({ message: '请选择需要补建的社区', type: 'warning', duration: 500 }) } - this.$confirm(this.$t('prompt.info', {'handle': '补建'}), this.$t('prompt.title'), { + this.$confirm(this.$t('prompt.info', {'handle': '补建群'}), this.$t('prompt.title'), { confirmButtonText: this.$t('confirm'), cancelButtonText: this.$t('cancel'), type: 'warning' }).then(() => { - this.$http.put('/property/police/supplement', id ? [id] : this.dataListSelections.map(item => item)).then(({data: res}) => { + this.$http.put('/property/police/supplement', data ? [data] : this.dataListSelections.map(item => item)).then(({data: res}) => { if (res.code !== 0) { return this.$message.error(res.msg) }