|
|
@@ -21,12 +21,20 @@
|
|
|
<el-row>
|
|
|
<el-col v-bind="styleResponsive ? { lg: 5, md: 12 } : { span: 5 }">
|
|
|
<el-form-item label="工艺路线组编码:">
|
|
|
- <el-input clearable v-model.trim="where.code" placeholder="请输入" />
|
|
|
+ <el-input
|
|
|
+ clearable
|
|
|
+ v-model.trim="where.code"
|
|
|
+ placeholder="请输入"
|
|
|
+ />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col v-bind="styleResponsive ? { lg: 5, md: 12 } : { span: 5 }">
|
|
|
<el-form-item label="工艺路线名称:">
|
|
|
- <el-input clearable v-model.trim="where.name" placeholder="请输入" />
|
|
|
+ <el-input
|
|
|
+ clearable
|
|
|
+ v-model.trim="where.name"
|
|
|
+ placeholder="请输入"
|
|
|
+ />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col v-bind="styleResponsive ? { lg: 5, md: 12 } : { span: 5 }">
|
|
|
@@ -88,17 +96,7 @@
|
|
|
:selection.sync="selection"
|
|
|
row-key="id"
|
|
|
>
|
|
|
- <!-- 表头工具栏 -->
|
|
|
- <template v-slot:toolbar>
|
|
|
- <el-button
|
|
|
- size="small"
|
|
|
- type="primary"
|
|
|
- icon="el-icon-plus"
|
|
|
- class="ele-btn-icon"
|
|
|
- @click="synchronous()"
|
|
|
- >同步</el-button
|
|
|
- >
|
|
|
- </template>
|
|
|
+
|
|
|
|
|
|
<template v-slot:code="{ row }">
|
|
|
<el-link type="primary" :underline="false" @click="openDetail(row)">
|
|
|
@@ -251,7 +249,16 @@
|
|
|
open(treeData, tableData) {
|
|
|
this.treeData = treeData;
|
|
|
console.log(tableData);
|
|
|
- this.tableData = tableData;
|
|
|
+
|
|
|
+ if (
|
|
|
+ Object.prototype.hasOwnProperty.call(tableData.processRoute, 'list')
|
|
|
+ ) {
|
|
|
+ this.tableData = tableData;
|
|
|
+ } else {
|
|
|
+ this.tableData = tableData;
|
|
|
+ this.tableData.processRoute.list = [];
|
|
|
+ }
|
|
|
+
|
|
|
this.visible = true;
|
|
|
},
|
|
|
selected() {
|