|
@@ -6,7 +6,7 @@
|
|
|
:modal-append-to-body="false"
|
|
|
center
|
|
|
width="568px"
|
|
|
- title="发布问答"
|
|
|
+ :title="dlgTitle"
|
|
|
:visible.sync="addEditdialogReleaseAudio"
|
|
|
customClass="add-edit-video-dlg"
|
|
|
:before-close="cancelHandle"
|
|
@@ -33,13 +33,13 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
- <el-select v-model="addEditAudio.property" multiple placeholder="请选择产业" clearable filterable style="width: 100%" @focus="industrySelectFocus">
|
|
|
+ <el-select v-model="addEditAudio.property" multiple placeholder="请选择产业(可多选)" clearable filterable style="width: 100%" @focus="industrySelectFocus">
|
|
|
<el-option :label="item.PermissionName" :value="item.ChartPermissionId" v-for="item in selectedIndustryArr" :key="item.ChartPermissionId"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
</div>
|
|
|
- <div class="cover-content" style="margin: 10px 0" v-if="fileListAudio.length && defaultImage">
|
|
|
+ <div class="cover-content" style="margin: 10px 0" v-if="this.addEditAudio.industryId && defaultImage">
|
|
|
<span class="text" style="width: 46px; text-align: right">封面:</span>
|
|
|
<div class="img-content">
|
|
|
<img :src="defaultImage" alt="" />
|
|
@@ -107,6 +107,7 @@ export default {
|
|
|
modifyImgVisible: false,
|
|
|
defaultImage: "",
|
|
|
shareImg: "",
|
|
|
+ dlgTitle: "发布问答",
|
|
|
};
|
|
|
},
|
|
|
computed: {},
|
|
@@ -123,6 +124,7 @@ export default {
|
|
|
selectChangeHandle(value) {
|
|
|
this.addEditAudio.property = "";
|
|
|
value ? this.getIndustry(value) : (this.selectedIndustryArr = []);
|
|
|
+ value && this.getVideoAndImg();
|
|
|
},
|
|
|
/* 获取选择的行业 */
|
|
|
getIndustry(industryId) {
|
|
@@ -141,8 +143,8 @@ export default {
|
|
|
confirmSubmit(type) {
|
|
|
this.$refs.ruleFormAudio.validate(async (valid) => {
|
|
|
if (valid) {
|
|
|
- if (!this.addEditAudio.audioName) return this.$message.error("请输入音频名称");
|
|
|
if (!this.fileListAudio.length) return this.$message.error("请上传音频");
|
|
|
+ if (!this.addEditAudio.audioName) return this.$message.error("请输入音频名称");
|
|
|
let ChartPermissionName = "";
|
|
|
this.chartPermissionList.forEach((item) => {
|
|
|
if (item.ChartPermissionId == this.addEditAudio.industryId) {
|
|
@@ -183,8 +185,6 @@ export default {
|
|
|
url: res.Data.ResourceUrl,
|
|
|
PlaySeconds: res.Data.PlaySeconds,
|
|
|
};
|
|
|
- this.getVideoAndImg();
|
|
|
-
|
|
|
this.addEditAudio.audioName = res.Data.ResourceName; //音频名称
|
|
|
this.addEditAudio.audioUrl = res.Data.ResourceUrl; //视频链接
|
|
|
this.addEditAudio.AudioSeconds = res.Data.PlaySeconds; //时长
|
|
@@ -196,8 +196,7 @@ export default {
|
|
|
async getVideoAndImg(isOne = "") {
|
|
|
this.fileListAudio = [{}];
|
|
|
const res = await raiInterface.video_and_voiceImgActivityVideo({
|
|
|
- FileType: 1,
|
|
|
- ActivityId: 2682,
|
|
|
+ ChartPermissionId: this.addEditAudio.industryId,
|
|
|
});
|
|
|
if (res.Ret === 200) {
|
|
|
isOne == "修改" ? "" : ((this.defaultImage = res.Data.List[0].ImgUrl), (this.shareImg = res.Data.List[0].ShareImg));
|
|
@@ -221,6 +220,7 @@ export default {
|
|
|
this.fileListAudio = [];
|
|
|
this.defaultImage = "";
|
|
|
this.shareImg = "";
|
|
|
+ this.dlgTitle = "发布问答";
|
|
|
this.$emit("update:addEditdialogReleaseAudio", false);
|
|
|
this.$emit("update:playDetailsList", {});
|
|
|
},
|
|
@@ -230,6 +230,7 @@ export default {
|
|
|
AskserieVideoId: this.playDetailsList.AskserieVideoId,
|
|
|
});
|
|
|
if (res.Ret === 200) {
|
|
|
+ this.dlgTitle = "编辑";
|
|
|
let { Detail } = res.Data;
|
|
|
this.getIndustry(Detail.ChartPermissionId);
|
|
|
let str = [];
|