sasp-flow-render 1.1.0 → 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.0",
3
+ "version": "1.1.2",
4
4
  "description": "业务应用支撑平台-智慧流程渲染组件",
5
5
  "scripts": {
6
6
  "build": "vue-cli-service build"
@@ -162,6 +162,12 @@ let objResult = {
162
162
  find:"/plFlowDefineVersionController/find",
163
163
  deleteByCondition:"/plFlowDefineVersionController/deleteByCondition"
164
164
  },
165
+ sysInterModuleController:{
166
+ url:"/sysInterModuleController",
167
+ add:"/sysInterModuleController/add",
168
+ update:"/sysInterModuleController/update",
169
+ find:"/sysInterModuleController/find",
170
+ },
165
171
  plFlowEventDetail:{
166
172
  url:"/plFlowEventDetailController",
167
173
  find:"/plFlowEventDetailController/find",
@@ -172,8 +178,8 @@ let objResult = {
172
178
  findByFlowAndLeadFunc:"/plFlowEventDetailController/findByFlowAndLeadFunc",
173
179
  },
174
180
  loginMethod:{
175
- login: "/loginController/login",
176
- logout: "/loginController/logout",
181
+ login: "/flowLoginController/login",
182
+ logout: "/flowLoginController/logout",
177
183
  },
178
184
  plFlowDomain:{
179
185
  url:"/plFlowDomainController",
@@ -181,6 +187,7 @@ let objResult = {
181
187
  add:"/plFlowDomainController/add",
182
188
  update:"/plFlowDomainController/update",
183
189
  delete:"/plFlowDomainController/delete",
190
+ findRealUrl:"/plFlowDomainController/findRealUrl",
184
191
  },
185
192
  plFlowInterface:{
186
193
  url:"/plFlowInterfaceController",
@@ -210,6 +217,11 @@ let objResult = {
210
217
  delete:"/plFlowCss/delete",
211
218
  getById:"/plFlowCss/getById",
212
219
  },
220
+ operationLog: {
221
+ url:"/operationLogController",
222
+ find:"/operationLogController/find",
223
+ getById:"/operationLogController/getById"
224
+ },
213
225
  };
214
226
 
215
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,13 +243,13 @@
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"
250
250
  :label="userMap[item.startUserId]"
251
251
  :name="item.dataId" :closable="batchUpdateFormInfo.dataRows.length > 1" :lazy="true">
252
- <template v-if="batchUpdateFormInfo.formShow">
252
+ <template v-if="item.dataId == batchUpdateFormInfo.activeName">
253
253
  <slot name="formInfo"></slot>
254
254
  </template>
255
255
  </el-tab-pane>
@@ -467,7 +467,7 @@
467
467
  }else if(variables["back_" + item.taskId]){ // 退回
468
468
  item.nodeInstStatus = "3";
469
469
  item.actorUserName += "(由用户‘"+ userIdsMap[variables["back_" + item.taskId]] + "’退回)";
470
- item.nodeMask = plNodeInstMap[item.taskId] === undefined ? "" : plNodeInstMap[item.taskId].backMsg;
470
+ // item.nodeMask = plNodeInstMap[item.taskId] === undefined ? "" : plNodeInstMap[item.taskId].backMsg;
471
471
  }else if(Object.keys(variables).indexOf("autoEnd_" + item.taskId) > -1){ // 自动处理
472
472
  item.actorUserName += "(系统自动处理)";
473
473
  }else if(variables["assignTask_" + item.taskId]){ // 退回
@@ -478,7 +478,8 @@
478
478
  }else{
479
479
  item.actorUserName += "(" + item.nodeInstStatusName + ")";
480
480
  }
481
- if(turnSignObj[item.taskId]){
481
+ item.nodeMask = plNodeInstMap[item.taskId] === undefined ? "" : plNodeInstMap[item.taskId].backMsg;
482
+ if(turnSignObj[item.taskId]){
482
483
  if(!getbackObj[item.taskId]){
483
484
  item.actorUserName += "(转签任务)";
484
485
  }
@@ -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=>{