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 +1 -1
- package/src/assets/js/api/apiFlow.js +6 -0
- package/src/assets/js/global/cacheGlobal.js +8 -4
- package/src/assets/js/global/flowUserGlobal.js +8 -4
- package/src/components/flowInst/flowInstTab.vue +1 -1
- package/src/components/userSelect.vue +2 -2
- package/src/views/flowInstView.vue +1 -1
- package/src/views/menuRouter/flowMenuRouter.vue +2 -2
package/package.json
CHANGED
|
@@ -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
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
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
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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.
|
|
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.
|
|
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=>{
|