sasp-flow-render 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/assets/js/flowInstall.js +1 -1
- package/src/components/flowChart.vue +1 -1
- package/src/components/flowInst/flowInstList.vue +2 -2
- package/src/components/flowInst/flowInstTab.vue +2 -2
- package/src/views/flowInstView.vue +2 -2
- package/src/views/menuRouter/flowMenuRouter.vue +1 -1
- package/src/views/menuRouter/flowResRouter.vue +1 -1
package/package.json
CHANGED
|
@@ -14,7 +14,7 @@ const install = function (Vue, opts = {}) {
|
|
|
14
14
|
|
|
15
15
|
Vue.use(flowUserGlobal,opts);
|
|
16
16
|
Vue.prototype.FLOW_GLOBAL = flowGlobal;
|
|
17
|
-
Vue.prototype.
|
|
17
|
+
Vue.prototype.FLOW_CACHE_GLOBAL = cacheGlobal;
|
|
18
18
|
Vue.prototype.INTER_CACHE = interfaceCache;
|
|
19
19
|
Vue.prototype.FLOW_USER_GLOBAL = flowUserGlobal;
|
|
20
20
|
Object.assign(Vue.prototype.api, apiFlow.apis);
|
|
@@ -380,8 +380,8 @@
|
|
|
380
380
|
noClearSearchColumns: this.initNoClearSearch(),
|
|
381
381
|
initNoSearch: true,
|
|
382
382
|
}),
|
|
383
|
-
loginUser: this.
|
|
384
|
-
userDept: this.
|
|
383
|
+
loginUser: this.FLOW_CACHE_GLOBAL.getLoginUser(),//当前登录用户
|
|
384
|
+
userDept: this.FLOW_CACHE_GLOBAL.getLoginDept(),
|
|
385
385
|
flowStatusObj: {//流程状态
|
|
386
386
|
all: '',
|
|
387
387
|
draft: 0,
|
|
@@ -888,8 +888,8 @@
|
|
|
888
888
|
}
|
|
889
889
|
this.agentFormObj.flowId = this.flowData.flowId;
|
|
890
890
|
this.isShowAgentSet = false;
|
|
891
|
-
this.loginUser = this.
|
|
892
|
-
this.userDept = this.
|
|
891
|
+
this.loginUser = this.FLOW_CACHE_GLOBAL.getLoginUser();
|
|
892
|
+
this.userDept = this.FLOW_CACHE_GLOBAL.getLoginDept();
|
|
893
893
|
this.initTabOpts(); // 初始化外部选项卡权限
|
|
894
894
|
|
|
895
895
|
this.getFlowInfo().then(res => {
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
},
|
|
71
71
|
init(){
|
|
72
72
|
if(this.loginUser){
|
|
73
|
-
this.
|
|
73
|
+
this.FLOW_CACHE_GLOBAL.setLoginUser(this.loginUser);
|
|
74
74
|
}else{
|
|
75
75
|
let loginUser = {};
|
|
76
76
|
if(this.userId){
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
if(this.userName){
|
|
82
82
|
loginUser.userName = this.userName;
|
|
83
83
|
}
|
|
84
|
-
this.
|
|
84
|
+
this.FLOW_CACHE_GLOBAL.setLoginUser(loginUser);
|
|
85
85
|
}
|
|
86
86
|
if(this.flowId){
|
|
87
87
|
this.useFlowId = this.flowId;
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
}
|
|
103
103
|
// let menuObj = window.menuIdToMenuObj[this.menuId] || {};
|
|
104
104
|
|
|
105
|
-
let loginUser = this.
|
|
105
|
+
let loginUser = this.FLOW_CACHE_GLOBAL.getLoginUser(); //获取当前用户
|
|
106
106
|
//根据 当前用户查询 数据权限和操作权限
|
|
107
107
|
//判断当前用户类型
|
|
108
108
|
if(loginUser.userType == 'sup' || this.isCloudView){ //开发者
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
//let menuObj = window.resourceToMemu[this.resourceId];
|
|
78
78
|
//this.menuId = menuObj.id;
|
|
79
79
|
|
|
80
|
-
let loginUser = this.
|
|
80
|
+
let loginUser = this.FLOW_CACHE_GLOBAL.getLoginUser(); //获取当前用户
|
|
81
81
|
//根据 当前用户查询 数据权限和操作权限
|
|
82
82
|
//判断当前用户类型
|
|
83
83
|
if(loginUser.userType == 'sup'){ //开发者
|