|
|
@@ -62,6 +62,10 @@
|
|
|
type="text" v-if="projectFrom === 'hzyy'" @click="openDialog(scope.row)">
|
|
|
复制看课链接
|
|
|
</el-button>
|
|
|
+ <el-button size="mini"
|
|
|
+ type="text" v-if="projectFrom === 'myhk'" @click="openXsyDialog(scope.row)">
|
|
|
+ 复制参数
|
|
|
+ </el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
@@ -127,15 +131,37 @@
|
|
|
append-to-body
|
|
|
/>
|
|
|
|
|
|
+ <!-- 销售易参数弹窗 -->
|
|
|
+ <el-dialog
|
|
|
+ title="复制销售易参数"
|
|
|
+ :visible.sync="xsyDialogVisible"
|
|
|
+ width="500px"
|
|
|
+ append-to-body
|
|
|
+ >
|
|
|
+ <div style="margin-bottom: 20px;">
|
|
|
+ <el-input
|
|
|
+ v-model="xsyParams"
|
|
|
+ type="textarea"
|
|
|
+ :rows="3"
|
|
|
+ readonly
|
|
|
+ placeholder="参数将显示在这里"
|
|
|
+ class="xsy-textarea"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="xsyDialogVisible = false">取消</el-button>
|
|
|
+ <el-button type="primary" @click="copyXsyParams">复制参数</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
+
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import {getVideoListByCourseId, updatePacketMoney, updateUserCourseVideoUpdate} from "@/api/course/userCourseVideo";
|
|
|
-import userCourseVideoDetails from '../../components/course/userCourseVideoDetails.vue';
|
|
|
-import {createLinkUrl, createRoomLinkUrl, queryQwIds} from "@/api/course/sopCourseLink";
|
|
|
-import AutoTagDialog from "@/views/components/tag/AutoTagDialog.vue";
|
|
|
-import {addTag, updateTag} from "@/api/tag/api";
|
|
|
+import { getVideoListByCourseId, updatePacketMoney } from '@/api/course/userCourseVideo'
|
|
|
+import userCourseVideoDetails from '../../components/course/userCourseVideoDetails.vue'
|
|
|
+import { createLinkUrl, createRoomLinkUrl, queryQwIds } from '@/api/course/sopCourseLink'
|
|
|
+import AutoTagDialog from '@/views/components/tag/AutoTagDialog.vue'
|
|
|
|
|
|
export default {
|
|
|
name: "userCourseCatalog",
|
|
|
@@ -233,6 +259,9 @@ export default {
|
|
|
},
|
|
|
// 显示搜索条件
|
|
|
showSearch: true,
|
|
|
+ // 销售易弹窗
|
|
|
+ xsyDialogVisible: false,
|
|
|
+ xsyParams: '',
|
|
|
// 遮罩层
|
|
|
loading: true,
|
|
|
// 导出遮罩层
|
|
|
@@ -520,7 +549,29 @@ export default {
|
|
|
this.$refs.userCourseVideoDetails.getDetails(row.videoId);
|
|
|
}, 500);
|
|
|
|
|
|
- }
|
|
|
+ },
|
|
|
+ // 复制销售易链接
|
|
|
+ openXsyDialog(row) {
|
|
|
+ // 获取当前登录用户信息
|
|
|
+ const currentUser = this.$store.state.user.user;
|
|
|
+ const companyId = currentUser.companyId;
|
|
|
+ const companyUserId = currentUser.userId;
|
|
|
+
|
|
|
+ // 构建JSON字符串
|
|
|
+ const courseData = {
|
|
|
+ videoId: row.videoId,
|
|
|
+ courseId: row.courseId,
|
|
|
+ companyId: companyId,
|
|
|
+ companyUserId: companyUserId
|
|
|
+ };
|
|
|
+
|
|
|
+ this.xsyParams = `pages_course/videoxsy?course=${JSON.stringify(courseData)}`;
|
|
|
+ this.xsyDialogVisible = true;
|
|
|
+ },
|
|
|
+ // 复制销售易参数
|
|
|
+ copyXsyParams() {
|
|
|
+ this.copyLink(this.xsyParams);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
@@ -546,3 +597,9 @@ export default {
|
|
|
}
|
|
|
|
|
|
</style>
|
|
|
+<style scoped>
|
|
|
+.xsy-textarea >>> .el-textarea__inner {
|
|
|
+ background-color: #f5f5f5 !important;
|
|
|
+ resize: none !important;
|
|
|
+}
|
|
|
+</style>
|