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
dc1d5677
Commit
dc1d5677
authored
Feb 23, 2024
by
高滢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(样品): 图片展示
parent
7e122319
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
4 deletions
+43
-4
index.vue
src/components/ImagePreview/index.vue
+2
-2
index.vue
src/views/setting/sample/index.vue
+41
-2
No files found.
src/components/ImagePreview/index.vue
View file @
dc1d5677
...
@@ -39,7 +39,7 @@ export default {
...
@@ -39,7 +39,7 @@ export default {
if
(
isExternal
(
real_src
))
{
if
(
isExternal
(
real_src
))
{
return
real_src
return
real_src
}
}
return
process
.
env
.
VUE_APP_
BAS
E_API
+
real_src
return
process
.
env
.
VUE_APP_
IMAG
E_API
+
real_src
},
},
realSrcList
()
{
realSrcList
()
{
if
(
!
this
.
src
)
{
if
(
!
this
.
src
)
{
...
@@ -51,7 +51,7 @@ export default {
...
@@ -51,7 +51,7 @@ export default {
if
(
isExternal
(
item
))
{
if
(
isExternal
(
item
))
{
return
srcList
.
push
(
item
)
return
srcList
.
push
(
item
)
}
}
return
srcList
.
push
(
process
.
env
.
VUE_APP_
BAS
E_API
+
item
)
return
srcList
.
push
(
process
.
env
.
VUE_APP_
IMAG
E_API
+
item
)
})
})
return
srcList
return
srcList
},
},
...
...
src/views/setting/sample/index.vue
View file @
dc1d5677
...
@@ -100,7 +100,7 @@
...
@@ -100,7 +100,7 @@
<el-link
<el-link
type=
"primary"
type=
"primary"
:underline=
"false"
:underline=
"false"
@
click=
"clickSampleName()"
@
click=
"clickSampleName(
scope.row
)"
>
{{
scope
.
row
.
sampleName
}}
</el-link
>
{{
scope
.
row
.
sampleName
}}
</el-link
>
>
</
template
>
</
template
>
...
@@ -302,6 +302,37 @@
...
@@ -302,6 +302,37 @@
</div>
</div>
</el-form>
</el-form>
</el-drawer>
</el-drawer>
<el-dialog
title=
"查看"
:visible
.
sync=
"dialogFormVisible"
width=
"700px"
@
close=
"closeSamplePhoto"
>
<el-form
:model=
"editParamsForm"
size=
"small"
label-position=
"right"
label-width=
"100px"
>
<el-form-item
label=
"商标:"
prop=
"trademark"
>
<image-preview
:src=
"clickNameForm.trademark"
width=
"150px"
height=
"150px"
></image-preview>
</el-form-item>
<el-form-item
label=
"样品照片:"
prop=
"samplePhotos"
>
<image-preview
:src=
"clickNameForm.samplePhotos"
width=
"150px"
height=
"150px"
></image-preview>
</el-form-item>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"dialogFormVisible = false"
>
取 消
</el-button>
</div>
</el-dialog>
</page-standard>
</page-standard>
</template>
</template>
<
script
>
<
script
>
...
@@ -316,6 +347,8 @@ import {
...
@@ -316,6 +347,8 @@ import {
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
clickNameForm
:
{},
dialogFormVisible
:
false
,
addLoading
:
false
,
addLoading
:
false
,
editFormRules
:
{
editFormRules
:
{
identificationCode
:
[
identificationCode
:
[
...
@@ -455,7 +488,13 @@ export default {
...
@@ -455,7 +488,13 @@ export default {
this
.
getList
()
this
.
getList
()
},
},
loadData
()
{},
loadData
()
{},
clickSampleName
()
{},
clickSampleName
(
row
)
{
this
.
dialogFormVisible
=
true
this
.
clickNameForm
=
row
},
closeSamplePhoto
()
{
this
.
clickNameForm
=
{}
},
handleUpdate
(
id
)
{
handleUpdate
(
id
)
{
selectSampleInfo
({
id
:
id
}).
then
(
res
=>
{
selectSampleInfo
({
id
:
id
}).
then
(
res
=>
{
this
.
editParamsForm
=
res
.
data
this
.
editParamsForm
=
res
.
data
...
...
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