Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1
Overview
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
吴迪
gs1
Commits
bb0fbfdf
Commit
bb0fbfdf
authored
Dec 16, 2021
by
Jianli Ou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
图片预览
parent
d05e89f8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
5 deletions
+21
-5
main.js
src/main.js
+2
-1
certificationDetail.vue
src/views/MyManage/Admin/certificationDetail.vue
+19
-4
No files found.
src/main.js
View file @
bb0fbfdf
...
...
@@ -11,10 +11,10 @@ import "./assets/css/layout.scss";
// import "bootstrap/dist/js/bootstrap.min.js";
import
"./plugins/element.js"
;
import
"./plugins/qrcode.js"
;
import
ElementUI
from
'element-ui'
import
"./assets/css/element-variables.scss"
;
import
GsTable
from
'./components/table/index'
import
'./utils/codeTable'
// 百度地图
import
BaiduMap
from
'vue-baidu-map'
...
...
@@ -23,6 +23,7 @@ Vue.use(BaiduMap, {
ak
:
'EoRpk2HWln2YKTEYYH5wutFX'
})
// 公共样式、布局样式
Vue
.
use
(
ElementUI
)
// 主题色调修改在assets/_style.scss 修改里面的变量即可
...
...
src/views/MyManage/Admin/certificationDetail.vue
View file @
bb0fbfdf
...
...
@@ -53,6 +53,12 @@
<el-button
@
click=
"auditEvent(2)"
class=
"plain-with-border"
>
审核不通过
</el-button>
<el-button
class=
"plain-with-border"
v-if=
"reset"
>
重置
</el-button>
</div>
<el-image
id=
"image"
style=
"width: 10px; height: 10px;opacity: 0;"
:src=
"url"
:preview-src-list=
"srcList"
>
</el-image>
</div>
</div>
</
template
>
...
...
@@ -74,6 +80,8 @@ export default {
subCenterName
:
''
,
status
:
''
,
//1.首次 2.变更
id
:
''
,
//各个表的主键
url
:
''
,
srcList
:
[],
// 原静态页面定义数据
// entInfoFields: [
// {
...
...
@@ -395,13 +403,14 @@ export default {
fileType
:
'1'
,
//1.第一步文件 2.第二步文件
id
:
this
.
id
}
this
.
getFil
e
(
form
)
this
.
showImag
e
(
form
)
}
},
getFil
e
(
form
)
{
showImag
e
(
form
)
{
const
result
=
this
.
$api
.
myManage
.
tycpdmfirmReturnFile
(
form
)
window
.
open
(
result
,
'_black'
)
console
.
log
(
result
)
this
.
url
=
result
this
.
srcList
=
[
result
]
document
.
getElementById
(
'image'
).
click
()
},
getBranchLabel
(
branchCode
)
{
return
(
this
.
branchList
.
find
(
item
=>
item
.
value
===
branchCode
)
||
{
label
:
'--'
}).
label
...
...
@@ -439,6 +448,12 @@ export default {
this
.
id
=
this
.
$route
.
query
.
type
===
'new'
?
this
.
detailInfo
.
fid
:
this
.
detailInfo
.
id
this
.
status
=
this
.
$route
.
query
.
type
===
'new'
?
1
:
2
// 需要对预览图片进行初始化
const
form
=
{
status
:
this
.
status
,
fileType
:
'1'
,
id
:
this
.
id
}
const
result
=
this
.
$api
.
myManage
.
tycpdmfirmReturnFile
(
form
)
this
.
url
=
result
this
.
srcList
=
[
result
]
this
.
branchCode
=
this
.
detailInfo
.
branchcode
this
.
subCenterName
=
this
.
getBranchLabel
(
this
.
branchCode
)
...
...
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