Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
agcs2.0-web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
liang
agcs2.0-web
Commits
7d215f55
Commit
7d215f55
authored
Feb 14, 2023
by
miaojiale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.优化提示
2.查看回显多选问题
parent
35731ffd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
2 deletions
+20
-2
FormItemSelf.vue
src/components/FormComponents/CustomForm/FormItemSelf.vue
+19
-1
FormItemText.vue
src/components/FormComponents/CustomForm/FormItemText.vue
+1
-1
No files found.
src/components/FormComponents/CustomForm/FormItemSelf.vue
View file @
7d215f55
...
...
@@ -798,6 +798,13 @@ export default {
message
:
"
请选择
"
+
targetItem
.
label
,
},
]
}
else
if
(
targetItem
.
type
==
"
upload
"
)
{
targetItem
.
rules
=
[
{
required
:
true
,
message
:
"
请上传
"
+
targetItem
.
label
,
},
]
}
else
{
targetItem
.
rules
=
[
{
...
...
@@ -829,13 +836,24 @@ export default {
if
(
filterArr
.
includes
(
targetItem
.
column
[
index
].
prop
))
{
return
}
if
(
targetItem
.
column
[
index
].
type
==
"
checkbox
"
)
{
if
(
targetItem
.
column
[
index
].
type
==
"
checkbox
"
||
targetItem
.
column
[
index
].
type
==
"
date
"
||
targetItem
.
column
[
index
].
type
==
"
radio
"
)
{
targetItem
.
column
[
index
].
rules
=
[
{
required
:
true
,
message
:
"
请选择
"
+
targetItem
.
column
[
index
].
label
,
},
]
}
else
if
(
targetItem
.
column
[
index
].
type
==
"
upload
"
)
{
targetItem
.
rules
=
[
{
required
:
true
,
message
:
"
请上传
"
+
targetItem
.
column
[
index
].
label
,
},
]
}
else
{
targetItem
.
column
[
index
].
rules
=
[
{
...
...
src/components/FormComponents/CustomForm/FormItemText.vue
View file @
7d215f55
...
...
@@ -28,7 +28,7 @@
{{
unionName
}}
</span>
<span
v-else
style=
"margin: 0 5px"
>
{{
String
(
form
[
item
.
prop
])
|
getItemText
(
item
.
dicData
,
item
.
type
)
form
[
item
.
prop
]
|
getItemText
(
item
.
dicData
,
item
.
type
)
}}
</span>
</span>
<span
v-if=
"item.append && !item.toothBit"
class=
"append"
>
{{
...
...
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