| | |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div class="operationClass"> |
| | | <el-button type="text" @click="edit('edit',row)">修改</el-button> |
| | | <el-button type="text" @click="edit('edit',row)">编辑</el-button> |
| | | <el-button type="text" @click="del(row)">删除</el-button> |
| | | </div> |
| | | </template> |
| | |
| | | |
| | | <!--新增修改对话框--> |
| | | <el-dialog |
| | | :title="operation==='add'?'新增':'修改'" |
| | | :title="operation==='add'?'新增':'编辑'" |
| | | :visible.sync="dialogVisible" |
| | | width="50%" |
| | | :close-on-click-modal="false" |
| | |
| | | :visible.sync="workDialogVisible" |
| | | width="50%" |
| | | top="15vh" |
| | | :fullscreen="isFullscreen" |
| | | :close-on-click-modal="false" |
| | | class="workDialogVisible" |
| | | @closed="workHandleClose" |
| | |
| | | :data="workDialogForm.workTreeArr" |
| | | show-checkbox |
| | | node-key="code" |
| | | style="height: 300px;" |
| | | default-expand-all |
| | | :props="workTreeDefaultProps" |
| | | @check="checkBoxClick" |
| | |
| | | :visible.sync="defectDialogVisible" |
| | | width="50%" |
| | | top="15vh" |
| | | :fullscreen="isFullscreen" |
| | | :close-on-click-modal="false" |
| | | class="defectDialogVisible" |
| | | @closed="defectHandleClose" |
| | |
| | | :data="defectTree" |
| | | show-checkbox |
| | | node-key="code" |
| | | style="height: 400px;" |
| | | style="height: 500px;" |
| | | default-expand-all |
| | | :props="workTreeDefaultProps" |
| | | /> |
| | |
| | | } |
| | | } |
| | | return { |
| | | isFullscreen: false, |
| | | mainHeight: 0, |
| | | tableHeight: 0, |
| | | form: { |
| | |
| | | ], |
| | | steptypeArr: [ |
| | | { code: 'Z', name: '自制' }, |
| | | { code: 'W', name: '外协' }, |
| | | { code: 'Z;W', name: '自制;外协' } |
| | | { code: 'W', name: '外协' } |
| | | // { code: 'Z;W', name: '自制;外协' } |
| | | ], |
| | | total: 10, |
| | | tableData: [], |
| | |
| | | this.$nextTick(() => { |
| | | this.mainHeight = window.innerHeight - 250 |
| | | this.tableHeight = this.mainHeight - 100 |
| | | this.isFullscreen = window.innerHeight < 800 |
| | | if (window.innerHeight < 800) { |
| | | this.tableHeight = this.tableHeight - 50 |
| | | } |
| | | }) |
| | | }, |
| | | /* 关联工作站模块*/ |