sasp-flow-render 1.1.1 → 1.1.2

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.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "业务应用支撑平台-智慧流程渲染组件",
5
5
  "scripts": {
6
6
  "build": "vue-cli-service build"
@@ -187,6 +187,7 @@ let objResult = {
187
187
  add:"/plFlowDomainController/add",
188
188
  update:"/plFlowDomainController/update",
189
189
  delete:"/plFlowDomainController/delete",
190
+ findRealUrl:"/plFlowDomainController/findRealUrl",
190
191
  },
191
192
  plFlowInterface:{
192
193
  url:"/plFlowInterfaceController",
@@ -216,6 +217,11 @@ let objResult = {
216
217
  delete:"/plFlowCss/delete",
217
218
  getById:"/plFlowCss/getById",
218
219
  },
220
+ operationLog: {
221
+ url:"/operationLogController",
222
+ find:"/operationLogController/find",
223
+ getById:"/operationLogController/getById"
224
+ },
219
225
  };
220
226
 
221
227
  import {SaspModuleUtil} from "sasp-base";
@@ -40,10 +40,14 @@ export default {
40
40
  setLocalJSON('LOGINUSER', user);
41
41
  },
42
42
  setLoginToken(token) {
43
- setLocalJSON('USERTOKEN', "pl_token_" + token);
44
-
45
- localStorage["Authorization" + (window.projectSuffix || "")] = "pl_token_" + token;
46
- axios.defaults.headers.common["Authorization"] = "pl_token_" + token;
43
+ let customToken = window.customToken;
44
+ if(!customToken) {
45
+ customToken = "pl_token_";
46
+ }
47
+ setLocalJSON('USERTOKEN', customToken + token);
48
+
49
+ localStorage["Authorization" + (window.projectSuffix || "")] = customToken + token;
50
+ axios.defaults.headers.common["Authorization"] = customToken + token;
47
51
  },
48
52
 
49
53
  clearLoginToken(token) { // 登陆前清空登录认证token
@@ -13,9 +13,13 @@ export default {
13
13
  axios.defaults.headers.common["Authorization"] = "";
14
14
  },
15
15
  setLoginToken(token){
16
- setLocalJSON('USERTOKEN', "pl_token_" + token);
17
- localStorage["Authorization" + (window.projectSuffix || "")] = "pl_token_" + token;
18
- axios.defaults.headers.common["Authorization"] = "pl_token_" + token;
16
+ let customToken = window.customToken;
17
+ if(!customToken) {
18
+ customToken = "pl_token_";
19
+ }
20
+ setLocalJSON('USERTOKEN', customToken + token);
21
+ localStorage["Authorization" + (window.projectSuffix || "")] = customToken + token;
22
+ axios.defaults.headers.common["Authorization"] = customToken + token;
19
23
  },
20
24
 
21
25
  getLoginUser() {
@@ -32,4 +36,4 @@ export default {
32
36
  localStorage["Authorization" + (window.projectSuffix || "")] = "";
33
37
  axios.defaults.headers.common["Authorization"] = "";
34
38
  },
35
- }
39
+ }
@@ -243,7 +243,7 @@
243
243
  <el-tabs type="card" v-model="batchUpdateFormInfo.activeName"
244
244
  :closable="batchUpdateFormInfo.dataRows.length > 1" @tab-click="batchTabClick"
245
245
  @tab-remove="batchTabRemove"
246
- v-if="flowBatchPendingDialog">
246
+ v-if="flowBatchPendingDialog" style="height: 100%">
247
247
  <el-tab-pane
248
248
  v-for="(item, index) in batchUpdateFormInfo.dataRows"
249
249
  :key="item.dataId"
@@ -130,7 +130,7 @@
130
130
  */
131
131
  loadUserData(){
132
132
  let dataInter = this.sysInterfaceObj['userData'];
133
- this.axios.post(this.api.plFlowDomain.find,{status:'1'}).then(res => {
133
+ this.axios.post(this.api.plFlowDomain.findRealUrl,{status:'1'}).then(res => {
134
134
  (res.data || []).forEach(item => {
135
135
  this.doMainDatasObj[item.id] = item.domainUrl;
136
136
  })
@@ -534,4 +534,4 @@
534
534
  }
535
535
  }
536
536
  }
537
- </style>
537
+ </style>
@@ -106,7 +106,7 @@
106
106
  }
107
107
  },
108
108
  loadUserData(dataInter){
109
- this.axios.post(this.api.plFlowDomain.find,{status:'1'}).then(res => {
109
+ this.axios.post(this.api.plFlowDomain.findRealUrl,{status:'1'}).then(res => {
110
110
  (res.data || []).forEach(item => {
111
111
  this.doMainDatasObj[item.id] = item.domainUrl;
112
112
  })
@@ -114,9 +114,9 @@
114
114
  operatePermisList.forEach(item =>{
115
115
  //处理操作权限
116
116
  if(item.powerCode=='children'){//叶子节点
117
- checkOperateKeysLeaf.push(item);
117
+ checkOperateKeysLeaf.push(item.powerKey);
118
118
  }else{
119
- checkOperateKeysRoot.push(item);
119
+ checkOperateKeysRoot.push(item.powerKey);
120
120
  }
121
121
  });
122
122
  /* checkOperateKeysLeaf.forEach(leaf=>{