diff --git a/src/views/kc/kcErrorreport/KcErrorreport.api.ts b/src/views/kc/kcErrorreport/KcErrorreport.api.ts new file mode 100644 index 0000000..d2dd96c --- /dev/null +++ b/src/views/kc/kcErrorreport/KcErrorreport.api.ts @@ -0,0 +1,72 @@ +import { defHttp } from '/@/utils/http/axios'; +import { useMessage } from "/@/hooks/web/useMessage"; + +const { createConfirm } = useMessage(); + +enum Api { + list = '/kcErrorreport/kcErrorreport/list', + save='/kcErrorreport/kcErrorreport/add', + edit='/kcErrorreport/kcErrorreport/edit', + deleteOne = '/kcErrorreport/kcErrorreport/delete', + deleteBatch = '/kcErrorreport/kcErrorreport/deleteBatch', + importExcel = '/kcErrorreport/kcErrorreport/importExcel', + exportXls = '/kcErrorreport/kcErrorreport/exportXls', +} + +/** + * 导出api + * @param params + */ +export const getExportUrl = Api.exportXls; + +/** + * 导入api + */ +export const getImportUrl = Api.importExcel; + +/** + * 列表接口 + * @param params + */ +export const list = (params) => defHttp.get({ url: Api.list, params }); + +/** + * 删除单个 + * @param params + * @param handleSuccess + */ +export const deleteOne = (params,handleSuccess) => { + return defHttp.delete({url: Api.deleteOne, params}, {joinParamsToUrl: true}).then(() => { + handleSuccess(); + }); +} + +/** + * 批量删除 + * @param params + * @param handleSuccess + */ +export const batchDelete = (params, handleSuccess) => { + createConfirm({ + iconType: 'warning', + title: '确认删除', + content: '是否删除选中数据', + okText: '确认', + cancelText: '取消', + onOk: () => { + return defHttp.delete({url: Api.deleteBatch, data: params}, {joinParamsToUrl: true}).then(() => { + handleSuccess(); + }); + } + }); +} + +/** + * 保存或者更新 + * @param params + * @param isUpdate + */ +export const saveOrUpdate = (params, isUpdate) => { + let url = isUpdate ? Api.edit : Api.save; + return defHttp.post({ url: url, params }, { isTransformResponse: false }); +} diff --git a/src/views/kc/kcErrorreport/KcErrorreport.data.ts b/src/views/kc/kcErrorreport/KcErrorreport.data.ts new file mode 100644 index 0000000..0d0df93 --- /dev/null +++ b/src/views/kc/kcErrorreport/KcErrorreport.data.ts @@ -0,0 +1,123 @@ +import {BasicColumn} from '/@/components/Table'; +import {FormSchema} from '/@/components/Table'; +import { rules} from '/@/utils/helper/validator'; +import { render } from '/@/utils/common/renderUtils'; +//列表数据 +export const columns: BasicColumn[] = [ + { + title: '报错人', + align: "center", + dataIndex: 'subper' + }, + { + title: '错误类型', + align: "center", + dataIndex: 'optionsradios_dictText' + }, + { + title: '会议号', + align: "center", + dataIndex: 'meetingnum' + }, + { + title: '会议密码', + align: "center", + dataIndex: 'meetingpsw' + }, + { + title: '会议邀请链接', + align: "center", + dataIndex: 'meetinglink' + }, + { + title: '修改类型:0-本堂课修改,1-', + align: "center", + dataIndex: 'edittype_dictText' + }, + { + title: '是否修改:0-未修改,1-已修改', + align: "center", + dataIndex: 'ismodified' + }, + { + title: '课程的上课日期', + align: "center", + dataIndex: 'skrq' + }, + { + title: '是否出镜,0-出镜,1-不出镜', + align: "center", + dataIndex: 'sfcj' + }, +]; + +//查询数据 +export const searchFormSchema: FormSchema[] = [ +]; + +//表单数据 +export const formSchema: FormSchema[] = [ + { + label: '错误类型', + field: 'optionsradios', + component: 'JDictSelectTag', + componentProps:{ + dictCode: "optionsradios" + }, + dynamicRules: ({model,schema}) => { + return [ + { required: true, message: '请输入错误类型!'}, + ]; + }, + }, + { + label: '会议号', + field: 'meetingnum', + component: 'Input', + }, + { + label: '会议密码', + field: 'meetingpsw', + component: 'Input', + }, + { + label: '会议邀请链接', + field: 'meetinglink', + component: 'Input', + }, + { + label: '修改类型:0-本堂课修改,1-', + field: 'edittype', + component: 'JDictSelectTag', + componentProps:{ + dictCode: "edittype" + }, + dynamicRules: ({model,schema}) => { + return [ + { required: true, message: '请输入修改类型:0-本堂课修改,1-!'}, + ]; + }, + }, + { + label: '是否修改:0-未修改,1-已修改', + field: 'ismodified', + component: 'InputNumber', + }, + { + label: '课程的上课日期', + field: 'skrq', + component: 'Input', + }, + { + label: '是否出镜,0-出镜,1-不出镜', + field: 'sfcj', + component: 'InputNumber', + }, + // TODO 主键隐藏字段,目前写死为ID + { + label: '', + field: 'id', + component: 'Input', + show: false, + }, +]; diff --git a/src/views/kc/kcErrorreport/KcErrorreportList.vue b/src/views/kc/kcErrorreport/KcErrorreportList.vue new file mode 100644 index 0000000..d851e3c --- /dev/null +++ b/src/views/kc/kcErrorreport/KcErrorreportList.vue @@ -0,0 +1,215 @@ + + + + + diff --git a/src/views/kc/kcErrorreport/components/KcErrorreportForm.vue b/src/views/kc/kcErrorreport/components/KcErrorreportForm.vue new file mode 100644 index 0000000..d92a837 --- /dev/null +++ b/src/views/kc/kcErrorreport/components/KcErrorreportForm.vue @@ -0,0 +1,172 @@ + + + + + diff --git a/src/views/kc/kcErrorreport/components/KcErrorreportIndexForm.vue b/src/views/kc/kcErrorreport/components/KcErrorreportIndexForm.vue new file mode 100644 index 0000000..d62d5c4 --- /dev/null +++ b/src/views/kc/kcErrorreport/components/KcErrorreportIndexForm.vue @@ -0,0 +1,167 @@ + + + + + diff --git a/src/views/kc/kcErrorreport/components/KcErrorreportIndexModal.vue b/src/views/kc/kcErrorreport/components/KcErrorreportIndexModal.vue new file mode 100644 index 0000000..9aa0ba0 --- /dev/null +++ b/src/views/kc/kcErrorreport/components/KcErrorreportIndexModal.vue @@ -0,0 +1,78 @@ + + + + + diff --git a/src/views/kc/kcErrorreport/components/KcErrorreportModal.vue b/src/views/kc/kcErrorreport/components/KcErrorreportModal.vue new file mode 100644 index 0000000..307119f --- /dev/null +++ b/src/views/kc/kcErrorreport/components/KcErrorreportModal.vue @@ -0,0 +1,75 @@ + + + + + diff --git a/src/views/kc/kcYuyue/KcYuyue.api.ts b/src/views/kc/kcYuyue/KcYuyue.api.ts new file mode 100644 index 0000000..5836dc5 --- /dev/null +++ b/src/views/kc/kcYuyue/KcYuyue.api.ts @@ -0,0 +1,72 @@ +import { defHttp } from '/@/utils/http/axios'; +import { useMessage } from "/@/hooks/web/useMessage"; + +const { createConfirm } = useMessage(); + +enum Api { + list = '/kcYuyue/kcYuyue/list', + save='/kcYuyue/kcYuyue/add', + edit='/kcYuyue/kcYuyue/edit', + deleteOne = '/kcYuyue/kcYuyue/delete', + deleteBatch = '/kcYuyue/kcYuyue/deleteBatch', + importExcel = '/kcYuyue/kcYuyue/importExcel', + exportXls = '/kcYuyue/kcYuyue/exportXls', +} + +/** + * 导出api + * @param params + */ +export const getExportUrl = Api.exportXls; + +/** + * 导入api + */ +export const getImportUrl = Api.importExcel; + +/** + * 列表接口 + * @param params + */ +export const list = (params) => defHttp.get({ url: Api.list, params }); + +/** + * 删除单个 + * @param params + * @param handleSuccess + */ +export const deleteOne = (params,handleSuccess) => { + return defHttp.delete({url: Api.deleteOne, params}, {joinParamsToUrl: true}).then(() => { + handleSuccess(); + }); +} + +/** + * 批量删除 + * @param params + * @param handleSuccess + */ +export const batchDelete = (params, handleSuccess) => { + createConfirm({ + iconType: 'warning', + title: '确认删除', + content: '是否删除选中数据', + okText: '确认', + cancelText: '取消', + onOk: () => { + return defHttp.delete({url: Api.deleteBatch, data: params}, {joinParamsToUrl: true}).then(() => { + handleSuccess(); + }); + } + }); +} + +/** + * 保存或者更新 + * @param params + * @param isUpdate + */ +export const saveOrUpdate = (params, isUpdate) => { + let url = isUpdate ? Api.edit : Api.save; + return defHttp.post({ url: url, params }, { isTransformResponse: false }); +} diff --git a/src/views/kc/kcYuyue/KcYuyue.data.ts b/src/views/kc/kcYuyue/KcYuyue.data.ts new file mode 100644 index 0000000..068682d --- /dev/null +++ b/src/views/kc/kcYuyue/KcYuyue.data.ts @@ -0,0 +1,102 @@ +import {BasicColumn} from '/@/components/Table'; +import {FormSchema} from '/@/components/Table'; +import { rules} from '/@/utils/helper/validator'; +import { render } from '/@/utils/common/renderUtils'; +//列表数据 +export const columns: BasicColumn[] = [ + { + title: '课堂表id', + align: "center", + dataIndex: 'ketangbiaoid' + }, + { + title: '账号', + align: "center", + dataIndex: 'userid' + }, + { + title: '用户名', + align: "center", + dataIndex: 'username' + }, + { + title: '授课日期', + align: "center", + dataIndex: 'skrq' + }, + { + title: '节次', + align: "center", + dataIndex: 'hh' + }, + { + title: '直播平台', + align: "center", + dataIndex: 'zbpx' + }, + { + title: '链接', + align: "center", + dataIndex: 'link' + }, + { + title: '是否删除', + align: "center", + dataIndex: 'isdeleted' + }, +]; + +//查询数据 +export const searchFormSchema: FormSchema[] = [ +]; + +//表单数据 +export const formSchema: FormSchema[] = [ + { + label: '课堂表id', + field: 'ketangbiaoid', + component: 'InputNumber', + }, + { + label: '账号', + field: 'userid', + component: 'InputNumber', + }, + { + label: '用户名', + field: 'username', + component: 'Input', + }, + { + label: '授课日期', + field: 'skrq', + component: 'Input', + }, + { + label: '节次', + field: 'hh', + component: 'Input', + }, + { + label: '直播平台', + field: 'zbpx', + component: 'Input', + }, + { + label: '链接', + field: 'link', + component: 'Input', + }, + { + label: '是否删除', + field: 'isdeleted', + component: 'InputNumber', + }, + // TODO 主键隐藏字段,目前写死为ID + { + label: '', + field: 'id', + component: 'Input', + show: false, + }, +]; diff --git a/src/views/kc/kcYuyue/KcYuyueList.vue b/src/views/kc/kcYuyue/KcYuyueList.vue new file mode 100644 index 0000000..5149d1d --- /dev/null +++ b/src/views/kc/kcYuyue/KcYuyueList.vue @@ -0,0 +1,215 @@ + + + + + diff --git a/src/views/kc/kcYuyue/components/KcYuyueForm.vue b/src/views/kc/kcYuyue/components/KcYuyueForm.vue new file mode 100644 index 0000000..a094f6a --- /dev/null +++ b/src/views/kc/kcYuyue/components/KcYuyueForm.vue @@ -0,0 +1,169 @@ + + + + + diff --git a/src/views/kc/kcYuyue/components/KcYuyueModal.vue b/src/views/kc/kcYuyue/components/KcYuyueModal.vue new file mode 100644 index 0000000..81a98b0 --- /dev/null +++ b/src/views/kc/kcYuyue/components/KcYuyueModal.vue @@ -0,0 +1,75 @@ + + + + + diff --git a/src/views/site/jrkclb/kclbList.vue b/src/views/site/jrkclb/kclbList.vue index 7a98982..ff20d6c 100644 --- a/src/views/site/jrkclb/kclbList.vue +++ b/src/views/site/jrkclb/kclbList.vue @@ -15,7 +15,7 @@
{{ item.skjs }}
-
{{ item.kcxz }}
+
{{ item.kkdw }}
{{ item.xkrs }}
@@ -35,41 +35,109 @@
{{ item.skdd }}
-
+ - 预约 - 报错 + + 已预约 + 预约 + 报错
+ + + + diff --git a/src/views/site/jrkclb/kclbRkb.vue b/src/views/site/jrkclb/kclbRkb.vue index 4910390..eb9c866 100644 --- a/src/views/site/jrkclb/kclbRkb.vue +++ b/src/views/site/jrkclb/kclbRkb.vue @@ -10,13 +10,13 @@ - - + @@ -39,7 +39,7 @@ @@ -69,24 +69,31 @@ import { defHttp } from '/@/utils/http/axios'; const rkbActiveKey = ref('1'); const jclist = (queryParam) => defHttp.get({ url: '/kcJieci/kcJieci/getIndexJcList', params:queryParam }); const queryParam = ref({}); -const xxkcqueryParam = ref({}); -const txhyqueryParam = ref({}); +const xxkcqueryParam = ref({skxs:1}); +const txhyqueryParam = ref({zbpx:1}); const xxkcTotal = ref(0); const txhyTotal = ref(0); function rkbLoadData() { //----------------------线下课程------------------- xxkcqueryParam.value.skrq = queryParam.value.ywTime - xxkcqueryParam.value.hh = queryParam.value.jieci+","+queryParam.value.jieci.split("、").join(',') + if(queryParam.value.jieci){ + console.log(`🚀 ~ file: kclbRkb.vue:80 ~ rkbLoadData ~ queryParam.value.jieci:`, queryParam.value.jieci) + xxkcqueryParam.value.hh = queryParam.value.jieci+","+queryParam.value.jieci.split("、").join(',') + } xxkcqueryParam.value.kkdw = queryParam.value.kkdw xxkcqueryParam.value.ywmc = queryParam.value.ywmc - xxkcqueryParam.value.skxs = 1 + xxkcqueryParam.value.kcxz = queryParam.value.kcxz + xxkcqueryParam.value.skxs = '1' //----------------------腾讯会议------------------- txhyqueryParam.value.skrq = queryParam.value.ywTime - txhyqueryParam.value.hh = queryParam.value.jieci+","+queryParam.value.jieci.split("、").join(',') + if(queryParam.value.jieci){ + txhyqueryParam.value.hh = queryParam.value.jieci+","+queryParam.value.jieci.split("、").join(',') + } txhyqueryParam.value.kkdw = queryParam.value.kkdw txhyqueryParam.value.ywmc = queryParam.value.ywmc - txhyqueryParam.value.zbpx = 1 + txhyqueryParam.value.kcxz = queryParam.value.kcxz + txhyqueryParam.value.zbpx ='1' txhyqueryParam.value.ywskxs = '1' } //进入就加载 @@ -94,8 +101,10 @@ onMounted(() => { jclist(queryParam.value).then(res=>{ var list = res queryParam.value.ywTime = list[1].kssj + // queryParam.value.jieci = list[1].jieci console.log(`🚀 ~ file: kclbZzsk.vue:64 ~ list ~ queryParam:`, queryParam) rkbLoadData() }) }); + diff --git a/src/views/site/jrkclb/kclbXyjk.vue b/src/views/site/jrkclb/kclbXyjk.vue index 4f77914..73ebb4f 100644 --- a/src/views/site/jrkclb/kclbXyjk.vue +++ b/src/views/site/jrkclb/kclbXyjk.vue @@ -73,7 +73,7 @@ function rkbLoadData() { txhyqueryParam.value.kkdw = queryParam.value.kkdw txhyqueryParam.value.ywmc = queryParam.value.ywmc txhyqueryParam.value.zbpx ='1' - txhyqueryParam.value.skxs = '!1' + txhyqueryParam.value.ywskxs = '1' } //进入就加载 onMounted(() => {