feat: [antd] [bpm] 代码评审 todo 修改
This commit is contained in:
@@ -32,15 +32,18 @@ function handleRefresh() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** 查看表单详情 */
|
/** 查看表单详情 */
|
||||||
function handleFormDetail(row: BpmProcessDefinitionApi.ProcessDefinition) {
|
async function handleFormDetail(
|
||||||
|
row: BpmProcessDefinitionApi.ProcessDefinition,
|
||||||
|
) {
|
||||||
if (row.formType === BpmModelFormType.NORMAL) {
|
if (row.formType === BpmModelFormType.NORMAL) {
|
||||||
const data = {
|
const data = {
|
||||||
id: row.formId,
|
id: row.formId,
|
||||||
};
|
};
|
||||||
formCreateDetailModalApi.setData(data).open();
|
formCreateDetailModalApi.setData(data).open();
|
||||||
} else {
|
} else {
|
||||||
// TODO 待实现 jason 这里要改么?
|
await router.push({
|
||||||
console.warn('业务表单待实现', row);
|
path: row.formCustomCreatePath,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -309,8 +309,6 @@ async function handleSave() {
|
|||||||
}
|
}
|
||||||
} catch (error: any) {
|
} catch (error: any) {
|
||||||
console.error('保存失败:', error);
|
console.error('保存失败:', error);
|
||||||
// TODO @jason:这个提示,还要么???
|
|
||||||
// message.warning(error.msg || '请完善所有步骤的必填信息');
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -121,11 +121,9 @@ onBeforeUnmount(() => {
|
|||||||
/>
|
/>
|
||||||
</ContentWrap>
|
</ContentWrap>
|
||||||
</template>
|
</template>
|
||||||
<style lang="scss">
|
|
||||||
// TODO @jason:tailwind?
|
<style scoped>
|
||||||
.process-panel__container {
|
:deep(.process-panel__container) {
|
||||||
position: absolute;
|
@apply absolute right-[20px] top-[70px];
|
||||||
top: 110px;
|
|
||||||
right: 70px;
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -238,15 +238,16 @@ async function handleDeleteCategory() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** 处理表单详情点击 */
|
/** 处理表单详情点击 */
|
||||||
function handleFormDetail(row: any) {
|
async function handleFormDetail(row: any) {
|
||||||
if (row.formType === BpmModelFormType.NORMAL) {
|
if (row.formType === BpmModelFormType.NORMAL) {
|
||||||
const data = {
|
const data = {
|
||||||
id: row.formId,
|
id: row.formId,
|
||||||
};
|
};
|
||||||
formCreateDetailModalApi.setData(data).open();
|
formCreateDetailModalApi.setData(data).open();
|
||||||
} else {
|
} else {
|
||||||
// TODO 待实现 jason:是不是已经 ok 啦?
|
await router.push({
|
||||||
console.warn('业务表单待实现', row);
|
path: row.formCustomCreatePath,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -547,7 +548,7 @@ function handleRenameSuccess() {
|
|||||||
<Collapse
|
<Collapse
|
||||||
:active-key="expandKeys"
|
:active-key="expandKeys"
|
||||||
:bordered="false"
|
:bordered="false"
|
||||||
class="bg-transparent"
|
class="collapse-no-padding bg-transparent"
|
||||||
>
|
>
|
||||||
<Collapse.Panel
|
<Collapse.Panel
|
||||||
key="1"
|
key="1"
|
||||||
@@ -738,17 +739,10 @@ function handleRenameSuccess() {
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style scoped>
|
||||||
// @jason:看看能不能通过 tailwindcss 简化下
|
/* :deep() 实现样式穿透 */
|
||||||
.category-draggable-model {
|
.collapse-no-padding :deep(.ant-collapse-header),
|
||||||
// ant-collapse-header 自定义样式
|
.collapse-no-padding :deep(.ant-collapse-content-box) {
|
||||||
:deep(.ant-collapse-header) {
|
padding: 0;
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
// 折叠面板样式
|
|
||||||
:deep(.ant-collapse-content-box) {
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -183,14 +183,13 @@ function setFieldPermission(field: string, permission: string) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO @jason:这个还要么?
|
|
||||||
/**
|
/**
|
||||||
* 操作成功后刷新
|
* 操作成功后刷新
|
||||||
*/
|
*/
|
||||||
// const refresh = () => {
|
const refresh = () => {
|
||||||
// // 重新获取详情
|
// 重新获取详情
|
||||||
// getDetail();
|
getDetail();
|
||||||
// };
|
};
|
||||||
|
|
||||||
/** 监听 Tab 切换,当切换到 "record" 标签时刷新任务列表 */
|
/** 监听 Tab 切换,当切换到 "record" 标签时刷新任务列表 */
|
||||||
watch(
|
watch(
|
||||||
@@ -369,7 +368,7 @@ onMounted(async () => {
|
|||||||
:normal-form="detailForm"
|
:normal-form="detailForm"
|
||||||
:normal-form-api="fApi"
|
:normal-form-api="fApi"
|
||||||
:writable-fields="writableFields"
|
:writable-fields="writableFields"
|
||||||
@success="getDetail"
|
@success="refresh"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -700,9 +700,6 @@ defineExpose({ loadTodoTask });
|
|||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<div class="flex items-center">
|
<div class="flex items-center">
|
||||||
<!-- TODO @jason:这里要删除么? -->
|
|
||||||
<!-- <div>是否处理中 {{ !!isHandleTaskStatus() }}</div> -->
|
|
||||||
|
|
||||||
<!-- 【通过】按钮 -->
|
<!-- 【通过】按钮 -->
|
||||||
<!-- z-index 设置为300 避免覆盖签名弹窗 -->
|
<!-- z-index 设置为300 避免覆盖签名弹窗 -->
|
||||||
<Space size="middle">
|
<Space size="middle">
|
||||||
@@ -893,13 +890,12 @@ defineExpose({ loadTodoTask });
|
|||||||
label-width="100px"
|
label-width="100px"
|
||||||
>
|
>
|
||||||
<FormItem label="抄送人" name="copyUserIds">
|
<FormItem label="抄送人" name="copyUserIds">
|
||||||
<!-- TODO @jason:看看是不是用 看看能不能通过 tailwindcss 简化下 style -->
|
|
||||||
<Select
|
<Select
|
||||||
v-model:value="copyForm.copyUserIds"
|
v-model:value="copyForm.copyUserIds"
|
||||||
:allow-clear="true"
|
:allow-clear="true"
|
||||||
style="width: 100%"
|
|
||||||
mode="multiple"
|
mode="multiple"
|
||||||
placeholder="请选择抄送人"
|
placeholder="请选择抄送人"
|
||||||
|
class="w-full"
|
||||||
>
|
>
|
||||||
<SelectOption
|
<SelectOption
|
||||||
v-for="item in userOptions"
|
v-for="item in userOptions"
|
||||||
|
|||||||
Reference in New Issue
Block a user