| | |
| | | <template slot-scope="{row}"> |
| | | <div class="operationClass"> |
| | | <i v-if="row.is_eqp==='Y'" class="el-icon-share" @click="workClick(row)" /> |
| | | <i v-if="row.is_eqp==='N'" class="el-icon-share" style="color: #E4E7ED" @click="workClick(row)" /> |
| | | <i |
| | | v-if="row.is_eqp==='N'" |
| | | class="el-icon-share" |
| | | style="color: rgb(180 ,181, 185)" |
| | | @click="workClick(row)" |
| | | /> |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | <template slot-scope="{row}"> |
| | | <div class="operationClass"> |
| | | <i v-if="row.is_defect==='Y'" class="el-icon-share" @click="defectClick(row)" /> |
| | | <i v-if="row.is_defect==='N'" class="el-icon-share" style="color: #E4E7ED;" @click="defectClick(row)" /> |
| | | <i |
| | | v-if="row.is_defect==='N'" |
| | | class="el-icon-share" |
| | | style="color:rgb(180 ,181, 185);" |
| | | @click="defectClick(row)" |
| | | /> |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="操作" |
| | | fixed="right" |
| | | width="120" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div class="operationClass"> |
| | |
| | | title="关联工作站" |
| | | :visible.sync="workDialogVisible" |
| | | width="50%" |
| | | top="15vh" |
| | | :fullscreen="isFullscreen" |
| | | :top="isIpad?'5vh': '15vh'" |
| | | :close-on-click-modal="false" |
| | | class="workDialogVisible" |
| | | @closed="workHandleClose" |
| | |
| | | :data="workDialogForm.workTreeArr" |
| | | show-checkbox |
| | | node-key="code" |
| | | style="height: 300px;" |
| | | style="height: 280px;" |
| | | default-expand-all |
| | | :props="workTreeDefaultProps" |
| | | @check="checkBoxClick" |
| | |
| | | title="工序关联缺陷" |
| | | :visible.sync="defectDialogVisible" |
| | | width="50%" |
| | | top="15vh" |
| | | :fullscreen="isFullscreen" |
| | | :top="isIpad?'5vh':'15vh'" |
| | | :close-on-click-modal="false" |
| | | class="defectDialogVisible" |
| | | @closed="defectHandleClose" |
| | |
| | | :data="defectTree" |
| | | show-checkbox |
| | | node-key="code" |
| | | style="height: 500px;" |
| | | style="height: 400px;" |
| | | default-expand-all |
| | | :props="workTreeDefaultProps" |
| | | /> |
| | |
| | | } |
| | | } |
| | | return { |
| | | isFullscreen: false, |
| | | isIpad: false, |
| | | mainHeight: 0, |
| | | tableHeight: 0, |
| | | form: { |
| | |
| | | getHeight() { |
| | | this.$nextTick(() => { |
| | | this.mainHeight = window.innerHeight - 250 |
| | | this.tableHeight = this.mainHeight - 100 |
| | | // this.isFullscreen = window.innerHeight < 800 |
| | | if (window.innerHeight < 800) { |
| | | this.tableHeight = this.mainHeight - 50 |
| | | if (window.innerHeight < 769) { |
| | | this.tableHeight = this.tableHeight - 50 |
| | | } |
| | | this.isIpad = window.innerHeight < 769 |
| | | }) |
| | | }, |
| | | /* 关联工作站模块*/ |