|
@@ -191,7 +191,7 @@
|
|
|
:default-props="defaultProps"
|
|
|
:node-key="nodeKey"
|
|
|
:checked-keys="defaultCheckedKeys"
|
|
|
- @popoverHide="popoverHide"
|
|
|
+ @popoverHide="popoverHideEdit"
|
|
|
:disabled="false"
|
|
|
/>
|
|
|
</el-form-item>
|
|
@@ -512,7 +512,7 @@ export default {
|
|
|
handleProcessRecordsCancelAdd(){
|
|
|
this.dialogProcessRecords = false;
|
|
|
this.dialogTitle = '';
|
|
|
- this.processRecordsParammapsParm = {};
|
|
|
+ this.processRecordsParammapsParm = {process: '', sort: '',remark: ''};
|
|
|
this.dialogProcessRecordsEdit = false;
|
|
|
},
|
|
|
handleProcessRecordsEdit(row){
|
|
@@ -581,6 +581,14 @@ export default {
|
|
|
this.addControlsParm.parammaps.pid ='';
|
|
|
}
|
|
|
},
|
|
|
+
|
|
|
+ popoverHideEdit(checkedIds,checkedData) {
|
|
|
+ if (checkedIds !== null) {
|
|
|
+ this.editControlsParm.parammaps.pid = checkedData.id
|
|
|
+ } else {
|
|
|
+ this.editControlsParm.parammaps.pid ='';
|
|
|
+ }
|
|
|
+ },
|
|
|
handleCancelAdd(){
|
|
|
this.dialogControlsAdd = false;
|
|
|
this.dialogTitle = '';
|
|
@@ -589,6 +597,8 @@ export default {
|
|
|
},
|
|
|
handleControlsAdd(){
|
|
|
this.dialogControlsAdd = true;
|
|
|
+ this.defaultCheckedKeys = []
|
|
|
+ this.addControlsParm = {name:'addProcess',parammaps:{}};
|
|
|
this.dialogTitle = '添加生产名称'
|
|
|
},
|
|
|
handleControlsAddData(){
|
|
@@ -619,6 +629,7 @@ export default {
|
|
|
this.dialogTitle = '';
|
|
|
},
|
|
|
handleNodeClick(data,node){
|
|
|
+ this.list = [];
|
|
|
if (node.isLeaf) {
|
|
|
this.pid = data.id;
|
|
|
this.get_process_records()
|