diff --git a/src/views/kc/kcZzThpjb/components/KcZzThpjbForm.vue b/src/views/kc/kcZzThpjb/components/KcZzThpjbForm.vue index 86983fd..e83bed0 100644 --- a/src/views/kc/kcZzThpjb/components/KcZzThpjbForm.vue +++ b/src/views/kc/kcZzThpjb/components/KcZzThpjbForm.vue @@ -2,9 +2,29 @@ - + + + + + + + + + + + + + + + + + 匹配课堂数据 + + + @@ -30,20 +50,7 @@ - - - - - - - - - - - - - - + diff --git a/src/views/kc/kcZzXstkb/components/KcZzXstkbForm.vue b/src/views/kc/kcZzXstkb/components/KcZzXstkbForm.vue index 9a7bd6b..8e65983 100644 --- a/src/views/kc/kcZzXstkb/components/KcZzXstkbForm.vue +++ b/src/views/kc/kcZzXstkb/components/KcZzXstkbForm.vue @@ -2,9 +2,26 @@ - - 匹配课堂数据 + + + + + + + + + + + + + + + + 匹配课堂数据 + + + @@ -30,21 +47,9 @@ - - - - - - - - - - - - - - + + diff --git a/src/views/kc/xxhbuser/Xxhbuser.api.ts b/src/views/kc/xxhbuser/Xxhbuser.api.ts new file mode 100644 index 0000000..8622741 --- /dev/null +++ b/src/views/kc/xxhbuser/Xxhbuser.api.ts @@ -0,0 +1,72 @@ +import { defHttp } from '/@/utils/http/axios'; +import { useMessage } from "/@/hooks/web/useMessage"; + +const { createConfirm } = useMessage(); + +enum Api { + list = '/xxhb/xxhbuser/list', + save='/xxhb/xxhbuser/add', + edit='/xxhb/xxhbuser/edit', + deleteOne = '/xxhb/xxhbuser/delete', + deleteBatch = '/xxhb/xxhbuser/deleteBatch', + importExcel = '/xxhb/xxhbuser/importExcel', + exportXls = '/xxhb/xxhbuser/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/xxhbuser/Xxhbuser.data.ts b/src/views/kc/xxhbuser/Xxhbuser.data.ts new file mode 100644 index 0000000..f4aa51b --- /dev/null +++ b/src/views/kc/xxhbuser/Xxhbuser.data.ts @@ -0,0 +1,85 @@ +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: 'gh' + }, + { + title: '姓名', + align: "center", + dataIndex: 'xm' + }, + { + title: '单位号', + align: "center", + dataIndex: 'dwh' + }, + { + title: '单位名称', + align: "center", + dataIndex: 'dwmc' + }, + { + title: '出生日期', + align: "center", + dataIndex: 'csrq' + }, + { + title: '在职状态', + align: "center", + dataIndex: 'zzzt_dictText' + }, +]; + +//查询数据 +export const searchFormSchema: FormSchema[] = [ +]; + +//表单数据 +export const formSchema: FormSchema[] = [ + { + label: '工号', + field: 'gh', + component: 'Input', + }, + { + label: '姓名', + field: 'xm', + component: 'Input', + }, + { + label: '单位号', + field: 'dwh', + component: 'Input', + }, + { + label: '单位名称', + field: 'dwmc', + component: 'Input', + }, + { + label: '出生日期', + field: 'csrq', + component: 'Input', + }, + { + label: '在职状态', + field: 'zzzt', + component: 'JDictSelectTag', + componentProps:{ + dictCode: "xxhbjzgdqzt,mc,dm" + }, + }, + // TODO 主键隐藏字段,目前写死为ID + { + label: '', + field: 'id', + component: 'Input', + show: false, + }, +]; diff --git a/src/views/kc/xxhbuser/XxhbuserList.vue b/src/views/kc/xxhbuser/XxhbuserList.vue new file mode 100644 index 0000000..266d0e3 --- /dev/null +++ b/src/views/kc/xxhbuser/XxhbuserList.vue @@ -0,0 +1,215 @@ + + + + + diff --git a/src/views/kc/xxhbuser/components/XxhbuserForm.vue b/src/views/kc/xxhbuser/components/XxhbuserForm.vue new file mode 100644 index 0000000..3dc1d9e --- /dev/null +++ b/src/views/kc/xxhbuser/components/XxhbuserForm.vue @@ -0,0 +1,158 @@ + + + + + diff --git a/src/views/kc/xxhbuser/components/XxhbuserModal.vue b/src/views/kc/xxhbuser/components/XxhbuserModal.vue new file mode 100644 index 0000000..f8cc778 --- /dev/null +++ b/src/views/kc/xxhbuser/components/XxhbuserModal.vue @@ -0,0 +1,75 @@ + + + + +