mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-11-01 02:38:43 +08:00 
			
		
		
		
	feat: 移除无用方法
This commit is contained in:
		| @@ -35,8 +35,6 @@ const setDialogTile = (type: string) => { | |||||||
| // 新增操作 | // 新增操作 | ||||||
| const handleCreate = () => { | const handleCreate = () => { | ||||||
|   setDialogTile('create') |   setDialogTile('create') | ||||||
|   // 重置表单 |  | ||||||
|   unref(formRef)?.getElFormRef()?.resetFields() |  | ||||||
| } | } | ||||||
|  |  | ||||||
| // 修改操作 | // 修改操作 | ||||||
|   | |||||||
| @@ -47,8 +47,6 @@ const setDialogTile = (type: string) => { | |||||||
| const handleCreate = () => { | const handleCreate = () => { | ||||||
|   setDialogTile('create') |   setDialogTile('create') | ||||||
|   userIds.value = [] |   userIds.value = [] | ||||||
|   // 重置表单 |  | ||||||
|   unref(formRef)?.getElFormRef()?.resetFields() |  | ||||||
| } | } | ||||||
|  |  | ||||||
| // 修改操作 | // 修改操作 | ||||||
|   | |||||||
| @@ -37,8 +37,6 @@ const setDialogTile = (type: string) => { | |||||||
| // 新增操作 | // 新增操作 | ||||||
| const handleCreate = () => { | const handleCreate = () => { | ||||||
|   setDialogTile('create') |   setDialogTile('create') | ||||||
|   // 重置表单 |  | ||||||
|   unref(formRef)?.getElFormRef()?.resetFields() |  | ||||||
| } | } | ||||||
|  |  | ||||||
| // 修改操作 | // 修改操作 | ||||||
|   | |||||||
| @@ -36,8 +36,6 @@ const setDialogTile = (type: string) => { | |||||||
| // 新增操作 | // 新增操作 | ||||||
| const handleCreate = () => { | const handleCreate = () => { | ||||||
|   setDialogTile('create') |   setDialogTile('create') | ||||||
|   // 重置表单 |  | ||||||
|   unref(formRef)?.getElFormRef()?.resetFields() |  | ||||||
| } | } | ||||||
|  |  | ||||||
| // 修改操作 | // 修改操作 | ||||||
|   | |||||||
| @@ -30,8 +30,6 @@ const setDialogTile = (type: string) => { | |||||||
| // 新增操作 | // 新增操作 | ||||||
| const handleCreate = () => { | const handleCreate = () => { | ||||||
|   setDialogTile('create') |   setDialogTile('create') | ||||||
|   // 重置表单 |  | ||||||
|   unref(formRef)?.getElFormRef()?.resetFields() |  | ||||||
| } | } | ||||||
|  |  | ||||||
| // 修改操作 | // 修改操作 | ||||||
|   | |||||||
| @@ -36,8 +36,6 @@ const setDialogTile = (type: string) => { | |||||||
| // 新增操作 | // 新增操作 | ||||||
| const handleCreate = () => { | const handleCreate = () => { | ||||||
|   setDialogTile('create') |   setDialogTile('create') | ||||||
|   // 重置表单 |  | ||||||
|   unref(formRef)?.getElFormRef()?.resetFields() |  | ||||||
| } | } | ||||||
|  |  | ||||||
| // 修改操作 | // 修改操作 | ||||||
|   | |||||||
| @@ -46,8 +46,6 @@ const setDialogTile = (type: string) => { | |||||||
| const handleCreate = () => { | const handleCreate = () => { | ||||||
|   cronExpression.value = '' |   cronExpression.value = '' | ||||||
|   setDialogTile('create') |   setDialogTile('create') | ||||||
|   // 重置表单 |  | ||||||
|   unref(formRef)?.getElFormRef()?.resetFields() |  | ||||||
| } | } | ||||||
|  |  | ||||||
| // 修改操作 | // 修改操作 | ||||||
|   | |||||||
| @@ -36,8 +36,6 @@ const setDialogTile = (type: string) => { | |||||||
| // 新增操作 | // 新增操作 | ||||||
| const handleCreate = () => { | const handleCreate = () => { | ||||||
|   setDialogTile('create') |   setDialogTile('create') | ||||||
|   // 重置表单 |  | ||||||
|   unref(formRef)?.getElFormRef()?.resetFields() |  | ||||||
| } | } | ||||||
|  |  | ||||||
| // 修改操作 | // 修改操作 | ||||||
|   | |||||||
| @@ -36,8 +36,6 @@ const setDialogTile = (type: string) => { | |||||||
| // 新增操作 | // 新增操作 | ||||||
| const handleCreate = () => { | const handleCreate = () => { | ||||||
|   setDialogTile('create') |   setDialogTile('create') | ||||||
|   // 重置表单 |  | ||||||
|   unref(formRef)?.getElFormRef()?.resetFields() |  | ||||||
| } | } | ||||||
|  |  | ||||||
| // 修改操作 | // 修改操作 | ||||||
|   | |||||||
| @@ -34,8 +34,6 @@ const setDialogTile = (type: string) => { | |||||||
| // 新增操作 | // 新增操作 | ||||||
| const handleCreate = () => { | const handleCreate = () => { | ||||||
|   setDialogTile('create') |   setDialogTile('create') | ||||||
|   // 重置表单 |  | ||||||
|   unref(formRef)?.getElFormRef()?.resetFields() |  | ||||||
| } | } | ||||||
|  |  | ||||||
| // 修改操作 | // 修改操作 | ||||||
|   | |||||||
| @@ -52,7 +52,6 @@ const handleAdd = (data: { id: number }) => { | |||||||
|   // 重置表单 |   // 重置表单 | ||||||
|   deptParentId.value = data.id |   deptParentId.value = data.id | ||||||
|   formTitle.value = '新增部门' |   formTitle.value = '新增部门' | ||||||
|   unref(formRef)?.getElFormRef()?.resetFields() |  | ||||||
|   showForm.value = true |   showForm.value = true | ||||||
| } | } | ||||||
| // 编辑 | // 编辑 | ||||||
|   | |||||||
| @@ -178,8 +178,6 @@ const { | |||||||
| // 字典分类修改操作 | // 字典分类修改操作 | ||||||
| const handleTypeCreate = () => { | const handleTypeCreate = () => { | ||||||
|   setDialogTile('typeCreate') |   setDialogTile('typeCreate') | ||||||
|   // 重置表单 |  | ||||||
|   unref(typeFormRef)?.getElFormRef()?.resetFields() |  | ||||||
| } | } | ||||||
| const handleTypeUpdate = async (row: DictTypeVO) => { | const handleTypeUpdate = async (row: DictTypeVO) => { | ||||||
|   setDialogTile('typeUpdate') |   setDialogTile('typeUpdate') | ||||||
| @@ -207,8 +205,6 @@ const { | |||||||
| // 字典数据修改操作 | // 字典数据修改操作 | ||||||
| const handleDataCreate = () => { | const handleDataCreate = () => { | ||||||
|   setDialogTile('dataCreate') |   setDialogTile('dataCreate') | ||||||
|   // 重置表单 |  | ||||||
|   unref(dataFormRef)?.getElFormRef()?.resetFields() |  | ||||||
| } | } | ||||||
| const handleDataUpdate = async (row: DictDataVO) => { | const handleDataUpdate = async (row: DictDataVO) => { | ||||||
|   setDialogTile('dataUpdate') |   setDialogTile('dataUpdate') | ||||||
|   | |||||||
| @@ -105,8 +105,6 @@ const setDialogTile = (type: string) => { | |||||||
| // 新增操作 | // 新增操作 | ||||||
| const handleCreate = () => { | const handleCreate = () => { | ||||||
|   setDialogTile('create') |   setDialogTile('create') | ||||||
|   // 重置表单 |  | ||||||
|   unref(formRef)?.getElFormRef()?.resetFields() |  | ||||||
| } | } | ||||||
|  |  | ||||||
| // 修改操作 | // 修改操作 | ||||||
|   | |||||||
| @@ -104,8 +104,6 @@ const setDialogTile = (type: string) => { | |||||||
| // 新增操作 | // 新增操作 | ||||||
| const handleCreate = () => { | const handleCreate = () => { | ||||||
|   setDialogTile('create') |   setDialogTile('create') | ||||||
|   // 重置表单 |  | ||||||
|   unref(formRef)?.getElFormRef()?.resetFields() |  | ||||||
| } | } | ||||||
|  |  | ||||||
| // 修改操作 | // 修改操作 | ||||||
|   | |||||||
| @@ -116,8 +116,6 @@ const setDialogTile = (type: string) => { | |||||||
| // 新增操作 | // 新增操作 | ||||||
| const handleCreate = () => { | const handleCreate = () => { | ||||||
|   setDialogTile('create') |   setDialogTile('create') | ||||||
|   // 重置表单 |  | ||||||
|   unref(formRef)?.getElFormRef()?.resetFields() |  | ||||||
| } | } | ||||||
|  |  | ||||||
| // 修改操作 | // 修改操作 | ||||||
|   | |||||||
| @@ -57,7 +57,7 @@ | |||||||
|     <Descriptions |     <Descriptions | ||||||
|       v-if="actionType === 'detail'" |       v-if="actionType === 'detail'" | ||||||
|       :schema="allSchemas.detailSchema" |       :schema="allSchemas.detailSchema" | ||||||
|       :data="detailRef" |       :data="detailData" | ||||||
|     /> |     /> | ||||||
|     <template #footer> |     <template #footer> | ||||||
|       <!-- 按钮:保存 --> |       <!-- 按钮:保存 --> | ||||||
| @@ -100,7 +100,7 @@ const dialogTitle = ref('edit') // 弹出层标题 | |||||||
| const actionType = ref('') // 操作按钮的类型 | const actionType = ref('') // 操作按钮的类型 | ||||||
| const actionLoading = ref(false) // 按钮 Loading | const actionLoading = ref(false) // 按钮 Loading | ||||||
| const formRef = ref<FormExpose>() // 表单 Ref | const formRef = ref<FormExpose>() // 表单 Ref | ||||||
| const detailRef = ref() // 详情 Ref | const detailData = ref() // 详情 Ref | ||||||
|  |  | ||||||
| // 设置标题 | // 设置标题 | ||||||
| const setDialogTile = (type: string) => { | const setDialogTile = (type: string) => { | ||||||
| @@ -112,8 +112,6 @@ const setDialogTile = (type: string) => { | |||||||
| // 新增操作 | // 新增操作 | ||||||
| const handleCreate = () => { | const handleCreate = () => { | ||||||
|   setDialogTile('create') |   setDialogTile('create') | ||||||
|   // 重置表单 |  | ||||||
|   unref(formRef)?.getElFormRef()?.resetFields() |  | ||||||
| } | } | ||||||
|  |  | ||||||
| // 导出操作 | // 导出操作 | ||||||
| @@ -138,7 +136,7 @@ const handleUpdate = async (rowId: number) => { | |||||||
| const handleDetail = async (rowId: number) => { | const handleDetail = async (rowId: number) => { | ||||||
|   setDialogTile('detail') |   setDialogTile('detail') | ||||||
|   const res = await PostApi.getPostApi(rowId) |   const res = await PostApi.getPostApi(rowId) | ||||||
|   detailRef.value = res |   detailData.value = res | ||||||
| } | } | ||||||
|  |  | ||||||
| // 删除操作 | // 删除操作 | ||||||
|   | |||||||
| @@ -54,8 +54,6 @@ const setDialogTile = (type: string) => { | |||||||
| // 新增操作 | // 新增操作 | ||||||
| const handleCreate = () => { | const handleCreate = () => { | ||||||
|   setDialogTile('create') |   setDialogTile('create') | ||||||
|   // 重置表单 |  | ||||||
|   unref(formRef)?.getElFormRef()?.resetFields() |  | ||||||
| } | } | ||||||
|  |  | ||||||
| // 修改操作 | // 修改操作 | ||||||
|   | |||||||
| @@ -42,8 +42,6 @@ const setDialogTile = (type: string) => { | |||||||
| // 新增操作 | // 新增操作 | ||||||
| const handleCreate = () => { | const handleCreate = () => { | ||||||
|   setDialogTile('create') |   setDialogTile('create') | ||||||
|   // 重置表单 |  | ||||||
|   unref(formRef)?.getElFormRef()?.resetFields() |  | ||||||
| } | } | ||||||
|  |  | ||||||
| // 修改操作 | // 修改操作 | ||||||
|   | |||||||
| @@ -35,8 +35,6 @@ const setDialogTile = (type: string) => { | |||||||
| // 新增操作 | // 新增操作 | ||||||
| const handleCreate = () => { | const handleCreate = () => { | ||||||
|   setDialogTile('create') |   setDialogTile('create') | ||||||
|   // 重置表单 |  | ||||||
|   unref(formRef)?.getElFormRef()?.resetFields() |  | ||||||
| } | } | ||||||
|  |  | ||||||
| // 修改操作 | // 修改操作 | ||||||
|   | |||||||
| @@ -35,8 +35,6 @@ const setDialogTile = (type: string) => { | |||||||
| // 新增操作 | // 新增操作 | ||||||
| const handleCreate = () => { | const handleCreate = () => { | ||||||
|   setDialogTile('create') |   setDialogTile('create') | ||||||
|   // 重置表单 |  | ||||||
|   unref(formRef)?.getElFormRef()?.resetFields() |  | ||||||
| } | } | ||||||
|  |  | ||||||
| // 修改操作 | // 修改操作 | ||||||
|   | |||||||
| @@ -53,10 +53,9 @@ const setDialogTile = (type: string) => { | |||||||
|  |  | ||||||
| // 新增操作 | // 新增操作 | ||||||
| const handleCreate = () => { | const handleCreate = () => { | ||||||
|   setDialogTile('create') |  | ||||||
|   // 重置表单 |   // 重置表单 | ||||||
|   tenantPackageId.value = '' |   tenantPackageId.value = '' | ||||||
|   unref(formRef)?.getElFormRef()?.resetFields() |   setDialogTile('create') | ||||||
| } | } | ||||||
|  |  | ||||||
| // 修改操作 | // 修改操作 | ||||||
|   | |||||||
| @@ -56,13 +56,11 @@ const setDialogTile = (type: string) => { | |||||||
|  |  | ||||||
| // 新增操作 | // 新增操作 | ||||||
| const handleCreate = () => { | const handleCreate = () => { | ||||||
|   setDialogTile('create') |  | ||||||
|   // 重置表单 |  | ||||||
|   unref(formRef)?.getElFormRef()?.resetFields() |  | ||||||
|   //重置菜单树 |   //重置菜单树 | ||||||
|   unref(treeRef)?.setCheckedKeys([]) |   unref(treeRef)?.setCheckedKeys([]) | ||||||
|   menuExpand.value = false |   menuExpand.value = false | ||||||
|   menuNodeAll.value = false |   menuNodeAll.value = false | ||||||
|  |   setDialogTile('create') | ||||||
| } | } | ||||||
|  |  | ||||||
| // 修改操作 | // 修改操作 | ||||||
|   | |||||||
| @@ -24,7 +24,7 @@ import { useI18n } from '@/hooks/web/useI18n' | |||||||
| import { useTable } from '@/hooks/web/useTable' | import { useTable } from '@/hooks/web/useTable' | ||||||
| import { FormExpose } from '@/components/Form' | import { FormExpose } from '@/components/Form' | ||||||
| import type { UserVO } from '@/api/system/user/types' | import type { UserVO } from '@/api/system/user/types' | ||||||
| import type { PostVO } from '@/api/system/post/types' | import type { PostVO } from '@/api/system/post' | ||||||
| import type { PermissionAssignUserRoleReqVO } from '@/api/system/permission/types' | import type { PermissionAssignUserRoleReqVO } from '@/api/system/permission/types' | ||||||
| import { listSimpleDeptApi } from '@/api/system/dept' | import { listSimpleDeptApi } from '@/api/system/dept' | ||||||
| import { listSimplePostsApi } from '@/api/system/post' | import { listSimplePostsApi } from '@/api/system/post' | ||||||
| @@ -89,7 +89,7 @@ const actionType = ref('') // 操作按钮的类型 | |||||||
| const dialogVisible = ref(false) // 是否显示弹出层 | const dialogVisible = ref(false) // 是否显示弹出层 | ||||||
| const dialogTitle = ref('edit') // 弹出层标题 | const dialogTitle = ref('edit') // 弹出层标题 | ||||||
| const formRef = ref<FormExpose>() // 表单 Ref | const formRef = ref<FormExpose>() // 表单 Ref | ||||||
| const deptId = ref(0) // 部门ID | const deptId = ref() // 部门ID | ||||||
| const postIds = ref<string[]>([]) // 岗位ID | const postIds = ref<string[]>([]) // 岗位ID | ||||||
| const postOptions = ref<PostVO[]>([]) //岗位列表 | const postOptions = ref<PostVO[]>([]) //岗位列表 | ||||||
|  |  | ||||||
| @@ -106,11 +106,14 @@ const setDialogTile = async (type: string) => { | |||||||
| } | } | ||||||
|  |  | ||||||
| // 新增操作 | // 新增操作 | ||||||
| const handleAdd = () => { | const handleAdd = async () => { | ||||||
|   // 重置表单 |   // 重置表单 | ||||||
|   deptId.value = 0 |   deptId.value = null | ||||||
|   setDialogTile('create') |   postIds.value = [] | ||||||
|   unref(formRef)?.getElFormRef()?.resetFields() |   dialogVisible.value = true | ||||||
|  |   dialogTitle.value = t('action.create') | ||||||
|  |   actionType.value = 'create' | ||||||
|  |   await unref(formRef)?.getElFormRef().resetFields() | ||||||
| } | } | ||||||
|  |  | ||||||
| // 修改操作 | // 修改操作 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 xingyu4j
					xingyu4j