Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-easy-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
easyUI
hls-easy-ui
Commits
ab9138db
Commit
ab9138db
authored
Sep 06, 2024
by
王纵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
低代码增加可配置路由参数
parent
7f2823df
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
15 deletions
+23
-15
index.jsx
src/Dynamic/ConfigRenderComponent/index.jsx
+6
-5
index.vue
src/Dynamic/index.vue
+17
-10
No files found.
src/Dynamic/ConfigRenderComponent/index.jsx
View file @
ab9138db
...
...
@@ -2,7 +2,7 @@
* @Author: zong.wang01@hand-china.com
* @Date: 2024-07-30 09:41:54
* @LastEditors: zong.wang01@hand-china.com
* @LastEditTime: 2024-0
8-19 14:40:12
* @LastEditTime: 2024-0
9-06 15:54:06
* @Version: 1.0.0
* @Description:
* @Copyright: Copyright (c) 2021, Hand-RongJing
...
...
@@ -50,10 +50,11 @@ const ConfigRenderComponent = {
},
inject
:
[
'dynamicInfo'
],
created
()
{
this
.
queryParams
=
{
...
this
.
$route
.
params
,
...
this
.
$route
.
query
}
// this.queryParams = {
// ...this.$route.params,
// ...this.$route.query
// }
this
.
queryParams
=
this
.
dynamicInfo
().
queryParams
;
},
mounted
()
{
this
.
configInfo
=
this
.
dynamicInfo
().
config
;
...
...
src/Dynamic/index.vue
View file @
ab9138db
...
...
@@ -2,7 +2,7 @@
* @Author: zong.wang01@hand-china.com
* @Date: 2024-07-29 10:51:56
* @LastEditors: zong.wang01@hand-china.com
* @LastEditTime: 2024-09-06 15:
26:18
* @LastEditTime: 2024-09-06 15:
53:19
* @Version: 1.0.0
* @Description:
* @Copyright: Copyright (c) 2021, Hand-RongJing
...
...
@@ -98,6 +98,10 @@ export default {
dataLoadHandle
:
{
type
:
Function
,
default
:
()
=>
{}
},
routeParams
:
{
type
:
Object
,
default
:
null
}
},
data
()
{
...
...
@@ -126,23 +130,26 @@ export default {
};
},
created
()
{
this
.
params
=
{
...
this
.
$route
.
params
,
...
this
.
$route
.
query
}
this
.
init
();
},
activated
()
{
this
.
params
=
{
...
this
.
$route
.
params
,
...
this
.
$route
.
query
}
console
.
log
(
'activated'
,
this
.
params
)
this
.
init
();
this
.
layoutCodeQuery
();
},
beforeMount
()
{
this
.
layoutCodeQuery
();
},
methods
:
{
init
()
{
if
(
this
.
routeParams
)
{
this
.
params
=
{...
this
.
routeParams
};
}
else
{
this
.
params
=
{
...
this
.
$route
.
params
,
...
this
.
$route
.
query
}
}
},
// 获取页面布局配置
async
layoutCodeQuery
()
{
// const {disabled} = this.props;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment