| | |
| | | <el-select v-model="form.confirmUser" multiple :multiple-limit="5" placeholder="请选择检测人员"> |
| | | <el-option v-for="user in userList" :key="user.id" :label="user.name" :value="user.id"/> |
| | | </el-select> |
| | | <el-link v-if="operationType === 'edit'" type="primary" @click="viewWorkPermit">查看上岗证</el-link> |
| | | <el-link v-if="operationType !== 'add'" type="primary" @click="viewWorkPermit">查看上岗证</el-link> |
| | | </div> |
| | | <div v-if="item.key === 'equipment'" class="row-extra"> |
| | | <el-link type="primary" @click="viewDevice">查看设备</el-link> |
| | | <el-link v-if="operationType === 'edit'" type="primary" @click="viewCalibrationsFileDia">查看校准证书 |
| | | <el-link v-if="operationType !== 'add'" type="primary" @click="viewCalibrationsFileDia">查看校准证书 |
| | | </el-link> |
| | | </div> |
| | | </td> |
| | |
| | | this.$nextTick(() => this.$refs[refName]?.openDia(data)) |
| | | }, |
| | | viewWorkPermit() { |
| | | if (!this.form.confirmUser?.length) { |
| | | if (!this.form.confirmUser?.length && !this.form.workFileList?.length) { |
| | | this.$message.warning('请先选择检测人员') |
| | | return |
| | | } |
| | | this.openChild('permitVisible', 'permit', this.form.confirmUser) |
| | | this.openChild('permitVisible', 'permit', this.operationType === 'view' ? this.form : this.form.confirmUser) |
| | | }, |
| | | viewDevice() { |
| | | this.openChild('deviceVisible', 'device', this.form) |