| | |
| | | <span style="width: 90px;margin-left: 10px">被授权人:</span> |
| | | <el-select v-model="delegatedUser" clearable filterable multiple |
| | | placeholder="请选择" size="small" style="width: 100%;"> |
| | | <el-option v-for="item in responsibleOptions" :key="item.name" :label="item.name" :value="item.name"> |
| | | <el-option v-for="item in inspectorOptions" :key="item.name" :label="item.name" :value="item.name"> |
| | | </el-option> |
| | | </el-select> |
| | | </div> |
| | |
| | | } |
| | | ], |
| | | responsibleOptions: [], |
| | | inspectorOptions: [], |
| | | operationType: '', |
| | | usageTableDia: false, |
| | | deviceImpowerDetails: [], |
| | |
| | | // 添加设备 |
| | | addTableRow() { |
| | | this.addEquipDia = true |
| | | this.delegatedUser = this.responsibleOptions.map((item) => item.name); |
| | | this.delegatedUser = this.inspectorOptions.map((item) => item.name); |
| | | this.getEquipOptions() |
| | | }, |
| | | // 删除表格行 |
| | |
| | | this.responsibleOptions = res.data |
| | | } |
| | | }) |
| | | // 被授权人下拉只取检测员角色人员 |
| | | selectUserCondition({type: 3}).then(res => { |
| | | if (res.code == 200) { |
| | | this.inspectorOptions = res.data |
| | | } |
| | | }) |
| | | }, |
| | | }, |
| | | watch: { |