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)
}