|
@@ -147,6 +147,16 @@
|
|
<el-radio :label="2">录播</el-radio>
|
|
<el-radio :label="2">录播</el-radio>
|
|
</el-radio-group>
|
|
</el-radio-group>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
+ <el-form-item label="直播达人" prop="talentId">
|
|
|
|
+ <el-select v-model="form.talentId" placeholder="请选择达人">
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in talentList"
|
|
|
|
+ :key="item.talentId"
|
|
|
|
+ :label="item.nickName"
|
|
|
|
+ :value="item.talentId">
|
|
|
|
+ </el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
<el-form-item label="直播描述" prop="liveDesc">
|
|
<el-form-item label="直播描述" prop="liveDesc">
|
|
<Editor ref="myeditor" :height="300" @on-text-change="updateText"/>
|
|
<Editor ref="myeditor" :height="300" @on-text-change="updateText"/>
|
|
<!-- <Editor v-model="form.liveDesc" :height="300" placeholder="直播描述" />-->
|
|
<!-- <Editor v-model="form.liveDesc" :height="300" placeholder="直播描述" />-->
|
|
@@ -193,8 +203,9 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import { listLive, getLive, delLive, addLive, updateLive, exportLive } from "@/api/live/live";
|
|
|
|
|
|
+import { listLive, getLive, delLive, addLive, updateLive, exportLive,selectCompanyTalent } from "@/api/live/live";
|
|
import Editor from '@/components/Editor/wang';
|
|
import Editor from '@/components/Editor/wang';
|
|
|
|
+import user from '@/store/modules/user';
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: "Live",
|
|
name: "Live",
|
|
@@ -219,6 +230,8 @@ export default {
|
|
total: 0,
|
|
total: 0,
|
|
// 直播表格数据
|
|
// 直播表格数据
|
|
liveList: [],
|
|
liveList: [],
|
|
|
|
+ // 达人列表
|
|
|
|
+ talentList: [],
|
|
// 弹出层标题
|
|
// 弹出层标题
|
|
title: "",
|
|
title: "",
|
|
// 是否显示弹出层
|
|
// 是否显示弹出层
|
|
@@ -267,6 +280,9 @@ export default {
|
|
isShow: [
|
|
isShow: [
|
|
{ required: true, message: "不能为空", trigger: "change" }
|
|
{ required: true, message: "不能为空", trigger: "change" }
|
|
],
|
|
],
|
|
|
|
+ talentId: [
|
|
|
|
+ { required: true, message: "不能为空", trigger: "change" }
|
|
|
|
+ ]
|
|
}
|
|
}
|
|
};
|
|
};
|
|
},
|
|
},
|
|
@@ -371,6 +387,9 @@ export default {
|
|
handleAdd() {
|
|
handleAdd() {
|
|
this.reset();
|
|
this.reset();
|
|
this.open = true;
|
|
this.open = true;
|
|
|
|
+ selectCompanyTalent(user.state.user.companyId).then(res=>{
|
|
|
|
+ this.talentList = res.rows;
|
|
|
|
+ });
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
this.$refs.myeditor.setText("");
|
|
this.$refs.myeditor.setText("");
|
|
}, 100);
|
|
}, 100);
|
|
@@ -382,6 +401,9 @@ export default {
|
|
/** 修改按钮操作 */
|
|
/** 修改按钮操作 */
|
|
handleUpdate(row) {
|
|
handleUpdate(row) {
|
|
this.reset();
|
|
this.reset();
|
|
|
|
+ selectCompanyTalent(user.state.user.companyId).then(res=>{
|
|
|
|
+ this.talentList = res.rows;
|
|
|
|
+ });
|
|
const liveId = row.liveId || this.ids
|
|
const liveId = row.liveId || this.ids
|
|
getLive(liveId).then(response => {
|
|
getLive(liveId).then(response => {
|
|
this.form = response.data;
|
|
this.form = response.data;
|