Commit a0ff0c1c authored by liqin's avatar liqin 💬

bug fixed

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