diff --git a/src/views/modules/police/police.vue b/src/views/modules/police/police.vue
index b6ffa0c..8010767 100644
--- a/src/views/modules/police/police.vue
+++ b/src/views/modules/police/police.vue
@@ -22,7 +22,7 @@
- {{
+ {{
$t('deleteBatch') }}
@@ -44,7 +44,7 @@
@click="addOrUpdateHandle(scope.row.id)">{{ $t('update') }}
{{ $t('delete') }}
+ @click="beforeDeleteHandle(scope.row.id)">{{ $t('delete') }}
@@ -107,6 +107,15 @@
handleChange(value) {
this.dataForm.deptId = value.slice(-1).shift()
},
+ beforeDeleteHandle (id) {
+ this.$confirm('删除民警将会解散全部警民群,是否继续操作?', this.$t('prompt.title'), {
+ confirmButtonText: this.$t('confirm'),
+ cancelButtonText: this.$t('cancel'),
+ type: 'warning'
+ }).then(() => {
+ this.deleteHandle(id);
+ })
+ },
supplementHandle(id) {
if (!id && this.dataListSelections.length <= 0) {
return this.$message({
@@ -120,7 +129,7 @@
cancelButtonText: this.$t('cancel'),
type: 'warning'
}).then(() => {
- this.$http.put('/property/police/supplement', id ? [id] : this.dataListSelections.map(item => item.deptId)).then(({data: res}) => {
+ this.$http.put('/property/police/supplement', id ? [id] : this.dataListSelections.map(item => item)).then(({data: res}) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}
diff --git a/src/views/modules/property/propertyproject.vue b/src/views/modules/property/propertyproject.vue
index 7b85673..36f7a1e 100644
--- a/src/views/modules/property/propertyproject.vue
+++ b/src/views/modules/property/propertyproject.vue
@@ -22,7 +22,7 @@
- {{
+ {{
$t('deleteBatch') }}