|
|
@@ -246,6 +246,11 @@
|
|
|
>
|
|
|
<i class="el-icon-service"></i> 查看小程序链接
|
|
|
</el-dropdown-item>
|
|
|
+ <el-dropdown-item
|
|
|
+ @click.native="handleAppLink(scope.row)"
|
|
|
+ >
|
|
|
+ <i class="el-icon-service"></i> 查看App跳转链接
|
|
|
+ </el-dropdown-item>
|
|
|
<el-dropdown-item
|
|
|
v-if="scope.row.liveCodeUrl == null"
|
|
|
@click.native="handleGenerateCode(scope.row)"
|
|
|
@@ -422,6 +427,25 @@
|
|
|
<el-button type="primary" @click="rtmpUrlVisible = false">确 定</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
+
|
|
|
+ <el-dialog title="选择销售公司" :visible.sync="statusDialog.open" width="500px" append-to-body>
|
|
|
+ <el-form ref="corpForm" :model="corpForm" :rules="corpIdRules" label-width="100px">
|
|
|
+ <el-form-item label="状态" prop="corpId">
|
|
|
+ <el-select v-model="corpForm.corpId" placeholder="请选择销售公司" size="small">
|
|
|
+ <el-option
|
|
|
+ v-for="dict in myQwCompanyList"
|
|
|
+ :key="dict.dictValue"
|
|
|
+ :label="dict.dictLabel"
|
|
|
+ :value="dict.dictValue"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="statusDialog.open = false">取 消</el-button>
|
|
|
+ <el-button type="primary" @click="submitCorpIdForm(corpForm)">提 交</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -437,18 +461,26 @@ import {
|
|
|
handleShelfOrUn,
|
|
|
handleDeleteSelected,
|
|
|
finishLive,
|
|
|
- startLive, copyLive,generateCode
|
|
|
+ startLive, copyLive,generateCode,createAppLink
|
|
|
} from "@/api/live/live";
|
|
|
import { exportLiveMsgComments } from "@/api/live/liveMsg";
|
|
|
+import { getMyQwCompanyList} from "@/api/qw/user";
|
|
|
import Editor from '@/components/Editor/wang';
|
|
|
import user from '@/store/modules/user';
|
|
|
import VideoUpload from "@/components/LiveVideoUpload/single.vue";
|
|
|
+import {listTag} from "@/api/qw/tag";
|
|
|
|
|
|
export default {
|
|
|
name: "Live",
|
|
|
components: { Editor,VideoUpload },
|
|
|
data() {
|
|
|
return {
|
|
|
+ //公司列表
|
|
|
+ myQwCompanyList:[],
|
|
|
+ statusDialog: {
|
|
|
+ open: false,
|
|
|
+ title: "选择销售公司"
|
|
|
+ },
|
|
|
liveTypeDictList: [],
|
|
|
// 是否只读
|
|
|
isViewOnly:false,
|
|
|
@@ -510,7 +542,17 @@ export default {
|
|
|
fileName: null,
|
|
|
fileSize: null,
|
|
|
lineOne: null,
|
|
|
+
|
|
|
},
|
|
|
+ corpForm: {
|
|
|
+ liveId: null,
|
|
|
+ corpId:null,
|
|
|
+ },
|
|
|
+ corpIdRules: {
|
|
|
+ corpId: [
|
|
|
+ {required: true, message: '企微公司不能为空', trigger: 'change'}
|
|
|
+ ]
|
|
|
+ },
|
|
|
// 表单校验
|
|
|
rules: {
|
|
|
liveName: [
|
|
|
@@ -555,6 +597,19 @@ export default {
|
|
|
this.getDicts("live_type").then((response) => {
|
|
|
this.liveTypeDictList = response.data;
|
|
|
});
|
|
|
+ getMyQwCompanyList().then(response => {
|
|
|
+ this.myQwCompanyList = response.data;
|
|
|
+ if(this.myQwCompanyList!=null){
|
|
|
+ this.corpForm.corpId=this.myQwCompanyList[0].dictValue
|
|
|
+
|
|
|
+ var listTagFrom={corpId:this.corpForm.corpId}
|
|
|
+ listTag(listTagFrom).then(response => {
|
|
|
+ this.tagList = response.rows;
|
|
|
+ });
|
|
|
+ this.getList();
|
|
|
+
|
|
|
+ }
|
|
|
+ });
|
|
|
},
|
|
|
watch: {
|
|
|
'form.startTime': {
|
|
|
@@ -613,6 +668,34 @@ export default {
|
|
|
confirmButtonText: '确定',
|
|
|
});
|
|
|
},
|
|
|
+
|
|
|
+ handleAppLink(row){
|
|
|
+ this.corpForm = {
|
|
|
+ liveId: row.liveId,
|
|
|
+ };
|
|
|
+ this.statusDialog.open = true;
|
|
|
+ },
|
|
|
+
|
|
|
+ submitCorpIdForm(corpForm){
|
|
|
+ this.statusDialog.open = false;
|
|
|
+ this.$confirm('是否确认生成App跳转直播链接?', "警告", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ }).then(() => {
|
|
|
+ createAppLink(corpForm).then(response=>{
|
|
|
+ this.$alert(
|
|
|
+ `<div style="white-space: pre-wrap; word-break: break-all;">${response.realLink}</div>`,
|
|
|
+ 'App 跳转直播链接',
|
|
|
+ {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ dangerouslyUseHTMLString: true,
|
|
|
+ customClass: 'link-alert-dialog'
|
|
|
+ }
|
|
|
+ );
|
|
|
+ })
|
|
|
+ }).catch(() => {});
|
|
|
+ },
|
|
|
beforeAvatarUpload(file) {
|
|
|
const isLt1M = file.size / 1024 / 1024 < 1;
|
|
|
if (!isLt1M) {
|