| | |
| | | /> |
| | | <el-table-column |
| | | label="关联工作站" |
| | | prop="is_eqp" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div class="operationClass"> |
| | | <i class="el-icon-share" @click="workClick(row)" /> |
| | | <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)" /> |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="关联缺陷" |
| | | prop="is_defect" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div class="operationClass"> |
| | | <i class="el-icon-share" @click="defectClick(row)" /> |
| | | <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)" /> |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | 'stepcode': '', |
| | | 'stepname': '', |
| | | 'steptypecode': '', |
| | | 'enable': '', |
| | | 'enable': 'Y', |
| | | 'description': '', |
| | | 'OperType': '' |
| | | }, |
| | |
| | | this.dialogForm.stepcode = '' |
| | | this.dialogForm.stepname = '' |
| | | this.dialogForm.steptypecode = '' |
| | | this.dialogForm.enable = '' |
| | | this.dialogForm.enable = 'Y' |
| | | this.dialogForm.description = '' |
| | | this.$refs.dialogForm.clearValidate() |
| | | }, |
| | |
| | | console.log('3.第三种情况 半叶为零 全叶不为零') |
| | | console.log(obj.code, 12) |
| | | this.workDialogForm.workGatherArr.forEach((item, index) => { |
| | | if (item.code === obj.code) { |
| | | if (item.code === checkedFatherCode) { |
| | | this.workDialogForm.workGatherArr[index].isSelected2 = true |
| | | this.workDialogForm.workCodeSelectedGatherArr.push(obj.code) |
| | | this.$nextTick(() => { |
| | |
| | | const res = await SaveStepAssociationEqp(this.workDialogForm.stepcode, data) |
| | | if (res.code === '200') { |
| | | this.$message.success('保存成功!') |
| | | await this.getStepSearch() |
| | | this.workDialogVisible = false |
| | | } |
| | | }, |
| | |
| | | const res = await SaveStepAssociationDefect(this.defectTreeCode, data) |
| | | if (res.code === '200') { |
| | | this.$message.success('保存成功!') |
| | | await this.getStepSearch() |
| | | this.defectDialogVisible = false |
| | | } |
| | | } |