diff --git a/src/views/biz/bizEmployeesInfo/BizEmployeesInfo.api.ts b/src/views/biz/bizEmployeesInfo/BizEmployeesInfo.api.ts index d1e6e71..4ab1e91 100644 --- a/src/views/biz/bizEmployeesInfo/BizEmployeesInfo.api.ts +++ b/src/views/biz/bizEmployeesInfo/BizEmployeesInfo.api.ts @@ -1,20 +1,21 @@ import { defHttp } from '/@/utils/http/axios'; -import { useMessage } from "/@/hooks/web/useMessage"; +import { useMessage } from '/@/hooks/web/useMessage'; const { createConfirm } = useMessage(); enum Api { list = '/admin/bizEmployeesInfo/bizEmployeesInfo/list', - save='/admin/bizEmployeesInfo/bizEmployeesInfo/add', - edit='/admin/bizEmployeesInfo/bizEmployeesInfo/edit', + save = '/admin/bizEmployeesInfo/bizEmployeesInfo/add', + edit = '/admin/bizEmployeesInfo/bizEmployeesInfo/edit', deleteOne = '/admin/bizEmployeesInfo/bizEmployeesInfo/delete', deleteBatch = '/admin/bizEmployeesInfo/bizEmployeesInfo/deleteBatch', importExcel = '/admin/bizEmployeesInfo/bizEmployeesInfo/importExcel', exportXls = '/admin/bizEmployeesInfo/bizEmployeesInfo/exportXls', + djOrJd = '/admin/bizEmployeesInfo/bizEmployeesInfo/djOrJd', getEmployeesList = '/services/serviceTag/serviceTag/getEmployeesList', queryTagsById = '/services/serviceTag/serviceTag/queryById', - checkTags='/bizEmployeesInfo/nuBizEmployeesServcieTags/add', + checkTags = '/bizEmployeesInfo/nuBizEmployeesServcieTags/add', removeTags = '/bizEmployeesInfo/nuBizEmployeesServcieTags/delete', getEmployeesServiceTags = '/services/serviceTag/serviceTag/getEmployeesServiceTags', queryTreeListForRole = '/employeesPermission/nuAppEmployeesPermission/queryTreeList', @@ -23,6 +24,12 @@ enum Api { queryDataRule = '/employeesPermission/nuAppEmployeesPermission/queryDataRule', qyList = '/nuBaseInfo/nuBaseInfo/qyPemissionList', + fwzlList = '/services/serviceDirective/list', + + changePassword = '/sys/user/changePassword', + frozenBatch = '/sys/user/frozenBatch', + + forceLogoutByUsername = '/sys/online/forceLogoutByUsername', } /** @@ -51,11 +58,11 @@ export const queryTagsById = (params) => defHttp.get({ url: Api.queryTagsById, p * @param params * @param handleSuccess */ -export const deleteOne = (params,handleSuccess) => { - return defHttp.delete({url: Api.deleteOne, params}, {joinParamsToUrl: true}).then(() => { +export const deleteOne = (params, handleSuccess) => { + return defHttp.delete({ url: Api.deleteOne, params }, { joinParamsToUrl: true }).then(() => { handleSuccess(); }); -} +}; /** * 批量删除 @@ -70,12 +77,12 @@ export const batchDelete = (params, handleSuccess) => { okText: '确认', cancelText: '取消', onOk: () => { - return defHttp.delete({url: Api.deleteBatch, data: params}, {joinParamsToUrl: true}).then(() => { + return defHttp.delete({ url: Api.deleteBatch, data: params }, { joinParamsToUrl: true }).then(() => { handleSuccess(); }); - } + }, }); -} +}; /** * 保存或者更新 @@ -85,19 +92,16 @@ export const batchDelete = (params, handleSuccess) => { export const saveOrUpdate = (params, isUpdate) => { let url = isUpdate ? Api.edit : Api.save; return defHttp.post({ url: url, params }, { isTransformResponse: false }); -} - - +}; export const checkTags = (params) => { let url = Api.checkTags; return defHttp.post({ url: url, params }, { isTransformResponse: false }); -} +}; export const removeTags = (params) => { let url = Api.removeTags; - return defHttp.delete({ url: url, params }, {joinParamsToUrl: true}); -} - + return defHttp.delete({ url: url, params }, { joinParamsToUrl: true }); +}; /** * 根据角色查询树信息 @@ -120,3 +124,40 @@ export const queryDataRule = (params) => * 保存角色数据规则 */ export const saveDataRule = (params) => defHttp.post({ url: Api.queryDataRule, params }); + +export const fwzlList = (params) => defHttp.get({ url: Api.fwzlList, params }); + +/** + * 修改密码 + * @param params + */ +export const changePassword = (params) => { + return defHttp.put({ url: Api.changePassword, params }, { isTransformResponse: false }); +}; + +/** + * 修改冻结状态 + * @param params + * @returns + */ +export const frozenBatch = (params) => { + return defHttp.put({ url: Api.frozenBatch, params }, { isTransformResponse: false }); +}; + +/** + * 强制退出 + * @param params + * @returns + */ +export const forceLogoutByUsername = (params) => { + return defHttp.post({ url: Api.forceLogoutByUsername, params }, { isTransformResponse: false }); +}; + +/** + * 调整员工表冻结状态 + * @param params + * @returns + */ +export const djOrJd = (params) => { + return defHttp.post({ url: Api.djOrJd, params }, { isTransformResponse: false }); +}; diff --git a/src/views/biz/bizEmployeesInfo/BizEmployeesInfo.data.ts b/src/views/biz/bizEmployeesInfo/BizEmployeesInfo.data.ts index e7715de..16bb5f2 100644 --- a/src/views/biz/bizEmployeesInfo/BizEmployeesInfo.data.ts +++ b/src/views/biz/bizEmployeesInfo/BizEmployeesInfo.data.ts @@ -195,6 +195,36 @@ export const columns: BasicColumn[] = [ }, ]; +export const fwzlColumns: BasicColumn[] = [ + { + title: '分类标签', + align: 'center', + dataIndex: 'instructionTagId_dictText', + width: 100, + }, + { + title: '服务类别', + align: 'center', + dataIndex: 'categoryId_dictText', + }, + { + title: '服务类型', + align: 'center', + dataIndex: 'typeId_dictText', + }, + { + title: '服务指令', + align: 'center', + dataIndex: 'directiveName', + }, + { + title: '是否启用', + align: 'center', + dataIndex: 'izEnabled_dictText', + width: 100, + }, +]; + // 高级查询数据 export const superQuerySchema = { name: {title: '姓名',order: 0,view: 'text', type: 'string',}, @@ -273,11 +303,11 @@ export const employeesTagcolumns: BasicColumn[] = [ dataIndex: 'tagName', width:'50%' }, - { - title: '备注', - align: "center", - dataIndex: 'description' - }, + // { + // title: '备注', + // align: "center", + // dataIndex: 'description' + // }, { title: '操作', key:'action', diff --git a/src/views/biz/bizEmployeesInfo/BizEmployeesInfoList.vue b/src/views/biz/bizEmployeesInfo/BizEmployeesInfoList.vue index 8e91edd..c91c2ad 100644 --- a/src/views/biz/bizEmployeesInfo/BizEmployeesInfoList.vue +++ b/src/views/biz/bizEmployeesInfo/BizEmployeesInfoList.vue @@ -8,7 +8,7 @@ - + @@ -43,7 +43,7 @@
入职日期 : {{ item.entryTime - }} + }}
@@ -97,8 +97,12 @@