Commit 69535d67 by 前端

Merge branch 'xuyl_dev_v3.2.0' into 'v3.2.0'

修复自测图片bug

See merge request !21
2 parents 41641b2e 58495430
......@@ -18,11 +18,11 @@
<div class="baseFrame gl-form-page">
<el-form :model="baseForm" :rules="baseRules" ref="baseForm" label-width="120px">
<el-form-item label="直播间名称:" prop="name">
<el-input v-model="baseForm.name" maxlength="20" show-word-limit></el-input>
<el-input v-model="baseForm.name" maxlength="20" show-word-limit></el-input>
</el-form-item>
<el-form-item label="直播间简介:">
<el-input type="textarea" v-model="baseForm.introduction" maxlength="200"
show-word-limit ></el-input>
<el-input type="textarea" v-model="baseForm.introduction" maxlength="200"
show-word-limit></el-input>
</el-form-item>
<el-form-item label="开播时间:" prop="timeStr">
<el-date-picker
......@@ -296,14 +296,14 @@ export default {
mixins: [uploadMixin],
data() {
return {
loading:false,
loading: false,
activePage: 1,
incomingId: "",
incomingStatus: "",
pickerOptions: {
disabledDate(time) {
return time.getTime() < Date.now() - 24 * 60 * 60 * 1000;
},
}
},
showDraft: true,
dialogType: "",
......@@ -338,7 +338,11 @@ export default {
preLiveMediaType: "0",
preLiveMediaFile: "",
preLiveMediaCover: "",
liveBackgroundWall: ""
liveBackgroundWall: "",
preLiveMediaFilePic: "",
preLiveMediaCoverPic: "",
preLiveMediaFileVid: "",
preLiveMediaCoverVid: ""
}
};
},
......@@ -376,7 +380,7 @@ export default {
if (status == "0" || status == "1") {
this.showDraft = false;
}
this.incomingStatus = status
this.incomingStatus = status;
this.baseForm.name = res.name;
this.baseForm.introduction = res.introduction;
this.$set(this.baseForm, "timeStr", [res.startTimeStr.replace(/\//g, "-"), res.endTimeStr.replace(/\//g, "-")]);
......@@ -384,11 +388,11 @@ export default {
this.liveRoom[i] = res[i] || this.liveRoom[i];
});
if (res.preLiveMediaType == "0") {
this.liveRoom.preLiveMediaType = '0'
this.liveRoom.preLiveMediaType = "0";
this.liveRoom.preLiveMediaFilePic = res.preLiveMediaFile;
this.liveRoom.preLiveMediaCoverPic = res.preLiveMediaCover;
} else {
this.liveRoom.preLiveMediaType = '1'
this.liveRoom.preLiveMediaType = "1";
this.liveRoom.preLiveMediaFileVid = res.preLiveMediaFile;
this.liveRoom.preLiveMediaCoverVid = res.preLiveMediaCover;
}
......@@ -441,7 +445,7 @@ export default {
async handleCreateorEdit(draftFlag) {
let sucText = "创建直播间成功!";
let errText = "创建直播间失败!";
const params = Object.assign(this.liveRoom,this.baseForm);
const params = Object.assign(this.liveRoom, this.baseForm);
if (params.preLiveMediaType == "0") {
params.preLiveMediaFile = params.preLiveMediaFilePic || "";
params.preLiveMediaCover = params.preLiveMediaCoverPic || "";
......@@ -469,11 +473,11 @@ export default {
}
}
// 24 属于新建
if (!!this.incomingStatus && (this.incomingStatus == "2" || this.incomingStatus == "4")) {
if (!!this.incomingStatus && (this.incomingStatus == "2" || this.incomingStatus == "4")) {
delete params.id;
}
// 01 就是属于编辑
if (this.incomingId && this.incomingStatus == "0" ) {
if (this.incomingId && this.incomingStatus == "0") {
params.id = this.incomingId;
sucText = "编辑成功!";
errText = "编辑失败!";
......@@ -824,9 +828,11 @@ export default {
padding: 10px;
font-size: 14px;
color: #000000;
.img{
.img {
width: 85px;
}
.title {
margin: 8px 0;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!