|
|
|
|
@ -28,11 +28,11 @@
|
|
|
|
|
核销状态:
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
|
<div style="font-size: 32px;padding: 25px;width:400px">
|
|
|
|
|
<div v-for="item in codeTypeList">
|
|
|
|
|
<div v-if="item.id == codeForm.type">
|
|
|
|
|
{{item.value}}
|
|
|
|
|
</div>
|
|
|
|
|
<div style="font-size: 32px;padding: 25px;width:400px">
|
|
|
|
|
<div v-for="item in codeTypeList">
|
|
|
|
|
<div v-if="item.id == codeForm.type">
|
|
|
|
|
{{item.value}}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- <el-radio-group v-model="codeForm.type">
|
|
|
|
|
<el-radio :label="item.id" >{{item.value}}</el-radio>
|
|
|
|
|
@ -50,11 +50,11 @@
|
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
|
|
|
|
|
|
<!-- <el-input style="font-size: 32px;padding: 25px;width:400px" v-model="codeForm.person_no"
|
|
|
|
|
placeholder="请输入入场牌"></el-input> -->
|
|
|
|
|
<xy-table style="width: 600px" :height="260" :is-page="false" :list="codeForm.person_no"
|
|
|
|
|
:table-item="codefollowTable">
|
|
|
|
|
<template v-slot:btns>
|
|
|
|
|
</template>
|
|
|
|
|
placeholder="请输入入场牌"></el-input> -->
|
|
|
|
|
<xy-table style="width: 600px" :height="260" :is-page="false" :list="codeForm.person_no"
|
|
|
|
|
:table-item="codefollowTable">
|
|
|
|
|
<template v-slot:btns>
|
|
|
|
|
</template>
|
|
|
|
|
</xy-table>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
@ -67,12 +67,12 @@
|
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
|
|
|
|
|
|
<!-- <el-input style="font-size: 32px;padding: 25px;width:400px" v-model="codeForm.car_no"
|
|
|
|
|
placeholder="请输入停车牌"></el-input> -->
|
|
|
|
|
|
|
|
|
|
<xy-table style="width: 600px" :height="260" :is-page="false" :list="codeForm.car_no"
|
|
|
|
|
:table-item="carfollowTable">
|
|
|
|
|
<template v-slot:btns>
|
|
|
|
|
</template>
|
|
|
|
|
placeholder="请输入停车牌"></el-input> -->
|
|
|
|
|
|
|
|
|
|
<xy-table style="width: 600px" :height="260" :is-page="false" :list="codeForm.car_no"
|
|
|
|
|
:table-item="carfollowTable">
|
|
|
|
|
<template v-slot:btns>
|
|
|
|
|
</template>
|
|
|
|
|
</xy-table>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
@ -208,16 +208,16 @@
|
|
|
|
|
{{form.company_name}}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:cda v-if="form.type==1 && form.visit_area && form.visit_area.name=='生产区'">
|
|
|
|
|
<div class="xy-table-item">
|
|
|
|
|
<div class="xy-table-item-label">
|
|
|
|
|
CDA编号:
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
|
{{form.cda}}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:cda v-if="form.type==1 && form.visit_area && form.visit_area.name=='生产区'">
|
|
|
|
|
<div class="xy-table-item">
|
|
|
|
|
<div class="xy-table-item-label">
|
|
|
|
|
CDA编号:
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
|
{{form.cda}}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:cars>
|
|
|
|
|
<div class="xy-table-item">
|
|
|
|
|
@ -258,40 +258,40 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:visitorinfos>
|
|
|
|
|
<div class="xy-table-item">
|
|
|
|
|
<div class="xy-table-item-content" style="width:400px">
|
|
|
|
|
被访人信息:
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template> -->
|
|
|
|
|
<template v-slot:accept_admin_id>
|
|
|
|
|
<div class="xy-table-item">
|
|
|
|
|
<div class="xy-table-item-label">
|
|
|
|
|
<span style="color: red;font-weight: 600;padding-right: 4px;"></span>人员:
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
|
{{form.accept_admin?form.accept_admin.name:''}}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:visitorinfos1 v-if="form.visit_area && form.visit_area.name=='生产区'">
|
|
|
|
|
<div class="xy-table-item">
|
|
|
|
|
<div class="xy-table-item-content" style="width:400px">
|
|
|
|
|
陪同人信息:
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:accompany_id v-if="form.visit_area && form.visit_area.name=='生产区'">
|
|
|
|
|
<div class="xy-table-item">
|
|
|
|
|
<div class="xy-table-item-label">
|
|
|
|
|
<span style="color: red;font-weight: 600;padding-right: 4px;"></span>人员:
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
|
{{form.accompany?form.accompany.name:''}}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:visitorinfos>
|
|
|
|
|
<div class="xy-table-item">
|
|
|
|
|
<div class="xy-table-item-content" style="width:400px">
|
|
|
|
|
被访人信息:
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template> -->
|
|
|
|
|
<template v-slot:accept_admin_id>
|
|
|
|
|
<div class="xy-table-item">
|
|
|
|
|
<div class="xy-table-item-label">
|
|
|
|
|
<span style="color: red;font-weight: 600;padding-right: 4px;"></span>人员:
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
|
{{form.accept_admin?form.accept_admin.name:''}}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:visitorinfos1 v-if="form.visit_area && form.visit_area.name=='生产区'">
|
|
|
|
|
<div class="xy-table-item">
|
|
|
|
|
<div class="xy-table-item-content" style="width:400px">
|
|
|
|
|
陪同人信息:
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:accompany_id v-if="form.visit_area && form.visit_area.name=='生产区'">
|
|
|
|
|
<div class="xy-table-item">
|
|
|
|
|
<div class="xy-table-item-label">
|
|
|
|
|
<span style="color: red;font-weight: 600;padding-right: 4px;"></span>人员:
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
|
{{form.accompany?form.accompany.name:''}}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<template v-slot:accept_goods_admin_id v-if="form.type==3">
|
|
|
|
|
@ -342,7 +342,41 @@
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 照片信息标题 -->
|
|
|
|
|
<template v-slot:photoinfo>
|
|
|
|
|
<div style="width:600px">
|
|
|
|
|
照片信息
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<!-- 照片列表 -->
|
|
|
|
|
<template v-slot:photos>
|
|
|
|
|
<div class="xy-table-item" v-if="form.photos && form.photos.length > 0">
|
|
|
|
|
<div class="xy-table-item-content" style="width:100%">
|
|
|
|
|
<div class="photo-list">
|
|
|
|
|
<div class="photo-item" v-for="(photo, index) in form.photos" :key="index">
|
|
|
|
|
<div class="photo-wrapper">
|
|
|
|
|
<el-image
|
|
|
|
|
:src="photo.url"
|
|
|
|
|
:preview-src-list="form.photos.map(p => p.url)"
|
|
|
|
|
:initial-index="index"
|
|
|
|
|
fit="cover"
|
|
|
|
|
class="photo-image">
|
|
|
|
|
<div slot="error" class="image-slot">
|
|
|
|
|
<i class="el-icon-picture-outline"></i>
|
|
|
|
|
</div>
|
|
|
|
|
</el-image>
|
|
|
|
|
<div class="photo-overlay">
|
|
|
|
|
<i class="el-icon-zoom-in"></i>
|
|
|
|
|
<span>点击预览</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="photo-desc">{{ photo.description }}</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<template v-slot:footerContent>
|
|
|
|
|
@ -382,7 +416,7 @@
|
|
|
|
|
formDataType: '',
|
|
|
|
|
formData: {
|
|
|
|
|
checkcode: '',
|
|
|
|
|
codeType: "",
|
|
|
|
|
codeType: "",
|
|
|
|
|
person_no: '',
|
|
|
|
|
car_no: '',
|
|
|
|
|
|
|
|
|
|
@ -399,18 +433,20 @@
|
|
|
|
|
mobile: "",
|
|
|
|
|
credent: 1,
|
|
|
|
|
idcard: "",
|
|
|
|
|
company_name: "",
|
|
|
|
|
company_name: "",
|
|
|
|
|
cda:'',
|
|
|
|
|
cars: "",
|
|
|
|
|
follw_people: [],
|
|
|
|
|
long_time: 0,
|
|
|
|
|
longrange: "",
|
|
|
|
|
visitorinfos: "",
|
|
|
|
|
accpet_department_id: "",
|
|
|
|
|
longrange: "",
|
|
|
|
|
visitorinfos: "",
|
|
|
|
|
accpet_department_id: "",
|
|
|
|
|
accept_admin_id: "",
|
|
|
|
|
visitorinfos1: "",
|
|
|
|
|
accompany_id:"",
|
|
|
|
|
accept_goods_admin_id: "",
|
|
|
|
|
photoinfo: "",
|
|
|
|
|
photos: "",
|
|
|
|
|
checkRecord: '',
|
|
|
|
|
checkForm: {},
|
|
|
|
|
checkText: ''
|
|
|
|
|
@ -425,9 +461,9 @@
|
|
|
|
|
car_no: [],
|
|
|
|
|
person_no: []
|
|
|
|
|
}, // 核验
|
|
|
|
|
codeTypeList: [{
|
|
|
|
|
id:0,
|
|
|
|
|
value:'请提醒陪同人签字'
|
|
|
|
|
codeTypeList: [{
|
|
|
|
|
id:0,
|
|
|
|
|
value:'请提醒陪同人签字'
|
|
|
|
|
},{
|
|
|
|
|
id: 1,
|
|
|
|
|
value: '入场'
|
|
|
|
|
@ -436,36 +472,36 @@
|
|
|
|
|
value: '离场'
|
|
|
|
|
}],
|
|
|
|
|
gateAdminId: '',
|
|
|
|
|
check_admin_name: "",
|
|
|
|
|
carfollowTable: [{
|
|
|
|
|
label: "车牌",
|
|
|
|
|
prop: "car",
|
|
|
|
|
width: 200
|
|
|
|
|
},{
|
|
|
|
|
label: "停车牌",
|
|
|
|
|
prop: "car_no",
|
|
|
|
|
width: 400,
|
|
|
|
|
customFn: (row, scope) => {
|
|
|
|
|
return (<el-input type="text" placeholder = "请填写停车牌"
|
|
|
|
|
v-model={row.car_no}>
|
|
|
|
|
</el-input>
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
}],
|
|
|
|
|
codefollowTable: [{
|
|
|
|
|
label: "姓名",
|
|
|
|
|
prop: "name",
|
|
|
|
|
width: 200
|
|
|
|
|
},{
|
|
|
|
|
label: "入场牌",
|
|
|
|
|
prop: "person_no",
|
|
|
|
|
width: 400,
|
|
|
|
|
customFn: (row, scope) => {
|
|
|
|
|
return (<el-input type="text" placeholder = "请填写入场牌"
|
|
|
|
|
v-model={row.person_no}>
|
|
|
|
|
</el-input>
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
check_admin_name: "",
|
|
|
|
|
carfollowTable: [{
|
|
|
|
|
label: "车牌",
|
|
|
|
|
prop: "car",
|
|
|
|
|
width: 200
|
|
|
|
|
},{
|
|
|
|
|
label: "停车牌",
|
|
|
|
|
prop: "car_no",
|
|
|
|
|
width: 400,
|
|
|
|
|
customFn: (row, scope) => {
|
|
|
|
|
return (<el-input type="text" placeholder = "请填写停车牌"
|
|
|
|
|
v-model={row.car_no}>
|
|
|
|
|
</el-input>
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
}],
|
|
|
|
|
codefollowTable: [{
|
|
|
|
|
label: "姓名",
|
|
|
|
|
prop: "name",
|
|
|
|
|
width: 200
|
|
|
|
|
},{
|
|
|
|
|
label: "入场牌",
|
|
|
|
|
prop: "person_no",
|
|
|
|
|
width: 400,
|
|
|
|
|
customFn: (row, scope) => {
|
|
|
|
|
return (<el-input type="text" placeholder = "请填写入场牌"
|
|
|
|
|
v-model={row.person_no}>
|
|
|
|
|
</el-input>
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
}],
|
|
|
|
|
followTable: [{
|
|
|
|
|
label: "姓名",
|
|
|
|
|
@ -530,24 +566,24 @@
|
|
|
|
|
if (this.formDataType == 'coderecord') {
|
|
|
|
|
this.codeForm.code = this.form.code
|
|
|
|
|
this.codeForm.admin_id = parseInt(this.gateAdminId)
|
|
|
|
|
this.codeForm.type = this.form.audit_status == 1 ? 1 : (this.form.audit_status == 3 && this.form.accept_admin_sign ? 2 : 0)
|
|
|
|
|
if(this.codeForm.type==1){
|
|
|
|
|
this.codeForm.person_no.push({name:this.form.name,person_no:''})
|
|
|
|
|
for(var k of this.form.follw_people){
|
|
|
|
|
this.codeForm.person_no.push({name:k.name,person_no:''})
|
|
|
|
|
}
|
|
|
|
|
for(var m of this.form.cars){
|
|
|
|
|
this.codeForm.car_no.push({car:m,car_no:''})
|
|
|
|
|
}
|
|
|
|
|
}else{
|
|
|
|
|
for(var k of this.form.person_no){
|
|
|
|
|
this.codeForm.person_no.push(JSON.parse(k))
|
|
|
|
|
}
|
|
|
|
|
for(var m of this.form.car_no){
|
|
|
|
|
this.codeForm.car_no.push(JSON.parse(m))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
this.codeForm.type = this.form.audit_status == 1 ? 1 : (this.form.audit_status == 3 && this.form.accept_admin_sign ? 2 : 0)
|
|
|
|
|
if(this.codeForm.type==1){
|
|
|
|
|
this.codeForm.person_no.push({name:this.form.name,person_no:''})
|
|
|
|
|
for(var k of this.form.follw_people){
|
|
|
|
|
this.codeForm.person_no.push({name:k.name,person_no:''})
|
|
|
|
|
}
|
|
|
|
|
for(var m of this.form.cars){
|
|
|
|
|
this.codeForm.car_no.push({car:m,car_no:''})
|
|
|
|
|
}
|
|
|
|
|
}else{
|
|
|
|
|
for(var k of this.form.person_no){
|
|
|
|
|
this.codeForm.person_no.push(JSON.parse(k))
|
|
|
|
|
}
|
|
|
|
|
for(var m of this.form.car_no){
|
|
|
|
|
this.codeForm.car_no.push(JSON.parse(m))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
@ -584,13 +620,13 @@
|
|
|
|
|
that.checkForm.audit_admin_id = item.audit_admin_id
|
|
|
|
|
that.isCheck = true
|
|
|
|
|
return
|
|
|
|
|
} else {
|
|
|
|
|
} else {
|
|
|
|
|
that.checkText = "请等待"+item.audit_admin.name+"审核"
|
|
|
|
|
// that.checkLevel.map(item1 => {
|
|
|
|
|
// if (item.level == item1.id) {
|
|
|
|
|
// that.checkText = item1.value
|
|
|
|
|
// }else{
|
|
|
|
|
|
|
|
|
|
// }else{
|
|
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
// })
|
|
|
|
|
that.isCheck = false
|
|
|
|
|
@ -607,10 +643,10 @@
|
|
|
|
|
this.formDataType = ''
|
|
|
|
|
this.checkForm = {}
|
|
|
|
|
this.check_admin_name = ''
|
|
|
|
|
this.codeForm = {
|
|
|
|
|
type: 1,
|
|
|
|
|
car_no: [],
|
|
|
|
|
person_no: []
|
|
|
|
|
this.codeForm = {
|
|
|
|
|
type: 1,
|
|
|
|
|
car_no: [],
|
|
|
|
|
person_no: []
|
|
|
|
|
}
|
|
|
|
|
this.codeType = ''
|
|
|
|
|
this.gateAdminId = ''
|
|
|
|
|
@ -632,12 +668,12 @@
|
|
|
|
|
},
|
|
|
|
|
codeSubmit() {
|
|
|
|
|
let that = this
|
|
|
|
|
console.log(this.codeForm)
|
|
|
|
|
console.log(this.codeForm.person_no)
|
|
|
|
|
if(this.codeForm.type==0){
|
|
|
|
|
this.$successMessage('请提醒陪同人签字','','warning')
|
|
|
|
|
this.isShow = false
|
|
|
|
|
return
|
|
|
|
|
console.log(this.codeForm)
|
|
|
|
|
console.log(this.codeForm.person_no)
|
|
|
|
|
if(this.codeForm.type==0){
|
|
|
|
|
this.$successMessage('请提醒陪同人签字','','warning')
|
|
|
|
|
this.isShow = false
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
cancelCode({
|
|
|
|
|
...that.codeForm
|
|
|
|
|
@ -653,7 +689,7 @@
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
<style scoped lang="scss">
|
|
|
|
|
.xy-table-item-label {
|
|
|
|
|
width: 180px !important;
|
|
|
|
|
}
|
|
|
|
|
@ -670,11 +706,180 @@
|
|
|
|
|
right: 4px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/deep/ .el-radio__input {
|
|
|
|
|
::v-deep .el-radio__input {
|
|
|
|
|
vertical-align: super;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/deep/ .el-radio__label {
|
|
|
|
|
::v-deep .el-radio__label {
|
|
|
|
|
font-size: 32px;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
// 照片列表样式
|
|
|
|
|
.photo-list {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
gap: 15px;
|
|
|
|
|
margin-top: 5px;
|
|
|
|
|
|
|
|
|
|
.photo-item {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
|
|
.photo-wrapper {
|
|
|
|
|
position: relative;
|
|
|
|
|
width: 120px;
|
|
|
|
|
height: 160px;
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
|
|
.photo-image {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
border: 2px solid #e4e7ed;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
transition: all 0.3s;
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
border-color: #409eff;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::v-deep .el-image__inner {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
object-fit: cover;
|
|
|
|
|
transition: transform 0.3s;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.image-slot {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
align-items: center;
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
background: #f5f7fa;
|
|
|
|
|
color: #909399;
|
|
|
|
|
|
|
|
|
|
i {
|
|
|
|
|
font-size: 40px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.photo-overlay {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
right: 0;
|
|
|
|
|
bottom: 0;
|
|
|
|
|
background: rgba(0, 0, 0, 0.6);
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
align-items: center;
|
|
|
|
|
opacity: 0;
|
|
|
|
|
transition: opacity 0.3s;
|
|
|
|
|
pointer-events: none;
|
|
|
|
|
|
|
|
|
|
i {
|
|
|
|
|
font-size: 32px;
|
|
|
|
|
color: #fff;
|
|
|
|
|
margin-bottom: 8px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
span {
|
|
|
|
|
color: #fff;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
.photo-overlay {
|
|
|
|
|
opacity: 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.photo-image ::v-deep .el-image__inner {
|
|
|
|
|
transform: scale(1.1);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.photo-desc {
|
|
|
|
|
margin-top: 8px;
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
color: #909399;
|
|
|
|
|
text-align: center;
|
|
|
|
|
max-width: 120px;
|
|
|
|
|
word-break: break-all;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
|
// 优化图片预览器的关闭按钮样式(全局样式)
|
|
|
|
|
.el-image-viewer__wrapper {
|
|
|
|
|
.el-image-viewer__close {
|
|
|
|
|
width: 50px !important;
|
|
|
|
|
height: 50px !important;
|
|
|
|
|
font-size: 28px !important;
|
|
|
|
|
background: rgba(0, 0, 0, 0.7) !important;
|
|
|
|
|
border-radius: 50% !important;
|
|
|
|
|
color: #fff !important;
|
|
|
|
|
top: 20px !important;
|
|
|
|
|
right: 20px !important;
|
|
|
|
|
display: flex !important;
|
|
|
|
|
align-items: center !important;
|
|
|
|
|
justify-content: center !important;
|
|
|
|
|
transition: all 0.3s !important;
|
|
|
|
|
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.5) !important;
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
background: rgba(255, 73, 73, 0.9) !important;
|
|
|
|
|
transform: scale(1.1) rotate(90deg) !important;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 优化左右切换按钮
|
|
|
|
|
.el-image-viewer__prev,
|
|
|
|
|
.el-image-viewer__next {
|
|
|
|
|
width: 50px !important;
|
|
|
|
|
height: 50px !important;
|
|
|
|
|
font-size: 28px !important;
|
|
|
|
|
background: rgba(0, 0, 0, 0.6) !important;
|
|
|
|
|
border-radius: 50% !important;
|
|
|
|
|
color: #fff !important;
|
|
|
|
|
transition: all 0.3s !important;
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
background: rgba(64, 158, 255, 0.9) !important;
|
|
|
|
|
transform: scale(1.1) !important;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 优化操作栏按钮
|
|
|
|
|
.el-image-viewer__actions__inner {
|
|
|
|
|
background: rgba(0, 0, 0, 0.7) !important;
|
|
|
|
|
border-radius: 30px !important;
|
|
|
|
|
padding: 10px 20px !important;
|
|
|
|
|
|
|
|
|
|
i {
|
|
|
|
|
color: #fff !important;
|
|
|
|
|
font-size: 24px !important;
|
|
|
|
|
margin: 0 8px !important;
|
|
|
|
|
transition: all 0.3s !important;
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
color: #409eff !important;
|
|
|
|
|
transform: scale(1.2) !important;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 优化遮罩层
|
|
|
|
|
.el-image-viewer__mask {
|
|
|
|
|
background: rgba(0, 0, 0, 0.85) !important;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
|