|
@@ -54,7 +54,7 @@
|
|
|
</div>
|
|
|
<details-dialog :iframeSrc="iframeSrc" v-if="myDialog.details" :dialog="myDialog"></details-dialog>
|
|
|
<!-- 关联的系统 -->
|
|
|
- <system-type :device="mess" :dialog="myDialog" :type="onlyRead?'read':'edit'" @change="changeSystemType"></system-type>
|
|
|
+ <system-type :device="mess" :curDevice="curDevice" :dialog="myDialog" :type="onlyRead?'read':'edit'" @change="changeSystemType"></system-type>
|
|
|
<!-- 关联资产 -->
|
|
|
<change-rea @changeProperty="changeProperty" :dialog="myDialog" :category="deviceType"></change-rea>
|
|
|
<look-pic :dialog="myDialog" :keysArr="picsArr"></look-pic>
|
|
@@ -192,16 +192,17 @@ export default {
|
|
|
qrcodeUrl: "", //二维码图片地址
|
|
|
loading: false,
|
|
|
deviceType: {}, //族3位编码及名称
|
|
|
- floorData: []
|
|
|
+ floorData: [],
|
|
|
+ curDevice:'',//当前点击的设备id
|
|
|
};
|
|
|
},
|
|
|
created() { },
|
|
|
computed: {
|
|
|
...mapGetters("layout", ["projectId", "secret", "userId"]),
|
|
|
- showTypes () {
|
|
|
- return this.onlyRead?
|
|
|
- [{value: "all", label: '全部'}, {value: "Visible", label: '只看要采集的信息'}]:
|
|
|
- [{value: "all", label: '全部'}, {value: "Visible", label: '只看要采集的信息'}, {value: "partInfo", label: '隐藏自动填充的信息点'}]
|
|
|
+ showTypes() {
|
|
|
+ return this.onlyRead ?
|
|
|
+ [{ value: "all", label: '全部' }, { value: "Visible", label: '只看要采集的信息' }] :
|
|
|
+ [{ value: "all", label: '全部' }, { value: "Visible", label: '只看要采集的信息' }, { value: "partInfo", label: '隐藏自动填充的信息点' }]
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@@ -261,6 +262,9 @@ export default {
|
|
|
_this.hot = null;
|
|
|
}
|
|
|
if (res.Content && res.Content.length) {
|
|
|
+ if (this.onlyRead) {
|
|
|
+ this.getBatch(res.Content)
|
|
|
+ }
|
|
|
_this.initTable();
|
|
|
}
|
|
|
})
|
|
@@ -392,7 +396,8 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
data: "LinkEquipLocalName",
|
|
|
- readOnly: true
|
|
|
+ readOnly: true,
|
|
|
+ renderer: tools.LinkEquipLocalName
|
|
|
}, {
|
|
|
data: "linkSystem",
|
|
|
renderer: text.systemList,
|
|
@@ -596,6 +601,7 @@ export default {
|
|
|
//关联系统
|
|
|
case 'linkSystem':
|
|
|
if (!this.onlyRead) {
|
|
|
+ this.curDevice = infos.EquipID;
|
|
|
this.systemList = this.tableData[row.row].LinkSystem || [];
|
|
|
this.myDialog.systemType = true;
|
|
|
}
|