Commit cdf42a24 authored by 黄奎's avatar 黄奎

页面修改

parent e721a0f8
......@@ -45,7 +45,7 @@
<span>{{item.UpdateDate}}</span>
</p>
</el-col>
<el-col :span="12" style="text-align:right;display:none;">
<el-col :span="12" style="text-align:right;">
<el-tooltip class="item" effect="dark" :content="$t('salesModule.ShareTrip')" placement="top-start"
style="float: right">
<el-popover width="180" trigger="click">
......@@ -74,7 +74,7 @@
<div v-show="nodata && msg.pageIndex>1" class="wryh"
style="text-align:center;padding:15px 0;font-size:12px;color:#aaaaaa">无更多数据</div>
</div>
<div style="opacity: 0;" ref="bottomDiv">1111</div>
<div style="opacity: 0;" ref="bottomDiv">&nbsp;</div>
</div>
<div class="videoDiv" v-show="videoDivState">
<div style="text-align:right;padding-right:15px;cursor:pointer"><span @click="Setvideo"
......
<template>
<div class="EducationvideoList">
<!-- <div class="left">
<ul class="lineUl" style="margin-top:30px">
<li v-for="(item,index) in LineList" :key="index">
{{item.LineName}}
</li>
</ul>
</div> -->
<div class="right">
<div class="search">
<el-input size="small" style="width:600px" :placeholder="$t('fnc.qsrneirong')" v-model="msg.Name"
class="input-with-select">
<el-button @click="Search" slot="append" icon="el-icon-search"></el-button>
</el-input>
<el-button style="margin-left:20px" size="small" type="danger" @click="addList" round>{{$t('pub.addBtn')}}</el-button>
<!-- <el-button style="margin-left:20px" size="small" type="primary" @click="goUrlHome" round>{{$t('pub.returnBack')}}</el-button> -->
<el-button style="margin-left:20px" size="small" type="danger" @click="addList" round>{{$t('pub.addBtn')}}
</el-button>
</div>
<div v-loading="loading" class="Content">
<ul class="videoUl">
<li v-for="(item,index) in dataList" :key="index">
<div :style="{backgroundImage: 'url(' + item.background + ')', backgroundSize:'cover'}"
@click.prevent="goUrl('EducationvideoSee',item)" class="imgDiv">
<!-- <img v-if="item.Cover && item.Cover!=''" :onerror="defaultImg" style="min-height: 199px;width:100%" :src="item.Cover" alt="">
<img v-else style="height:199px;width:100%" src="../assets/img/hotel/biefu.png" alt=""> -->
<div class="backDiv">
<span class="iconfont icon-ico_bofang"></span>
<div class="icon">
......@@ -46,9 +37,6 @@
</el-tooltip>
</div>
</div>
</div>
<div class="contentDiv">
<img v-if="item.EmPhoto && item.EmPhoto!=''" :src="item.EmPhoto" alt="">
......@@ -76,13 +64,9 @@
<div v-if="dataList.length==0" style="text-align:center;padding-top:40px">
<span style="font-size:60px;color:#ccc" class="iconfont icon-wushuju"></span>
</div>
<!-- <el-pagination background @current-change="handleCurrentChange"
layout="total,prev, pager, next, jumper" :page-size="msg.pageSize" :total='total'>
</el-pagination> -->
<div v-show="nodata && msg.pageIndex>1" class="wryh"
style="text-align:center;padding:15px 0;font-size:12px;color:#aaaaaa">无更多数据</div>
<div style="opacity: 0;" ref="bottomDiv">1111</div>
</div>
</div>
<el-dialog title="上传" :visible.sync="dialogVisible" width="800px">
......@@ -91,7 +75,6 @@
<el-input style="width:220px" v-model="addMsg.Name"></el-input>
</el-form-item>
<el-form-item style="display:inline-block" label="标签" prop="Label">
<!-- <el-input style="width:220px" v-model="addMsg.Label"></el-input> -->
<el-select style="width:220px" v-model="addMsg.Label" :placeholder="$t('objFill.v101.activity.qingxzzt')">
<el-option :label="$t('hotel.hotel')" value="酒店"></el-option>
<el-option label="景点" value="景点"></el-option>
......@@ -102,7 +85,8 @@
</el-select>
</el-form-item>
<el-form-item style="display:inline-block" :label="$t('admin.admin_status')" prop="VideoStatus">
<el-select style="width:220px" v-model="addMsg.VideoStatus" :placeholder="$t('objFill.v101.activity.qingxzzt')">
<el-select style="width:220px" v-model="addMsg.VideoStatus"
:placeholder="$t('objFill.v101.activity.qingxzzt')">
<el-option label="发布" :value="1"></el-option>
<el-option :label="$t('objFill.caogao')" :value="2"></el-option>
<el-option label="撤回" :value="3"></el-option>
......@@ -135,7 +119,8 @@
<div style="text-align:right;margin-bottom:10px">
<el-button style="font-size:12px" size="samll" @click="dialogVisible = false">{{$t('pub.cancelBtn')}}
</el-button>
<el-button style="font-size:12px" size="samll" type="danger" @click="submitForm('addMsg')">{{$t('pub.sureBtn')}}</el-button>
<el-button style="font-size:12px" size="samll" type="danger" @click="submitForm('addMsg')">{{$t('pub.sureBtn')}}
</el-button>
</div>
</el-dialog>
<div class="videoDiv" v-show="videoDivState">
......@@ -267,7 +252,6 @@
UserType: 1,
}
},
UploadFileToAli(file) {
if (['video/mp4', 'video/ogg', 'video/webm', 'video/avi', 'video/wmv', 'video/rmvb', 'video/mov'].indexOf(file
.file.type) == -1) {
......@@ -280,7 +264,7 @@
this.scLoad = true;
this.UploadFileToAli2024(path, newArr, x => {
this.scLoad = false;
this.addMsg.VideoAddress = this.baseurl + x.name;
this.addMsg.VideoAddress = this.baseurl + x.data.FilePath;
let lastUrl = "?x-oss-process=video/snapshot,t_9,f_jpg,w_299,h_0,m_fast";
this.addMsg.Cover = this.addMsg.VideoAddress + lastUrl;
});
......@@ -317,7 +301,7 @@
},
Chehui(item, e) {
e.stopPropagation()
this.$confirmm(this.$t('adm.adm_sfchehui')+"?", this.$t('tips.tips'), {
this.$confirm(this.$t('adm.adm_sfchehui') + "?", this.$t('tips.tips'), {
confirmButtonText: this.$t('pub.sureBtn'),
cancelButtonText: this.$t('pub.cancelBtn'),
type: "warning"
......@@ -391,7 +375,6 @@
this.getList()
} else {
this.Error(res.data.message)
}
})
} else {}
......@@ -406,7 +389,6 @@
this.addMsg.VideoAddress = item.VideoAddress;
this.addMsg.VideoStatus = item.VideoStatus;
this.addMsg.Label = item.Label;
this.dialogVisible = true;
},
goUrlHome() {
......@@ -431,8 +413,6 @@
});
}
},
AddWidthHeight(VideoWH, id) {
let msg = {
......@@ -442,9 +422,7 @@
this.apipost(
"Video_set_SetPCVideoWHInfo", msg,
res => {
if (res.data.resultCode == 1) {
}
}
);
......@@ -455,9 +433,7 @@
VideoId: id
},
res => {
if (res.data.resultCode == 1) {
}
}
);
......@@ -474,7 +450,6 @@
);
},
},
}
</script>
......
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