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
c1875ca9
Commit
c1875ca9
authored
Aug 13, 2020
by
任晓松
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
7fe58d78
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
gsb-marketplat/app/base/service/impl/configmag/forminfoSve.js
+11
-11
No files found.
gsb-marketplat/app/base/service/impl/configmag/forminfoSve.js
View file @
c1875ca9
...
...
@@ -29,10 +29,10 @@ class ForminfoService extends ServiceBase {
if
(
!
result
){
return
system
.
getResultFail
(
-
1
,
'创建表单失败'
);
}
//默认联系
人
表单项
let
nam
eItem
=
{
//默认联系
方式
表单项
let
phon
eItem
=
{
form_id
:
result
.
id
,
name
:
"联系
人
"
,
name
:
"联系
方式
"
,
code
:
"contact_name"
,
config_params
:{
verify_sms
:
0
,
...
...
@@ -44,23 +44,23 @@ class ForminfoService extends ServiceBase {
is_required
:
1
,
sequence
:
1
}
let
itRt
=
await
this
.
formitemSve
.
create
(
nam
eItem
);
let
itRt
=
await
this
.
formitemSve
.
create
(
phon
eItem
);
if
(
!
itRt
){
return
system
.
getResultFail
(
-
1
,
'创建联系人表单项失败'
);
}
//默认联系
方式
表单项
let
phon
eItem
=
{
//默认联系
人
表单项
let
nam
eItem
=
{
form_id
:
result
.
id
,
name
:
"联系
方式
"
,
code
:
"contact_
mobil
e"
,
name
:
"联系
人
"
,
code
:
"contact_
nam
e"
,
config_params
:{
"input_length"
:
[
"2"
,
"40"
]},
item_type
:
'single
Btn
'
,
item_type_name
:
'单
选按钮
'
,
item_type
:
'single
Text
'
,
item_type_name
:
'单
行文本
'
,
is_enabled
:
1
,
is_required
:
1
,
sequence
:
2
}
let
itRt2
=
await
this
.
formitemSve
.
create
(
phon
eItem
);
let
itRt2
=
await
this
.
formitemSve
.
create
(
nam
eItem
);
if
(
!
itRt2
){
return
system
.
getResultFail
(
-
1
,
'创建联系方式表单失败'
);
}
...
...
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