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
8c4eaf89
Commit
8c4eaf89
authored
Aug 16, 2024
by
王纵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加表格表单按钮自定义方法
parent
eb63b2be
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
index.vue
src/Dynamic/ConfigRenderComponent/DForm/index.vue
+2
-2
index.vue
src/Dynamic/ConfigRenderComponent/DTable/index.vue
+2
-2
index.vue
src/Dynamic/ConfigRenderComponent/QueryForm/index.vue
+2
-2
No files found.
src/Dynamic/ConfigRenderComponent/DForm/index.vue
View file @
8c4eaf89
...
...
@@ -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-08-16 10:1
2:21
* @LastEditTime: 2024-08-16 10:1
3:28
* @Version: 1.0.0
* @Description: 表单渲染
* @Copyright: Copyright (c) 2021, Hand-RongJing
...
...
@@ -341,7 +341,7 @@ export default {
buttonsClick
(
btn
)
{
const
customBtn
=
this
.
componentButtons
.
find
(
o
=>
o
.
name
===
btn
.
name
);
// 采用页面传入的方法
if
(
customBtn
&&
customBtn
.
clickFunction
)
{
customBtn
.
clickFunction
();
customBtn
.
clickFunction
(
this
);
}
}
},
...
...
src/Dynamic/ConfigRenderComponent/DTable/index.vue
View file @
8c4eaf89
...
...
@@ -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-08-16 10:1
2:01
* @LastEditTime: 2024-08-16 10:1
3:40
* @Version: 1.0.0
* @Description: 表格渲染
* @Copyright: Copyright (c) 2021, Hand-RongJing
...
...
@@ -257,7 +257,7 @@ export default {
buttonsClick
(
btn
)
{
const
customBtn
=
this
.
componentButtons
.
find
(
o
=>
o
.
name
===
btn
.
name
);
// 采用页面传入的方法
if
(
customBtn
&&
customBtn
.
clickFunction
)
{
customBtn
.
clickFunction
();
customBtn
.
clickFunction
(
this
);
}
else
{
switch
(
btn
.
name
)
{
case
'create'
:
...
...
src/Dynamic/ConfigRenderComponent/QueryForm/index.vue
View file @
8c4eaf89
...
...
@@ -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-08-16 10:
07:52
* @LastEditTime: 2024-08-16 10:
13:35
* @Version: 1.0.0
* @Description: 查询表单渲染
* @Copyright: Copyright (c) 2021, Hand-RongJing
...
...
@@ -98,7 +98,7 @@ export default {
btnFun
(
btn
)
{
const
customBtn
=
this
.
componentButtons
.
find
(
o
=>
o
.
name
===
btn
.
name
);
if
(
customBtn
&&
customBtn
.
clickFunction
)
{
customBtn
.
clickFunction
();
customBtn
.
clickFunction
(
this
);
}
else
{
if
(
btn
.
name
===
'query'
)
{
this
.
query
();
...
...
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