提交 ef1affe9 authored 作者: wangjiahao's avatar wangjiahao

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

上级 33487423
...@@ -55,6 +55,10 @@ public class ShiroServiceImpl implements ShiroService { ...@@ -55,6 +55,10 @@ public class ShiroServiceImpl implements ShiroService {
filterChainDefinitionMap.put("/linkJump/queryPanelJumpInfo/**", ANON); filterChainDefinitionMap.put("/linkJump/queryPanelJumpInfo/**", ANON);
filterChainDefinitionMap.put("/linkJump/queryTargetPanelJumpInfo", ANON); filterChainDefinitionMap.put("/linkJump/queryTargetPanelJumpInfo", ANON);
//外部跳转参数
filterChainDefinitionMap.put("/outerParams/**", ANON);
filterChainDefinitionMap.put("/tempMobileLink/**", ANON); filterChainDefinitionMap.put("/tempMobileLink/**", ANON);
filterChainDefinitionMap.put("/de-app/**", ANON); filterChainDefinitionMap.put("/de-app/**", ANON);
filterChainDefinitionMap.put("/app.html", ANON); filterChainDefinitionMap.put("/app.html", ANON);
......
...@@ -92,7 +92,7 @@ ...@@ -92,7 +92,7 @@
LEFT JOIN panel_outer_params_info popi ON pop.params_id = popi.params_id 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 LEFT JOIN panel_outer_params_target_view_info poptvi ON popi.params_info_id = poptvi.params_info_id
WHERE WHERE
pop.panel_id = #{panelId} pop.panel_id = #{panelId} and pop.checked=1
</select> </select>
......
...@@ -41,7 +41,9 @@ ...@@ -41,7 +41,9 @@
url += '&user=' + encodeURIComponent(user) url += '&user=' + encodeURIComponent(user)
} }
if (attachParams) { if (attachParams) {
url += '&attachParams=' + attachParams console.log('attachParams-bf:'+attachParams+';-af:'+encodeURIComponent(attachParams))
url += '&attachParams=' + encodeURIComponent(attachParams)
} }
window.location.href = url window.location.href = url
</script> </script>
......
...@@ -69,7 +69,7 @@ export default { ...@@ -69,7 +69,7 @@ export default {
if (attachParamsEncode) { if (attachParamsEncode) {
try { try {
const Base64 = require('js-base64').Base64 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 => { getOuterParamsInfo(this.resourceId).then(rsp => {
if (--loadingCount === 0) { if (--loadingCount === 0) {
this.show = true this.show = true
......
...@@ -259,7 +259,7 @@ export default { ...@@ -259,7 +259,7 @@ export default {
this.$emit('outerParamsSetVisibleChange', false) this.$emit('outerParamsSetVisibleChange', false)
}, },
save() { save() {
if (checkRepeat(this.outerParams.outerParamsInfoArray, 'name')) { if (checkRepeat(this.outerParams.outerParamsInfoArray, 'paramName')) {
this.$message({ this.$message({
message: this.$t('panel.repeat_params'), message: this.$t('panel.repeat_params'),
type: 'warn', type: 'warn',
...@@ -389,7 +389,7 @@ export default { ...@@ -389,7 +389,7 @@ export default {
} }
.bottom { .bottom {
margin-top: 20px; margin-top: 15px;
text-align: center; text-align: center;
} }
...@@ -482,7 +482,7 @@ export default { ...@@ -482,7 +482,7 @@ export default {
} }
.tree-bottom { .tree-bottom {
margin-top: 12px; margin-top: 7px;
text-align: center; text-align: center;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论