update:
1.全科医生添加用户管理模块
This commit is contained in:
@@ -5,6 +5,7 @@ const { createConfirm } = useMessage();
|
||||
|
||||
enum Api {
|
||||
list = '/sys/healthUserEmployeeEx/list',
|
||||
listByMc = '/sys/healthUserEmployeeEx/listByMc',
|
||||
save = '/sys/healthUserEmployeeEx/add',
|
||||
edit = '/sys/healthUserEmployeeEx/edit',
|
||||
deleteOne = '/sys/healthUserEmployeeEx/delete',
|
||||
@@ -53,7 +54,6 @@ export const getExportTempUrl = Api.exportTempXls;
|
||||
|
||||
export const getExportDepartTempUrl = Api.exportTempDepart;
|
||||
|
||||
|
||||
export const queryByIdUrl = Api.queryById;
|
||||
|
||||
/**
|
||||
@@ -74,6 +74,7 @@ export const getImportDepartUrl = Api.importDepartExcel;
|
||||
* @param params
|
||||
*/
|
||||
export const list = (params) => defHttp.get({ url: Api.list, params });
|
||||
export const listByMcApi = (params) => defHttp.get({ url: Api.listByMc, params });
|
||||
|
||||
/**
|
||||
* 删除单个
|
||||
@@ -137,4 +138,4 @@ export const getWatchDeviceByUserId = (params) => defHttp.get({ url: Api.getWatc
|
||||
/**
|
||||
* @desc 更新用户单位
|
||||
* */
|
||||
export const updateUserDepart=(params)=>defHttp.post({url:Api.updateUserDepart,params})
|
||||
export const updateUserDepart = (params) => defHttp.post({ url: Api.updateUserDepart, params });
|
||||
|
||||
@@ -149,6 +149,7 @@
|
||||
getImportUrl,
|
||||
getWatchDeviceByUserId,
|
||||
list,
|
||||
listByMcApi,
|
||||
resEditData,
|
||||
updateDepartUrl,
|
||||
updateUserUrl,
|
||||
@@ -162,6 +163,7 @@
|
||||
import ImportUtil from '/@/utils/import/ImportUtil.vue';
|
||||
import { Tag } from 'ant-design-vue';
|
||||
import { getEnvInfo } from '/@/utils/getEnv';
|
||||
import { useUserStoreWithOut } from '/@/store/modules/user';
|
||||
|
||||
const [registerDrawer, { openDrawer }] = useDrawer();
|
||||
const [registerExport, { openDrawer: exportDrawer }] = useDrawer();
|
||||
@@ -170,11 +172,12 @@
|
||||
const [registerUserImport, { openDrawer: userImportDrawer }] = useDrawer();
|
||||
const [registerDepartImport, { openDrawer: departImportDrawer }] = useDrawer();
|
||||
const showFooter = ref(true);
|
||||
const useUserStore = useUserStoreWithOut();
|
||||
//注册table数据
|
||||
const { tableContext, onExportXls, onImportXls, onImportXlsx } = useListPage({
|
||||
tableProps: {
|
||||
title: '员工',
|
||||
api: list,
|
||||
api: useUserStore?.getUserInfo?.personType === '2' ? listByMcApi : list,
|
||||
columns,
|
||||
canResize: false,
|
||||
clickToRowSelect: false,
|
||||
@@ -193,6 +196,7 @@
|
||||
fieldMapToNumber: [],
|
||||
fieldMapToTime: [],
|
||||
},
|
||||
showActionColumn: useUserStore?.getUserInfo?.personType !== '2',
|
||||
actionColumn: {
|
||||
width: 240,
|
||||
fixed: 'right',
|
||||
|
||||
Reference in New Issue
Block a user