Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
7146d594
Commit
7146d594
authored
Aug 13, 2020
by
庄冰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aaa
parent
2099b35c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
gsb-marketplat/app/base/controller/impl/configmag/formitemCtl.js
+3
-1
gsb-marketplat/app/base/service/impl/configmag/formitemSve.js
+12
-1
No files found.
gsb-marketplat/app/base/controller/impl/configmag/formitemCtl.js
View file @
7146d594
...
@@ -7,7 +7,9 @@ class FormItemCtl extends CtlBase {
...
@@ -7,7 +7,9 @@ class FormItemCtl extends CtlBase {
constructor
()
{
constructor
()
{
super
(
"configmag"
,
CtlBase
.
getServiceName
(
FormItemCtl
));
super
(
"configmag"
,
CtlBase
.
getServiceName
(
FormItemCtl
));
}
}
async
getFormItemListByFormId
(
pobj
){
return
this
.
service
.
getFormItemListByFormId
(
pobj
);
}
/**
/**
* 重写添加方法
* 重写添加方法
* @param pobj
* @param pobj
...
...
gsb-marketplat/app/base/service/impl/configmag/formitemSve.js
View file @
7146d594
...
@@ -7,7 +7,18 @@ class FormitemService extends ServiceBase {
...
@@ -7,7 +7,18 @@ class FormitemService extends ServiceBase {
super
(
"configmag"
,
ServiceBase
.
getDaoName
(
FormitemService
));
super
(
"configmag"
,
ServiceBase
.
getDaoName
(
FormitemService
));
}
}
async
getFormItemListByFormId
(
pobj
){
if
(
!
pobj
||
!
pobj
.
form_id
){
return
system
.
getResultFail
(
-
101
,
"表单id不能为空"
);
}
var
list
=
await
this
.
dao
.
model
.
findAll
({
attributes
:[[
"code"
,
"key"
],[
"name"
,
"title"
]],
where
:{
form_id
:
pobj
.
form_id
},
raw
:
true
,
order
:[[
"sequence"
,
"asc"
]]
});
return
system
.
getResultSuccess
(
list
);
}
/**
/**
* 创建表单项
* 创建表单项
* @param pobj
* @param pobj
...
...
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