diff --git a/src/api/system/dict/dict.data.ts b/src/api/system/dict/dict.data.ts index 6d981326..87e7dce7 100644 --- a/src/api/system/dict/dict.data.ts +++ b/src/api/system/dict/dict.data.ts @@ -44,6 +44,6 @@ export const deleteDictData = (id: number) => { } // 导出字典类型数据 -export const exportDictDataApi = (params) => { +export const exportDictData = (params) => { return request.get({ url: '/system/dict-data/export', params }) } diff --git a/src/views/bpm/form/editor/index.vue b/src/views/bpm/form/editor/index.vue index cb7d023f..3a28697f 100644 --- a/src/views/bpm/form/editor/index.vue +++ b/src/views/bpm/form/editor/index.vue @@ -11,7 +11,7 @@ - + @@ -33,7 +33,7 @@ @@ -48,7 +48,7 @@ const message = useMessage() // 消息 const { query } = useRoute() // 路由 const designer = ref() // 表单设计器 -const modelVisible = ref(false) // 弹窗是否展示 +const dialogVisible = ref(false) // 弹窗是否展示 const formLoading = ref(false) // 表单的加载中:提交的按钮禁用 const formData = ref({ name: '', @@ -63,7 +63,7 @@ const formRef = ref() // 表单 Ref /** 处理保存按钮 */ const handleSave = () => { - modelVisible.value = true + dialogVisible.value = true } /** 提交表单 */ @@ -85,7 +85,7 @@ const submitForm = async () => { await FormApi.updateForm(data) message.success(t('common.updateSuccess')) } - modelVisible.value = false + dialogVisible.value = false } finally { formLoading.value = false } diff --git a/src/views/bpm/form/index.vue b/src/views/bpm/form/index.vue index 616e60be..f8d94317 100644 --- a/src/views/bpm/form/index.vue +++ b/src/views/bpm/form/index.vue @@ -20,7 +20,7 @@ 搜索 重置 - + 新增 diff --git a/src/views/bpm/group/UserGroupForm.vue b/src/views/bpm/group/UserGroupForm.vue index 9496ad84..e8011d8c 100644 --- a/src/views/bpm/group/UserGroupForm.vue +++ b/src/views/bpm/group/UserGroupForm.vue @@ -1,5 +1,5 @@ @@ -50,8 +50,8 @@ import * as UserApi from '@/api/system/user' const { t } = useI18n() // 国际化 const message = useMessage() // 消息弹窗 -const modelVisible = ref(false) // 弹窗的是否展示 -const modelTitle = ref('') // 弹窗的标题 +const dialogVisible = ref(false) // 弹窗的是否展示 +const dialogTitle = ref('') // 弹窗的标题 const formLoading = ref(false) // 表单的加载中:1)修改时的数据加载;2)提交的按钮禁用 const formType = ref('') // 表单的类型:create - 新增;update - 修改 const formData = ref({ @@ -72,8 +72,8 @@ const userList = ref([]) // 用户列表 /** 打开弹窗 */ const open = async (type: string, id?: number) => { - modelVisible.value = true - modelTitle.value = t('action.' + type) + dialogVisible.value = true + dialogTitle.value = t('action.' + type) formType.value = type resetForm() // 修改时,设置数据 @@ -108,7 +108,7 @@ const submitForm = async () => { await UserGroupApi.updateUserGroup(data) message.success(t('common.updateSuccess')) } - modelVisible.value = false + dialogVisible.value = false // 发送操作成功的事件 emit('success') } finally { diff --git a/src/views/bpm/group/index.vue b/src/views/bpm/group/index.vue index 0b52e9a2..0c731dbe 100644 --- a/src/views/bpm/group/index.vue +++ b/src/views/bpm/group/index.vue @@ -43,6 +43,7 @@ 重置 diff --git a/src/views/bpm/model/ModelForm.vue b/src/views/bpm/model/ModelForm.vue index ac536958..24484ec6 100644 --- a/src/views/bpm/model/ModelForm.vue +++ b/src/views/bpm/model/ModelForm.vue @@ -1,5 +1,5 @@ @@ -129,8 +129,8 @@ import * as FormApi from '@/api/bpm/form' const { t } = useI18n() // 国际化 const message = useMessage() // 消息弹窗 -const modelVisible = ref(false) // 弹窗的是否展示 -const modelTitle = ref('') // 弹窗的标题 +const dialogVisible = ref(false) // 弹窗的是否展示 +const dialogTitle = ref('') // 弹窗的标题 const formLoading = ref(false) // 表单的加载中:1)修改时的数据加载;2)提交的按钮禁用 const formType = ref('') // 表单的类型:create - 新增;update - 修改 const formData = ref({ @@ -154,8 +154,8 @@ const formList = ref([]) // 流程表单的下拉框的数据 /** 打开弹窗 */ const open = async (type: string, id?: number) => { - modelVisible.value = true - modelTitle.value = t('action.' + type) + dialogVisible.value = true + dialogTitle.value = t('action.' + type) formType.value = type resetForm() // 修改时,设置数据 @@ -203,7 +203,7 @@ const submitForm = async () => { await ModelApi.updateModel(data) message.success(t('common.updateSuccess')) } - modelVisible.value = false + dialogVisible.value = false // 发送操作成功的事件 emit('success') } finally { diff --git a/src/views/bpm/model/ModelImportForm.vue b/src/views/bpm/model/ModelImportForm.vue index fe542622..76493c95 100644 --- a/src/views/bpm/model/ModelImportForm.vue +++ b/src/views/bpm/model/ModelImportForm.vue @@ -1,5 +1,5 @@ @@ -53,7 +53,7 @@ import { getAccessToken, getTenantId } from '@/utils/auth' const message = useMessage() // 消息弹窗 -const modelVisible = ref(false) // 弹窗的是否展示 +const dialogVisible = ref(false) // 弹窗的是否展示 const formLoading = ref(false) // 表单的加载中 const formData = ref({ key: '', @@ -72,7 +72,7 @@ const fileList = ref([]) // 文件列表 /** 打开弹窗 */ const open = async () => { - modelVisible.value = true + dialogVisible.value = true resetForm() } defineExpose({ open }) // 提供 open 方法,用于打开弹窗 diff --git a/src/views/bpm/processInstance/detail/TaskUpdateAssigneeForm.vue b/src/views/bpm/processInstance/detail/TaskUpdateAssigneeForm.vue index 7f9cfd48..0f16deeb 100644 --- a/src/views/bpm/processInstance/detail/TaskUpdateAssigneeForm.vue +++ b/src/views/bpm/processInstance/detail/TaskUpdateAssigneeForm.vue @@ -1,5 +1,5 @@ @@ -28,7 +28,7 @@ import * as TaskApi from '@/api/bpm/task' import * as UserApi from '@/api/system/user' -const modelVisible = ref(false) // 弹窗的是否展示 +const dialogVisible = ref(false) // 弹窗的是否展示 const formLoading = ref(false) // 表单的加载中 const formData = ref({ id: '', @@ -43,7 +43,7 @@ const userList = ref([]) // 用户列表 /** 打开弹窗 */ const open = async (id: string) => { - modelVisible.value = true + dialogVisible.value = true resetForm() formData.value.id = id // 获得用户列表 @@ -62,7 +62,7 @@ const submitForm = async () => { formLoading.value = true try { await TaskApi.updateTaskAssignee(formData.value) - modelVisible.value = false + dialogVisible.value = false // 发送操作成功的事件 emit('success') } finally { diff --git a/src/views/bpm/taskAssignRule/TaskAssignRuleForm.vue b/src/views/bpm/taskAssignRule/TaskAssignRuleForm.vue index a452cab9..2ddebab1 100644 --- a/src/views/bpm/taskAssignRule/TaskAssignRuleForm.vue +++ b/src/views/bpm/taskAssignRule/TaskAssignRuleForm.vue @@ -1,5 +1,5 @@ @@ -109,7 +109,7 @@ import * as UserGroupApi from '@/api/bpm/userGroup' const { t } = useI18n() // 国际化 const message = useMessage() // 消息弹窗 -const modelVisible = ref(false) // 弹窗的是否展示 +const dialogVisible = ref(false) // 弹窗的是否展示 const formLoading = ref(false) // 表单的加载中:1)修改时的数据加载;2)提交的按钮禁用 const formData = ref({ type: Number(undefined), @@ -171,7 +171,7 @@ const open = async (modelId: string, row: TaskAssignRuleApi.TaskAssignVO) => { formData.value.scripts.push(...row.options) } // 打开弹窗 - modelVisible.value = true + dialogVisible.value = true // 获得角色列表 roleOptions.value = await RoleApi.getSimpleRoleList() @@ -232,7 +232,7 @@ const submitForm = async () => { await TaskAssignRuleApi.updateTaskAssignRule(data) message.success(t('common.updateSuccess')) } - modelVisible.value = false + dialogVisible.value = false // 发送操作成功的事件 emit('success') } finally { diff --git a/src/views/infra/apiAccessLog/ApiAccessLogDetail.vue b/src/views/infra/apiAccessLog/ApiAccessLogDetail.vue index d046a521..4746b0c7 100644 --- a/src/views/infra/apiAccessLog/ApiAccessLogDetail.vue +++ b/src/views/infra/apiAccessLog/ApiAccessLogDetail.vue @@ -1,5 +1,5 @@