|
@@ -16,7 +16,7 @@
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="24">
|
|
|
<a-form-item label="设备等级">
|
|
|
- <a-select v-model="queryParam.level" placeholder="请选择">
|
|
|
+ <a-select v-model="queryParam.sblevel" placeholder="请选择">
|
|
|
<a-select-option
|
|
|
v-for="(label,value) in levelMap"
|
|
|
:key="value"
|
|
@@ -40,6 +40,18 @@
|
|
|
</a-tree-select>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
+ <a-col :md="6" :sm="24">
|
|
|
+ <a-form-item label="保养等级">
|
|
|
+ <a-select v-model="queryParam.standardLevel" placeholder="请选择">
|
|
|
+ <a-select-option
|
|
|
+ v-for="(label,value) in standardLevelMap"
|
|
|
+ :key="value"
|
|
|
+ :label="label"
|
|
|
+ :value="parseInt(value)">{{ label }}
|
|
|
+ </a-select-option>
|
|
|
+ </a-select>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
<a-col :md="6" :sm="24">
|
|
|
<a-form-item label="周期类型">
|
|
|
<a-select v-model="queryParam.periodType" placeholder="请选择">
|
|
@@ -166,6 +178,7 @@ import BaseForm from './modules/BaseForm'
|
|
|
import Detail from './modules/Detail'
|
|
|
import { getCheckJobPage, deleteCheckJobs, fetchCheckJob, exportCheckJob, executeJob } from '@/api/check/checkjob'
|
|
|
import { fetchSbTypeTree } from '@/api/sb/type'
|
|
|
+import DictCache from '@/utils/dict'
|
|
|
|
|
|
export default {
|
|
|
name: 'CheckJobList',
|
|
@@ -186,6 +199,15 @@ export default {
|
|
|
filter: {
|
|
|
type: Number,
|
|
|
default: -1
|
|
|
+ },
|
|
|
+ status: {
|
|
|
+ type: Number,
|
|
|
+ default: null
|
|
|
+ },
|
|
|
+ statusList: {
|
|
|
+ type: String,
|
|
|
+ default: [DictCache.VALUE.CHECK_JOB_STATUS.NOT_EXECUTE, DictCache.VALUE.CHECK_JOB_STATUS.EXECUTING, DictCache.VALUE.CHECK_JOB_STATUS.OUT_OF_DATE].join(',')
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
data () {
|
|
@@ -197,7 +219,9 @@ export default {
|
|
|
type: this.checkType,
|
|
|
searchStartTime: null,
|
|
|
searchEndTime: null,
|
|
|
- filter: this.filter
|
|
|
+ filter: this.filter,
|
|
|
+ status: this.status,
|
|
|
+ statusList: this.statusList
|
|
|
},
|
|
|
treeData: [],
|
|
|
// 表头
|
|
@@ -448,6 +472,12 @@ export default {
|
|
|
},
|
|
|
resetSearchForm () {
|
|
|
this.queryParam = {
|
|
|
+ type: this.checkType,
|
|
|
+ searchStartTime: null,
|
|
|
+ searchEndTime: null,
|
|
|
+ filter: this.filter,
|
|
|
+ status: this.status,
|
|
|
+ statusList: this.statusList
|
|
|
}
|
|
|
this.$refs.table.refresh(true)
|
|
|
},
|