Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Z
zrch-risk-39
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Administrator
zrch-risk-39
Commits
de75b386
提交
de75b386
authored
3月 26, 2026
作者:
kxjia
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
问题整改
上级
11ce9257
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
106 行增加
和
52 行删除
+106
-52
StProblemCheckList.vue
...-39/src/views/project/problemCheck/StProblemCheckList.vue
+36
-29
StProblemExecApprovalList.vue
.../views/project/problemCheck/StProblemExecApprovalList.vue
+14
-3
StProblemExecList.vue
...t-39/src/views/project/problemCheck/StProblemExecList.vue
+14
-4
StProblemIndex.vue
...ient-39/src/views/project/problemCheck/StProblemIndex.vue
+2
-1
StProblemPlanApprovalList.vue
.../views/project/problemCheck/StProblemPlanApprovalList.vue
+14
-3
StProblemPlanList.vue
...t-39/src/views/project/problemCheck/StProblemPlanList.vue
+18
-3
StProblemCheckModal.vue
...s/project/problemCheck/components/StProblemCheckModal.vue
+8
-9
没有找到文件。
zrch-risk-client-39/src/views/project/problemCheck/StProblemCheckList.vue
浏览文件 @
de75b386
...
...
@@ -27,7 +27,7 @@
</
template
>
</BasicTable>
<!-- 表单区域 -->
<StProblemCheckModal
@
register=
"registerModal"
@
success=
"handleSuccess"
:bmpNodeId=
"1"
/>
<StProblemCheckModal
@
register=
"registerModal"
@
success=
"handleSuccess"
/>
</div>
</template>
...
...
@@ -38,9 +38,23 @@
import
{
useListPage
}
from
'/@/hooks/system/useListPage'
;
import
StProblemCheckModal
from
'./components/StProblemCheckModal.vue'
;
import
{
columns
,
searchFormSchema
}
from
'./StProblemCheck.data'
;
import
{
list
,
deleteOne
,
batchDelete
,
getImportUrl
,
getExportUrl
}
from
'./StProblemCheck.api'
;
import
{
list
,
deleteOne
,
batchDelete
,
getImportUrl
,
getExportUrl
,
saveOrUpdate
}
from
'./StProblemCheck.api'
;
const
props
=
defineProps
({
beforeFlowNode
:
{
type
:
Object
,
default
:
()
=>
({})
},
currentFlowNode
:
{
type
:
Object
,
default
:
()
=>
({})
},
nextFlowNode
:
{
type
:
Object
,
default
:
()
=>
({})
}
})
//注册model
const
[
registerModal
,
{
openModal
}]
=
useModal
();
const
[
registerPlanModal
,
{
openModal
:
openPlanModal
}]
=
useModal
();
...
...
@@ -52,7 +66,6 @@
columns
,
canResize
:
false
,
formConfig
:
{
//labelWidth: 120,
schemas
:
searchFormSchema
,
autoSubmitOnEnter
:
true
,
showAdvancedButton
:
true
,
...
...
@@ -60,7 +73,7 @@
fieldMapToTime
:
[],
},
beforeFetch
(
params
)
{
params
[
'
id'
]
=
""
//route.query
.id
params
[
'
bmpNodeId'
]
=
props
.
currentFlowNode
.
id
},
actionColumn
:
{
width
:
400
,
...
...
@@ -86,7 +99,11 @@
openModal
(
true
,
{
isUpdate
:
false
,
showFooter
:
true
,
bmpNodeId
:
route
.
query
.
bmpNodeId
record
:
{
bmpNodeId
:
props
.
currentFlowNode
.
id
,
deployId
:
props
.
currentFlowNode
.
deployId
,
bpmStatus
:
1
,
}
});
}
/**
...
...
@@ -147,23 +164,10 @@
{
label
:
'启动流程'
,
onClick
:
handleFlow
.
bind
(
null
,
record
),
// ifShow: ()=> {
// if(record['bpmStatus']==null||record['bpmStatus']=='')
// return true
// else return false
// }
},
// {
// label: '整改计划',
// onClick: handlePlan.bind(null, record),
// },
];
}
/**
* 下拉操作栏
*/
function
getDropDownAction
(
record
)
{
return
[
{
...
...
@@ -180,15 +184,18 @@
];
}
const
formData
=
ref
<
any
>
({})
// 填写的表单数据
const
refStProblemCheckFlow
=
ref
();
function
handleFlow
(
record
:
Recordable
)
{
formData
.
dataId
=
record
.
id
;
formData
.
dataName
=
'id'
;
definitionStartByDeployId
(
record
.
deployId
,
formData
).
then
(
res
=>
{
handleSuccess
();
})
async
function
handleFlow
(
record
:
Recordable
)
{
//alert(JSON.stringify(props.currentFlowNode))
//alert(JSON.stringify(props.nextFlowNode))
///alert(JSON.stringify(props.beforeFlowNode))
record
[
'deployId'
]
=
props
.
nextFlowNode
.
deployId
record
[
'bmpNodeId'
]
=
props
.
nextFlowNode
.
id
record
[
'bpmStatus'
]
=
2
await
saveOrUpdate
(
record
,
true
).
then
(
res
=>
{
handleSuccess
()
})
}
...
...
zrch-risk-client-39/src/views/project/problemCheck/StProblemExecApprovalList.vue
浏览文件 @
de75b386
...
...
@@ -25,10 +25,21 @@
import
{
list
}
from
'./StProblemCheck.api'
;
import
StProblemCheckExecuteModal
from
'./components/StProblemCheckExecuteModal.vue'
;
import
{
useRoute
}
from
'vue-router'
;
const
route
=
useRoute
();
const
props
=
defineProps
({
beforeFlowNode
:
{
type
:
Object
,
default
:
()
=>
({})
},
currentFlowNode
:
{
type
:
Object
,
default
:
()
=>
({})
},
nextFlowNode
:
{
type
:
Object
,
default
:
()
=>
({})
}
})
//注册model
const
[
registerExecuteModal
,
{
openModal
:
openExecuteModal
}]
=
useModal
();
...
...
zrch-risk-client-39/src/views/project/problemCheck/StProblemExecList.vue
浏览文件 @
de75b386
...
...
@@ -25,10 +25,20 @@
import
{
list
}
from
'./StProblemCheck.api'
;
import
StProblemCheckExecuteModal
from
'./components/StProblemCheckExecuteModal.vue'
;
import
{
useRoute
}
from
'vue-router'
;
const
route
=
useRoute
();
const
props
=
defineProps
({
beforeFlowNode
:
{
type
:
Object
,
default
:
()
=>
({})
},
currentFlowNode
:
{
type
:
Object
,
default
:
()
=>
({})
},
nextFlowNode
:
{
type
:
Object
,
default
:
()
=>
({})
}
})
//注册model
const
[
registerExecuteModal
,
{
openModal
:
openExecuteModal
}]
=
useModal
();
...
...
zrch-risk-client-39/src/views/project/problemCheck/StProblemIndex.vue
浏览文件 @
de75b386
...
...
@@ -3,7 +3,8 @@
<a-tabs
v-model:activeKey=
"activeTab"
@
change=
"handleTabChange"
style=
"margin-left: 16px"
>
<a-tab-pane
v-for=
"(node, index) in workflowNodes"
:key=
"index + 1"
:tab=
"node.name"
>
<div
v-if=
"node.formListUrl"
class=
"tab-content"
>
<component
:is=
"loadComponent(node.formListUrl)"
/>
<component
:is=
"loadComponent(node.formListUrl)"
:beforeFlowNode=
"workflowNodes[index-1]"
:currentFlowNode=
"node"
:nextFlowNode=
"workflowNodes[index+1]"
/>
</div>
<div
v-else
class=
"no-form"
>
该节点未配置表单
...
...
zrch-risk-client-39/src/views/project/problemCheck/StProblemPlanApprovalList.vue
浏览文件 @
de75b386
...
...
@@ -25,9 +25,20 @@
import
{
list
}
from
'./StProblemCheck.api'
;
import
StProblemCheckExecuteModal
from
'./components/StProblemCheckExecuteModal.vue'
;
import
{
useRoute
}
from
'vue-router'
;
const
route
=
useRoute
();
const
props
=
defineProps
({
beforeFlowNode
:
{
type
:
Object
,
default
:
()
=>
({})
},
currentFlowNode
:
{
type
:
Object
,
default
:
()
=>
({})
},
nextFlowNode
:
{
type
:
Object
,
default
:
()
=>
({})
}
})
//注册model
...
...
zrch-risk-client-39/src/views/project/problemCheck/StProblemPlanList.vue
浏览文件 @
de75b386
...
...
@@ -25,8 +25,22 @@
import
{
list
}
from
'./StProblemCheck.api'
;
import
StProblemCheckExecuteModal
from
'./components/StProblemCheckExecuteModal.vue'
;
import
{
useRoute
}
from
'vue-router'
;
const
route
=
useRoute
();
const
props
=
defineProps
({
beforeFlowNode
:
{
type
:
Object
,
default
:
()
=>
({})
},
currentFlowNode
:
{
type
:
Object
,
default
:
()
=>
({})
},
nextFlowNode
:
{
type
:
Object
,
default
:
()
=>
({})
}
})
const
[
registerExecuteModal
,
{
openModal
:
openExecuteModal
}]
=
useModal
();
...
...
@@ -45,7 +59,7 @@
fieldMapToTime
:
[],
},
beforeFetch
(
params
)
{
params
[
'
id'
]
=
route
.
query
.
id
params
[
'
bmpNodeId'
]
=
props
.
currentFlowNode
.
id
},
actionColumn
:
{
width
:
200
,
...
...
@@ -61,6 +75,7 @@
record
,
isUpdate
:
true
,
showFooter
:
true
,
nextFlowNode
:
props
.
nextFlowNode
,
});
}
...
...
zrch-risk-client-39/src/views/project/problemCheck/components/StProblemCheckModal.vue
浏览文件 @
de75b386
<
template
>
<BasicModal
v-bind=
"$attrs"
@
register=
"registerModal"
destroyOnClose
:title=
"title"
:width=
"800"
@
ok=
"handleSubmit"
>
<st-problem-check-form
/>
<!--
<BasicForm
@
register=
"registerForm"
></BasicForm>
-->
<BasicForm
@
register=
"registerForm"
></BasicForm>
</BasicModal>
</
template
>
...
...
@@ -11,11 +10,11 @@
import
{
BasicForm
,
useForm
}
from
'/@/components/Form/index'
;
import
{
formSchema
}
from
'../StProblemCheck.data'
;
import
{
saveOrUpdate
}
from
'../StProblemCheck.api'
;
import
stProblemCheckForm
from
'./StProblemCheckForm.vue'
;
// Emits声明
const
emit
=
defineEmits
([
'register'
,
'success'
]);
const
isUpdate
=
ref
(
true
);
const
bpm
Status
=
ref
(
''
);
const
bpm
FlowData
=
ref
({}
);
//表单配置
const
[
registerForm
,
{
setProps
,
resetFields
,
setFieldsValue
,
validate
}]
=
useForm
({
//labelWidth: 150,
...
...
@@ -28,7 +27,7 @@
//重置表单
await
resetFields
();
bpm
Status
.
value
=
data
?.
bpmStatus
||
''
;
bpm
FlowData
.
value
=
data
?.
record
||
{}
;
setModalProps
({
confirmLoading
:
false
,
showCancelBtn
:
!!
data
?.
showFooter
,
showOkBtn
:
!!
data
?.
showFooter
});
isUpdate
.
value
=
!!
data
?.
isUpdate
;
...
...
@@ -37,7 +36,7 @@
await
setFieldsValue
({
...
data
.
record
,
});
}
}
// 隐藏底部时禁用整个表单
setProps
({
disabled
:
!
data
?.
showFooter
});
});
...
...
@@ -47,9 +46,9 @@
async
function
handleSubmit
(
v
)
{
try
{
let
values
=
await
validate
();
if
(
!
unref
(
isUpdate
))
{
values
.
bpmStatus
=
bpmStatus
.
value
;
}
values
.
bpmStatus
=
bpmFlowData
.
value
?.
bpmStatus
||
''
;
values
.
bmpNodeId
=
bpmFlowData
.
value
?.
bmpNodeId
||
''
;
values
.
deployId
=
bpmFlowData
.
value
?.
deployId
||
''
;
setModalProps
({
confirmLoading
:
true
});
//提交表单
await
saveOrUpdate
(
values
,
isUpdate
.
value
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论