diff --git a/jeecgboot-vue3-master/src/views/annualcompgroup/AnnualCompGroup.api.ts b/jeecgboot-vue3-master/src/views/annualcompgroup/AnnualCompGroup.api.ts new file mode 100644 index 00000000..9137c820 --- /dev/null +++ b/jeecgboot-vue3-master/src/views/annualcompgroup/AnnualCompGroup.api.ts @@ -0,0 +1,75 @@ +import { defHttp } from '/@/utils/http/axios'; +import { useMessage } from "/@/hooks/web/useMessage"; + +const { createConfirm } = useMessage(); + +enum Api { + list = '/annualcompgroup/annualCompGroup/list', + save='/annualcompgroup/annualCompGroup/add', + edit='/annualcompgroup/annualCompGroup/edit', + deleteOne = '/annualcompgroup/annualCompGroup/delete', + deleteBatch = '/annualcompgroup/annualCompGroup/deleteBatch', + importExcel = '/annualcompgroup/annualCompGroup/importExcel', + exportXls = '/annualcompgroup/annualCompGroup/exportXls', + queryCompId = '/annualcompgroup/annualCompGroup/queryCompId', +} + +/** + * 导出api + * @param params + */ +export const getExportUrl = Api.exportXls; + +/** + * 导入api + */ +export const getImportUrl = Api.importExcel; + +export const queryCompId = (params) => defHttp.get({ url: Api.queryCompId, params }, { successMessageMode: 'none' }); + +/** + * 列表接口 + * @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/jeecgboot-vue3-master/src/views/annualcompgroup/AnnualCompGroup.data.ts b/jeecgboot-vue3-master/src/views/annualcompgroup/AnnualCompGroup.data.ts new file mode 100644 index 00000000..de2f3f02 --- /dev/null +++ b/jeecgboot-vue3-master/src/views/annualcompgroup/AnnualCompGroup.data.ts @@ -0,0 +1,107 @@ +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: 'annal_dictText' + }, + { + title: '年度比赛', + align: "center", + dataIndex: 'annalComp_dictText' + }, + { + title: '年度比赛项目', + align: "center", + dataIndex: 'annCompP_dictText' + }, + { + title: '小组名称', + align: "center", + dataIndex: 'name' + }, +]; + +//查询数据 +export const searchFormSchema: FormSchema[] = [ + { + label: "年度", + field: 'annal', + component: 'JDictSelectTag', + componentProps:{ + dictCode: "annual,annual_name,id" + }, + colProps: {span: 6}, + }, + { + label: "小组名称", + field: 'name', + component: 'Input', + colProps: {span: 6}, + }, +]; + +//表单数据 +export const formSchema: FormSchema[] = [ + { + label: '年度', + field: 'annal', + component: 'JDictSelectTag', + componentProps:{ + dictCode: "annual,annual_name,id" + }, + dynamicRules: ({model,schema}) => { + return [ + { required: true, message: '请输入年度!'}, + ]; + }, + }, + { + label: '年度比赛', + field: 'annalComp', + component: 'JSearchSelect', + componentProps:{ + dict: "annual_comp,name,id" + }, + dynamicRules: ({model,schema}) => { + return [ + { required: true, message: '请输入年度比赛!'}, + ]; + }, + }, + { + label: '年度比赛项目', + field: 'annCompP', + component: 'JSearchSelect', + componentProps:{ + dict: "annual_comp_point,obj_name,id" + }, + dynamicRules: ({model,schema}) => { + return [ + { required: true, message: '请输入年度比赛项目!'}, + ]; + }, + }, + { + label: '小组名称', + field: 'name', + component: 'Input', + dynamicRules: ({model,schema}) => { + return [ + { required: true, message: '请输入小组名称!'}, + ]; + }, + }, + + // TODO 主键隐藏字段,目前写死为ID + { + label: '', + field: 'id', + component: 'Input', + show: false, + }, +]; diff --git a/jeecgboot-vue3-master/src/views/annualcompgroup/AnnualCompGroupList.vue b/jeecgboot-vue3-master/src/views/annualcompgroup/AnnualCompGroupList.vue new file mode 100644 index 00000000..8cac3c88 --- /dev/null +++ b/jeecgboot-vue3-master/src/views/annualcompgroup/AnnualCompGroupList.vue @@ -0,0 +1,256 @@ + + + + + diff --git a/jeecgboot-vue3-master/src/views/annualcompgroup/AnnualCompGroup_menu_insert.sql b/jeecgboot-vue3-master/src/views/annualcompgroup/AnnualCompGroup_menu_insert.sql new file mode 100644 index 00000000..97be7162 --- /dev/null +++ b/jeecgboot-vue3-master/src/views/annualcompgroup/AnnualCompGroup_menu_insert.sql @@ -0,0 +1,26 @@ +-- 注意:该页面对应的前台目录为views/annualcompgroup文件夹下 +-- 如果你想更改到其他目录,请修改sql中component字段对应的值 + + +INSERT INTO sys_permission(id, parent_id, name, url, component, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_route, is_leaf, keep_alive, hidden, hide_tab, description, status, del_flag, rule_flag, create_by, create_time, update_by, update_time, internal_or_external) +VALUES ('2023101302319980100', NULL, '年度比赛项目专家小组', '/annualcompgroup/annualCompGroupList', 'annualcompgroup/AnnualCompGroupList', NULL, NULL, 0, NULL, '1', 0.00, 0, NULL, 1, 0, 0, 0, 0, NULL, '1', 0, 0, 'admin', '2023-10-13 14:31:10', NULL, NULL, 0); + +-- 权限控制sql +-- 新增 +INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) +VALUES ('2023101302319990101', '2023101302319980100', '添加年度比赛项目专家小组', NULL, NULL, 0, NULL, NULL, 2, 'annualcompgroup:annual_comp_group:add', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-10-13 14:31:10', NULL, NULL, 0, 0, '1', 0); +-- 编辑 +INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) +VALUES ('2023101302319990102', '2023101302319980100', '编辑年度比赛项目专家小组', NULL, NULL, 0, NULL, NULL, 2, 'annualcompgroup:annual_comp_group:edit', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-10-13 14:31:10', NULL, NULL, 0, 0, '1', 0); +-- 删除 +INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) +VALUES ('2023101302319990103', '2023101302319980100', '删除年度比赛项目专家小组', NULL, NULL, 0, NULL, NULL, 2, 'annualcompgroup:annual_comp_group:delete', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-10-13 14:31:10', NULL, NULL, 0, 0, '1', 0); +-- 批量删除 +INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) +VALUES ('2023101302319990104', '2023101302319980100', '批量删除年度比赛项目专家小组', NULL, NULL, 0, NULL, NULL, 2, 'annualcompgroup:annual_comp_group:deleteBatch', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-10-13 14:31:10', NULL, NULL, 0, 0, '1', 0); +-- 导出excel +INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) +VALUES ('2023101302319990105', '2023101302319980100', '导出excel_年度比赛项目专家小组', NULL, NULL, 0, NULL, NULL, 2, 'annualcompgroup:annual_comp_group:exportXls', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-10-13 14:31:10', NULL, NULL, 0, 0, '1', 0); +-- 导入excel +INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) +VALUES ('2023101302319990106', '2023101302319980100', '导入excel_年度比赛项目专家小组', NULL, NULL, 0, NULL, NULL, 2, 'annualcompgroup:annual_comp_group:importExcel', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-10-13 14:31:10', NULL, NULL, 0, 0, '1', 0); \ No newline at end of file diff --git a/jeecgboot-vue3-master/src/views/annualcompgroup/components/AnnualCompGroupForm.vue b/jeecgboot-vue3-master/src/views/annualcompgroup/components/AnnualCompGroupForm.vue new file mode 100644 index 00000000..0e0f3424 --- /dev/null +++ b/jeecgboot-vue3-master/src/views/annualcompgroup/components/AnnualCompGroupForm.vue @@ -0,0 +1,170 @@ + + + + + diff --git a/jeecgboot-vue3-master/src/views/annualcompgroup/components/AnnualCompGroupModal.vue b/jeecgboot-vue3-master/src/views/annualcompgroup/components/AnnualCompGroupModal.vue new file mode 100644 index 00000000..cb4d0b2d --- /dev/null +++ b/jeecgboot-vue3-master/src/views/annualcompgroup/components/AnnualCompGroupModal.vue @@ -0,0 +1,75 @@ + + + + + diff --git a/jeecgboot-vue3-master/src/views/expgroup/ExpGroup.api.ts b/jeecgboot-vue3-master/src/views/expgroup/ExpGroup.api.ts new file mode 100644 index 00000000..441bbeaf --- /dev/null +++ b/jeecgboot-vue3-master/src/views/expgroup/ExpGroup.api.ts @@ -0,0 +1,83 @@ +import { defHttp } from '/@/utils/http/axios'; +import { useMessage } from "/@/hooks/web/useMessage"; + +const { createConfirm } = useMessage(); + +enum Api { + list = '/expgroup/expGroup/list', + save='/expgroup/expGroup/add', + edit='/expgroup/expGroup/edit', + deleteOne = '/expgroup/expGroup/delete', + deleteBatch = '/expgroup/expGroup/deleteBatch', + importExcel = '/expgroup/expGroup/importExcel', + exportXls = '/expgroup/expGroup/exportXls', + szOne = '/expgroup/expGroup/szOne', +} + +/** + * 导出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 szOne = (params,handleSuccess) => { + return defHttp.get({url: Api.szOne, 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/jeecgboot-vue3-master/src/views/expgroup/ExpGroup.data.ts b/jeecgboot-vue3-master/src/views/expgroup/ExpGroup.data.ts new file mode 100644 index 00000000..f1c08230 --- /dev/null +++ b/jeecgboot-vue3-master/src/views/expgroup/ExpGroup.data.ts @@ -0,0 +1,63 @@ +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: 'grouid_dictText' + }, + { + title: '是否队长', + align: "center", + dataIndex: 'islead', + customRender:({text}) => { + return render.renderSwitch(text, [{text:'是',value:'Y'},{text:'否',value:'N'}]); + }, + }, + { + title: '年度比赛项目专家小组', + align: "center", + dataIndex: 'annCompGroupid_dictText' + }, +]; + +//查询数据 +export const searchFormSchema: FormSchema[] = [ +]; + +//表单数据 +export const formSchema: FormSchema[] = [ + { + label: '成员', + field: 'grouid', + component: 'JDictSelectTag', + componentProps:{ + dictCode: "expert,name,id" + }, + }, + { + label: '是否队长', + field: 'islead', + component: 'JSwitch', + componentProps:{ + }, + }, + { + label: '年度比赛项目专家小组', + field: 'annCompGroupid', + component: 'JDictSelectTag', + componentProps:{ + dictCode: "annual_comp_group,name,id" + }, + }, + // TODO 主键隐藏字段,目前写死为ID + { + label: '', + field: 'id', + component: 'Input', + show: false, + }, +]; diff --git a/jeecgboot-vue3-master/src/views/expgroup/ExpGroupList.vue b/jeecgboot-vue3-master/src/views/expgroup/ExpGroupList.vue new file mode 100644 index 00000000..dd61d888 --- /dev/null +++ b/jeecgboot-vue3-master/src/views/expgroup/ExpGroupList.vue @@ -0,0 +1,243 @@ + + + + + diff --git a/jeecgboot-vue3-master/src/views/expgroup/ExpGroup_menu_insert.sql b/jeecgboot-vue3-master/src/views/expgroup/ExpGroup_menu_insert.sql new file mode 100644 index 00000000..aca8b57d --- /dev/null +++ b/jeecgboot-vue3-master/src/views/expgroup/ExpGroup_menu_insert.sql @@ -0,0 +1,26 @@ +-- 注意:该页面对应的前台目录为views/expgroup文件夹下 +-- 如果你想更改到其他目录,请修改sql中component字段对应的值 + + +INSERT INTO sys_permission(id, parent_id, name, url, component, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_route, is_leaf, keep_alive, hidden, hide_tab, description, status, del_flag, rule_flag, create_by, create_time, update_by, update_time, internal_or_external) +VALUES ('2023101604071330060', NULL, '专家组成员', '/expgroup/expGroupList', 'expgroup/ExpGroupList', NULL, NULL, 0, NULL, '1', 0.00, 0, NULL, 1, 0, 0, 0, 0, NULL, '1', 0, 0, 'admin', '2023-10-16 16:07:06', NULL, NULL, 0); + +-- 权限控制sql +-- 新增 +INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) +VALUES ('2023101604071340061', '2023101604071330060', '添加专家组成员', NULL, NULL, 0, NULL, NULL, 2, 'expgroup:exp_group:add', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-10-16 16:07:06', NULL, NULL, 0, 0, '1', 0); +-- 编辑 +INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) +VALUES ('2023101604071340062', '2023101604071330060', '编辑专家组成员', NULL, NULL, 0, NULL, NULL, 2, 'expgroup:exp_group:edit', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-10-16 16:07:06', NULL, NULL, 0, 0, '1', 0); +-- 删除 +INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) +VALUES ('2023101604071340063', '2023101604071330060', '删除专家组成员', NULL, NULL, 0, NULL, NULL, 2, 'expgroup:exp_group:delete', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-10-16 16:07:06', NULL, NULL, 0, 0, '1', 0); +-- 批量删除 +INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) +VALUES ('2023101604071340064', '2023101604071330060', '批量删除专家组成员', NULL, NULL, 0, NULL, NULL, 2, 'expgroup:exp_group:deleteBatch', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-10-16 16:07:06', NULL, NULL, 0, 0, '1', 0); +-- 导出excel +INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) +VALUES ('2023101604071340065', '2023101604071330060', '导出excel_专家组成员', NULL, NULL, 0, NULL, NULL, 2, 'expgroup:exp_group:exportXls', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-10-16 16:07:06', NULL, NULL, 0, 0, '1', 0); +-- 导入excel +INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) +VALUES ('2023101604071340066', '2023101604071330060', '导入excel_专家组成员', NULL, NULL, 0, NULL, NULL, 2, 'expgroup:exp_group:importExcel', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-10-16 16:07:06', NULL, NULL, 0, 0, '1', 0); \ No newline at end of file diff --git a/jeecgboot-vue3-master/src/views/expgroup/components/ExpGroupForm.vue b/jeecgboot-vue3-master/src/views/expgroup/components/ExpGroupForm.vue new file mode 100644 index 00000000..e2cd98b6 --- /dev/null +++ b/jeecgboot-vue3-master/src/views/expgroup/components/ExpGroupForm.vue @@ -0,0 +1,141 @@ + + + + + diff --git a/jeecgboot-vue3-master/src/views/expgroup/components/ExpGroupModal.vue b/jeecgboot-vue3-master/src/views/expgroup/components/ExpGroupModal.vue new file mode 100644 index 00000000..c15a5657 --- /dev/null +++ b/jeecgboot-vue3-master/src/views/expgroup/components/ExpGroupModal.vue @@ -0,0 +1,76 @@ + + + + + diff --git a/jeecgboot-vue3-master/src/views/expgroup/components/Expert.api.ts b/jeecgboot-vue3-master/src/views/expgroup/components/Expert.api.ts new file mode 100644 index 00000000..1942913d --- /dev/null +++ b/jeecgboot-vue3-master/src/views/expgroup/components/Expert.api.ts @@ -0,0 +1,72 @@ +import { defHttp } from '/@/utils/http/axios'; +import { useMessage } from "/@/hooks/web/useMessage"; + +const { createConfirm } = useMessage(); + +enum Api { + list = '/expert/expert/list', + save='/expert/expert/add', + edit='/expert/expert/edit', + deleteOne = '/expert/expert/delete', + deleteBatch = '/expert/expert/deleteBatch', + importExcel = '/expert/expert/importExcel', + exportXls = '/expert/expert/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.get({ url: url, params }, { isTransformResponse: false }); +} diff --git a/jeecgboot-vue3-master/src/views/expgroup/components/Expert.data.ts b/jeecgboot-vue3-master/src/views/expgroup/components/Expert.data.ts new file mode 100644 index 00000000..3607a489 --- /dev/null +++ b/jeecgboot-vue3-master/src/views/expgroup/components/Expert.data.ts @@ -0,0 +1,89 @@ +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: 'userId' + }, + { + title: '专家照片', + align: "center", + dataIndex: 'expImg', + customRender: render.renderImage, + },*/ + { + title: '专家名称', + align: "center", + dataIndex: 'name' + }, + { + title: '专家毕业院校', + align: "center", + dataIndex: 'expSc' + }, +/* { + title: '专家履历', + align: "center", + dataIndex: 'expResume', + },*/ + { + title: '专家学历', + align: "center", + dataIndex: 'expTitle' + }, + +]; + +//查询数据 +export const searchFormSchema: FormSchema[] = [ +]; + +//表单数据 +export const formSchema: FormSchema[] = [ + { + label: '专家名称', + field: 'name', + component: 'Input', + }, + { + label: '专家毕业院校', + field: 'expSc', + component: 'Input', + }, + { + label: '专家学历', + field: 'expTitle', + component: 'Input', + }, + { + label: '用户id', + field: 'userId', + component: 'Input', + show: false, + }, + { + label: '专家照片', + field: 'expImg', + component: 'JImageUpload', + componentProps:{ + }, + show: false, + }, + { + label: '专家履历', + field: 'expResume', + component: 'InputTextArea', + show: false, + }, + // TODO 主键隐藏字段,目前写死为ID + { + label: '', + field: 'id', + component: 'Input', + show: false, + }, +]; diff --git a/jeecgboot-vue3-master/src/views/expgroup/components/ExpertList.vue b/jeecgboot-vue3-master/src/views/expgroup/components/ExpertList.vue new file mode 100644 index 00000000..68c69b81 --- /dev/null +++ b/jeecgboot-vue3-master/src/views/expgroup/components/ExpertList.vue @@ -0,0 +1,250 @@ + + + + +