feat: [antd] [bpm] 代码评审 todo 修改

This commit is contained in:
jason
2025-11-01 22:55:45 +08:00
parent a325d3585e
commit cbe7797a1c
6 changed files with 26 additions and 38 deletions

View File

@@ -32,15 +32,18 @@ function handleRefresh() {
}
/** 查看表单详情 */
function handleFormDetail(row: BpmProcessDefinitionApi.ProcessDefinition) {
async function handleFormDetail(
row: BpmProcessDefinitionApi.ProcessDefinition,
) {
if (row.formType === BpmModelFormType.NORMAL) {
const data = {
id: row.formId,
};
formCreateDetailModalApi.setData(data).open();
} else {
// TODO 待实现 jason 这里要改么?
console.warn('业务表单待实现', row);
await router.push({
path: row.formCustomCreatePath,
});
}
}

View File

@@ -309,8 +309,6 @@ async function handleSave() {
}
} catch (error: any) {
console.error('保存失败:', error);
// TODO @jason这个提示还要么
// message.warning(error.msg || '请完善所有步骤的必填信息');
}
}

View File

@@ -121,11 +121,9 @@ onBeforeUnmount(() => {
/>
</ContentWrap>
</template>
<style lang="scss">
// TODO @jasontailwind
.process-panel__container {
position: absolute;
top: 110px;
right: 70px;
<style scoped>
:deep(.process-panel__container) {
@apply absolute right-[20px] top-[70px];
}
</style>

View File

@@ -238,15 +238,16 @@ async function handleDeleteCategory() {
}
/** 处理表单详情点击 */
function handleFormDetail(row: any) {
async function handleFormDetail(row: any) {
if (row.formType === BpmModelFormType.NORMAL) {
const data = {
id: row.formId,
};
formCreateDetailModalApi.setData(data).open();
} else {
// TODO 待实现 jason是不是已经 ok 啦?
console.warn('业务表单待实现', row);
await router.push({
path: row.formCustomCreatePath,
});
}
}
@@ -547,7 +548,7 @@ function handleRenameSuccess() {
<Collapse
:active-key="expandKeys"
:bordered="false"
class="bg-transparent"
class="collapse-no-padding bg-transparent"
>
<Collapse.Panel
key="1"
@@ -738,17 +739,10 @@ function handleRenameSuccess() {
</div>
</template>
<style lang="scss" scoped>
// @jason看看能不能通过 tailwindcss 简化下
.category-draggable-model {
// ant-collapse-header 自定义样式
:deep(.ant-collapse-header) {
padding: 0;
}
// 折叠面板样式
:deep(.ant-collapse-content-box) {
padding: 0;
}
<style scoped>
/* :deep() 实现样式穿透 */
.collapse-no-padding :deep(.ant-collapse-header),
.collapse-no-padding :deep(.ant-collapse-content-box) {
padding: 0;
}
</style>

View File

@@ -183,14 +183,13 @@ function setFieldPermission(field: string, permission: string) {
}
}
// TODO @jason这个还要么
/**
* 操作成功后刷新
*/
// const refresh = () => {
// // 重新获取详情
// getDetail();
// };
const refresh = () => {
// 重新获取详情
getDetail();
};
/** 监听 Tab 切换,当切换到 "record" 标签时刷新任务列表 */
watch(
@@ -369,7 +368,7 @@ onMounted(async () => {
:normal-form="detailForm"
:normal-form-api="fApi"
:writable-fields="writableFields"
@success="getDetail"
@success="refresh"
/>
</div>
</template>

View File

@@ -700,9 +700,6 @@ defineExpose({ loadTodoTask });
</script>
<template>
<div class="flex items-center">
<!-- TODO @jason这里要删除么 -->
<!-- <div>是否处理中 {{ !!isHandleTaskStatus() }}</div> -->
<!-- 通过按钮 -->
<!-- z-index 设置为300 避免覆盖签名弹窗 -->
<Space size="middle">
@@ -893,13 +890,12 @@ defineExpose({ loadTodoTask });
label-width="100px"
>
<FormItem label="抄送人" name="copyUserIds">
<!-- TODO @jason看看是不是用 看看能不能通过 tailwindcss 简化下 style -->
<Select
v-model:value="copyForm.copyUserIds"
:allow-clear="true"
style="width: 100%"
mode="multiple"
placeholder="请选择抄送人"
class="w-full"
>
<SelectOption
v-for="item in userOptions"