| | |
| | | </div> |
| | | <div style="margin: 10px 0"> |
| | | <el-table ref="yearTable" :data="examinePlanDetailsList" id="templateParamTable" row-key="deviceId" |
| | | :header-cell-style="{ background: '#f8f8f9', color: '#515a6e' }" border height="500px" style="width: 100% ;"> |
| | | v-loading="yearTableLoading" |
| | | :header-cell-style="{ background: '#f8f8f9', color: '#515a6e' }" border height="560px"> |
| | | <el-table-column label="设备名称" min-width="190" prop="deviceName"> |
| | | <template slot-scope="scope"> |
| | | <el-input v-model="scope.row.deviceName" clearable size="small"></el-input> |
| | |
| | | planId: '', |
| | | examinePlanDetailsList: [], |
| | | }, |
| | | operationType: '' |
| | | operationType: '', |
| | | yearTableLoading: false |
| | | } |
| | | }, |
| | | mounted() { |
| | |
| | | planYear: '', |
| | | examinePlanDetailsList: [], |
| | | } |
| | | this.examinePlanDetailsList = [] |
| | | } else { |
| | | this.getRowInfo(row) |
| | | } |
| | |
| | | this.getUserList() |
| | | }, |
| | | getRowInfo(row) { |
| | | this.yearTableLoading = true |
| | | getDeviceExaminePlan({ planId: row.planId }).then(res => { |
| | | this.yearTableLoading = false |
| | | if (res.code == 200) { |
| | | this.examinePlanDetailsList = res.data.examinePlanDetailsList |
| | | this.form.planName = res.data.planName |
| | | this.form.planYear = res.data.planYear |
| | | this.form.planId = res.data.planId |
| | | } |
| | | }).catch(error => { |
| | | this.yearTableLoading = false |
| | | }) |
| | | }, |
| | | // 添加设备 |