|
|
@@ -518,23 +518,21 @@ export default {
|
|
|
this.loadDeptTree()
|
|
|
}
|
|
|
// 查询列表
|
|
|
- fetchCheckStandard({ id: record.id }).then((res) => {
|
|
|
- this.data = res.data.detailList
|
|
|
- const requirementList = res.data.requirementList || []
|
|
|
- this.sbType = requirementList.length > 0 ? requirementList[0].sbType : null
|
|
|
- if (this.sbType != null) {
|
|
|
- this.$nextTick(() => {
|
|
|
- setFieldsValue({
|
|
|
- sbType: this.sbType,
|
|
|
- })
|
|
|
+ this.data = record.detailList
|
|
|
+ const requirementList = record.requirementList || []
|
|
|
+ this.sbType = requirementList.length > 0 ? requirementList[0].sbType : null
|
|
|
+ if (this.sbType != null) {
|
|
|
+ this.$nextTick(() => {
|
|
|
+ setFieldsValue({
|
|
|
+ sbType: this.sbType,
|
|
|
})
|
|
|
- }
|
|
|
- this.state.selectedRowKeys = requirementList.map((item) => item.id)
|
|
|
- this.state.selectedRows = requirementList
|
|
|
+ })
|
|
|
+ }
|
|
|
+ this.state.selectedRowKeys = requirementList.map((item) => item.id)
|
|
|
+ this.state.selectedRows = requirementList
|
|
|
|
|
|
- // 保养项字典未加载完成时,先回显已选保养项,避免列表空白
|
|
|
- this.requirementList = (this.checkDetailList || {})[this.sbType] || requirementList
|
|
|
- })
|
|
|
+ // 保养项字典未加载完成时,先回显已选保养项,避免列表空白
|
|
|
+ this.requirementList = (this.checkDetailList || {})[this.sbType] || requirementList
|
|
|
|
|
|
this.checkImgList = record.checkImgList
|
|
|
this.checkFileList = record.checkFileList
|