|
|
@ -91,7 +91,10 @@
|
|
|
|
>导出
|
|
|
|
>导出
|
|
|
|
</el-button>
|
|
|
|
</el-button>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<div style="float: right">
|
|
|
|
|
|
|
|
<span style="font-weight: 700; padding-right: 20px">{{ this.customData }}</span>
|
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar>
|
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
|
<el-table v-loading="loading" :data="electricalInspectionList" @selection-change="handleSelectionChange">
|
|
|
|
<el-table v-loading="loading" :data="electricalInspectionList" @selection-change="handleSelectionChange">
|
|
|
@ -222,6 +225,7 @@ import {
|
|
|
|
updateElectricalInspection
|
|
|
|
updateElectricalInspection
|
|
|
|
} from '@/api/report/electricalInspection'
|
|
|
|
} from '@/api/report/electricalInspection'
|
|
|
|
import { parseTime } from '@//utils/ruoyi'
|
|
|
|
import { parseTime } from '@//utils/ruoyi'
|
|
|
|
|
|
|
|
import { getCustomData } from '@//api/base/customData'
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name: 'ElectricalInspection',
|
|
|
|
name: 'ElectricalInspection',
|
|
|
@ -276,10 +280,16 @@ export default {
|
|
|
|
{ key: 5, label: `记录时间`, visible: false },
|
|
|
|
{ key: 5, label: `记录时间`, visible: false },
|
|
|
|
{ key: 6, label: `产品型号`, visible: true },
|
|
|
|
{ key: 6, label: `产品型号`, visible: true },
|
|
|
|
{ key: 7, label: `异常描述`, visible: true }
|
|
|
|
{ key: 7, label: `异常描述`, visible: true }
|
|
|
|
]
|
|
|
|
],
|
|
|
|
|
|
|
|
//自定义数据
|
|
|
|
|
|
|
|
customData: null
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
created() {
|
|
|
|
|
|
|
|
//获取自定义数据
|
|
|
|
|
|
|
|
getCustomData(387).then(response => {
|
|
|
|
|
|
|
|
this.customData = response.data.customData
|
|
|
|
|
|
|
|
})
|
|
|
|
const nowDate = parseTime(new Date(), '{y}-{m}-{d}')
|
|
|
|
const nowDate = parseTime(new Date(), '{y}-{m}-{d}')
|
|
|
|
this.daterangeRecordTime[0] = nowDate + ' 00:00:00'
|
|
|
|
this.daterangeRecordTime[0] = nowDate + ' 00:00:00'
|
|
|
|
this.daterangeRecordTime[1] = nowDate + ' 23:59:59'
|
|
|
|
this.daterangeRecordTime[1] = nowDate + ' 23:59:59'
|
|
|
|