@@ -139,6 +140,7 @@
取 消
确 定
@@ -160,6 +162,7 @@ export default {
gridList: [],
propertyList: [],
+ btnDisable: false,
neighborHoodId: '', //小区ID
dataForm: {
@@ -339,14 +342,20 @@ export default {
},
async handleComfirm () {
+
if (this.propertyFormShow) {
this.addProperty()
} else {
+ this.btnDisable = true
+ setTimeout(() => {
+ this.btnDisable = false
+ }, 10000)
this.$refs['ref_form'].validate((valid, messageObj) => {
if (!valid) {
app.util.validateRule(messageObj)
+ this.btnDisable = false
} else {
this.addCommunity()
}
@@ -376,7 +385,9 @@ export default {
})
this.resetData()
this.$emit('dialogOk')
+ this.btnDisable = false
} else {
+ this.btnDisable = false
this.$message.error(msg)
}
@@ -400,7 +411,7 @@ export default {
if (code === 0) {
this.$message({
type: 'success',
- message: '添加物业成功'
+ message: '操作成功'
})
this.dataForm.propertyId = data.propertyId
this.propertyForm.name = ''
@@ -498,6 +509,9 @@ export default {
margin-left: 10px;
width: 200px;
}
+.item_width_4 {
+ width: 200px;
+}
.div_map {
margin-top: 10px;
diff --git a/src/views/modules/base/community/communityTable.vue b/src/views/modules/base/community/communityTable.vue
index 1a8ca199..f5e5266c 100644
--- a/src/views/modules/base/community/communityTable.vue
+++ b/src/views/modules/base/community/communityTable.vue
@@ -63,6 +63,7 @@
-
+ @click="handleToNextLevel(scope.row)">进入
@@ -153,7 +154,7 @@ export default {
return {
loading: false,
total: 0,
- pageSize: 20,
+ pageSize: 10,
pageNo: 0,
tableLoading: true,
@@ -179,6 +180,11 @@ export default {
},
computed: {
+ tableHeight () {
+
+ return (this.clientHeight - 320)
+
+ },
rowHeight () {
return (this.clientHeight - 200) + 'px'
},
@@ -246,6 +252,10 @@ export default {
})
},
+ handleToNextLevel (row) {
+ this.$emit('toNextLevel', row, 'community')
+ },
+
addFormCancle () {
this.formShow = false
},
@@ -405,13 +415,13 @@ export default {
var url = '/gov/org/neighborhood/import'
let fileFormData = new FormData();
fileFormData.append('file', this.files);//filename是键,file是值,就是要传的文件,test.zip是要传的文件名
- // let params = {
- // file: this.files
- // }
const { data, code, msg } = await requestPost(url, fileFormData)
if (code === 0) {
-
+ this.$message({
+ type: "success",
+ message: "导入成功"
+ });
this.$emit('refreshTree')
this.loadTable()
} else {
@@ -458,26 +468,7 @@ export default {
}