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