|
@@ -12,7 +12,7 @@
|
|
|
<el-button size="small" style='width: 80px;' @click="download" icon="iconfont icon-xiazai">下载</el-button>
|
|
|
<el-button size="small" style='width: 80px;' @click="addDevice" icon="iconfont icon-tianjia">添加设备</el-button>
|
|
|
<el-button size="small" style='width: 80px;' @click="reset" icon="iconfont icon-shuaxin">刷新</el-button>
|
|
|
- <el-button size="small" style='width: 80px;' @click="undo" icon="iconfont icon-undo">撤销</el-button>
|
|
|
+ <el-button size="small" style='width: 80px;' v-show="!onlyRead" @click="undo" icon="iconfont icon-undo">撤销</el-button>
|
|
|
</div>
|
|
|
<div style="width:200px;color:gray;float:right;font-size:12px;">
|
|
|
<span v-if="!onlyRead">隐藏自动填充的信息点:</span>
|
|
@@ -413,6 +413,7 @@ export default {
|
|
|
this.getBatch(res.Content)
|
|
|
}
|
|
|
_this.main = res.Content
|
|
|
+ // debugger
|
|
|
_this.copyMain = tools.deepCopy(res.Content)
|
|
|
_this.page.total = res.TotalCount
|
|
|
if (!!_this.hot) {
|
|
@@ -567,7 +568,6 @@ export default {
|
|
|
* @return 处理好的数据格式
|
|
|
*/
|
|
|
getType(list) {
|
|
|
- debugger;
|
|
|
let arr = tools.copyArr(list)
|
|
|
// 如果不是只读状态,添加四大厂商选择
|
|
|
if (!this.onlyRead) {
|
|
@@ -604,8 +604,7 @@ export default {
|
|
|
renderer: text.systemList,
|
|
|
readOnly: true
|
|
|
}, {
|
|
|
- data: "partsNum",
|
|
|
- renderer: text.systemList,
|
|
|
+ data: "linkName",
|
|
|
readOnly: true
|
|
|
}
|
|
|
);
|
|
@@ -1072,6 +1071,12 @@ http://47.94.89.44:8058/spread?id=${infos.id}&pid=${this.projectId}&secret=${thi
|
|
|
this.dialog.systemType = true
|
|
|
}
|
|
|
|
|
|
+ if (val == "linkName" && this.onlyRead) {
|
|
|
+ this.$router.push({ name: 'partsLedger'});
|
|
|
+ } else if (val == "linkName" && !this.onlyRead) {
|
|
|
+ this.$router.push({ name: 'partsLedger'});
|
|
|
+ }
|
|
|
+
|
|
|
if (val == "infos.Pic") {
|
|
|
this.picsArr = this.main[row.row].infos ? (this.main[row.row].infos[val.split(".")[1]] ? this.main[row.row].infos[val.split(".")[1]] : []) : []
|
|
|
if (this.onlyRead) {
|