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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sasp-flow-render",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "业务应用支撑平台-智慧流程渲染组件",
5
5
  "scripts": {
6
6
  "build": "vue-cli-service build"
@@ -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.CACHE_GLOBAL = cacheGlobal;
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);
@@ -236,7 +236,7 @@
236
236
  },
237
237
  //初始化用户信息
238
238
  initUserInfo(){
239
- this.loginUser = this.CACHE_GLOBAL.getLoginUser();
239
+ this.loginUser = this.FLOW_CACHE_GLOBAL.getLoginUser();
240
240
  }
241
241
  }
242
242
  }
@@ -380,8 +380,8 @@
380
380
  noClearSearchColumns: this.initNoClearSearch(),
381
381
  initNoSearch: true,
382
382
  }),
383
- loginUser: this.CACHE_GLOBAL.getLoginUser(),//当前登录用户
384
- userDept: this.CACHE_GLOBAL.getLoginDept(),
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.CACHE_GLOBAL.getLoginUser();
892
- this.userDept = this.CACHE_GLOBAL.getLoginDept();
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.CACHE_GLOBAL.setLoginUser(this.loginUser);
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.CACHE_GLOBAL.setLoginUser(loginUser);
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.CACHE_GLOBAL.getLoginUser(); //获取当前用户
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.CACHE_GLOBAL.getLoginUser(); //获取当前用户
80
+ let loginUser = this.FLOW_CACHE_GLOBAL.getLoginUser(); //获取当前用户
81
81
  //根据 当前用户查询 数据权限和操作权限
82
82
  //判断当前用户类型
83
83
  if(loginUser.userType == 'sup'){ //开发者