|
|
@@ -89,7 +89,7 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="所属工厂:" prop="factoryId">
|
|
|
@@ -371,13 +371,11 @@ export default {
|
|
|
|
|
|
/*关闭选择参数*/
|
|
|
closeAdd() {
|
|
|
- // this.$refs.ProductionCom.$refs.table.setSelectedRows([]);
|
|
|
+ this.$refs.ProductionCom.$refs.table.setSelectedRows([]);
|
|
|
this.addDialog = false;
|
|
|
},
|
|
|
|
|
|
addParamrter() {
|
|
|
-
|
|
|
- console.log(this.$refs.ProductionCom.selection)
|
|
|
let arr = [];
|
|
|
arr = this.$refs.ProductionCom.selection.map(m => {
|
|
|
return {
|
|
|
@@ -385,9 +383,13 @@ export default {
|
|
|
...m
|
|
|
}
|
|
|
})
|
|
|
+ if (arr.length == 0) {
|
|
|
+ this.addDialog = false;
|
|
|
+ return false
|
|
|
+ }
|
|
|
this.tabsList = arr
|
|
|
this.addDialog = false;
|
|
|
-
|
|
|
+ this.$refs.ProductionCom.$refs.table.setSelectedRows([]);
|
|
|
if (this.tabsList.length > 0) {
|
|
|
this.tabsValue = this.tabsList[0].id
|
|
|
this.saveBatchFn()
|