fast(型号): 调整型号列表设备类型、选择型号增加产品pk参数
This commit is contained in:
parent
6ca54a37fe
commit
d5a316e925
|
@ -116,12 +116,12 @@
|
|||
<el-table-column
|
||||
align="center"
|
||||
label="设备类型"
|
||||
prop="deviceType"
|
||||
prop="deviceTypeName"
|
||||
width="120px"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<span v-text="deviceTypeList[scope.row.deviceType]"></span>
|
||||
</template>
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <span v-text="deviceTypeList[scope.row.deviceType]"></span>-->
|
||||
<!-- </template>-->
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
|
@ -842,6 +842,7 @@ export default {
|
|||
},
|
||||
// 点击或者双击数据回调
|
||||
returnEvent(data) {
|
||||
console.log('弹窗回调',data)
|
||||
this.selectResult = {};
|
||||
if (data.type === "dblclick") {
|
||||
switch(data.otherOption.tableType) {
|
||||
|
@ -859,6 +860,7 @@ export default {
|
|||
this.form.prodJson = data.value.prodJson;
|
||||
this.form.remark = data.value.remark;
|
||||
this.form.deviceType = data.value.deviceType;
|
||||
this.form.seriesKey = data.value.prodKey;
|
||||
try {
|
||||
this.form.paramList = JSON.parse(data.value.paramJson);
|
||||
} catch (error) {
|
||||
|
@ -893,6 +895,7 @@ export default {
|
|||
this.selectResult.prodJson = data.value.prodJson;
|
||||
this.selectResult.remark = data.value.remark;
|
||||
this.selectResult.deviceType = data.value.deviceType;
|
||||
this.selectResult.seriesKey = data.value.deviceType;
|
||||
try {
|
||||
this.selectResult.paramList = JSON.parse(data.value.paramJson);
|
||||
} catch (error) {
|
||||
|
@ -960,6 +963,7 @@ export default {
|
|||
paramList: [],
|
||||
protocolType: "OFFICIAL",
|
||||
prodJson: "",
|
||||
seriesKey:""
|
||||
};
|
||||
this.resetForm("form");
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue