refactor: 优化公共链接第三方参数

This commit is contained in:
wangjiahao 2022-03-29 11:32:59 +08:00
parent 3348742314
commit ef1affe9f1
5 changed files with 12 additions and 6 deletions

View File

@ -55,6 +55,10 @@ public class ShiroServiceImpl implements ShiroService {
filterChainDefinitionMap.put("/linkJump/queryPanelJumpInfo/**", ANON);
filterChainDefinitionMap.put("/linkJump/queryTargetPanelJumpInfo", ANON);
//外部跳转参数
filterChainDefinitionMap.put("/outerParams/**", ANON);
filterChainDefinitionMap.put("/tempMobileLink/**", ANON);
filterChainDefinitionMap.put("/de-app/**", ANON);
filterChainDefinitionMap.put("/app.html", ANON);

View File

@ -92,7 +92,7 @@
LEFT JOIN panel_outer_params_info popi ON pop.params_id = popi.params_id
LEFT JOIN panel_outer_params_target_view_info poptvi ON popi.params_info_id = poptvi.params_info_id
WHERE
pop.panel_id = #{panelId}
pop.panel_id = #{panelId} and pop.checked=1
</select>

View File

@ -41,7 +41,9 @@
url += '&user=' + encodeURIComponent(user)
}
if (attachParams) {
url += '&attachParams=' + attachParams
console.log('attachParams-bf:'+attachParams+';-af:'+encodeURIComponent(attachParams))
url += '&attachParams=' + encodeURIComponent(attachParams)
}
window.location.href = url
</script>

View File

@ -69,7 +69,7 @@ export default {
if (attachParamsEncode) {
try {
const Base64 = require('js-base64').Base64
const attachParam = JSON.parse(Base64.decode(attachParamsEncode))
const attachParam = JSON.parse(decodeURIComponent(Base64.decode(attachParamsEncode)))
getOuterParamsInfo(this.resourceId).then(rsp => {
if (--loadingCount === 0) {
this.show = true

View File

@ -259,7 +259,7 @@ export default {
this.$emit('outerParamsSetVisibleChange', false)
},
save() {
if (checkRepeat(this.outerParams.outerParamsInfoArray, 'name')) {
if (checkRepeat(this.outerParams.outerParamsInfoArray, 'paramName')) {
this.$message({
message: this.$t('panel.repeat_params'),
type: 'warn',
@ -389,7 +389,7 @@ export default {
}
.bottom {
margin-top: 20px;
margin-top: 15px;
text-align: center;
}
@ -482,7 +482,7 @@ export default {
}
.tree-bottom {
margin-top: 12px;
margin-top: 7px;
text-align: center;
}