|
|
|
@ -26,10 +26,6 @@ |
|
|
|
$t('deleteBatch') }} |
|
|
|
</el-button> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item> |
|
|
|
<el-button v-if="$hasPermission('police:police:supplement')" type="primary" @click="supplementHandle()">警民群补建 |
|
|
|
</el-button> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-table v-loading="dataListLoading" :data="dataList" border |
|
|
|
@selection-change="dataListSelectionChangeHandle" style="width: 100%;"> |
|
|
|
@ -57,7 +53,7 @@ |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="policeTel" label="联系方式" header-align="center" align="center"></el-table-column> |
|
|
|
<el-table-column prop="deptName" label="所属社区" header-align="center" align="center"></el-table-column> |
|
|
|
<el-table-column prop="allDeptNames" label="所属社区" header-align="center" align="center"></el-table-column> |
|
|
|
<el-table-column :label="$t('handle')" fixed="right" header-align="center" align="center" width="150"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-button v-if="$hasPermission('police:police:update')" type="text" size="small" |
|
|
|
@ -139,43 +135,6 @@ export default { |
|
|
|
this.deleteHandle(id) |
|
|
|
// }) |
|
|
|
}, |
|
|
|
supplementHandle (data) { |
|
|
|
if (!data && this.dataListSelections.length <= 0) { |
|
|
|
return this.$message({ |
|
|
|
message: '请选择需要补建的社区', |
|
|
|
type: 'warning', |
|
|
|
duration: 500 |
|
|
|
}) |
|
|
|
} |
|
|
|
if (!data && this.dataListSelections.length > 1) { |
|
|
|
return this.$message({ |
|
|
|
message: '只能选择一条数据', |
|
|
|
type: 'warning', |
|
|
|
duration: 500 |
|
|
|
}) |
|
|
|
} |
|
|
|
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', data || this.dataListSelections[0]).then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} |
|
|
|
this.$message({ |
|
|
|
message: this.$t('prompt.success'), |
|
|
|
type: 'success', |
|
|
|
duration: 500, |
|
|
|
onClose: () => { |
|
|
|
this.getDataList() |
|
|
|
} |
|
|
|
}) |
|
|
|
}).catch(() => { |
|
|
|
}) |
|
|
|
}).catch(() => { |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
|