Skip to content

Conversation

@zhanglc0618
Copy link
Contributor

No description provided.

v-hasPermi="['bpm:oa-leave:create']"
link
type="primary"
@click="handleReInitiate(scope.row)"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

单词用 recreate 更好哈。

router.push({
name: 'OALeaveCreate',
query: {
id: row.id,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

就传递 oldId 噶。

然后,processInstanceId 不传递。因为 oldId 可以查询到流程编号噶。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

看到了,嘿嘿,直接用oldId从后台拿到全部业务数据了,我改下

const getLeaveData = async (id: number) => {
formLoading.value = true
const data = await LeaveApi.getLeave(id)
if(!data){
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if (!data) {

代码排版注意下哈。

defineOptions({ name: 'BpmOALeaveCreate' })
const message = useMessage() // 消息弹窗
const { delView } = useTagsViewStore() // 视图操作
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

另外:流程审批界面那,应该也有个重新发起。可以也加下哈。

} else if (processDefinitionDetail.formType === 10) {
//如果是【流程表单】,跳转到流程发起界面
await router.push({
name: 'BpmProcessInstanceDynamicFormCreate',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

name: 'BpmProcessInstanceCreate',

这里不用改呀。

await router.push({
path: processDefinitionDetail.formCustomCreatePath,
query: {
id: row.businessKey
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

最好传递 oldId ;别的地方也改下哈。

Copy link
Contributor

@YunaiV YunaiV left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

第二轮 review

@zhanglc0618 zhanglc0618 closed this Dec 9, 2025
@zhanglc0618 zhanglc0618 deleted the feature-oa-reinit branch December 9, 2025 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants