Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Z
zrch-risk-39
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Administrator
zrch-risk-39
Commits
7a1bf054
提交
7a1bf054
authored
4月 22, 2026
作者:
liuluyu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
新增问题清单页面
上级
ec169a2a
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
181 行增加
和
44 行删除
+181
-44
StProblemCheck.data.ts
...-39/src/views/project/problemCheck/StProblemCheck.data.ts
+44
-44
StProblemCheckList.vue
...t-39/src/views/project/problemList/StProblemCheckList.vue
+137
-0
没有找到文件。
zrch-risk-client-39/src/views/project/problemCheck/StProblemCheck.data.ts
浏览文件 @
7a1bf054
...
...
@@ -245,28 +245,28 @@ export const planFormSchema: FormSchema[] = [
component
:
'DatePicker'
,
// required: true,
},
{
label
:
'负责部门'
,
field
:
'headDepCode'
,
component
:
'JSelectDept'
,
componentProps
:
{
multiple
:
false
,
labelKey
:
'departName'
,
rowKey
:
'orgCode'
,
},
required
:
true
,
},
{
field
:
'headUserId'
,
component
:
'JSelectUser'
,
label
:
'负责人'
,
componentProps
:
{
multiple
:
false
,
labelKey
:
'realname'
,
rowKey
:
'id'
,
},
required
:
true
,
},
//
{
//
label: '负责部门',
//
field: 'headDepCode',
//
component: 'JSelectDept',
//
componentProps: {
//
multiple: false,
//
labelKey: 'departName',
//
rowKey: 'orgCode',
//
},
//
required: true,
//
},
//
{
//
field: 'headUserId',
//
component: 'JSelectUser',
//
label: '负责人',
//
componentProps: {
//
multiple: false,
//
labelKey: 'realname',
//
rowKey: 'id',
//
},
//
required: true,
//
},
{
label
:
''
,
field
:
'id'
,
...
...
@@ -282,28 +282,28 @@ export const executeFormSchema: FormSchema[] = [
component
:
'Input'
,
dynamicDisabled
:
true
,
},
{
field
:
'execDepCode'
,
component
:
'JSelectDept'
,
label
:
'执行部门'
,
// required: true,
componentProps
:
{
multiple
:
false
,
labelKey
:
'departName'
,
rowKey
:
'orgCode'
,
},
},
{
field
:
'execUserId'
,
component
:
'JSelectUser'
,
label
:
'负责人'
,
// required: true,
componentProps
:
{
multiple
:
false
,
labelKey
:
'realname'
,
rowKey
:
'id'
,
},
},
//
{
//
field: 'execDepCode',
//
component: 'JSelectDept',
//
label: '执行部门',
//
// required: true,
//
componentProps: {
//
multiple: false,
//
labelKey: 'departName',
//
rowKey: 'orgCode',
//
},
//
},
//
{
//
field: 'execUserId',
//
component: 'JSelectUser',
//
label: '负责人',
//
// required: true,
//
componentProps: {
//
multiple: false,
//
labelKey: 'realname',
//
rowKey: 'id',
//
},
//
},
{
label
:
'实际开始日期'
,
field
:
'execStartDate'
,
...
...
zrch-risk-client-39/src/views/project/problemList/StProblemCheckList.vue
0 → 100644
浏览文件 @
7a1bf054
<
template
>
<div>
<BasicTable
@
register=
"registerTable"
:rowSelection=
"rowSelection"
>
<template
#
tableTitle
>
<!--
<a-button
type=
"primary"
@
click=
"handleAdd"
preIcon=
"ant-design:plus-outlined"
>
添加问题
</a-button>
-->
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
<template
#
overlay
>
<a-menu>
<a-menu-item
key=
"1"
@
click=
"batchHandleDelete"
>
<Icon
icon=
"ant-design:delete-outlined"
/>
删除
</a-menu-item>
</a-menu>
</
template
>
<a-button
>
批量操作
<Icon
icon=
"mdi:chevron-down"
/>
</a-button>
</a-dropdown>
</template>
<
template
#
action=
"{ record }"
>
<TableAction
:actions=
"getTableAction(record)"
:dropDownActions=
"getDropDownAction(record)"
/>
</
template
>
</BasicTable>
<StProblemCheckModal
@
register=
"registerModal"
@
success=
"handleSuccess"
:centered=
"true"
/>
</div>
</template>
<
script
lang=
"ts"
name=
"problem-stProblemCheck"
setup
>
import
{
ref
,
unref
}
from
'vue'
;
import
{
BasicTable
,
TableAction
}
from
'/@/components/Table'
;
import
{
useModal
}
from
'/@/components/Modal'
;
import
{
Icon
}
from
'/@/components/Icon'
;
import
{
useListPage
}
from
'/@/hooks/system/useListPage'
;
import
StProblemCheckModal
from
'../problemCheck/components/StProblemCheckModal.vue'
;
import
{
columns
,
searchFormSchema
}
from
'../problemCheck/StProblemCheck.data'
;
import
{
list
,
deleteOne
,
batchDelete
,
getImportUrl
,
getExportUrl
,
saveOrUpdate
}
from
'../problemCheck/StProblemCheck.api'
;
import
{
useMessage
}
from
'/@/hooks/web/useMessage'
;
const
{
createConfirm
}
=
useMessage
();
const
props
=
defineProps
({
beforeFlowNode
:
{
type
:
Object
,
default
:
()
=>
({})
},
currentFlowNode
:
{
type
:
Object
,
default
:
()
=>
({})
},
nextFlowNode
:
{
type
:
Object
,
default
:
()
=>
({})
},
todoList
:
{
type
:
Array
,
default
:
()
=>
[]
},
});
const
emit
=
defineEmits
([
'callback'
,
'startWorkFlow'
,
'sendWorkFlow'
,
'openMultiForm'
]);
const
[
registerModal
,
{
openModal
}]
=
useModal
();
const
[
registerPlanModal
,
{
openModal
:
openPlanModal
}]
=
useModal
();
const
{
prefixCls
,
tableContext
,
onExportXls
,
onImportXls
}
=
useListPage
({
tableProps
:
{
title
:
'问题整改'
,
api
:
list
,
columns
,
canResize
:
false
,
beforeFetch
(
params
)
{
params
[
'bpmNodeId'
]
=
props
.
currentFlowNode
.
id
;
params
[
'todoList'
]
=
props
.
todoList
;
},
actionColumn
:
{
width
:
200
,
fixed
:
'right'
},
},
exportConfig
:
{
name
:
'问题整改'
,
url
:
getExportUrl
},
importConfig
:
{
url
:
getImportUrl
,
success
:
handleSuccess
},
});
const
[
registerTable
,
{
reload
},
{
rowSelection
,
selectedRowKeys
}]
=
tableContext
;
function
handleAdd
()
{
openModal
(
true
,
{
isUpdate
:
false
,
showFooter
:
true
,
record
:
{
bpmNodeId
:
props
.
currentFlowNode
.
id
,
deployId
:
props
.
currentFlowNode
.
deployId
,
bpmStatus
:
0
},
});
}
function
handleEdit
(
record
:
Recordable
)
{
openModal
(
true
,
{
record
,
isUpdate
:
true
,
showFooter
:
true
});
}
function
handleDetail
(
record
:
Recordable
)
{
openModal
(
true
,
{
record
,
isUpdate
:
true
,
showFooter
:
false
});
}
async
function
handleDelete
(
record
)
{
await
deleteOne
({
id
:
record
.
id
},
handleSuccess
);
}
async
function
batchHandleDelete
()
{
await
batchDelete
({
ids
:
unref
(
selectedRowKeys
)
},
handleSuccess
);
}
function
handleSuccess
(
retData
)
{
selectedRowKeys
.
value
=
[];
reload
();
if
(
retData
)
emit
(
'startWorkFlow'
,
retData
);
}
function
getTableAction
(
record
)
{
return
[
{
label
:
'编辑'
,
onClick
:
handleEdit
.
bind
(
null
,
record
)
},
// { label: '发送', onClick: handleFlow.bind(null, record) },
];
}
function
getDropDownAction
(
record
)
{
return
[
{
label
:
'详情'
,
onClick
:
handleDetail
.
bind
(
null
,
record
)
},
{
label
:
'删除'
,
popConfirm
:
{
title
:
'是否确认删除'
,
confirm
:
handleDelete
.
bind
(
null
,
record
)
},
},
];
}
async
function
handleFlow
(
record
:
Recordable
)
{
emit
(
'sendWorkFlow'
,
record
);
}
async
function
handleUpdate
(
dataId
,
flowNode
)
{
const
record
=
{
bpmNodeId
:
flowNode
.
id
,
deployId
:
flowNode
.
deployId
,
bpmStatus
:
2
,
id
:
dataId
};
await
saveOrUpdate
(
record
,
true
);
selectedRowKeys
.
value
=
[];
reload
();
}
async
function
handleStartUpdate
(
flowData
)
{
const
record
=
{
procInsId
:
flowData
.
procInsId
,
id
:
flowData
.
dataId
,
bpmStatus
:
0
};
await
saveOrUpdate
(
record
,
true
);
handleSuccess
(
null
);
}
defineExpose
({
handleUpdate
,
handleStartUpdate
});
</
script
>
<
style
scoped
></
style
>
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论