Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
web
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
中汽测评-信息安全测评系统
web
Commits
7540089b
Commit
7540089b
authored
Mar 04, 2024
by
高滢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(样品): 素材库按钮
parent
235b67db
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
5 deletions
+37
-5
index.vue
src/views/setting/sample/index.vue
+37
-5
No files found.
src/views/setting/sample/index.vue
View file @
7540089b
...
...
@@ -189,7 +189,7 @@
<el-drawer
:visible
.
sync=
"dialogVisible"
:title=
"dialogTitle"
wrapper-closable=
"false"
:
wrapper-closable=
"false"
size=
"40%"
@
close=
"cancleSubmit"
>
...
...
@@ -278,7 +278,11 @@
v-model=
"editParamsForm.trademark"
:limit=
"1"
></image-upload>
<el-link
type=
"primary"
@
click=
"selectTrademarkMaterial"
>
<el-link
v-if=
"trademarkDisplay"
type=
"primary"
@
click=
"selectTrademarkMaterial"
>
从素材库选择
</el-link
>
</el-form-item>
...
...
@@ -287,7 +291,11 @@
v-model=
"editParamsForm.samplePhotos"
:limit=
"5"
></image-upload>
<el-link
type=
"primary"
@
click=
"selectSampleMaterial"
>
<el-link
v-if=
"samplePhotosDisplay"
type=
"primary"
@
click=
"selectSampleMaterial"
>
从素材库选择
</el-link
>
</el-form-item>
...
...
@@ -412,7 +420,9 @@ export default {
editParamsForm
:
{
id
:
''
,
deleted
:
0
,
flag
:
'0'
flag
:
'0'
,
trademark
:
''
,
samplePhotos
:
''
},
tableLoding
:
true
,
activeName
:
'completeSample'
,
...
...
@@ -430,7 +440,9 @@ export default {
tableData
:
[],
total
:
0
,
dialogVisible
:
false
,
dialogTitle
:
'新建'
dialogTitle
:
'新建'
,
trademarkDisplay
:
true
,
samplePhotosDisplay
:
true
}
},
computed
:
{
...
...
@@ -438,6 +450,26 @@ export default {
return
materialLibrary
}
},
watch
:
{
'editParamsForm.trademark'
(
newVal
,
oldVal
)
{
if
(
newVal
)
{
this
.
trademarkDisplay
=
false
}
else
{
this
.
trademarkDisplay
=
true
}
},
'editParamsForm.samplePhotos'
(
newVal
,
oldVal
)
{
if
(
newVal
)
{
var
arr
=
[]
arr
=
newVal
.
split
(
','
)
if
(
arr
.
length
<
5
)
{
this
.
samplePhotosDisplay
=
true
}
else
{
this
.
samplePhotosDisplay
=
false
}
}
}
},
created
()
{
this
.
getList
()
},
...
...
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