瀏覽代碼

SAI开项管理 - 台账查询下拉多选片区

wangggziwen 1 年之前
父節點
當前提交
d2bece9dab

+ 1 - 1
master/src/main/resources/mybatis/production/TSaiApplyMapper.xml

@@ -110,7 +110,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="category != null  and category != ''"> and category = #{category}</if>
             <if test="remarksAssess != null  and remarksAssess != ''"> and remarks_assess = #{remarksAssess}</if>
             <if test="remarksExecute != null  and remarksExecute != ''"> and remarks_execute = #{remarksExecute}</if>
-            <if test="workArea != null  and workArea != ''"> and work_area = #{workArea}</if>
+            <if test="workArea != null  and workArea != ''"> and instr(#{workArea}, work_area ) > 0 </if>
             and d.del_flag = 0
         </where>
         order by APPLY_DATE desc

+ 7 - 0
ui/src/views/production/apply/all/index.vue

@@ -97,6 +97,7 @@
       <el-form-item label="片区" prop="workArea">
         <el-select
           clearable
+          multiple
           v-model="queryParams.workArea"
           placeholder="请选择片区">
           <el-option
@@ -1380,7 +1381,13 @@ export default {
     getList() {
       this.loading = true;
       this.queryParams.tab = 3;
+      if (this.queryParams.workArea != null && this.queryParams.workArea != "") {
+        this.queryParams.workArea = this.queryParams.workArea.join();
+      }
       listApply(this.queryParams).then(response => {
+        if (this.queryParams.workArea != null && this.queryParams.workArea != "") {
+          this.queryParams.workArea = this.queryParams.workArea.split(",");
+        }
         this.applyList = response.rows;
         this.total = response.total;
         this.loading = false;

+ 7 - 0
ui/src/views/production/apply/mine/index.vue

@@ -97,6 +97,7 @@
       <el-form-item label="片区" prop="workArea">
         <el-select
           clearable
+          multiple
           v-model="queryParams.workArea"
           placeholder="请选择片区">
           <el-option
@@ -1386,7 +1387,13 @@
             this.loginStaffInfo = response.data;
           }
           this.queryParams.tab = 2;
+          if (this.queryParams.workArea != null && this.queryParams.workArea != "") {
+            this.queryParams.workArea = this.queryParams.workArea.join();
+          }
           listApply(this.queryParams).then(response => {
+            if (this.queryParams.workArea != null && this.queryParams.workArea != "") {
+              this.queryParams.workArea = this.queryParams.workArea.split(",");
+            }
             // let rows = response.rows;
             // this.applyList = [];
             // for (let i = 0; i < rows.length; i++) {

+ 7 - 0
ui/src/views/production/apply/pending/index.vue

@@ -97,6 +97,7 @@
       <el-form-item label="片区" prop="workArea">
         <el-select
           clearable
+          multiple
           v-model="queryParams.workArea"
           placeholder="请选择片区">
           <el-option
@@ -1385,7 +1386,13 @@
             this.loginStaffInfo = response.data;
           }
           this.queryParams.tab = 1;
+          if (this.queryParams.workArea != null && this.queryParams.workArea != "") {
+            this.queryParams.workArea = this.queryParams.workArea.join();
+          }
           listApply(this.queryParams).then(response => {
+            if (this.queryParams.workArea != null && this.queryParams.workArea != "") {
+              this.queryParams.workArea = this.queryParams.workArea.split(",");
+            }
             // let rows = response.rows;
             // this.applyList = [];
             // for (let i = 0; i < rows.length; i++) {