diff --git a/src/components/Form/src/jeecg/components/JDictSelectTag.vue b/src/components/Form/src/jeecg/components/JDictSelectTag.vue index a833c26..0e0ea5d 100644 --- a/src/components/Form/src/jeecg/components/JDictSelectTag.vue +++ b/src/components/Form/src/jeecg/components/JDictSelectTag.vue @@ -82,7 +82,7 @@ }, }, emits: ['options-change', 'change'], - setup(props, { emit, refs }) { + setup(props, { emit }) { const dictOptions = ref([]); const attrs = useAttrs(); const [state, , , formItemContext] = useRuleFormItem(props, 'value', 'change'); diff --git a/src/views/dashboard/Analysis/index.vue b/src/views/dashboard/Analysis/index.vue index 5ee4e92..9b8af67 100644 --- a/src/views/dashboard/Analysis/index.vue +++ b/src/views/dashboard/Analysis/index.vue @@ -1,24 +1,37 @@ - + + diff --git a/src/views/kc/index/htmain.vue b/src/views/kc/index/htmain.vue new file mode 100644 index 0000000..c96b9ea --- /dev/null +++ b/src/views/kc/index/htmain.vue @@ -0,0 +1,37 @@ + + + + + diff --git a/src/views/kc/index/tpkfgl/tpkfgl.vue b/src/views/kc/index/tpkfgl/tpkfgl.vue new file mode 100644 index 0000000..79d4dcd --- /dev/null +++ b/src/views/kc/index/tpkfgl/tpkfgl.vue @@ -0,0 +1,61 @@ + + + diff --git a/src/views/kc/index/tpkfgl/tpkfglTjt.vue b/src/views/kc/index/tpkfgl/tpkfglTjt.vue new file mode 100644 index 0000000..f287224 --- /dev/null +++ b/src/views/kc/index/tpkfgl/tpkfglTjt.vue @@ -0,0 +1,105 @@ + + diff --git a/src/views/kc/index/tpkqk/tpkqk.api.ts b/src/views/kc/index/tpkqk/tpkqk.api.ts new file mode 100644 index 0000000..7c2e7ef --- /dev/null +++ b/src/views/kc/index/tpkqk/tpkqk.api.ts @@ -0,0 +1,72 @@ +import { defHttp } from '/@/utils/http/axios'; +import { useMessage } from "/@/hooks/web/useMessage"; + +const { createConfirm } = useMessage(); + +enum Api { + list = '/kcTingke/kcTingke/getKkdwlist', + save='/kcTingke/kcTingke/add', + edit='/kcTingke/kcTingke/edit', + deleteOne = '/kcTingke/kcTingke/delete', + deleteBatch = '/kcTingke/kcTingke/deleteBatch', + importExcel = '/kcTingke/kcTingke/importExcel', + exportXls = '/kcTingke/kcTingke/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/index/tpkqk/tpkqk.data.ts b/src/views/kc/index/tpkqk/tpkqk.data.ts new file mode 100644 index 0000000..22ba4c7 --- /dev/null +++ b/src/views/kc/index/tpkqk/tpkqk.data.ts @@ -0,0 +1,94 @@ +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: '$no', + width: '50px', + customRender: (r) => { + return r.index+1; + } + }, + { + title: '开课单位', + align: "center", + dataIndex: 'kkdw' + }, + { + title: '开课课堂数', + align: "center", + dataIndex: 'kkkts' + }, + { + title: '听课课堂数', + children: [ + { + title: '总数', + dataIndex: 'tkkts', + key: 'tkkts', + }, + { + title: '本单位数', + dataIndex: 'bdwtks', + key: 'bdwtks', + }, + ], + }, + { + title: '评课课堂数', + children: [ + { + title: '总数', + dataIndex: 'pkkts', + key: 'pkkts', + }, + { + title: '本单位数', + dataIndex: 'bdwpks', + key: 'bdwpks', + }, + ], + }, + { + title: '听课人次数', + children: [ + { + title: '总人次数', + dataIndex: 'tkrcs', + key: 'tkrcs', + }, + { + title: '本单位人次数', + dataIndex: 'bdwtkrcs', + key: 'bdwtkrcs', + }, + ], + }, + { + title: '评课人次数', + children: [ + { + title: '总人次数', + dataIndex: 'pkrcs', + key: 'pkrcs', + }, + { + title: '本单位人次数', + dataIndex: 'bdwpkrcs', + key: 'bdwpkrcs', + }, + ], + }, +]; + +//查询数据 +export const searchFormSchema: FormSchema[] = [ +]; + +//表单数据 +export const formSchema: FormSchema[] = [ +]; diff --git a/src/views/kc/index/tpkqk/tpkqk.vue b/src/views/kc/index/tpkqk/tpkqk.vue new file mode 100644 index 0000000..cefd779 --- /dev/null +++ b/src/views/kc/index/tpkqk/tpkqk.vue @@ -0,0 +1,152 @@ + + + + + diff --git a/src/views/kc/index/tpkztj/tpkztj.vue b/src/views/kc/index/tpkztj/tpkztj.vue new file mode 100644 index 0000000..75596e4 --- /dev/null +++ b/src/views/kc/index/tpkztj/tpkztj.vue @@ -0,0 +1,66 @@ + + + diff --git a/src/views/kc/index/tpkztj/tpkztjTjt.vue b/src/views/kc/index/tpkztj/tpkztjTjt.vue new file mode 100644 index 0000000..f287224 --- /dev/null +++ b/src/views/kc/index/tpkztj/tpkztjTjt.vue @@ -0,0 +1,105 @@ + + diff --git a/src/views/kc/tktj/tkfgl/tkfgl.vue b/src/views/kc/tktj/tkfgl/tkfgl.vue index 8c79a48..734136a 100644 --- a/src/views/kc/tktj/tkfgl/tkfgl.vue +++ b/src/views/kc/tktj/tkfgl/tkfgl.vue @@ -1,7 +1,7 @@