cxmo 1 年之前
父节点
当前提交
9da4da03e2
共有 2 个文件被更改,包括 27 次插入0 次删除
  1. 7 0
      src/views/smartReport/reportList.vue
  2. 20 0
      src/vuex/mutations.js

+ 7 - 0
src/views/smartReport/reportList.vue

@@ -438,6 +438,13 @@ export default {
         //是否有UV
         hasUV(){
             return this.permissionBtn.checkPermissionBtn(this.permissionBtn.smartReportManageBtn.reportManage_reportList_uv)
+        },
+        //是否开启审批流,若开启,发布相关按钮,筛选项改变
+        isApprove(){
+            const type = this.$setting.dynamicOutLinks.ApprovalFlow ||
+                        this.$store.state.dynamicOutLinks.ApprovalFlow ||
+                        JSON.parse(localStorage.getItem('dynamicOutLinks')).ApprovalFlow||''
+            return ['2','3'].includes(type)
         }
     },
     data() {

+ 20 - 0
src/vuex/mutations.js

@@ -26,6 +26,26 @@ const mutations = {
           filterObj[item.ConfKey] = item.ConfVal;
         }
     });
+    /*
+        [
+            {
+                "ConfKey": "ReportViewUrl", //研报预览分享链接
+                "ConfVal": "http://testetareport.hzinsights.com"
+            },
+            {
+                "ConfKey": "ChartViewUrl", //研报插入图表&表格外联
+                "ConfVal": "https://charttest.hzinsights.com"
+            },
+            {
+                "ConfKey": "ObjectStorageClient", //文件上传、存储 oss/minio
+                "ConfVal": "minio"
+            },
+            {
+                "ConfKey": "ApprovalFlow", //接口权限:是否走审批流 
+                "ConfVal": "" //0否 1研报2智能研报 3全选
+            }
+        ]
+     */
     localStorage.setItem('dynamicOutLinks',JSON.stringify(filterObj))
     state.dynamicOutLinks = filterObj; 
     setting.dynamicOutLinks = state.dynamicOutLinks;