mirror of
https://gitee.com/guchengwuyue/crm.git
synced 2025-12-07 17:38:30 +08:00
流程删除优化
This commit is contained in:
parent
635ac6b40a
commit
23fab5997a
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "yshop-crm-vue3",
|
"name": "yshop-crm-vue3",
|
||||||
"version": "1.0.0",
|
"version": "1.1.3",
|
||||||
"description": "基于vue3、vite4、element-plus、typesScript",
|
"description": "基于vue3、vite4、element-plus、typesScript",
|
||||||
"author": "yshop",
|
"author": "yshop",
|
||||||
"private": false,
|
"private": false,
|
||||||
|
|||||||
@ -51,5 +51,8 @@ export const FlowApi = {
|
|||||||
},
|
},
|
||||||
getFlowUserIds: async (type) => {
|
getFlowUserIds: async (type) => {
|
||||||
return await request.get({ url: `/crm/flow/flow-users?flowType=` + type })
|
return await request.get({ url: `/crm/flow/flow-users?flowType=` + type })
|
||||||
}
|
},
|
||||||
|
deleteFlowStep: async (id: number) => {
|
||||||
|
return await request.delete({ url: `/crm/flow/delete-step?id=` + id })
|
||||||
|
},
|
||||||
}
|
}
|
||||||
@ -44,7 +44,7 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column align="center" fixed="right" label="操作" width="60">
|
<el-table-column align="center" fixed="right" label="操作" width="60">
|
||||||
<template #default="{ $index }">
|
<template #default="{ $index }">
|
||||||
<el-button @click="handleDelete($index)" link>—</el-button>
|
<el-button @click="handleDelete($index,row.id)" link>—</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@ -109,10 +109,17 @@ const handleAdd = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** 删除按钮操作 */
|
/** 删除按钮操作 */
|
||||||
const handleDelete = (index) => {
|
const handleDelete = async(index,id) => {
|
||||||
formData.value.splice(index, 1)
|
try {
|
||||||
}
|
// 删除的二次确认
|
||||||
|
await message.delConfirm()
|
||||||
|
// 发起删除
|
||||||
|
await FlowApi.deleteFlowStep(id)
|
||||||
|
message.success(t('common.delSuccess'))
|
||||||
|
formData.value.splice(index, 1)
|
||||||
|
} catch {}
|
||||||
|
|
||||||
|
}
|
||||||
/** 表单校验 */
|
/** 表单校验 */
|
||||||
const validate = () => {
|
const validate = () => {
|
||||||
return formRef.value.validate()
|
return formRef.value.validate()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user