修复审批步骤问题

This commit is contained in:
hupeng 2025-03-11 10:32:21 +08:00
parent 54177c7596
commit cdccca280d

View File

@ -43,7 +43,7 @@
</template>
</el-table-column>
<el-table-column align="center" fixed="right" label="操作" width="60">
<template #default="{ $index }">
<template #default="{ row,$index }">
<el-button @click="handleDelete($index,row.id)" link></el-button>
</template>
</el-table-column>
@ -58,6 +58,8 @@ import { FlowApi } from '@/api/crm/crmflow'
import * as UserApi from '@/api/system/user'
import * as DeptApi from '@/api/system/dept'
import { defaultProps, handleTree } from '@/utils/tree'
const message = useMessage() //
const { t } = useI18n() //
const props = defineProps<{
flowId: undefined // ID
@ -110,6 +112,7 @@ const handleAdd = () => {
/** 删除按钮操作 */
const handleDelete = async(index,id) => {
console.log(index,id)
try {
//
await message.delConfirm()
@ -117,7 +120,9 @@ const handleDelete = async(index,id) => {
await FlowApi.deleteFlowStep(id)
message.success(t('common.delSuccess'))
formData.value.splice(index, 1)
} catch {}
} catch(e) {
console.log('e:',e)
}
}
/** 表单校验 */