Commit a7c4ef64 by wangzhihui

优化

1 parent 74944c48
...@@ -1548,8 +1548,8 @@ export const evaluationStatusOptMap = { ...@@ -1548,8 +1548,8 @@ export const evaluationStatusOptMap = {
} }
// 合同类型 // 合同类型
export const electronicContractTypeOpt = [ export const electronicContractTypeOpt = [
{ confId: "1", confValue: "二手车买卖合同" }, { confId: "1", confValue: "二手车转让协议" },
{ confId: "3", confValue: "二手车车辆交接单" }, { confId: "3", confValue: "二手车买卖补充协议" },
{ confId: "2", confValue: "二手车代保管协议" }, { confId: "2", confValue: "二手车代保管协议" },
{ confId: "4", confValue: "确认交接单" } { confId: "4", confValue: "确认交接单" }
] ]
......
...@@ -25,7 +25,9 @@ ...@@ -25,7 +25,9 @@
</video> </video>
<img <img
class="video-poster" class="video-poster"
src="../../../../assets/video-default.png" :src="
videoImg ? videoImg : '../../../../assets/video-default.png'
"
/> />
<div class="mask"> <div class="mask">
<div <div
...@@ -209,6 +211,10 @@ export default { ...@@ -209,6 +211,10 @@ export default {
index: { index: {
type: Number, type: Number,
default: -1 default: -1
},
videoImg: {
type: String,
default: ""
} }
}, },
watch: { watch: {
...@@ -496,7 +502,6 @@ export default { ...@@ -496,7 +502,6 @@ export default {
position: absolute; position: absolute;
width: 100%; width: 100%;
height: 100%; height: 100%;
border-radius: 4px;
} }
.video-poster { .video-poster {
position: absolute; position: absolute;
...@@ -507,7 +512,6 @@ export default { ...@@ -507,7 +512,6 @@ export default {
right: 0; right: 0;
left: 0; left: 0;
bottom: 0; bottom: 0;
border-radius: 4px;
} }
.mask { .mask {
display: flex; display: flex;
...@@ -522,7 +526,6 @@ export default { ...@@ -522,7 +526,6 @@ export default {
left: 0; left: 0;
bottom: 0; bottom: 0;
z-index: 999; z-index: 999;
border-radius: 4px;
.pic-pane-close { .pic-pane-close {
width: 16px; width: 16px;
height: 16px; height: 16px;
......
...@@ -79,6 +79,20 @@ ...@@ -79,6 +79,20 @@
position: static !important; position: static !important;
border-radius: 4px; border-radius: 4px;
} }
::v-deep .video-poster {
position: absolute;
width: 104px;
height: 104px;
object-fit: fill;
top: 0;
right: 0;
left: 0;
bottom: 0;
border-radius: 4px;
}
::v-deep .mask {
border-radius: 4px;
}
::v-deep .pic-box { ::v-deep .pic-box {
margin-right: 16px; margin-right: 16px;
.video-poster { .video-poster {
......
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
:image-url-arr=" :image-url-arr="
detailInfo[item.key] ? detailInfo[item.key] : [] detailInfo[item.key] ? detailInfo[item.key] : []
" "
:videoImg="detailInfo[item.key][0] + videoStr"
:picOptions="{ ...picOptions, type: item.otherType }" :picOptions="{ ...picOptions, type: item.otherType }"
limit="1" limit="1"
></glsx-preview> ></glsx-preview>
...@@ -171,6 +172,7 @@ export default { ...@@ -171,6 +172,7 @@ export default {
}, },
data() { data() {
return { return {
videoStr: "?x-oss-process=video/snapshot,t_7000,f_jpg,w_800,h_600,m_fast",
picOptions: { picOptions: {
width: "90px", width: "90px",
height: "90px", height: "90px",
......
...@@ -230,6 +230,7 @@ export default { ...@@ -230,6 +230,7 @@ export default {
if (res.data.code == 0) { if (res.data.code == 0) {
this.$message.success("操作成功") this.$message.success("操作成功")
this.visible = true this.visible = true
this.$emit("handleAddConfirm")
} else { } else {
this.$message.error(res.data.msg) this.$message.error(res.data.msg)
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!