|
@@ -32,7 +32,7 @@
|
|
/>
|
|
/>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
- <a-col :md="6" :sm="24">
|
|
|
|
|
|
+ <!-- <a-col :md="6" :sm="24">
|
|
<a-form-item label="周期类型">
|
|
<a-form-item label="周期类型">
|
|
<a-select
|
|
<a-select
|
|
v-model="queryParam.periodType"
|
|
v-model="queryParam.periodType"
|
|
@@ -45,6 +45,18 @@
|
|
</a-select-option>
|
|
</a-select-option>
|
|
</a-select>
|
|
</a-select>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
|
+ </a-col> -->
|
|
|
|
+ <a-col :md="6" :sm="24">
|
|
|
|
+ <a-form-item label="维护等级">
|
|
|
|
+ <a-select mode="multiple" v-model="queryParam.levelList" 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>
|
|
<a-col :md="6" :sm="24">
|
|
<a-col :md="6" :sm="24">
|
|
<span class="table-page-search-submitButtons">
|
|
<span class="table-page-search-submitButtons">
|
|
@@ -55,7 +67,7 @@
|
|
</a-row>
|
|
</a-row>
|
|
</a-form>
|
|
</a-form>
|
|
</div>
|
|
</div>
|
|
-
|
|
|
|
|
|
+ <a-alert message="保养总数" type="info" :close-text="totalNum" />
|
|
<s-table
|
|
<s-table
|
|
ref="table"
|
|
ref="table"
|
|
size="default"
|
|
size="default"
|
|
@@ -109,6 +121,7 @@ export default {
|
|
searchStartTime: null,
|
|
searchStartTime: null,
|
|
searchEndTime: null
|
|
searchEndTime: null
|
|
},
|
|
},
|
|
|
|
+ totalNum: 0,
|
|
treeData: [],
|
|
treeData: [],
|
|
// 表头
|
|
// 表头
|
|
columns: [
|
|
columns: [
|
|
@@ -153,15 +166,19 @@ export default {
|
|
}
|
|
}
|
|
return getCheckNum(parameter)
|
|
return getCheckNum(parameter)
|
|
.then(res => {
|
|
.then(res => {
|
|
|
|
+ if (parameter.pageNum === 1) {
|
|
|
|
+ this.totalNum = res.data.rows[0].totalNum
|
|
|
|
+ }
|
|
return res.data
|
|
return res.data
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- periodTypeMap: {}
|
|
|
|
-
|
|
|
|
|
|
+ periodTypeMap: {},
|
|
|
|
+ standardLevelMap: {}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created () {
|
|
created () {
|
|
// 下拉框map
|
|
// 下拉框map
|
|
|
|
+ this.standardLevelMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.CHECK_PLAN_LEVEL)
|
|
this.periodTypeMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.PERIOD_TYPE)
|
|
this.periodTypeMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.PERIOD_TYPE)
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -184,7 +201,7 @@ export default {
|
|
console.log(this.queryParam.searchEndTime)
|
|
console.log(this.queryParam.searchEndTime)
|
|
this.queryParam.searchStartTime = this.queryParam.searchStartTime ? this.BaseTool.Date.formatter(this.queryParam.searchStartTime, this.BaseTool.Date.PICKER_NORM_DATE_PATTERN) + ' 00:00:01' : null
|
|
this.queryParam.searchStartTime = this.queryParam.searchStartTime ? this.BaseTool.Date.formatter(this.queryParam.searchStartTime, this.BaseTool.Date.PICKER_NORM_DATE_PATTERN) + ' 00:00:01' : null
|
|
this.queryParam.searchEndTime = this.queryParam.searchEndTime ? this.BaseTool.Date.formatter(this.queryParam.searchEndTime, this.BaseTool.Date.PICKER_NORM_DATE_PATTERN) + ' 23:59:59' : null
|
|
this.queryParam.searchEndTime = this.queryParam.searchEndTime ? this.BaseTool.Date.formatter(this.queryParam.searchEndTime, this.BaseTool.Date.PICKER_NORM_DATE_PATTERN) + ' 23:59:59' : null
|
|
- this.$refs.table.refresh()
|
|
|
|
|
|
+ this.$refs.table.refresh(true)
|
|
},
|
|
},
|
|
resetSearchForm () {
|
|
resetSearchForm () {
|
|
this.queryParam = {
|
|
this.queryParam = {
|