Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Z
zrch-risk-39
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Administrator
zrch-risk-39
Commits
070bc6c0
提交
070bc6c0
authored
1月 23, 2026
作者:
kxjia
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改 找不到id问题
上级
05bcf8a9
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
57 行增加
和
38 行删除
+57
-38
definition.js
zrch-risk-client-39/src/components/Process/api/definition.js
+9
-8
expression.js
zrch-risk-client-39/src/components/Process/api/expression.js
+2
-1
finished.js
zrch-risk-client-39/src/components/Process/api/finished.js
+4
-2
listener.js
zrch-risk-client-39/src/components/Process/api/listener.js
+2
-1
process.js
zrch-risk-client-39/src/components/Process/api/process.js
+6
-3
todo.js
zrch-risk-client-39/src/components/Process/api/todo.js
+6
-3
AddFlow.vue
...-risk-client-39/src/views/flowable/definition/AddFlow.vue
+28
-19
index.vue
zrch-risk-client-39/src/views/flowable/definition/index.vue
+0
-1
没有找到文件。
zrch-risk-client-39/src/components/Process/api/definition.js
浏览文件 @
070bc6c0
...
...
@@ -68,24 +68,24 @@ export function expList(query) {
// 读取xml文件
export
function
readXml
(
deployId
)
{
return
defHttp
.
get
({
url
:
'/flowable/definition/readXml
/'
+
deployId
,
method
:
'get'
url
:
'/flowable/definition/readXml
'
,
params
:
{
deployId
:
deployId
}
})
}
// 读取image文件
export
function
readImage
(
deployId
)
{
return
defHttp
.
get
({
url
:
'/flowable/definition/readImage
/'
+
deployId
,
method
:
'get'
url
:
'/flowable/definition/readImage
'
,
params
:
{
deployId
:
deployId
}
})
}
// 获取流程执行节点
export
function
getFlowViewer
(
procInsId
,
executionId
)
{
return
defHttp
.
get
({
url
:
'/flowable/task/flowViewer
/'
+
procInsId
+
'/'
+
executionId
,
method
:
'get'
url
:
'/flowable/task/flowViewer
'
,
params
:
{
procInsId
:
procInsId
,
executionId
:
executionId
}
})
}
...
...
@@ -166,7 +166,7 @@ export function delDeployment(deployId,handleSuccess) {
onOk
:
()
=>
{
return
defHttp
.
delete
(
{
url
:
`/flowable/definition/delete?deployId=
${
encodeURIComponent
(
deployId
)}
`
url
:
`/flowable/definition/delete?deployId=
${
encodeURIComponent
(
deployId
)}
`
,
},
).
then
(()
=>
{
handleSuccess
();
...
...
@@ -186,8 +186,9 @@ export function selectTableNameList() {
// 部署流程实例
export
function
definitionStartByDeployId
(
deployId
,
data
)
{
data
[
"deployId"
]
=
deployId
return
defHttp
.
post
({
url
:
'/flowable/definition/startByDeployId
/'
+
deployId
,
url
:
'/flowable/definition/startByDeployId
'
,
data
:
data
})
}
...
...
zrch-risk-client-39/src/components/Process/api/expression.js
浏览文件 @
070bc6c0
...
...
@@ -13,7 +13,8 @@ export function listExpression(query) {
// 查询流程达式详细
export
function
getExpression
(
id
)
{
return
defHttp
.
get
({
url
:
'/flowable/expression/'
+
id
,
url
:
'/flowable/expression'
,
params
:
{
id
:
id
}
})
}
...
...
zrch-risk-client-39/src/components/Process/api/finished.js
浏览文件 @
070bc6c0
...
...
@@ -21,14 +21,16 @@ export function flowRecord(query) {
// 部署流程实例
export
function
deployStart
(
deployId
)
{
return
defHttp
.
get
({
url
:
'/flowable/process/startFlow/'
+
deployId
,
url
:
'/flowable/process/startFlow'
,
params
:
{
deployId
:
deployId
}
})
}
// 查询流程定义详细
export
function
getDeployment
(
id
)
{
return
defHttp
.
get
({
url
:
'/system/deployment/'
+
id
url
:
'/system/deployment'
,
params
:
{
id
:
id
}
})
}
...
...
zrch-risk-client-39/src/components/Process/api/listener.js
浏览文件 @
070bc6c0
...
...
@@ -13,7 +13,8 @@ export function listListener(query) {
// 查询流程监听详细
export
function
getListener
(
id
)
{
return
defHttp
.
get
({
url
:
'/flowable/listener/'
+
id
,
url
:
'/flowable/listener'
,
params
:
{
id
:
id
}
})
}
...
...
zrch-risk-client-39/src/components/Process/api/process.js
浏览文件 @
070bc6c0
...
...
@@ -58,14 +58,16 @@ export function returnList(data) {
// 部署流程实例
export
function
deployStart
(
deployId
)
{
return
defHttp
.
get
({
url
:
'/flowable/process/startFlow/'
+
deployId
,
url
:
'/flowable/process/startFlow'
,
params
:
{
deployId
:
deployId
}
})
}
// 查询流程定义详细
export
function
getDeployment
(
id
)
{
return
defHttp
.
get
({
url
:
'/system/deployment/'
+
id
,
url
:
'/system/deployment'
,
params
:
{
id
:
id
}
})
}
...
...
@@ -88,7 +90,8 @@ export function updateDeployment(data) {
// 删除流程定义
export
function
delDeployment
(
id
)
{
return
defHttp
.
delete
({
url
:
'/system/deployment/'
+
id
,
url
:
'/system/deployment'
,
params
:
{
id
:
id
}
})
}
...
...
zrch-risk-client-39/src/components/Process/api/todo.js
浏览文件 @
070bc6c0
...
...
@@ -68,14 +68,16 @@ export function getNextFlowNodeByStart(data) {
// 部署流程实例
export
function
deployStart
(
deployId
)
{
return
defHttp
.
get
({
url
:
'/flowable/process/startFlow/'
+
deployId
,
url
:
'/flowable/process/startFlow'
,
params
:
{
deployId
:
deployId
}
})
}
// 查询流程定义详细
export
function
getDeployment
(
id
)
{
return
defHttp
.
get
({
url
:
'/system/deployment/'
+
id
,
url
:
'/system/deployment'
,
params
:
{
id
:
id
}
})
}
...
...
@@ -98,7 +100,8 @@ export function updateDeployment(data) {
// 删除流程定义
export
function
delDeployment
(
id
)
{
return
defHttp
.
delete
({
url
:
'/system/deployment/'
+
id
,
url
:
'/system/deployment'
,
params
:
{
id
:
id
}
})
}
...
...
zrch-risk-client-39/src/views/flowable/definition/AddFlow.vue
浏览文件 @
070bc6c0
...
...
@@ -19,10 +19,9 @@
width="70%"
>
<a-scrollbar>
<div
style=
"background-color: black;"
>
<div
style=
"background-color: black;"
>
<pre><code
class=
"xml"
v-html=
"highlightedXml"
></code></pre>
</div>
</a-scrollbar>
</a-drawer>
</div>
...
...
@@ -34,15 +33,15 @@ import { readXml, saveXml } from "/@/components/Process/api/definition"
import
BpmnModel
from
'/@/components/Process/index.vue'
import
*
as
vkbeautify
from
'vkbeautify'
import
hljs
from
'highlight.js'
import
{
useRouter
,
useRoute
}
from
'vue-router'
const
router
=
useRouter
();
const
route
=
useRoute
();
import
{
useRouter
,
useRoute
}
from
'vue-router'
// 使用一个存在的样式文件
import
"highlight.js/styles/atom-one-dark.css"
const
router
=
useRouter
()
const
route
=
useRoute
()
// 定义类型
interface
ProcessData
{
process
:
{
...
...
@@ -66,17 +65,16 @@ const xmlData = ref<string>('')
// 计算属性,用于高亮显示的XML
const
highlightedXml
=
computed
(()
=>
{
if
(
!
xmlData
.
value
)
return
''
;
return
hljs
.
highlight
(
xmlData
.
value
,
{
language
:
'xml'
}).
value
;
});
if
(
!
xmlData
.
value
)
return
''
return
hljs
.
highlight
(
xmlData
.
value
,
{
language
:
'xml'
}).
value
})
// 获取XML数据
const
getXmlData
=
async
(
deployId
:
string
)
=>
{
try
{
xml
.
value
=
await
readXml
(
deployId
)
}
catch
(
error
)
{
console
.
error
(
'Failed
to fetch XML data
:'
,
error
)
console
.
error
(
'Failed:'
,
error
)
}
}
...
...
@@ -90,24 +88,35 @@ const save = async (data: ProcessData) => {
try
{
const
res
=
await
saveXml
(
params
)
await
handleSuccess
()
;
await
handleSuccess
()
}
catch
(
error
)
{
console
.
error
(
'Failed to save XML:'
,
error
)
}
}
const
handleSuccess
=
async
()
=>
{
//closeSameRoute("/flowable/definition/AddFlow")
router
.
push
({
path
:
'/flowable/definition/index'
});
router
.
push
({
path
:
'/flowable/definition/index'
})
}
// 展示XML
const
showXML
=
(
xmlContent
:
string
)
=>
{
xmlTitle
.
value
=
'XML查看'
xmlOpen
.
value
=
true
xmlData
.
value
=
vkBeautify
.
xml
(
xmlContent
)
// 修改2: 使用正确的大小写和调用方式
try
{
// 第一种方式: 使用 default 导出(如果库是这种方式)
if
(
vkbeautify
&&
typeof
vkbeautify
===
'object'
&&
vkbeautify
.
xml
)
{
xmlData
.
value
=
vkbeautify
.
xml
(
xmlContent
)
}
else
{
// 如果 vkbeautify 本身就是函数
xmlData
.
value
=
vkbeautify
(
xmlContent
)
}
}
catch
(
error
)
{
console
.
error
(
'Failed to format XML:'
,
error
)
// 如果格式化失败,使用原始XML内容
xmlData
.
value
=
xmlContent
}
}
onMounted
(()
=>
{
...
...
@@ -155,7 +164,7 @@ onMounted(() => {
pre
{
margin
:
0
;
padding
:
16px
;
//background-color: #282c34;
//
background-color: #282c34;
border-radius
:
4px
;
code
{
...
...
zrch-risk-client-39/src/views/flowable/definition/index.vue
浏览文件 @
070bc6c0
...
...
@@ -238,7 +238,6 @@ function handleConfigForm(row: RowVO) {
function
handleDesign
(
row
:
RowVO
)
{
if
(
isOperationInProgress
(
'design'
,
row
.
id
))
return
;
setOperationState
(
'design'
,
row
.
id
,
true
);
try
{
const
url
=
"/flowable/definition/AddFlow"
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论