|
@@ -24,7 +24,8 @@
|
|
|
{{ scope.row.localName || scope.row.name || '' }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="localId" :label="`${inSpaceType}本地编码`" show-overflow-tooltip min-width="100"></el-table-column>
|
|
|
+ <el-table-column prop="localId" :label="`${inSpaceType}本地编码`" show-overflow-tooltip
|
|
|
+ min-width="100"></el-table-column>
|
|
|
<el-table-column prop :label="`所属建筑楼层`" show-overflow-tooltip min-width="100">
|
|
|
<template slot-scope="scope">
|
|
|
{{
|
|
@@ -87,7 +88,7 @@ export default {
|
|
|
inSpaceType: "业务空间",
|
|
|
Buildfloor: ["all"], // 选中的建筑楼层
|
|
|
Spacecategory: null, // 选中的业务空间类型
|
|
|
- spaceValue: [""], //记录切换成功的业务空间值
|
|
|
+ spaceValue: [""], //记录切换成功的业务空间值
|
|
|
tableData: [],
|
|
|
floorData: {}, //楼层
|
|
|
spaceData: {}, //业务空间分区
|
|
@@ -122,28 +123,29 @@ export default {
|
|
|
},
|
|
|
//修改建筑楼层
|
|
|
changeFloor(value) {
|
|
|
+ this.page.pageNumber = 1;
|
|
|
this.Buildfloor = value;
|
|
|
this.getTableData();
|
|
|
},
|
|
|
//修改空间类型
|
|
|
changeSpace(val, space, value) {
|
|
|
- if (this.selections.length) {
|
|
|
- this.$confirm('关联的业务空间未保存, 是否继续?', '提示', {
|
|
|
+ if (this.selections.length) {
|
|
|
+ this.$confirm('关联的业务空间未保存, 是否继续?', '提示', {
|
|
|
confirmButtonText: '确定',
|
|
|
cancelButtonText: '取消',
|
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
|
this.Spacecategory = val;
|
|
|
- this.spaceValue = value;
|
|
|
- this.getTableData();
|
|
|
+ this.spaceValue = value;
|
|
|
+ this.getTableData();
|
|
|
}).catch(() => {
|
|
|
- this.$refs.spacesel.value = this.spaceValue;
|
|
|
+ this.$refs.spacesel.value = this.spaceValue;
|
|
|
});
|
|
|
- } else {
|
|
|
- this.Spacecategory = val;
|
|
|
- this.spaceValue = value;
|
|
|
- this.getTableData();
|
|
|
- }
|
|
|
+ } else {
|
|
|
+ this.Spacecategory = val;
|
|
|
+ this.spaceValue = value;
|
|
|
+ this.getTableData();
|
|
|
+ }
|
|
|
},
|
|
|
getTableData() {
|
|
|
let params = {
|
|
@@ -170,7 +172,7 @@ export default {
|
|
|
params.data.filters += `;classCode='${this.Spacecategory}'`;
|
|
|
}
|
|
|
if (this.keycode != "") {
|
|
|
- params.data.filters += `;name contain '${this.keycode}' or localName contain '${this.keycode}'`;
|
|
|
+ params.data.filters += `;localId contain '${this.keycode}' or localName contain '${this.keycode}'`;
|
|
|
}
|
|
|
|
|
|
unSysZoneSpace(params, res => {
|