2023年6月3日 新增听课日志
This commit is contained in:
parent
05315a9726
commit
d9ab580422
|
@ -45,7 +45,7 @@
|
|||
<BasicTable @register="registerTable" :rowSelection="rowSelection">
|
||||
<!--插槽:table标题-->
|
||||
<template #tableTitle>
|
||||
<a-button type="primary" @click="handleAdd" preIcon="ant-design:plus-outlined"> 新增</a-button>
|
||||
<!-- <a-button type="primary" @click="handleAdd" preIcon="ant-design:plus-outlined"> 新增</a-button>
|
||||
<a-button type="primary" preIcon="ant-design:export-outlined" @click="onExportXls"> 导出</a-button>
|
||||
<j-upload-button type="primary" preIcon="ant-design:import-outlined" @click="onImportXls">导入</j-upload-button>
|
||||
<a-dropdown v-if="selectedRowKeys.length > 0">
|
||||
|
@ -60,7 +60,7 @@
|
|||
<a-button>批量操作
|
||||
<Icon icon="mdi:chevron-down"></Icon>
|
||||
</a-button>
|
||||
</a-dropdown>
|
||||
</a-dropdown> -->
|
||||
</template>
|
||||
<!--操作栏-->
|
||||
<template #action="{ record }">
|
||||
|
|
|
@ -78,7 +78,7 @@ import { ref,watch,reactive,defineExpose } from 'vue';
|
|||
import { defHttp } from '/@/utils/http/axios';
|
||||
import { useMessage } from '/@/hooks/web/useMessage';
|
||||
import KcErrorreportIndexModal from '/@/views/kc/kcErrorreport/components/KcErrorreportIndexModal.vue'
|
||||
import { getUserId } from '/@/views/site/utils/index';
|
||||
import { getUserId, addTingKeLog } from '/@/views/site/utils/index';
|
||||
import addModalPage from '/@/views/site/tingKeZuJi/components/addModal.vue';
|
||||
import { useRouter } from 'vue-router'
|
||||
import dayjs from 'dayjs';
|
||||
|
@ -167,6 +167,7 @@ function handleBaocuo(item) {
|
|||
|
||||
function toLivePage(item){
|
||||
// route.push({ path:'/site/liveRoom',query:{ id: item.jsbh } })
|
||||
addTingKeLog(getUserId(),item.id);
|
||||
let routeData = route.resolve({ path:'/site/liveRoom',query:{ id: item.jsbh, ktId: item.id } });
|
||||
window.open(routeData.href, '_blank');
|
||||
};
|
||||
|
|
|
@ -83,7 +83,7 @@ import { ref,watch,reactive,defineExpose,onMounted } from 'vue';
|
|||
import { defHttp } from '/@/utils/http/axios';
|
||||
import { useMessage } from '/@/hooks/web/useMessage';
|
||||
import KcErrorreportIndexModal from '/@/views/kc/kcErrorreport/components/KcErrorreportIndexModal.vue'
|
||||
import { getUserId } from '/@/views/site/utils/index';
|
||||
import { addTingKeLog, getUserId } from '/@/views/site/utils/index';
|
||||
import addModalPage from '/@/views/site/tingKeZuJi/components/addModal.vue';
|
||||
import { useRouter } from 'vue-router'
|
||||
|
||||
|
@ -181,6 +181,8 @@ function funMore(){
|
|||
*/
|
||||
function toLivePage(item){
|
||||
// route.push({ path:'/site/liveRoom',query:{ id: item.jsbh } })
|
||||
//添加听课日志
|
||||
addTingKeLog(getUserId(),item.id);
|
||||
let routeData = route.resolve({ path:'/site/liveRoom',query:{ id: item.jsbh, ktId: item.id } });
|
||||
window.open(routeData.href, '_blank');
|
||||
};
|
||||
|
|
|
@ -96,3 +96,9 @@ export const execAvyApi = (url:string, cellback?):void => {
|
|||
// createMessage.success("操作成功");
|
||||
})
|
||||
}
|
||||
|
||||
export const addTingKeLog = (userid, kechengbiaoid) => {
|
||||
defHttp.post({ url: '/kcTingke/kcTingke/addTingKeLog', params: { userid, kechengbiaoid } }).then(res => {
|
||||
console.log('保存听课信息',res);
|
||||
});
|
||||
}
|
Loading…
Reference in New Issue