!14 补充测试bug

Merge pull request !14 from 周建/master
This commit is contained in:
芋道源码 2023-03-06 13:48:37 +00:00 committed by Gitee
commit 3af544f1eb
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
6 changed files with 22 additions and 11 deletions

View File

@ -11,10 +11,10 @@
>
<el-select v-model="bindMessageId" @change="updateTaskMessage">
<el-option
v-for="id in Object.keys(messageMap)"
:value="id"
:label="messageMap[id]"
:key="id"
v-for="item in Object.keys(messageMap)"
:value="item"
:label="messageMap[item]"
:key="item"
/>
</el-select>
<XButton

View File

@ -404,9 +404,9 @@ const getDetail = () => {
data.formVariables
)
nextTick().then(() => {
fApi.value?.btn.show(false)
fApi.value?.resetBtn.show(false)
fApi.value?.btn.disabled(true)
fApi.value?.fapi?.btn.show(false)
fApi.value?.fapi?.resetBtn.show(false)
fApi.value?.fapi?.disabled(true)
})
}

View File

@ -12,6 +12,10 @@
@click="handleCreate"
/>
</template>
<!-- 流程分类 -->
<template #category_default="{ row }">
<DictTag :type="DICT_TYPE.BPM_MODEL_CATEGORY" :value="Number(row?.category)" />
</template>
<!-- 当前审批任务 -->
<template #tasks_default="{ row }">
<el-button v-for="task in row.tasks" :key="task.id" link>
@ -40,6 +44,7 @@
<script setup lang="ts">
// import
import { ElMessageBox } from 'element-plus'
import { DICT_TYPE } from '@/utils/dict'
// import
import * as ProcessInstanceApi from '@/api/bpm/processInstance'

View File

@ -33,7 +33,12 @@ const crudSchemas = reactive<VxeCrudSchema>({
field: 'category',
dictType: DICT_TYPE.BPM_MODEL_CATEGORY,
dictClass: 'number',
isSearch: true
isSearch: true,
table: {
slots: {
default: 'category_default'
}
}
},
{
title: '当前审批任务',

View File

@ -408,20 +408,20 @@ const handleDetail = async (rowId: number) => {
//
const submitForm = async () => {
//
const elForm = unref(formRef)?.getElFormRef()
if (!elForm) return
elForm.validate(async (valid) => {
if (valid) {
//
try {
const data = unref(formRef)?.formModel as UserApi.UserVO
if (actionType.value === 'create') {
await UserApi.createUserApi(data)
loading.value = true
await UserApi.createUserApi(data)
message.success(t('common.createSuccess'))
} else {
await UserApi.updateUserApi(data)
loading.value = true
await UserApi.updateUserApi(data)
message.success(t('common.updateSuccess'))
}
dialogVisible.value = false

View File

@ -18,6 +18,7 @@ export const rules = reactive({
status: [required],
mobile: [
{
required: true,
len: 11,
trigger: 'blur',
message: '请输入正确的手机号码'