Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit eb1e36d4
authored
Jul 16, 2023
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
智能表单填写为空的提示问题
1 parent
045fabca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
13 deletions
vue3-lw-pc/src/views/drainageCode/smartForms/build/formsDetail.vue
vue3-lw-pc/src/views/drainageCode/smartForms/build/formsDetail.vue
View file @
eb1e36d
...
...
@@ -522,25 +522,13 @@ export default {
}
}
console
.
log
(
'answer'
,
answer
)
let
formCodeDict
=
{
0
:
'单行文本'
,
2
:
'单行文本'
,
3
:
'多行文本'
,
4
:
'数字文本'
,
5
:
'手机号'
,
6
:
'下拉选择'
,
7
:
'级联选择'
,
8
:
'选项组'
,
9
:
'省市联动'
,
10
:
'日期时间'
,
}
for
(
let
i
=
0
;
i
<
answer
.
length
;
i
++
)
{
let
curItem
=
answer
[
i
]
if
(
curItem
.
required
)
{
let
label
=
curItem
.
label
.
substring
(
curItem
.
label
.
indexOf
(
'.'
)
+
1
)
if
(
curItem
.
defaultValue
===
''
||
curItem
.
defaultValue
===
undefined
||
curItem
.
defaultValue
.
length
===
0
)
{
// this.toast('第' + curItem.page + '页,' + label + ',' + '不能为空')
this
.
toast
(
`第
${
curItem
.
page
}
页,
${
label
}
,
${
formCodeDict
[
curItem
.
formCodeId
]}
不能为空`
)
this
.
toast
(
`第
${
curItem
.
page
}
页,
${
label
}
不能为空`
)
return
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment