Jelajahi Sumber

上岗证/作业证书一览表 - 搜索栏姓名工号模糊查询、岗位查询

wangggziwen 1 tahun lalu
induk
melakukan
540c41f88a

+ 1 - 1
master/src/main/resources/mybatis/training/TWorklicenseCertificateMapper.xml

@@ -60,7 +60,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <include refid="selectTWorklicenseCertificateVo"/>
         <where>  
             <if test="name != null  and name != ''"> and name like concat(concat('%', #{name}), '%')</if>
-            <if test="employeeid != null  and employeeid != ''"> and employeeid = #{employeeid}</if>
+            <if test="employeeid != null  and employeeid != ''"> and employeeid like concat(concat('%', #{employeeid}), '%')</if>
             <if test="idnum != null  and idnum != ''"> and idnum = #{idnum}</if>
             <if test="classes != null  and classes != ''"> and classes = #{classes}</if>
             <if test="post != null  and post != ''"> and post = #{post}</if>

+ 52 - 0
ui/src/views/training/worklicensecertificate/index.vue

@@ -19,6 +19,21 @@
           @keyup.enter.native="handleQuery"
         />
       </el-form-item>
+      <el-form-item label="开工锅炉" prop="boiler" label-width="50">
+        <el-checkbox v-model="boiler" @change="handleQuery"></el-checkbox>
+      </el-form-item>
+      <el-form-item label="裂解" prop="cracking" label-width="50">
+        <el-checkbox v-model="cracking" @change="handleQuery"></el-checkbox>
+      </el-form-item>
+      <el-form-item label="热区" prop="hotarea" label-width="50">
+        <el-checkbox v-model="hotarea" @change="handleQuery"></el-checkbox>
+      </el-form-item>
+      <el-form-item label="冷区" prop="coldarea" label-width="50">
+        <el-checkbox v-model="coldarea" @change="handleQuery"></el-checkbox>
+      </el-form-item>
+      <el-form-item label="芳烃" prop="aromatic" label-width="50">
+        <el-checkbox v-model="aromatic" @change="handleQuery"></el-checkbox>
+      </el-form-item>
       <!--<el-form-item label="身份证件号" prop="idnum">-->
         <!--<el-input-->
           <!--v-model="queryParams.idnum"-->
@@ -1193,6 +1208,11 @@ export default {
         loadedRatio: 0,
       },
       staffResumeVisible: false,
+      boiler: false,
+      cracking: false,
+      hotarea: false,
+      coldarea: false,
+      aromatic: false,
     };
   },
   watch: {
@@ -1477,11 +1497,43 @@ export default {
     },
     /** 搜索按钮操作 */
     handleQuery() {
+      if (this.boiler == true) {
+        this.queryParams.boiler = "1";
+      } else {
+        this.queryParams.boiler = null;
+      }
+      if (this.cracking == true) {
+        this.queryParams.cracking = "1";
+      } else {
+        this.queryParams.cracking = null;
+      }
+      if (this.hotarea == true) {
+        this.queryParams.hotarea = "1";
+      } else {
+        this.queryParams.hotarea = null;
+      }
+      if (this.coldarea == true) {
+        this.queryParams.coldarea = "1";
+      } else {
+        this.queryParams.coldarea = null;
+      }
+      if (this.aromatic == true) {
+        this.queryParams.aromatic = "1";
+      } else {
+        this.queryParams.aromatic = null;
+      }
+      console.log(this.boiler)
+      console.log(this.queryParams)
       this.queryParams.pageNum = 1;
       this.getList();
     },
     /** 重置按钮操作 */
     resetQuery() {
+      this.boiler = false;
+      this.cracking = false;
+      this.hotarea = false;
+      this.coldarea = false;
+      this.aromatic = false;
       this.resetForm("queryForm");
       this.handleQuery();
     },