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
2a49c6fe
Commit
2a49c6fe
authored
Aug 19, 2020
by
庄冰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
form
parent
46f725c3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
gsb-marketplat/app/base/service/impl/configmag/forminfoSve.js
+2
-2
gsb-marketplat/app/base/service/impl/configmag/formitemSve.js
+1
-1
gsb-marketplat/app/base/service/impl/configmag/formsubmitrecordSve.js
+2
-2
No files found.
gsb-marketplat/app/base/service/impl/configmag/forminfoSve.js
View file @
2a49c6fe
...
...
@@ -156,7 +156,7 @@ class ForminfoService extends ServiceBase {
let
ctls
=
[];
if
(
items
.
length
>
0
){
items
.
forEach
(
item
=>
{
if
(
item
.
is_enabled
==
=
1
){
if
(
item
.
is_enabled
==
1
){
let
ctl
=
{}
ctl
[
'type'
]
=
data
[
item
.
item_type
];
ctl
[
'label'
]
=
item
.
name
;
...
...
@@ -194,7 +194,7 @@ class ForminfoService extends ServiceBase {
ctl
[
'archName'
]
=
'regionJSON'
;
ctl
[
'rootName'
]
=
'全国区域'
;
}
if
(
item
.
is_required
==
=
1
){
if
(
item
.
is_required
==
1
){
ctl
[
'rules'
]
=
rules
;
}
ctls
.
push
(
ctl
);
...
...
gsb-marketplat/app/base/service/impl/configmag/formitemSve.js
View file @
2a49c6fe
...
...
@@ -14,7 +14,7 @@ class FormitemService extends ServiceBase {
}
var
list
=
await
this
.
dao
.
model
.
findAll
({
attributes
:[[
"code"
,
"key"
],[
"name"
,
"title"
]],
where
:{
form_id
:
pobj
.
form_id
},
where
:{
form_id
:
pobj
.
form_id
,
is_enabled
:
1
},
raw
:
true
,
order
:[[
"sequence"
,
"asc"
]]
});
...
...
gsb-marketplat/app/base/service/impl/configmag/formsubmitrecordSve.js
View file @
2a49c6fe
...
...
@@ -53,7 +53,7 @@ class FormsubmitrecordService extends ServiceBase {
}
//获取表单项
var
formitems
=
await
this
.
formitemDao
.
model
.
findAll
({
where
:{
form_id
:
ab
.
form_id
},
raw
:
true
where
:{
form_id
:
ab
.
form_id
},
raw
:
true
,
order
:[[
"sequence"
,
"asc"
]]
});
//校验封装参数
var
res
=
await
this
.
checkAndPackageFormItems
(
formitems
,
ab
);
...
...
@@ -83,7 +83,7 @@ class FormsubmitrecordService extends ServiceBase {
if
(
item
&&
item
.
code
&&
item
.
is_enabled
){
//显示状态的表单项
var
value
=
ab
[
item
.
code
];
if
(
item
.
is_required
===
1
){
//必填
if
(
!
ab
[
item
.
code
]){
if
(
!
ab
[
item
.
code
]
||
ab
[
item
.
code
].
length
<
1
){
return
system
.
getResultFail
(
-
100
,
item
.
name
+
"参数不能为空"
);
}
}
...
...
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