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

流程归档配置查询SQL增加过滤

cfort 2 лет назад
Родитель
Сommit
15d84d4c6c

+ 1 - 1
src/business/platform/bpmn/form/action.js

@@ -664,7 +664,7 @@ export default {
                 // 等待一段时间后再次查询
                 await new Promise(resolve => setTimeout(resolve, intervalTime))
             }
-            const sql = `select * from t_lcidglbdbb where shi_fou_zi_biao_ = 't_${code}' and ti_jiao_kuai_zhao = '是'`
+            const sql = `select * from t_lcidglbdbb where shi_fou_zi_biao_ = 't_${code}' and ti_jiao_kuai_zhao = '是' and gui_dang_lei_xing = 'process'`
             this.$common.request('sql', sql).then(res => {
                 const { data = [] } = res.variables || {}
                 if (!data.length) {

+ 3 - 2
src/business/platform/bpmn/setting/bpmn-setting/mixins/addRecord.js

@@ -11,7 +11,7 @@ export default {
     },
     methods: {
         getRecord (id) {
-            const sql = `select * from t_lcidglbdbb where liu_cheng_xuan_ze = '${id}'`
+            const sql = `select * from t_lcidglbdbb where gui_dang_lei_xing = 'process' liu_cheng_xuan_ze = '${id}'`
             curdPost('sql', sql).then(res => {
                 const { data = [] } = res.variables || {}
                 if (!data.length) {
@@ -43,7 +43,8 @@ export default {
                     guan_lian_zi_duan: this.guan_lian_zi_duan,
                     shi_fou_zi_biao_: this.shi_fou_zi_biao_,
                     ti_jiao_kuai_zhao: this.ti_jiao_kuai_zhao,
-                    bo_hui_kuai_zhao_: this.bo_hui_kuai_zhao_
+                    bo_hui_kuai_zhao_: this.bo_hui_kuai_zhao_,
+                    gui_dang_lei_xing: 'process'
                 }]
             }
             curdPost('add', params).then(() => {

+ 1 - 1
src/views/platform/bpmn/bpmInstHis/oldFilesUploadList.vue

@@ -188,7 +188,7 @@ export default {
     methods: {
         /* 获取配置报表数据*/
         getConfig () {
-            const sql = 'select bao_biao_lu_jing_, fu_jian_nei_rong_, guan_lian_zi_duan, liu_cheng_xuan_ze, shi_fou_zi_biao_ from t_lcidglbdbb'
+            const sql = `select bao_biao_lu_jing_, fu_jian_nei_rong_, guan_lian_zi_duan, liu_cheng_xuan_ze, shi_fou_zi_biao_ from t_lcidglbdbb where gui_dang_lei_xing = 'process'`
             curdPost('sql', sql).then((res) => {
                 this.reportAll = res.variables && res.variables.data
             }).catch(() => {