|
@@ -5,7 +5,7 @@
|
|
|
style="width:20px;float:left;display:block;height:20px;cursor: pointer;"
|
|
|
@click="changeAssetsFalg"
|
|
|
>
|
|
|
- <i class="el-icon-fa el-icon-fa-compass"></i>
|
|
|
+ <i v-show="!onlyRead" class="el-icon-fa el-icon-fa-compass"></i>
|
|
|
</span>
|
|
|
<span>当前筛选条件下共{{page.total || '--'}}设备</span>
|
|
|
<div style="float:right;overflow:hidden;">
|
|
@@ -881,18 +881,18 @@ export default {
|
|
|
let sortArr = this.myHotArr.getPlugin("columnSorting").rowsMapper
|
|
|
.__arrayMap;
|
|
|
let infos = this.main[trimmedArr[sortArr[rowArr.row]]];
|
|
|
- this.getInfors(infos, { row: sortArr[rowArr.row], col: rowArr.col });
|
|
|
+ this.getInfors(infos, { row: sortArr[rowArr.row], col: rowArr.col }, el);
|
|
|
} else if (isSort) {
|
|
|
//排序后的数组
|
|
|
let sortArr = this.hot.getPlugin("columnSorting").rowsMapper.__arrayMap;
|
|
|
let infos = this.main[sortArr[rowArr.row]];
|
|
|
- this.getInfors(infos, { row: sortArr[rowArr.row], col: rowArr.col });
|
|
|
+ this.getInfors(infos, { row: sortArr[rowArr.row], col: rowArr.col }, el);
|
|
|
} else if (trimmedArr.length) {
|
|
|
let infos = this.main[trimmedArr[rowArr.row]];
|
|
|
- this.getInfors(infos, { row: trimmedArr[rowArr.row], col: rowArr.col });
|
|
|
+ this.getInfors(infos, { row: trimmedArr[rowArr.row], col: rowArr.col }, el);
|
|
|
} else {
|
|
|
let infos = this.main[rowArr.row];
|
|
|
- this.getInfors(infos, rowArr);
|
|
|
+ this.getInfors(infos, rowArr, el);
|
|
|
}
|
|
|
},
|
|
|
|
|
@@ -1029,7 +1029,7 @@ export default {
|
|
|
},
|
|
|
|
|
|
//获取到了正确的信息
|
|
|
- getInfors(infos, row) {
|
|
|
+ getInfors(infos, row, el) {
|
|
|
//其他的开始判断
|
|
|
let val = this.hot.colToProp(row.col);
|
|
|
this.row = row.row
|
|
@@ -1037,6 +1037,7 @@ export default {
|
|
|
this.systemId = infos.id
|
|
|
if (val == "caozuo") {
|
|
|
window.open(`http://47.94.89.44:8058/spread?id=${infos.id}&pid=${this.projectId}&secret=${this.secret}`,"_blank")
|
|
|
+ el.target.blur()
|
|
|
// this.iframeSrc =
|
|
|
// process.env.BASE_URL +
|
|
|
// ":8889/#/details?perjectId=" +
|
|
@@ -1091,9 +1092,13 @@ export default {
|
|
|
this.filesArr = this.main[row.row].infos ? (this.main[row.row].infos[val.split(".")[1]] ? this.main[row.row].infos[val.split(".")[1]] : []) : []
|
|
|
this.dialog.uploadFiles = true
|
|
|
}
|
|
|
- if (val == "linkName" && this.linkNameFalg) {
|
|
|
- this.category = this.main[row.row]
|
|
|
- this.dialog.changeRea = true
|
|
|
+ if (val == "linkName") {
|
|
|
+ if (this.linkNameFalg && !this.onlyRead) {
|
|
|
+ this.category = this.main[row.row]
|
|
|
+ this.dialog.changeRea = true
|
|
|
+ } else if(this.onlyRead) {
|
|
|
+ window.open(`http://47.94.89.44:8058/asset?id=${infos.linkId}&pid=${this.projectId}&secret=${this.secret}`,"_blank")
|
|
|
+ }
|
|
|
}
|
|
|
if (val == "infos.EquipQRCode") {
|
|
|
this.qrcodeUrl = this.main[row.row].infos.EquipQRCode
|