检验项目删除

dev-scheduling
zhangdi 2 months ago
parent 4014c0a57f
commit 586c7fb353
  1. 22
      src/views/processManagement/components/addTemplateDialog.vue

@ -114,7 +114,12 @@
{{ formError }}
</div>
<el-table v-if="activeName == '1'" :data="ruleForm.tableData" style="width: 100%">
<el-table
v-if="activeName == '1'"
:data="ruleForm.tableData"
style="width: 100%"
@selection-change="handleProcessSelectionChange"
>
<el-table-column type="selection" width="55"> </el-table-column>
<el-table-column prop="processNo" label="工序号" align="left">
<template #header>
@ -232,7 +237,12 @@
</template>
</el-table-column>
</el-table>
<el-table v-if="activeName == '2'" :data="ruleForm.tableData2" style="width: 100%">
<el-table
v-if="activeName == '2'"
:data="ruleForm.tableData2"
style="width: 100%"
@selection-change="handleProjectSelectionChange"
>
<el-table-column type="selection" width="55"> </el-table-column>
<el-table-column prop="trialNo" label="工序号">
<template #header>
@ -491,6 +501,8 @@ export default {
workCenterList: [], //
projectOptions: [], //
standardList: [], //
selectedProcessRows: [], //
selectedProjectRows: [], //
};
},
mounted() {
@ -665,6 +677,12 @@ export default {
});
}
},
handleProcessSelectionChange(rows) {
this.selectedProcessRows = rows;
},
handleProjectSelectionChange(rows) {
this.selectedProjectRows = rows;
},
//
delTable(row, index) {
// this.ruleForm.tableData.splice(index, 1);

Loading…
Cancel
Save