Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cdsf-static-bg
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
姜雷
cdsf-static-bg
Commits
57fd8c24
Commit
57fd8c24
authored
Oct 11, 2018
by
姜雷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加查看图片详情
parent
9a50fb84
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
repair.vue
src/containers/management/repair/repair.vue
+17
-1
No files found.
src/containers/management/repair/repair.vue
View file @
57fd8c24
...
@@ -77,7 +77,7 @@
...
@@ -77,7 +77,7 @@
<el-form-item
v-if=
"selected.uploadImg"
class=
"col-line-1"
label=
"图片"
label-width=
"100px"
>
<el-form-item
v-if=
"selected.uploadImg"
class=
"col-line-1"
label=
"图片"
label-width=
"100px"
>
<div
class=
"previewRow"
>
<div
class=
"previewRow"
>
<div
class=
"previewItem"
v-for=
"(item, index) in selected.uploadImg.split(',')"
:key=
"index"
>
<div
class=
"previewItem"
v-for=
"(item, index) in selected.uploadImg.split(',')"
:key=
"index"
>
<img
:src=
"item"
alt=
""
>
<img
:src=
"item"
alt=
""
@
click=
"showDetail(item)"
>
</div>
</div>
</div>
</div>
</el-form-item>
</el-form-item>
...
@@ -93,6 +93,12 @@
...
@@ -93,6 +93,12 @@
<el-button
type=
"primary"
@
click=
"resetEditDialog"
>
确 定
</el-button>
<el-button
type=
"primary"
@
click=
"resetEditDialog"
>
确 定
</el-button>
</div>
</div>
</drag-dialog>
</drag-dialog>
<drag-dialog
title=
"查看图片"
:visible
.
sync=
"dialogImgVisible"
:before-close=
"resetImgDialog"
width=
"70%"
>
<img
style=
"width: 100%;"
:src=
"imgUrl"
alt=
""
>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"resetImgDialog"
>
确 定
</el-button>
</div>
</drag-dialog>
</div>
</div>
</template>
</template>
...
@@ -136,6 +142,8 @@ export default {
...
@@ -136,6 +142,8 @@ export default {
value
:
'教师'
,
value
:
'教师'
,
},
},
],
],
dialogImgVisible
:
false
,
imgUrl
:
''
,
};
};
},
},
created
()
{
created
()
{
...
@@ -204,6 +212,14 @@ export default {
...
@@ -204,6 +212,14 @@ export default {
this
.
$message
.
error
(
err
.
msg
||
'处理失败!'
);
this
.
$message
.
error
(
err
.
msg
||
'处理失败!'
);
});
});
},
},
resetImgDialog
()
{
this
.
imgUrl
=
''
;
this
.
dialogImgVisible
=
false
;
},
showDetail
(
imgUrl
)
{
this
.
imgUrl
=
imgUrl
;
this
.
dialogImgVisible
=
true
;
},
},
},
};
};
</
script
>
</
script
>
...
...
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