Commit a0ff0c1c authored by liqin's avatar liqin 💬

bug fixed

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