Commit a0ff0c1c authored by liqin's avatar liqin 💬

bug fixed

parent 695faa29
...@@ -152,17 +152,17 @@ ...@@ -152,17 +152,17 @@
<el-form-item label="展板视频" :label-width="formLabelWidth"> <el-form-item label="展板视频" :label-width="formLabelWidth">
<div> <div>
<img class="iconImg" src="" alt=""> <img class="iconImg" src="" alt="">
<span>xxx.mp4</span> <span>xxx.mp4</span>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="展板音频" :label-width="formLabelWidth"> <el-form-item label="展板音频" :label-width="formLabelWidth">
<div> <div>
<img class="iconImg" src="" alt=""> <img class="iconImg" src="" alt="">
<span>xxx.mp3</span> <span>xxx.mp3</span>
</div> </div>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
<div slot="footer" class="dialog-footer btn-group"> <div slot="footer" class="dialog-footer btn-group">
<!-- <el-button size="mini" type="primary" @click="submitForm('editForm')">确定</el-button> --> <!-- <el-button size="mini" type="primary" @click="submitForm('editForm')">确定</el-button> -->
...@@ -332,7 +332,7 @@ export default { ...@@ -332,7 +332,7 @@ export default {
this.FormVisible1 = true; this.FormVisible1 = true;
this.type = true this.type = true
}, },
// 请填写驳回原因视频分类确认保存 // 请填写驳回原因视频分类确认保存
permisEdit() { permisEdit() {
let _this = this; let _this = this;
...@@ -416,7 +416,7 @@ export default { ...@@ -416,7 +416,7 @@ export default {
.$https( .$https(
{ url: "audit/updateAuditAllById", { url: "audit/updateAuditAllById",
headers:{'Content-Type': 'application/json'}, headers:{'Content-Type': 'application/json'},
method: "put", method: "put",
authType: this.backToken, authType: this.backToken,
}, },
...@@ -453,7 +453,7 @@ export default { ...@@ -453,7 +453,7 @@ export default {
); );
// _this.$refs.classForm.validate(valid => { // _this.$refs.classForm.validate(valid => {
// if (valid) { // if (valid) {
// } // }
// }); // });
}, },
...@@ -467,7 +467,7 @@ export default { ...@@ -467,7 +467,7 @@ export default {
authType: this.backToken authType: this.backToken
}, },
// param // param
) )
.then(res => { .then(res => {
let data = res.data.data; let data = res.data.data;
...@@ -482,7 +482,7 @@ export default { ...@@ -482,7 +482,7 @@ export default {
_this.FormVisible = true; _this.FormVisible = true;
_this.getInfo(row.refItemId) _this.getInfo(row.refItemId)
$('.el-dialog__title').html( row.name +'展板详情'); $('.el-dialog__title').html( row.name +'展板详情');
}, },
// 获取版权方详情 // 获取版权方详情
getInfo(id) { getInfo(id) {
...@@ -497,10 +497,10 @@ export default { ...@@ -497,10 +497,10 @@ export default {
) )
.then(res => { .then(res => {
let data = res.data.data; let data = res.data.data;
// 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,
...@@ -514,9 +514,9 @@ export default { ...@@ -514,9 +514,9 @@ export default {
// remarks:data.remarks, // remarks:data.remarks,
// audioUrlList:data.audioUrlList, // audioUrlList:data.audioUrlList,
// materialUrlList:data.materialUrlList // materialUrlList:data.materialUrlList
// } // }
}) })
.catch(function(err) { .catch(function(err) {
console.log(err); console.log(err);
......
...@@ -177,7 +177,7 @@ export default { ...@@ -177,7 +177,7 @@ export default {
id: "" id: ""
}, },
classForm: { classForm: {
}, },
typeList: [], typeList: [],
rules: { rules: {
...@@ -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(
{ {
...@@ -429,7 +429,7 @@ export default { ...@@ -429,7 +429,7 @@ export default {
authType: this.backToken authType: this.backToken
}, },
// param // param
) )
.then(res => { .then(res => {
let data = res.data.data; let data = res.data.data;
......
...@@ -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: [
...@@ -216,7 +216,7 @@ export default { ...@@ -216,7 +216,7 @@ export default {
trigger: "change" trigger: "change"
} }
], ],
}, },
activeNames: ["1", "2"] activeNames: ["1", "2"]
}; };
...@@ -233,14 +233,14 @@ export default { ...@@ -233,14 +233,14 @@ export default {
}, },
// 视频版权方名称id // 视频版权方名称id
videoCopyright(idlist) { videoCopyright(idlist) {
this.ruleForm.assetCopyrightOwnerId = idlist; this.ruleForm.videoContentCopyrightOwnerId = idlist;
}, },
// 缩略图地址 // 缩略图地址
imgUrl(url) { imgUrl(url) {
console.log(url, "图片服务器地址"); console.log(url, "图片服务器地址");
this.ruleForm.cover = url; this.ruleForm.cover = url;
}, },
// 二维码 // 二维码
qrcodeUrl(url){ qrcodeUrl(url){
this.ruleForm.qrcodeUrl = url this.ruleForm.qrcodeUrl = 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,
...@@ -295,7 +295,7 @@ export default { ...@@ -295,7 +295,7 @@ export default {
// videoUrlList:data.videoUrlList // videoUrlList:data.videoUrlList
// 字段对不上 // 字段对不上
} }
}) })
.catch(function(err) { .catch(function(err) {
console.log(err); console.log(err);
...@@ -450,10 +450,10 @@ export default { ...@@ -450,10 +450,10 @@ export default {
}) })
.catch(function(err) { .catch(function(err) {
console.log(err); console.log(err);
}); });
}, },
// 获取视频分类列表 // 获取视频分类列表
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);
...@@ -496,4 +496,4 @@ export default { ...@@ -496,4 +496,4 @@ export default {
</script> </script>
<style lang="less"> <style lang="less">
</style> </style>
\ No newline at end of file
...@@ -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(
{ {
...@@ -453,7 +453,7 @@ export default { ...@@ -453,7 +453,7 @@ export default {
authType: this.backToken authType: this.backToken
}, },
// param // param
) )
.then(res => { .then(res => {
let data = res.data.data; let data = res.data.data;
......
...@@ -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"
...@@ -355,7 +355,7 @@ export default { ...@@ -355,7 +355,7 @@ export default {
// 修改版权方 // 修改版权方
updateForm(formName) { updateForm(formName) {
this.$refs[formName].validate(valid => { this.$refs[formName].validate(valid => {
if (valid) { if (valid) {
this.$https( this.$https(
{ {
...@@ -439,4 +439,4 @@ export default { ...@@ -439,4 +439,4 @@ export default {
<style lang="less"> <style lang="less">
@import "../../../../style/dialog"; @import "../../../../style/dialog";
</style> </style>
\ No newline at end of file
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