Commit 680d2020 authored by zhengke's avatar zhengke

修改

parent f63cfbf8
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<template v-if="videoIsShowAdd"> <template v-if="videoIsShowAdd">
<div class="head-title"> <div class="head-title">
视频 视频
<el-button @click="videoIsShowAdd=false" style="float:right;margin-top: -5px;" size="small" type="primary"> <el-button @click="videoIsShowAdd=false,clearMsg()" style="float:right;margin-top: -5px;" size="small" type="primary">
添加视频 添加视频
</el-button> </el-button>
</div> </div>
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
</el-form-item> </el-form-item>
<el-form-item label="视频链接"> <el-form-item label="视频链接">
<el-input placeholder="请输入链接" v-model="addMsg.VedioUrl" size="small"> <el-input placeholder="请输入链接" v-model="addMsg.VedioUrl" size="small">
<el-button slot="append">选择文件</el-button> <el-button slot="append" @click="changeState1=true">选择文件</el-button>
</el-input> </el-input>
<el-link class="box-grow-0" type="primary" style="font-size:12px" v-if='addMsg.VedioUrl' <el-link class="box-grow-0" type="primary" style="font-size:12px" v-if='addMsg.VedioUrl'
:underline="false" target="_blank" :href="addMsg.VedioUrl">视频预览 :underline="false" target="_blank" :href="addMsg.VedioUrl">视频预览
...@@ -95,18 +95,26 @@ ...@@ -95,18 +95,26 @@
<el-dialog title="选择文件" :visible.sync="choicImg" width="1240px"> <el-dialog title="选择文件" :visible.sync="choicImg" width="1240px">
<ChooseImg @SelectId="SelectId"></ChooseImg> <ChooseImg @SelectId="SelectId"></ChooseImg>
</el-dialog> </el-dialog>
<!-- 选择视频 -->
<el-dialog title="选择文件" :visible.sync="changeState1" width="1240px">
<Choosevideo @Selectvideo="Selectvideo"></Choosevideo>
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
import ChooseImg from "@/components/global/ChooseImg.vue"; import ChooseImg from "@/components/global/ChooseImg.vue";
import Choosevideo from "@/components/global/Choosevideo.vue";
export default { export default {
components: { components: {
ChooseImg ChooseImg,
Choosevideo
}, },
data() { data() {
return { return {
//是否线下链接弹窗 //是否线下链接弹窗
loading: false, loading: false,
//选择视频
changeState1:false,
dataList: [], dataList: [],
msg: { msg: {
pageIndex: 1, pageIndex: 1,
...@@ -148,6 +156,11 @@ ...@@ -148,6 +156,11 @@
this.msg.pageIndex = val; this.msg.pageIndex = val;
this.getList(); this.getList();
}, },
//选择视频
Selectvideo(val){
this.addMsg.VedioUrl=val.Path;
this.changeState1=false;
},
getList() { getList() {
this.apipost("/api/MContent/GetVideoPageList", this.msg, res => { this.apipost("/api/MContent/GetVideoPageList", this.msg, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
......
...@@ -12,20 +12,20 @@ ...@@ -12,20 +12,20 @@
height: 725px; height: 725px;
} }
.all-components { .Myall-components {
max-height: 725px; max-height: 725px;
overflow-y: auto; overflow-y: auto;
background: #fff; background: #fff;
padding: 20px; padding: 20px;
} }
.all-components .component-group { .Myall-components .component-group {
border: 1px solid #eeeeee; border: 1px solid #eeeeee;
width: 300px; width: 300px;
margin-bottom: 20px; margin-bottom: 20px;
} }
.all-components .component-group-name { .Myall-components .component-group-name {
height: 35px; height: 35px;
line-height: 35px; line-height: 35px;
background: #f7f7f7; background: #f7f7f7;
...@@ -33,13 +33,13 @@ ...@@ -33,13 +33,13 @@
border-bottom: 1px solid #eeeeee; border-bottom: 1px solid #eeeeee;
} }
.all-components .Mycomponent-list { .Myall-components .Mycomponent-list {
margin-right: -2px; margin-right: -2px;
margin-top: -2px; margin-top: -2px;
flex-wrap: wrap; flex-wrap: wrap;
} }
.all-components .Mycomponent-list .Mycomponent-item { .Myall-components .Mycomponent-list .Mycomponent-item {
width: 100px; width: 100px;
height: 100px; height: 100px;
border: 0 solid #eeeeee; border: 0 solid #eeeeee;
...@@ -137,7 +137,7 @@ ...@@ -137,7 +137,7 @@
border: none; border: none;
border-radius: 0; border-radius: 0;
position: absolute; position: absolute;
margin-left: 0; margin-left: 0!important;
} }
.diy-search>div { .diy-search>div {
...@@ -178,7 +178,7 @@ ...@@ -178,7 +178,7 @@
style="margin:0 9px;color:#C0C4CC">/</span><span>新增</span> style="margin:0 9px;color:#C0C4CC">/</span><span>新增</span>
</div> </div>
<div flex="box:first" class="tpEdit_Content"> <div flex="box:first" class="tpEdit_Content">
<div class="all-components"> <div class="Myall-components">
<el-form label-width="80px"> <el-form label-width="80px">
<el-form-item label="模板名称"> <el-form-item label="模板名称">
<el-input type="text" size="small" v-model="addMsg.TemplateName" maxlength="50"></el-input> <el-input type="text" size="small" v-model="addMsg.TemplateName" maxlength="50"></el-input>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment