| | |
| | | :scroll="{x:true}" |
| | | :columns="columns" |
| | | :dataSource="dataSource" |
| | | :pagination="ipagination" |
| | | :loading="loading" |
| | | @change="handleTableChange" |
| | | :pagination="false" |
| | | > |
| | | <!-- @change="handleTableChange" --> |
| | | <template |
| | | slot="photo" |
| | | slot-scope="text,record" |
| | |
| | | }, |
| | | width: 50, |
| | | }, |
| | | { |
| | | title: '部位', |
| | | align: 'center', |
| | | dataIndex: 'location' |
| | | }, |
| | | // { |
| | | // title: '部位', |
| | | // align: 'center', |
| | | // dataIndex: 'location' |
| | | // }, |
| | | { |
| | | title: '点检项目', |
| | | align: 'center', |
| | |
| | | // align: 'center', |
| | | // dataIndex: 'inspectionTool' |
| | | // }, |
| | | { |
| | | title: '示意图', |
| | | align: "center", |
| | | dataIndex: 'photo', |
| | | scopedSlots: { customRender: 'photo' }, |
| | | }, |
| | | // { |
| | | // title: '示意图', |
| | | // align: "center", |
| | | // dataIndex: 'photo', |
| | | // scopedSlots: { customRender: 'photo' }, |
| | | // }, |
| | | ], |
| | | title: "操作", |
| | | visible: false, |
| | |
| | | validatorRules: { |
| | | num: { |
| | | rules: [ |
| | | { required: true, message: '请输入设备编码!' }, |
| | | { required: true, message: '请输入统一编码!' }, |
| | | ] |
| | | }, |
| | | equipmentId: { |
| | |
| | | this.inspectionStandardId = record.id; |
| | | this.form.setFieldsValue({ inspectionStandardId: record.id, inspectionStandardNum: record.num + "/" + record.version }); |
| | | this.form.setFieldsValue({ equipmentId: record.equipmentId, equipmentName: record.equipmentNum + "/" + record.equipmentName }); |
| | | this.form.setFieldsValue({ assignMode: record.assignMode, teamId: record.teamId, teamName: record.teamName }); |
| | | this.form.setFieldsValue({ assignMode: "1", teamId: record.teamId, teamName: record.teamName }); |
| | | this.form.setFieldsValue({ effectiveTime: null, inspectionCycleId: null, unit: null }); |
| | | this.getInspectionCycles(record.id) |
| | | if ("3" == record.assignMode) { |