Commit a0ff0c1c authored by liqin's avatar liqin 💬

bug fixed

parent 695faa29
...@@ -500,7 +500,7 @@ export default { ...@@ -500,7 +500,7 @@ export default {
// this.editForm = data // this.editForm = data
// this.ruleForm = data; // this.ruleForm = data;
// this.ruleForm = { // this.ruleForm = {
// assetCopyrightOwnerId :data.assetCopyrightOwnerId, // videoContentCopyrightOwnerId :data.videoContentCopyrightOwnerId,
// assetId:data.assetId, // assetId:data.assetId,
// assetTypeId:data.assetTypeId, // assetTypeId:data.assetTypeId,
// boardCopyrightOwnerId:data.boardCopyrightOwnerId, // boardCopyrightOwnerId:data.boardCopyrightOwnerId,
......
...@@ -417,10 +417,10 @@ export default { ...@@ -417,10 +417,10 @@ export default {
// } // }
// _this.editform= Object.assign({}, row); // _this.editform= Object.assign({}, row);
_this.FormVisible1 = true; _this.FormVisible1 = true;
this.getAssetTypeInfo(row.id) this.getVideoContentCatInfo(row.id)
}, },
// 获取展板分类详情 // 获取展板分类详情
getAssetTypeInfo(id){ getVideoContentCatInfo(id){
let vm = this; let vm = this;
vm.$https( vm.$https(
{ {
......
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
<el-select <el-select
placeholder="请选择视频版权方" placeholder="请选择视频版权方"
@focus="getAssetCopyrightData" @focus="getAssetCopyrightData"
v-model="ruleForm.assetCopyrightOwnerId" v-model="ruleForm.videoContentCopyrightOwnerId"
> >
<el-option <el-option
v-for="item in copyrightOwner" v-for="item in copyrightOwner"
...@@ -88,9 +88,9 @@ ...@@ -88,9 +88,9 @@
<el-form-item label="请选择预设视频分类"> <el-form-item label="请选择预设视频分类">
<el-select <el-select
placeholder="请选择预设视频分类" placeholder="请选择预设视频分类"
@focus="getAssetTypeData" @focus="getVideoContentCatData"
v-model="ruleForm.assetTypeId" v-model="ruleForm.videoContentCatId"
@change="getAssetType" @change="getVideoContentCat"
> >
<el-option <el-option
v-for="item in videoContentCat" v-for="item in videoContentCat"
...@@ -104,10 +104,10 @@ ...@@ -104,10 +104,10 @@
<el-select <el-select
placeholder="请选择视频" placeholder="请选择视频"
@focus="getVideoData" @focus="getVideoData"
v-model="ruleForm.assetId" v-model="ruleForm.videoContentId"
> >
<el-option <el-option
v-for="item in assetId" v-for="item in videoContentId"
:label="item.name" :label="item.name"
:value="item.id" :value="item.id"
:key="item.id" :key="item.id"
...@@ -162,7 +162,7 @@ export default { ...@@ -162,7 +162,7 @@ export default {
copyrightOwner: [], copyrightOwner: [],
boardCopyrightOwnerId:[], boardCopyrightOwnerId:[],
exhibitionBoardCatId:[], exhibitionBoardCatId:[],
assetId:[], videoContentId:[],
type: this.$route.query.type, type: this.$route.query.type,
dialogVisible: false, dialogVisible: false,
formLabelWidth: "100px", formLabelWidth: "100px",
...@@ -174,8 +174,8 @@ export default { ...@@ -174,8 +174,8 @@ export default {
ruleForm: { ruleForm: {
name: "", name: "",
boardCopyrightOwnerId:"", boardCopyrightOwnerId:"",
assetCopyrightOwnerId: "", videoContentCopyrightOwnerId: "",
assetTypeId: "", videoContentCatId: "",
videoUrlList: [] videoUrlList: []
}, },
videoContentCat: [ videoContentCat: [
...@@ -233,7 +233,7 @@ export default { ...@@ -233,7 +233,7 @@ export default {
}, },
// 视频版权方名称id // 视频版权方名称id
videoCopyright(idlist) { videoCopyright(idlist) {
this.ruleForm.assetCopyrightOwnerId = idlist; this.ruleForm.videoContentCopyrightOwnerId = idlist;
}, },
// 缩略图地址 // 缩略图地址
imgUrl(url) { imgUrl(url) {
...@@ -248,14 +248,14 @@ export default { ...@@ -248,14 +248,14 @@ export default {
videoList(list) { videoList(list) {
this.ruleForm.videoUrlList = list; this.ruleForm.videoUrlList = list;
}, },
getAssetType(data) { getVideoContentCat(data) {
console.log(data); console.log(data);
console.log(this.ruleForm.assetTypeId); console.log(this.ruleForm.videoContentCatId);
}, },
init() { init() {
if (this.$route.query.type === "Update") { if (this.$route.query.type === "Update") {
this.getInfo(this.$route.query.id); this.getInfo(this.$route.query.id);
this.getAssetTypeData(); this.getVideoContentCatData();
this.getAssetCopyrightData(); this.getAssetCopyrightData();
this.getExhibitionBoardCatId(); this.getExhibitionBoardCatId();
this.getBoardCopyrightOwnerId(); this.getBoardCopyrightOwnerId();
...@@ -278,9 +278,9 @@ export default { ...@@ -278,9 +278,9 @@ export default {
// this.ruleForm = data; // this.ruleForm = data;
console.log(this.ruleForm) console.log(this.ruleForm)
this.ruleForm = { this.ruleForm = {
assetCopyrightOwnerId :data.assetCopyrightOwnerId, videoContentCopyrightOwnerId :data.videoContentCopyrightOwnerId,
assetId:data.assetId, videoContentId:data.videoContentId,
assetTypeId:data.assetTypeId, videoContentCatId:data.videoContentCatId,
boardCopyrightOwnerId:data.boardCopyrightOwnerId, boardCopyrightOwnerId:data.boardCopyrightOwnerId,
cover:data.cover, cover:data.cover,
exhibitionBoardCatId:data.exhibitionBoardCatId, exhibitionBoardCatId:data.exhibitionBoardCatId,
...@@ -453,7 +453,7 @@ export default { ...@@ -453,7 +453,7 @@ export default {
}); });
}, },
// 获取视频分类列表 // 获取视频分类列表
getAssetTypeData() { getVideoContentCatData() {
let vm = this; let vm = this;
vm.$https({ vm.$https({
url: "videoContentCat/getList", url: "videoContentCat/getList",
...@@ -478,7 +478,7 @@ export default { ...@@ -478,7 +478,7 @@ export default {
}) })
.then(res => { .then(res => {
let data = res.data.data; let data = res.data.data;
this.assetId = data; this.videoContentId = data;
}) })
.catch(function(err) { .catch(function(err) {
console.log(err); console.log(err);
......
...@@ -441,10 +441,10 @@ export default { ...@@ -441,10 +441,10 @@ export default {
// } // }
// _this.editform= Object.assign({}, row); // _this.editform= Object.assign({}, row);
_this.FormVisible1 = true; _this.FormVisible1 = true;
this.getAssetTypeInfo(row.id) this.getVideoContentCatInfo(row.id)
}, },
// 获取视频分类详情 // 获取视频分类详情
getAssetTypeInfo(id){ getVideoContentCatInfo(id){
let vm = this; let vm = this;
vm.$https( vm.$https(
{ {
......
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
<el-select <el-select
placeholder="请选择视频版权方" placeholder="请选择视频版权方"
@focus="getAssetCopyrightData" @focus="getAssetCopyrightData"
v-model="ruleForm.assetCopyrightOwnerId" v-model="ruleForm.videoContentCopyrightOwnerId"
> >
<el-option <el-option
v-for="item in copyrightOwner" v-for="item in copyrightOwner"
...@@ -163,7 +163,7 @@ export default { ...@@ -163,7 +163,7 @@ export default {
value1: [], value1: [],
ruleForm: { ruleForm: {
name: "", name: "",
assetCopyrightOwnerId:"", videoContentCopyrightOwnerId:"",
assetTypeId: "", assetTypeId: "",
thumbnail:"", thumbnail:"",
videoUrlList:[] videoUrlList:[]
...@@ -227,7 +227,7 @@ export default { ...@@ -227,7 +227,7 @@ export default {
methods: { methods: {
// 视频版权方名称id // 视频版权方名称id
videoCopyright(idlist){ videoCopyright(idlist){
this.ruleForm.assetCopyrightOwnerId = idlist this.ruleForm.videoContentCopyrightOwnerId = idlist
}, },
// 缩略图地址 // 缩略图地址
imgUrl(url){ imgUrl(url){
...@@ -265,7 +265,7 @@ export default { ...@@ -265,7 +265,7 @@ export default {
// this.ruleForm = data; // this.ruleForm = data;
this.ruleForm.id = data.id this.ruleForm.id = data.id
this.ruleForm.name = data.name this.ruleForm.name = data.name
this.ruleForm.assetCopyrightOwnerId = data.assetCopyrightOwnerId this.ruleForm.videoContentCopyrightOwnerId = data.videoContentCopyrightOwnerId
this.ruleForm.assetTypeId = data.assetTypeId this.ruleForm.assetTypeId = data.assetTypeId
this.ruleForm.thumbnail = data.thumbnail this.ruleForm.thumbnail = data.thumbnail
this.ruleForm.videoUrlList = data.videoUrlList this.ruleForm.videoUrlList = data.videoUrlList
...@@ -324,7 +324,7 @@ export default { ...@@ -324,7 +324,7 @@ export default {
// 新增 // 新增
submitForm(formName) { submitForm(formName) {
this.$refs[formName].validate(valid => { this.$refs[formName].validate(valid => {
// this.ruleForm.assetCopyrightOwnerId = ["1373225989501456385"] // this.ruleForm.videoContentCopyrightOwnerId = ["1373225989501456385"]
// this.ruleForm.assetTypeIdList = [] // this.ruleForm.assetTypeIdList = []
// this.ruleForm.videoUrlList = [ // this.ruleForm.videoUrlList = [
// "http://111.203.232.175:8085/group1/M00/00/39/wKhuVWBgIvaANgtZAAAAAAAAAAA947.mp4" // "http://111.203.232.175:8085/group1/M00/00/39/wKhuVWBgIvaANgtZAAAAAAAAAAA947.mp4"
......
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