|
@@ -51,6 +51,15 @@ export default {
|
|
{ value: "all", label: '全部' },
|
|
{ value: "all", label: '全部' },
|
|
{ value: "Visible", label: '只看采集信息' }
|
|
{ value: "Visible", label: '只看采集信息' }
|
|
],
|
|
],
|
|
|
|
+ inputMap: {
|
|
|
|
+ FloorId: {
|
|
|
|
+ InputMode: 'B1',
|
|
|
|
+ Editable:true,
|
|
|
|
+ InfoPointCode:"FloorId",
|
|
|
|
+ InfoPointName:"所属楼层",
|
|
|
|
+ Path:"FloorId"
|
|
|
|
+ }
|
|
|
|
+ }, //信息点和输入方式映射表
|
|
showType: this.$route.query.showType,
|
|
showType: this.$route.query.showType,
|
|
tableHeader: [],
|
|
tableHeader: [],
|
|
tableData: session.get("rentAddData")? session.get("rentAddData").length? session.get("rentAddData"): [{}]: [{}],
|
|
tableData: session.get("rentAddData")? session.get("rentAddData").length? session.get("rentAddData"): [{}]: [{}],
|
|
@@ -79,6 +88,11 @@ export default {
|
|
}
|
|
}
|
|
await getDataDictionary(param, res => {
|
|
await getDataDictionary(param, res => {
|
|
this.tableHeader = res.Content
|
|
this.tableHeader = res.Content
|
|
|
|
+ this.tableHeader.forEach(item => {
|
|
|
|
+ if (item.Path) {
|
|
|
|
+ this.inputMap[item.Path] = item
|
|
|
|
+ }
|
|
|
|
+ })
|
|
this.initTable()
|
|
this.initTable()
|
|
})
|
|
})
|
|
},
|
|
},
|
|
@@ -195,8 +209,13 @@ export default {
|
|
getInfors(infos, row) {
|
|
getInfors(infos, row) {
|
|
//其他的开始判断
|
|
//其他的开始判断
|
|
let val = this.tableExample.colToProp(row.col);
|
|
let val = this.tableExample.colToProp(row.col);
|
|
|
|
+ let inputData = this.inputMap[val]
|
|
this.row = row.row //要操作的列号
|
|
this.row = row.row //要操作的列号
|
|
this.messKey = val //要操作的列类型
|
|
this.messKey = val //要操作的列类型
|
|
|
|
+ if (!inputData.Editable) {
|
|
|
|
+ this.$message("该信息点的值为自动生成,不可人工维护!");
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
//点击关联的元空间
|
|
//点击关联的元空间
|
|
// if (val === "SpaceCount") {
|
|
// if (val === "SpaceCount") {
|
|
// this.isTableRightShow = true;
|
|
// this.isTableRightShow = true;
|