Sfoglia il codice sorgente

修改管道展示查询参数

lph 1 anno fa
parent
commit
c38b62bd0f

+ 6 - 2
zkqy-ui/src/views/bussiness/processMange.vue

@@ -1,7 +1,7 @@
 <template>
   <div class="process-mange-wrap">
     <!-- <el-card shadow="always" :body-style="{ padding: '20px' }"> -->
-    <el-row>
+    <el-row v-show="false">
       <el-col :xs="24" :md="8" :xl="8" class="col">
         <div class="statistic-wrap">
           <div class="discription">
@@ -51,7 +51,11 @@
             </el-radio-group>
           </div>
           <div class="search-input">
-            <el-input placeholder="请输入..." v-model="queryString">
+            <el-input
+              placeholder="请输入..."
+              v-model="queryString"
+              @keyup.enter.native="getList"
+            >
               <el-button
                 slot="append"
                 icon="el-icon-search"

+ 26 - 20
zkqy-ui/src/views/bussiness/progressShow.vue

@@ -32,7 +32,11 @@
             </el-radio-group>
           </div>
           <div class="search-input">
-            <el-input placeholder="请输入..." v-model="queryString">
+            <el-input
+              placeholder="请输入..."
+              v-model="queryString"
+              @keyup.enter.native="getList"
+            >
               <el-button
                 slot="append"
                 @click="getList"
@@ -87,27 +91,29 @@ export default {
   methods: {
     // 获取列表数据
     getList() {
-      getListLog(this.queryParams).then((res) => {
-        if (res.code == 200) {
-          this.tableData = this.getTableData(
-            res.rows.map((item) => item.resultMap)
-          );
-          console.log(this.tableData);
-          this.total = res.total;
-        } else {
-          this.$message.error("网络异常,请稍后再试");
-        }
+      getListLog({ ...this.queryParams, taskName: this.queryString }).then(
+        (res) => {
+          if (res.code == 200) {
+            this.tableData = this.getTableData(
+              res.rows.map((item) => item.resultMap)
+            );
+            console.log(this.tableData);
+            this.total = res.total;
+          } else {
+            this.$message.error("网络异常,请稍后再试");
+          }
 
-        return;
-        if (res.code == 200) {
-          this.tableData = this.getTableData(
-            res.rows.map((item) => item.resultMap)
-          );
-          this.total = res.total;
-        } else {
-          this.$message.error("网络异常,请稍后再试");
+          return;
+          if (res.code == 200) {
+            this.tableData = this.getTableData(
+              res.rows.map((item) => item.resultMap)
+            );
+            this.total = res.total;
+          } else {
+            this.$message.error("网络异常,请稍后再试");
+          }
         }
-      });
+      );
     },
     // 获取表格展示数据
     getTableData(dataList) {