whj 1 year ago
parent
commit
0f4bd06355
1 changed files with 22 additions and 5 deletions
  1. 22 5
      src/views/check/checkstatistics/CheckStatistics.vue

+ 22 - 5
src/views/check/checkstatistics/CheckStatistics.vue

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