dong преди 2 месеца
родител
ревизия
9b1ab854e2
променени са 1 файла, в които са добавени 10 реда и са изтрити 10 реда
  1. 10 10
      src/views/module_tpm/equipmentRunStatis/history.vue

+ 10 - 10
src/views/module_tpm/equipmentRunStatis/history.vue

@@ -1,12 +1,12 @@
 <template>
   <div>
     <div class="table-page-search-wrapper">
-      <a-form layout="inline" :model="queryParams" ref="queryForm">
+      <a-form layout="inline" :model="queryParam" ref="queryForm">
         <a-row :gutter="24">
           <a-col :xl="8" :lg="7" :md="8" :sm="24">
             <a-form-item label="设备名称">
               <a-select
-              v-model="queryParams.equipmentid"
+              v-model="queryParam.equipmentid"
               placeholder="请输入设备名称或设备编号"
               show-search
               :filterOption="filterOptions"
@@ -21,12 +21,12 @@
           </a-col>
           <a-col :xl="4" :lg="11" :md="12" :sm="24">
             <a-form-item label="查询日期">
-              <a-date-picker v-model="queryParams.date" placeholder="选择日期" style="width:100%;" @change="handleQuery" />
+              <a-date-picker v-model="queryParam.date" placeholder="选择日期" style="width:100%;" @change="handleQuery" />
             </a-form-item>
           </a-col>
           <!-- <a-col :xl="6" :lg="7" :md="8" :sm="24">
             <a-form-item label="参数类型">
-              <j-dict-select-tag v-model="queryParams.tagtype"  placeholder="请输入优先级" dictCode="tpm_tag_type"/>
+              <j-dict-select-tag v-model="queryParam.tagtype"  placeholder="请输入优先级" dictCode="tpm_tag_type"/>
             </a-form-item>
           </a-col> -->
           <a-col :xl="6" :lg="7" :md="8" :sm="24">
@@ -94,7 +94,7 @@ export default {
       // 数据
       tpmequiponoffsectionList: [],
       // 查询参数
-      queryParams: {
+      queryParam: {
         date: '',
         pageNum: 1,
         pageSize: 1000,
@@ -135,7 +135,7 @@ export default {
   mounted() {
     this.$nextTick(() => {
       var now = this.dateformat(new Date()).substring(0, 10)
-      this.queryParams.date = now
+      this.queryParam.date = now
       // this.handleQuery()
       // this.getTest()
     })
@@ -212,17 +212,17 @@ export default {
     },
     handleQuery() {
       var _this = this
-      if (!this.queryParams.equipmentid) {
+      if (!this.queryParam.equipmentid) {
         this.$message.error('请选择设备!')
         return
       }
-      if (!this.queryParams.date) {
+      if (!this.queryParam.date) {
         this.$message.error('请选择查询日期!')
         return
       }
       _this.loading = true
       // 获取图表信息
-      getAction(_this.url.listparams, _this.queryParams).then((res) => {
+      getAction(_this.url.listparams, _this.queryParam).then((res) => {
         if (res.success) {
           _this.columns = [
             {
@@ -252,7 +252,7 @@ export default {
             }
           })
           this.loadData()
-          // getAction(_this.url.list, _this.queryParams).then((response) => {
+          // getAction(_this.url.list, _this.queryParam).then((response) => {
           //   _this.dataSource = response.result
 
           //   _this.loading = false