Просмотр исходного кода

fix:受限文件查阅逻辑修改

liujiayin 3 лет назад
Родитель
Сommit
0b40a7a16c

+ 1 - 1
src/views/infosManage/externalFiles/externalFiles.vue

@@ -241,7 +241,7 @@ export default {
                             WHERE yong_hu_id_ = t.yong_hu_id_ AND wen_jian_id_ = t.wen_jian_id_
                             AND create_time_ > t.create_time_
                         )
-                 ) qx LEFT JOIN t_wjgl wj ON qx.wen_jian_id_=wj.id_ WHERE qx.shou_quan_='1' and qx.yong_hu_id_='${sorts.userId}' ${wheres}`
+                 ) qx LEFT JOIN t_wjgl wj ON qx.wen_jian_id_=wj.wen_jian_id_ WHERE qx.shou_quan_='1' and qx.yong_hu_id_='${sorts.userId}' ${wheres}`
 
       curdPost('sql', sql).then(res => {
         let tableDatas = res.variables.data

+ 1 - 1
src/views/infosManage/internalFiles/internalFiles.vue

@@ -195,7 +195,7 @@ export default {
                         WHERE yong_hu_id_ = t.yong_hu_id_ AND wen_jian_id_ = t.wen_jian_id_
                         AND create_time_ > t.create_time_
                     )
-                ) qx LEFT JOIN t_wjgl wj ON qx.wen_jian_id_=wj.id_ WHERE qx.shou_quan_='1' and qx.yong_hu_id_='${sorts.userId}' ${wheres}`
+                ) qx LEFT JOIN t_wjgl wj ON qx.wen_jian_id_=wj.wen_jian_id_ WHERE qx.shou_quan_='1' and qx.yong_hu_id_='${sorts.userId}' ${wheres}`
 
       curdPost('sql', sql).then(res => {
         let tableDatas = res.variables.data

+ 1 - 1
src/views/permissions/details/fileEchart.vue

@@ -111,7 +111,7 @@ export default {
                 FROM t_wjcysqb 
                 WHERE yong_hu_id_ = t.yong_hu_id_ AND wen_jian_id_ = t.wen_jian_id_
                 AND create_time_ > t.create_time_
-            )) qx LEFT JOIN t_wjgl wj ON qx.wen_jian_id_=wj.id_ where qx.yong_hu_id_='${id}' order by wj.wen_jian_lie_xing desc`
+            )) qx LEFT JOIN t_wjgl wj ON qx.wen_jian_id_=wj.wen_jian_id_ where qx.yong_hu_id_='${id}' order by wj.wen_jian_lie_xing desc`
       curdPost('sql', sql).then(res => {
         for (let i of res.variables.data) {
           this.allFilesDatas.push(i)