diff --git a/src/router/routes/modules/site/site.ts b/src/router/routes/modules/site/site.ts index 07ed1ee..36ccf9d 100644 --- a/src/router/routes/modules/site/site.ts +++ b/src/router/routes/modules/site/site.ts @@ -114,22 +114,22 @@ const site: AppRouteModule = { title: '东北师范大学本科课堂教学质量评价表', }, }, - { - path: 'liveView', - name: 'LiveBroadcastRoom', - component: () => import('/@/views/site/common/webRTC/index.vue'), - meta: { - title: '直播rtsp', - } - }, - { - path: 'liveFlvView', - name: 'LiveFlvBroadcastRoom', - component: () => import('/@/views/site/common/video/flvjs/index.vue'), - meta: { - title: '直播flv.js', - } - }, + // { + // path: 'liveView', + // name: 'LiveBroadcastRoom', + // component: () => import('/@/views/site/common/webRTC/index.vue'), + // meta: { + // title: '直播rtsp', + // } + // }, + // { + // path: 'liveFlvView', + // name: 'LiveFlvBroadcastRoom', + // component: () => import('/@/views/site/common/video/flvjs/index.vue'), + // meta: { + // title: '直播flv.js', + // } + // }, { path: 'livem3u8View', name: 'Live3u8BroadcastRoom', diff --git a/src/settings/registerThirdComp.ts b/src/settings/registerThirdComp.ts index 2001a45..6010878 100644 --- a/src/settings/registerThirdComp.ts +++ b/src/settings/registerThirdComp.ts @@ -3,9 +3,9 @@ import { registerJVxeTable } from '/@/components/jeecg/JVxeTable'; import { registerJVxeCustom } from '/@/components/JVxeCustom'; // 注册全局聊天表情包 -import { Picker } from 'emoji-mart-vue-fast/src'; -import { EmojiIndex } from "emoji-mart-vue-fast/src"; -import data from "emoji-mart-vue-fast/data/apple.json"; +// import { Picker } from 'emoji-mart-vue-fast/src'; +// import { EmojiIndex } from "emoji-mart-vue-fast/src"; +// import data from "emoji-mart-vue-fast/data/apple.json"; // 注册全局dayjs import dayjs from 'dayjs'; @@ -19,15 +19,15 @@ export async function registerThirdComp(app: App) { await registerJVxeCustom(); //--------------------------------------------------------------------- // 注册全局聊天表情包 - app.component('Picker', Picker); - let myEmojiIndex = new EmojiIndex(data, { - function() { - return true; - }, - exclude:['recent','people','nature','foods','activity','places','objects','symbols','flags'] - }); - app.config.globalProperties.$globalEmojiIndex = myEmojiIndex - app.provide('$globalEmojiIndex', myEmojiIndex) + // app.component('Picker', Picker); + // let myEmojiIndex = new EmojiIndex(data, { + // function() { + // return true; + // }, + // exclude:['recent','people','nature','foods','activity','places','objects','symbols','flags'] + // }); + // app.config.globalProperties.$globalEmojiIndex = myEmojiIndex + // app.provide('$globalEmojiIndex', myEmojiIndex) //--------------------------------------------------------------------- // 注册全局dayjs dayjs.locale('zh-cn'); diff --git a/src/views/kc/config/KcExportConfigTpkwcqkjzglx.api.ts b/src/views/kc/config/KcExportConfigTpkwcqkjzglx.api.ts new file mode 100644 index 0000000..c979745 --- /dev/null +++ b/src/views/kc/config/KcExportConfigTpkwcqkjzglx.api.ts @@ -0,0 +1,72 @@ +import { defHttp } from '/@/utils/http/axios'; +import { useMessage } from "/@/hooks/web/useMessage"; + +const { createConfirm } = useMessage(); + +enum Api { + list = '/config/kcExportConfigTpkwcqkjzglx/list', + save='/config/kcExportConfigTpkwcqkjzglx/add', + edit='/config/kcExportConfigTpkwcqkjzglx/edit', + deleteOne = '/config/kcExportConfigTpkwcqkjzglx/delete', + deleteBatch = '/config/kcExportConfigTpkwcqkjzglx/deleteBatch', + importExcel = '/config/kcExportConfigTpkwcqkjzglx/importExcel', + exportXls = '/config/kcExportConfigTpkwcqkjzglx/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/config/KcExportConfigTpkwcqkjzglx.data.ts b/src/views/kc/config/KcExportConfigTpkwcqkjzglx.data.ts new file mode 100644 index 0000000..5954742 --- /dev/null +++ b/src/views/kc/config/KcExportConfigTpkwcqkjzglx.data.ts @@ -0,0 +1,71 @@ +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: 'dwmc' + }, + { + title: '教师', + align: "center", + dataIndex: 'gh_dictText' + }, + { + title: '听课类型', + align: "center", + dataIndex: 'tklx_dictText' + }, +]; + +//查询数据 +export const searchFormSchema: FormSchema[] = [ + { + label: "教师", + field: 'gh', + component: 'JDictSelectTag', + componentProps:{ + dictCode: "xxhbuser,xm,gh" + }, + colProps: {span: 6}, + }, + { + label: "听课类型", + field: 'tklx', + component: 'JDictSelectTag', + componentProps:{ + dictCode: "tpkwcqkjzglx" + }, + colProps: {span: 6}, + }, +]; + +//表单数据 +export const formSchema: FormSchema[] = [ + { + label: '教师', + field: 'gh', + component: 'JDictSelectTag', + componentProps:{ + dictCode: "xxhbuser,xm,gh" + }, + }, + { + label: '听课类型', + field: 'tklx', + component: 'JDictSelectTag', + componentProps:{ + dictCode: "tpkwcqkjzglx" + }, + }, + // TODO 主键隐藏字段,目前写死为ID + { + label: '', + field: 'id', + component: 'Input', + show: false, + }, +]; diff --git a/src/views/kc/config/KcExportConfigTpkwcqkjzglxList.vue b/src/views/kc/config/KcExportConfigTpkwcqkjzglxList.vue new file mode 100644 index 0000000..cc6526c --- /dev/null +++ b/src/views/kc/config/KcExportConfigTpkwcqkjzglxList.vue @@ -0,0 +1,285 @@ + + + + + diff --git a/src/views/kc/config/components/KcExportConfigTpkwcqkjzglxForm.vue b/src/views/kc/config/components/KcExportConfigTpkwcqkjzglxForm.vue new file mode 100644 index 0000000..ec5954d --- /dev/null +++ b/src/views/kc/config/components/KcExportConfigTpkwcqkjzglxForm.vue @@ -0,0 +1,140 @@ + + + + + diff --git a/src/views/kc/config/components/KcExportConfigTpkwcqkjzglxModal.vue b/src/views/kc/config/components/KcExportConfigTpkwcqkjzglxModal.vue new file mode 100644 index 0000000..e85b7ac --- /dev/null +++ b/src/views/kc/config/components/KcExportConfigTpkwcqkjzglxModal.vue @@ -0,0 +1,75 @@ + + + + +