vxe回返bug

This commit is contained in:
gexinzhineng/gxzn27
2023-04-03 17:48:38 +08:00
parent 12c5116dfd
commit f1e801e9ad
9 changed files with 262 additions and 9 deletions

View File

@ -62,7 +62,7 @@ import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
import { CommonStatusEnum } from '@/utils/constants'
import * as FormApi from '@/api/bpm/form'
import { encodeConf, encodeFields, setConfAndFields } from '@/utils/formCreate'
import { useClipboard } from '@vueuse/core'
// import { useClipboard } from '@vueuse/core'
const { t } = useI18n() // 国际化
const message = useMessage() // 消息

View File

@ -22,7 +22,7 @@ import { rules, allSchemas } from './leave.data'
const { t } = useI18n() // 国际化
const message = useMessage() // 消息弹窗
const { push } = useRouter() // 路由
// const { query } = useRoute()
// 表单参数
const actionLoading = ref(false) // 按钮 Loading
const formRef = ref<FormExpose>() // 表单 Ref
@ -43,6 +43,8 @@ const submitForm = async () => {
// data.endTime = XEUtils.toDateString(data.endTime, 'yyyy-MM-dd HH:mm:ss')
data.startTime = Date.parse(new Date(data.startTime).toString()).toString()
data.endTime = Date.parse(new Date(data.endTime).toString()).toString()
// console.log(query.id, 'query.id')
// data.id = query.id
// 添加的提交
await LeaveApi.createLeaveApi(data)
message.success(t('common.createSuccess'))

View File

@ -105,7 +105,10 @@ const handleSelect = async (row) => {
// 情况二:业务表单
} else if (row.formCustomCreatePath) {
await router.push({
path: row.formCustomCreatePath
path: row.formCustomCreatePath,
query: {
id: row.id
}
})
// 这里暂时无需加载流程图,因为跳出到另外个 Tab
}

View File

@ -64,7 +64,7 @@
show-checkbox
:props="defaultProps"
:data="deptTreeOptions"
empty-text="加载中请稍"
empty-text="加载中请稍"
multiple
/>
</el-form-item>