Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
csbr-daop
/
fe-data-trusted-space
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
2023384c
authored
2025-11-25 18:15:10 +0800
by
lihua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix:解决打包问题
1 parent
ef377f84
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
151 additions
and
0 deletions
components.d.ts
src/components/ApprovalProcess/dialog_approval.vue
src/types/components.d.ts
components.d.ts
View file @
2023384
...
...
@@ -17,6 +17,7 @@ declare module '@vue/runtime-core' {
Copyright
:
typeof
import
(
'./src/components/Copyright/index.vue'
)[
'default'
]
Day
:
typeof
import
(
'./src/components/Schedule/component/day.vue'
)[
'default'
]
Dialog
:
typeof
import
(
'./src/components/Dialog/index.vue'
)[
'default'
]
Dialog_approval
:
typeof
import
(
'./src/components/ApprovalProcess/dialog_approval.vue'
)[
'default'
]
Dialog_form
:
typeof
import
(
'./src/components/Dialog/dialog_form.vue'
)[
'default'
]
Dialog_grid
:
typeof
import
(
'./src/components/Dialog/dialog_grid.vue'
)[
'default'
]
Dialog_pane
:
typeof
import
(
'./src/components/Dialog/dialog_pane.vue'
)[
'default'
]
...
...
src/components/ApprovalProcess/dialog_approval.vue
0 → 100644
View file @
2023384
<
script
lang=
"ts"
setup
name=
"DialogApproval"
>
import
{
TableColumnWidth
}
from
'@/utils/enum'
;
import
{
getCrossDetailList
,
crossPlatformApprove
}
from
'@/api/modules/workFlowService'
;
const
{
proxy
}
=
getCurrentInstance
()
as
any
;
const
emits
=
defineEmits
([
"dialogCancel"
]);
const
props
=
defineProps
({
visible
:
{
type
:
Boolean
,
default
:
false
},
currentRowInfo
:
{
type
:
Object
,
default
:
{
}
},
isBizGuid
:
{
type
:
Boolean
,
default
:
false
}
})
const
dialogInfo
=
ref
({
visible
:
false
,
size
:
700
,
direction
:
"column"
,
header
:
{
title
:
"主平台审批节点"
,
},
footer
:
{
visible
:
false
}
});
watch
(()
=>
props
.
visible
,
()
=>
{
dialogInfo
.
value
.
visible
=
props
.
visible
;
if
(
props
.
visible
)
{
isReSubmit
.
value
=
false
;
tableInfo
.
value
.
data
=
[];
tableInfo
.
value
.
actionInfo
.
show
=
props
.
currentRowInfo
?.
crossPlatformApproveState
==
'E'
;
gettableList
();
}
},
{
immediate
:
true
})
/** 获取版本信息数据 */
const
gettableList
=
()
=>
{
tableInfo
.
value
.
loading
=
true
;
getCrossDetailList
({
pageIndex
:
1
,
pageSize
:
-
1
,
bizGuid
:
props
.
isBizGuid
?
props
.
currentRowInfo
.
bizGuid
:
props
.
currentRowInfo
.
guid
}).
then
((
res
:
any
)
=>
{
tableInfo
.
value
.
loading
=
false
;
if
(
res
.
code
==
proxy
.
$passCode
)
{
const
data
=
res
.
data
||
[];
tableInfo
.
value
.
data
=
data
?.
map
(
d
=>
{
d
.
approveState
=
d
.
approveState
==
null
?
undefined
:
d
.
approveState
;
return
d
;
});
tableInfo
.
value
.
actionInfo
.
show
=
tableInfo
.
value
.
data
?.[
0
]
&&
data
?.[
0
]?.
approveState
==
'E'
;
}
else
{
proxy
.
$ElMessage
.
error
(
res
.
msg
);
}
})
}
const
isReSubmit
=
ref
(
false
);
const
tableInfo
=
ref
({
id
:
'approval-table'
,
loading
:
false
,
minPanelHeight
:
"60px"
,
minHeight
:
"60px"
,
fields
:
[
{
label
:
"序号"
,
type
:
"index"
,
width
:
TableColumnWidth
.
INDEX
,
align
:
"center"
,
fixed
:
"left"
},
{
label
:
"节点"
,
field
:
"processName"
,
width
:
90
},
{
label
:
"处理对象"
,
field
:
"operator"
,
width
:
TableColumnWidth
.
USERNAME
},
{
label
:
"操作时间"
,
field
:
"operatingTime"
,
width
:
TableColumnWidth
.
DATETIME
,
},
{
label
:
"审批状态"
,
field
:
"approveState"
,
width
:
120
,
type
:
'tag'
,
align
:
'center'
},
{
label
:
"审批原因"
,
field
:
"approveSuggest"
,
width
:
TableColumnWidth
.
DESCRIPTION
},
],
data
:
[],
showPage
:
false
,
actionInfo
:
{
show
:
props
.
currentRowInfo
?.
crossPlatformApproveState
==
'E'
,
label
:
"操作"
,
type
:
"btn"
,
width
:
100
,
btns
:
[{
label
:
'重新发起'
,
click
:
(
scope
)
=>
{
tableInfo
.
value
.
loading
=
true
;
crossPlatformApprove
({
approveGuid
:
props
.
currentRowInfo
.
approveVO
.
approveGuid
,
guid
:
props
.
isBizGuid
?
props
.
currentRowInfo
.
bizGuid
:
props
.
currentRowInfo
.
guid
}).
then
((
res
:
any
)
=>
{
tableInfo
.
value
.
loading
=
false
;
if
(
res
.
code
==
proxy
.
$passCode
)
{
proxy
.
$ElMessage
({
type
:
"success"
,
message
:
'重新发起成功'
,
});
gettableList
();
isReSubmit
.
value
=
true
;
}
else
{
proxy
.
$ElMessage
({
type
:
"error"
,
message
:
res
.
msg
,
});
}
})
}
}]
}
});
const
handleDialogCancel
=
()
=>
{
dialogInfo
.
value
.
visible
=
false
;
emits
(
"dialogCancel"
,
isReSubmit
.
value
);
}
</
script
>
<
template
>
<el-dialog
v-model=
"dialogInfo.visible"
:title=
"dialogInfo.header.title"
width=
"700"
:modal=
"true"
:close-on-click-modal=
"true"
destroy-on-close
align-center
@
close=
"handleDialogCancel"
>
<Table
ref=
"tableRef"
:tableInfo=
"tableInfo"
class=
"approval-table"
/>
</el-dialog>
</
template
>
<
style
lang=
"scss"
scoped
>
.approval-table
{
height
:
180px
!important
;
}
:deep
(
.cusror-inherit
)
{
cursor
:
inherit
;
}
</
style
>
\ No newline at end of file
src/types/components.d.ts
View file @
2023384
...
...
@@ -17,6 +17,7 @@ declare module '@vue/runtime-core' {
Copyright
:
typeof
import
(
'./../components/Copyright/index.vue'
)[
'default'
]
Day
:
typeof
import
(
'./../components/Schedule/component/day.vue'
)[
'default'
]
Dialog
:
typeof
import
(
'./../components/Dialog/index.vue'
)[
'default'
]
Dialog_approval
:
typeof
import
(
'./../components/ApprovalProcess/dialog_approval.vue'
)[
'default'
]
Dialog_form
:
typeof
import
(
'./../components/Dialog/dialog_form.vue'
)[
'default'
]
Dialog_grid
:
typeof
import
(
'./../components/Dialog/dialog_grid.vue'
)[
'default'
]
Dialog_pane
:
typeof
import
(
'./../components/Dialog/dialog_pane.vue'
)[
'default'
]
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment