Procházet zdrojové kódy

修复人员维护培训查询和内部培训记录查询逻辑

zhonghuizhen před 9 měsíci
rodič
revize
e380ff8def

+ 2 - 2
src/views/component/personnelFile/constants/simulated.js

@@ -438,7 +438,7 @@ export function correlationSql(type, val) {
     } else if (type === "kaoshijilu") {
         sql = `select * from v_examination where FIND_IN_SET('${val}',${col[type]}) and paperState = '已完成' and examType!='自主考核' ORDER BY createTime asc`;
     } else if (type === "lhrypxjlb") {
-        sql = `select * from v_wodepeixun where FIND_IN_SET('${val}',${col[type]}) and shi_fou_guo_shen_ = '已结束' `;
+        sql = `select * from v_wodepeixun where FIND_IN_SET('${val}',${col[type]}) and pei_xun_zhuang_ta  ='已结束' `;
     } else if (type === "tjbgb") {
         sql = `select * from t_${type} where FIND_IN_SET('${val}',${col[type]})`;
     }
@@ -551,7 +551,7 @@ export const correlationConfig = {
             {
                 label: "培训老师",
                 width: "12%",
-                type: "text",
+                type: "user",
                 field: "pei_xun_lao_shi_",
             },
             {

+ 1 - 1
src/views/component/trainingManage/trainingStatic.vue

@@ -383,7 +383,7 @@ export default {
         },
         // 查询指定人员的培训记录
         async fetchPaperList () {
-            const sql = `select * from t_rypxcjb where FIND_IN_SET('${this.params.peixunrenyuan}', pei_xun_ren_yuan_) > 0 and shi_fou_guo_shen_='已结束'`
+            const sql = `select * from t_lhrypxjlb where FIND_IN_SET('${this.params.peixunrenyuan}', pei_xun_ren_yuan_) > 0 and pei_xun_zhuang_ta  ='已结束'`
             const { variables: { data }} = await this.$common.request('sql', sql)
             this.tableList = data
         },