Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
W
web
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
INET-TWO
web
Commits
62cb2efa
Commit
62cb2efa
authored
Oct 11, 2024
by
ztf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
任务中心,任务详情添加反馈信息,添加ICM相关技术单添加
parent
437c7776
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
385 additions
and
55 deletions
+385
-55
index.vue
...ivateComponents/components/ExtICMPlanDocLinkAdd/index.vue
+129
-0
index.vue
...privateComponents/components/changeProjectState/index.vue
+1
-0
task-detail.vue
...ask-center/src/business-components/tabCom/task-detail.vue
+85
-22
MyProcessPlanTable.vue
...low/task-center/newhome/components/MyProcessPlanTable.vue
+33
-9
ProcessTaskTable.vue
...kflow/task-center/newhome/components/ProcessTaskTable.vue
+114
-16
index.vue
...k-center/src/views/workflow/task-center/newhome/index.vue
+7
-2
view.js
...ask-center/src/views/workflow/task-center/newhome/view.js
+16
-6
No files found.
applications/dee-plan/src/privateComponents/components/ExtICMPlanDocLinkAdd/index.vue
0 → 100644
View file @
62cb2efa
<
template
>
<div
class=
"ExtICMPlanDocLinkAdd"
>
<!-- 搜索条件 -->
<dee-as-com
ref=
"search"
:lay-config=
"
{
layKey:'ExtICMPlanDocLink-Query',
typeName:'DxDocument'
}"
@searchEvent="searchEvent"
/>
<dee-as-com
ref=
"tableRef"
:lay-config=
"
{
layKey:'ExtICMPlanDocLink-addlist',
typeName:'DxDocument'
}"
:dis-business="true"
:result-data="tableData"
@selectionChange="selectionChange"
/>
<div
class=
"btns"
>
<el-button
type=
"primary"
class=
"submitBTN"
:disabled=
"!isDisable"
@
click=
"tosubmit"
>
确定
</el-button>
<el-button
type=
"primary"
@
click=
"$emit('cancel')"
>
取消
</el-button>
</div>
</div>
</
template
>
<
script
>
import
{
post
}
from
'@/utils/http'
export
default
{
name
:
'ExtICMPlanDocLinkAdd'
,
componentName
:
'ICM相关联系单-添加'
,
props
:
{
basicData
:
{
type
:
Object
,
default
:
()
=>
{}
},
componentProp
:
{
type
:
Object
,
default
:
()
=>
{}
}
},
data
()
{
return
{
selections
:
[],
searchForm
:
[],
tableData
:
[]
}
},
computed
:
{
isDisable
()
{
return
Boolean
(
this
.
selections
.
length
)
},
queryParams
()
{
// 基本参数
let
searchItems
=
[{
'fieldName'
:
'subTypeName'
,
'operator'
:
'EQ'
,
'value'
:
'ContactList'
}
]
// 过滤参数
const
{
items
}
=
this
.
searchForm
if
(
items
&&
items
.
length
>
0
)
{
searchItems
=
[...
searchItems
,
...
items
]
}
return
{
'pageFrom'
:
1
,
'pageSize'
:
9999
,
'searchItems'
:
{
'items'
:
searchItems
,
'operator'
:
'AND'
},
'sortItem'
:
[{
'fieldName'
:
'modifyTime'
,
'sortOrder'
:
'desc'
}]
}
}
},
mounted
()
{
},
methods
:
{
getData
()
{
const
params
=
this
.
queryParams
post
(
'/DxDocument/search'
,
params
).
then
(
res
=>
{
this
.
tableData
=
res
.
items
.
content
})
},
searchEvent
(
searchForm
)
{
this
.
searchForm
=
searchForm
this
.
getData
()
},
selectionChange
(
data
)
{
this
.
selections
=
data
},
tosubmit
()
{
const
params
=
{
sourceId
:
this
.
basicData
.
id
,
// 计划id
targetId
:
this
.
selections
[
0
].
id
// 联系单id
}
if
(
this
.
selections
&&
this
.
selections
.
length
===
1
)
{
post
(
'/ExtICMPlanDocLink/bindPlanAndDoc'
,
params
).
then
(
res
=>
{
if
(
res
.
items
)
{
this
.
$utils
.
showMessageSuccess
(
'添加成功!'
)
this
.
$emit
(
'completeEven'
)
}
})
}
else
{
this
.
$message
.
error
(
'一次只能添加一个技术联系单'
)
}
}
}
}
</
script
>
<
style
lang=
'scss'
scoped
>
.ExtICMPlanDocLinkAdd
{
height
:
calc
(
80%
);
.btns
{
text-align
:
center
;
margin-top
:
30px
;
}
.submitBTN
{
margin-right
:
20px
;
}
}
</
style
>
applications/dee-project/src/privateComponents/components/changeProjectState/index.vue
View file @
62cb2efa
...
@@ -58,6 +58,7 @@ export default {
...
@@ -58,6 +58,7 @@ export default {
const
status
=
this
.
form
.
state
const
status
=
this
.
form
.
state
const
subTypeName
=
this
.
subTypeName
===
'ExtProgram'
?
'ExtProgram'
:
'DxContext'
const
subTypeName
=
this
.
subTypeName
===
'ExtProgram'
?
'ExtProgram'
:
'DxContext'
post
(
`/
${
subTypeName
}
/lifecycle/changeStatus?id=
${
id
}
&status=
${
status
}
&isValid=true`
).
then
(
res
=>
{
post
(
`/
${
subTypeName
}
/lifecycle/changeStatus?id=
${
id
}
&status=
${
status
}
&isValid=true`
).
then
(
res
=>
{
this
.
$utils
.
showMessageSuccess
(
'修改成功'
)
this
.
$emit
(
'completeEven'
)
this
.
$emit
(
'completeEven'
)
})
})
},
},
...
...
applications/dee-task-center/src/business-components/tabCom/task-detail.vue
View file @
62cb2efa
...
@@ -56,6 +56,19 @@
...
@@ -56,6 +56,19 @@
/>
/>
</div>
</div>
</div>
</div>
<div
v-if=
"basicData&& basicData.businessObject &&basicData.businessObject.subTypeName&& basicData.businessObject.subTypeName==='ExtPlanFeedback'"
>
<div
class=
"sub-title"
style=
"padding-bottom:12px"
>
计划反馈
</div>
<dee-as-com
:lay-config=
"
{
typeName: 'ExtPlanReply',
layKey: 'task-ExtPlanReply'
}"
:form="ExtPlanReplyLinkform"
@on-submit="toSubmitExtPlanReply"
/>
</div>
<div
v-if=
"basicData && basicData.basicInfo && !basicData.basicInfo.forwardFlag && (!isCheckTaskState || (isCheckTaskState && basicData.basicInfo.state==='BE_RESOLVED' && !basicData.basicInfo.parentTaskId))"
>
<div
v-if=
"basicData && basicData.basicInfo && !basicData.basicInfo.forwardFlag && (!isCheckTaskState || (isCheckTaskState && basicData.basicInfo.state==='BE_RESOLVED' && !basicData.basicInfo.parentTaskId))"
>
<div
class=
"sub-title"
style=
"padding-bottom:12px"
>
任务处理
</div>
<div
class=
"sub-title"
style=
"padding-bottom:12px"
>
任务处理
</div>
<div
v-for=
"(name,index) in dynamicComponents"
:key=
"index"
>
<div
v-for=
"(name,index) in dynamicComponents"
:key=
"index"
>
...
@@ -175,7 +188,7 @@ import { getInstancePbo, getInstanceInfo, getBizForm } from '@/api/workflow/user
...
@@ -175,7 +188,7 @@ import { getInstancePbo, getInstanceInfo, getBizForm } from '@/api/workflow/user
import
{
getLayouts
}
from
'@/api/workflow/config.js'
import
{
getLayouts
}
from
'@/api/workflow/config.js'
import
{
changeExamination
,
getCounterSignDeleteList
}
from
'../../api/workflow/userSettings'
import
{
changeExamination
,
getCounterSignDeleteList
}
from
'../../api/workflow/userSettings'
import
addExaminationUserSelect
from
'@/views/workflow/task-center/task/addExaminationUserSelect'
import
addExaminationUserSelect
from
'@/views/workflow/task-center/task/addExaminationUserSelect'
import
{
post
}
from
'@/utils/http'
export
default
{
export
default
{
components
:
{
components
:
{
TaskDetailBasicInfo
,
TaskDetailBasicInfo
,
...
@@ -200,6 +213,8 @@ export default {
...
@@ -200,6 +213,8 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
isExtPlanReplyLinkBindSuccess
:
false
,
// 反馈计划是否绑定成功
ExtPlanReplyLinkform
:
{},
// 是否已经保持盘点结果
// 是否已经保持盘点结果
isSaveBeforeSubmit
:
true
,
isSaveBeforeSubmit
:
true
,
tabProps
:
{
tabProps
:
{
...
@@ -565,6 +580,7 @@ export default {
...
@@ -565,6 +580,7 @@ export default {
}
}
]
]
}
}
console
.
log
(
'layoutId'
,
res
.
items
.
layoutId
)
this
.
layoutId
=
res
.
items
.
layoutId
||
''
this
.
layoutId
=
res
.
items
.
layoutId
||
''
if
(
res
.
items
.
otherFormInfo
&&
res
.
items
.
otherFormInfo
.
length
)
{
if
(
res
.
items
.
otherFormInfo
&&
res
.
items
.
otherFormInfo
.
length
)
{
this
.
editableTabs
=
this
.
editableTabs
.
concat
(
res
.
items
.
otherFormInfo
.
filter
(
r
=>
r
.
isShow
).
map
((
r
,
index
)
=>
{
this
.
editableTabs
=
this
.
editableTabs
.
concat
(
res
.
items
.
otherFormInfo
.
filter
(
r
=>
r
.
isShow
).
map
((
r
,
index
)
=>
{
...
@@ -599,6 +615,7 @@ export default {
...
@@ -599,6 +615,7 @@ export default {
'taskKey'
:
basicInfo
.
taskDefinitionKey
'taskKey'
:
basicInfo
.
taskDefinitionKey
}
}
this
.
getBizForm
()
this
.
getBizForm
()
// this.dynamicComponents = [
// this.dynamicComponents = [
// {
// {
// 'configName': 'test-doc',
// 'configName': 'test-doc',
...
@@ -755,6 +772,9 @@ export default {
...
@@ -755,6 +772,9 @@ export default {
return
r
return
r
})
})
}
}
if
(
businessObject
.
subTypeName
&&
businessObject
.
subTypeName
===
'ExtPlanFeedback'
)
{
this
.
initExtPlanReplyForm
()
}
this
.
routes
=
routes
this
.
routes
=
routes
})
})
})
})
...
@@ -783,9 +803,19 @@ export default {
...
@@ -783,9 +803,19 @@ export default {
})
})
},
},
// 完成任务
// 完成任务
finishTask
(
flag
,
params
,
callback
,
errCallBack
)
{
// 反馈计划完成任务之前要先判断是否绑定反馈信息
finishPlanReplyTask
(
flag
,
params
,
callback
,
errCallBack
)
{
if
(
this
.
isExtPlanReplyLinkBindSuccess
)
{
this
.
finishTaskhandle
(
flag
,
params
,
callback
,
errCallBack
)
}
else
{
this
.
$message
.
error
(
'请填写反馈信息,绑定成功后即可完成任务'
)
}
},
finishTaskhandle
(
flag
,
params
,
callback
,
errCallBack
)
{
this
.
$nextTick
(
function
()
{
this
.
$nextTick
(
function
()
{
const
validateArray
=
[]
const
validateArray
=
[]
// 反馈计划信息 必须是已完成才能完成任务
// 审批对象表单
// 审批对象表单
this
.
approvalObject
.
forEach
(
item
=>
{
this
.
approvalObject
.
forEach
(
item
=>
{
const
refCom
=
this
.
$refs
[
item
.
refKey
]
const
refCom
=
this
.
$refs
[
item
.
refKey
]
...
@@ -819,6 +849,13 @@ export default {
...
@@ -819,6 +849,13 @@ export default {
})
})
})
})
},
},
finishTask
(
flag
,
params
,
callback
,
errCallBack
)
{
if
(
this
.
basicData
.
businessObject
.
subTypeName
&&
this
.
basicData
.
businessObject
.
subTypeName
===
'ExtPlanFeedback'
)
{
this
.
finishPlanReplyTask
(
flag
,
params
,
callback
,
errCallBack
)
}
else
{
this
.
finishTaskhandle
(
flag
,
params
,
callback
,
errCallBack
)
}
},
handleFinish
(
params
,
callback
,
errCallBack
)
{
handleFinish
(
params
,
callback
,
errCallBack
)
{
completeTask
(
params
).
then
(
res
=>
{
completeTask
(
params
).
then
(
res
=>
{
this
.
$utils
.
showMessageSuccess
(
res
.
message
||
'操作成功'
)
this
.
$utils
.
showMessageSuccess
(
res
.
message
||
'操作成功'
)
...
@@ -853,27 +890,53 @@ export default {
...
@@ -853,27 +890,53 @@ export default {
}
}
})
})
},
},
finishTaskClick
(
flag
)
{
// 初始化进度计划反馈信息表格
this
.
$nextTick
(
function
()
{
initExtPlanReplyForm
()
{
if
(
this
.
taskDetailHandleForm
.
radio
===
'终止流程'
)
{
const
params
=
{
this
.
finishTask
()
'pageFrom'
:
1
,
}
else
{
'pageSize'
:
10
,
const
validateArray
=
[]
'searchItems'
:
{
this
.
dynamicComponents
.
forEach
(
name
=>
{
'children'
:
[],
if
(
this
.
$refs
.
hasOwnProperty
(
name
))
{
'items'
:
[{
if
(
this
.
$refs
[
name
][
0
].
hasOwnProperty
(
'validate'
))
{
'fieldName'
:
'sourceId'
,
validateArray
.
push
(
this
.
$refs
[
name
][
0
].
validate
())
'operator'
:
'EQ'
,
'value'
:
this
.
basicData
.
businessObject
.
id
},
{
'fieldName'
:
'subTypeName'
,
'operator'
:
'EQ'
,
'value'
:
'ExtPlanReplyLink'
}],
'operator'
:
'AND'
},
'openProps'
:
[
{
name
:
'target'
}
}
],
'sortItem'
:
[{
'fieldName'
:
'modifyTime'
,
'sortOrder'
:
'desc'
}]
}
}
})
post
(
'/ExtPlanReplyLink/search'
,
params
).
then
(
res
=>
{
validateArray
.
push
(
this
.
$refs
.
form
.
validate
())
if
(
res
.
items
.
content
.
length
>
0
&&
res
.
items
.
content
[
0
].
target
)
{
Promise
.
all
([
flag
,
...
validateArray
]).
then
(
asd
=>
{
console
.
log
(
'查询的接口'
,
res
.
items
.
content
)
if
(
!
asd
.
includes
(
false
))
{
this
.
isExtPlanReplyLinkBindSuccess
=
true
this
.
finishTask
()
this
.
ExtPlanReplyLinkform
=
res
.
items
.
content
[
0
].
target
||
{}
}
}
}).
catch
(
e
=>
{
})
})
},
// 进度计划反馈信息提交
toSubmitExtPlanReply
()
{
const
params
=
{
target
:
this
.
ExtPlanReplyLinkform
,
sourceId
:
this
.
basicData
.
businessObject
.
id
,
opertar
:
'AND'
}
}
console
.
log
(
'计划反馈信息'
,
params
)
post
(
'/ExtPlanReplyLink/recursion'
,
params
).
then
(
res
=>
{
this
.
$utils
.
showMessageSuccess
(
'保存成功'
)
})
})
}
}
},
},
...
...
applications/dee-task-center/src/views/workflow/task-center/newhome/components/MyProcessPlanTable.vue
View file @
62cb2efa
...
@@ -3,6 +3,17 @@
...
@@ -3,6 +3,17 @@
<div
class=
"processTask-list-page "
>
<div
class=
"processTask-list-page "
>
<div
class=
"processTask-table"
>
<div
class=
"processTask-table"
>
<div
v-if=
"searchQuery"
>
这里是高级搜索的表格
<dee-search-box
:form-data=
"formData"
v-bind=
"searchQueryForm"
@
searchEvent=
"searchEvent"
/>
</div>
<div
class=
"table-tool"
>
<dee-tools
:tools=
"tools"
mode=
"normal"
:collapse=
"false"
/>
<dee-tools
:tools=
"searchTools"
mode=
"normal"
:collapse=
"false"
/>
</div>
<dee-table
<dee-table
ref=
"processTaskTable"
ref=
"processTaskTable"
:columns=
"tableColums"
:columns=
"tableColums"
...
@@ -10,13 +21,10 @@
...
@@ -10,13 +21,10 @@
:data=
"tableData"
:data=
"tableData"
:options=
"tableOption"
:options=
"tableOption"
:pagination=
"pagination"
:pagination=
"pagination"
:selection-row=
"selectionRow"
@
pagination-current-change=
"paginationCurrentChange"
@
pagination-current-change=
"paginationCurrentChange"
@
pagination-size-change=
"handleSizeChange"
@
pagination-size-change=
"handleSizeChange"
@
selection-change=
"selectionChange"
@
selection-change=
"selectionChange"
>
/>
<dee-tools
slot=
"header"
:tools=
"tools"
mode=
"normal"
:collapse=
"false"
/>
</dee-table>
<dee-drawer
<dee-drawer
title=
"流程信息"
title=
"流程信息"
:dialog-visible
.
sync=
"drawerDialogVisible"
:dialog-visible
.
sync=
"drawerDialogVisible"
...
@@ -45,6 +53,20 @@ export default {
...
@@ -45,6 +53,20 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
searchTools
:
[
{
name
:
'高级搜索'
,
icon
:
'/icons/filter.png'
,
handler
:
{
click
:
()
=>
{
this
.
searchQuery
=
!
this
.
searchQuery
// this.$refs.groupTree.editGroup(false, null)
}
}
}
],
searchQuery
:
false
,
searchQueryForm
:
{},
itemData
:
null
,
itemData
:
null
,
drawerDialogVisible
:
false
,
drawerDialogVisible
:
false
,
clickItem
:
null
,
clickItem
:
null
,
...
@@ -106,7 +128,6 @@ export default {
...
@@ -106,7 +128,6 @@ export default {
// { title: '流程完成时间', key: 'gmtFinished', align: 'center', Width: 180 }
// { title: '流程完成时间', key: 'gmtFinished', align: 'center', Width: 180 }
// ],
// ],
selectionRow
:
[],
taskState
:
''
taskState
:
''
}
}
},
},
...
@@ -230,9 +251,9 @@ export default {
...
@@ -230,9 +251,9 @@ export default {
}
}
})
})
},
},
selectionChange
(
val
)
{
//
selectionChange(val) {
this
.
selectionRow
=
val
//
this.selectionRow = val
},
//
},
paginationCurrentChange
(
currentPage
)
{
paginationCurrentChange
(
currentPage
)
{
this
.
pagination
.
currentPage
=
currentPage
this
.
pagination
.
currentPage
=
currentPage
this
.
getTableData
(
this
.
taskState
)
this
.
getTableData
(
this
.
taskState
)
...
@@ -276,7 +297,10 @@ export default {
...
@@ -276,7 +297,10 @@ export default {
padding
:
14px
;
padding
:
14px
;
margin-bottom
:
6px
;
margin-bottom
:
6px
;
overflow
:auto
overflow
:auto
}
.table-tool
{
display
:
flex
;
justify-content
:
space-between
;
}
}
.detail-content
{
.detail-content
{
width
:
100%
;
width
:
100%
;
...
...
applications/dee-task-center/src/views/workflow/task-center/newhome/components/ProcessTaskTable.vue
View file @
62cb2efa
<!-- 流程任务 -->
<!-- 流程任务 -->
<
template
>
<
template
>
<div
class=
"processTask-list-page "
>
<div
class=
"processTask-list-page "
>
<div
class=
"processTask-table"
>
<div
v-if=
"!ifShow"
class=
"processTask-table"
>
<div
v-if=
"searchQuery"
>
这里是高级搜索的表格
<dee-search-box
:form-data=
"formData"
v-bind=
"searchQueryForm"
@
searchEvent=
"searchEvent"
/>
</div>
<div
class=
"table-tool"
>
<dee-tools
:tools=
"tools"
mode=
"normal"
:collapse=
"false"
/>
<dee-tools
:tools=
"searchTools"
mode=
"normal"
:collapse=
"false"
/>
</div>
<dee-table
<dee-table
ref=
"processTaskTable"
ref=
"processTaskTable"
:columns=
"tableColums"
:columns=
"tableColums"
...
@@ -9,13 +20,9 @@
...
@@ -9,13 +20,9 @@
:data=
"tableData"
:data=
"tableData"
:options=
"tableOption"
:options=
"tableOption"
:pagination=
"pagination"
:pagination=
"pagination"
:selection-row=
"selectionRow"
@
pagination-current-change=
"paginationCurrentChange"
@
pagination-current-change=
"paginationCurrentChange"
@
pagination-size-change=
"handleSizeChange"
@
pagination-size-change=
"handleSizeChange"
@
selection-change=
"selectionChange"
/>
>
<dee-tools
slot=
"header"
:tools=
"tools"
mode=
"normal"
:collapse=
"false"
/>
</dee-table>
</div>
</div>
<div
v-if=
"ifShow"
class=
"detail-content"
>
<div
v-if=
"ifShow"
class=
"detail-content"
>
<img
class=
"down-pic"
src=
"/icons/d-down.png"
@
click=
"handleCloseDetail"
>
<img
class=
"down-pic"
src=
"/icons/d-down.png"
@
click=
"handleCloseDetail"
>
...
@@ -42,6 +49,78 @@ export default {
...
@@ -42,6 +49,78 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
searchTools
:
[
{
name
:
'高级搜索'
,
icon
:
'/icons/filter.png'
,
handler
:
{
click
:
()
=>
{
this
.
searchQuery
=
!
this
.
searchQuery
// this.$refs.groupTree.editGroup(false, null)
}
}
}
],
searchQuery
:
false
,
searchQueryForm
:
{},
formData
:
[{
'title'
:
''
,
'split'
:
3
,
'data'
:
[{
'title'
:
'项目代号'
,
'key'
:
'projectCode'
,
'width'
:
1
,
'component'
:
{
'name'
:
'el-input'
,
'fixedItem'
:
true
,
'defaultItem'
:
true
},
'filedMatch'
:
{
'relation'
:
'LIKE'
}
},
{
'title'
:
'业务对象'
,
'key'
:
'taskTitle'
,
'width'
:
1
,
'component'
:
{
'name'
:
'el-input'
,
'fixedItem'
:
true
,
'defaultItem'
:
true
},
'type'
:
false
,
'filedMatch'
:
{
'relation'
:
'LIKE'
}
},
{
'title'
:
'业务对象类型'
,
'key'
:
'name'
,
'width'
:
1
,
'component'
:
{
'name'
:
'el-input'
,
'fixedItem'
:
true
,
'defaultItem'
:
true
},
'type'
:
false
,
'filedMatch'
:
{
'relation'
:
'LIKE'
}
},
{
'title'
:
'任务创建者'
,
'key'
:
'creator.userName'
,
'width'
:
1
,
'component'
:
{
'name'
:
'el-input'
,
'fixedItem'
:
true
,
'defaultItem'
:
true
},
'type'
:
false
,
'filedMatch'
:
{
'relation'
:
'LIKE'
}
}]
}],
itemData
:
null
,
itemData
:
null
,
ifShow
:
false
,
ifShow
:
false
,
tableData
:
[],
tableData
:
[],
...
@@ -59,8 +138,9 @@ export default {
...
@@ -59,8 +138,9 @@ export default {
align
:
'center'
,
align
:
'center'
,
width
:
'70'
width
:
'70'
},
},
selectionRow
:
[],
// selectionRow: [],
taskState
:
''
taskState
:
''
,
showQueryFormState
:
false
}
}
},
},
computed
:
{
computed
:
{
...
@@ -103,7 +183,7 @@ export default {
...
@@ -103,7 +183,7 @@ export default {
const
commonColums
=
[
const
commonColums
=
[
{
title
:
'项目代号'
,
key
:
'projectCode'
,
align
:
'center'
,
minWidth
:
180
},
{
title
:
'项目代号'
,
key
:
'projectCode'
,
align
:
'center'
,
minWidth
:
180
},
{
{
title
:
'任务名称'
,
key
:
''
,
align
:
'center'
,
minWidth
:
14
0
,
title
:
'任务名称'
,
key
:
''
,
align
:
'center'
,
width
:
8
0
,
component
:
{
component
:
{
render
:
(
h
,
params
)
=>
{
render
:
(
h
,
params
)
=>
{
return
h
(
'div'
,
[
return
h
(
'div'
,
[
...
@@ -125,7 +205,7 @@ export default {
...
@@ -125,7 +205,7 @@ export default {
}
}
}
}
},
},
{
title
:
'业务对象'
,
key
:
'taskTitle'
,
align
:
'center'
,
minWidth
:
14
0
{
title
:
'业务对象'
,
key
:
'taskTitle'
,
align
:
'center'
,
minWidth
:
20
0
},
},
{
title
:
'接收时间'
,
key
:
'startTime'
,
align
:
'center'
,
minWidth
:
180
},
{
title
:
'接收时间'
,
key
:
'startTime'
,
align
:
'center'
,
minWidth
:
180
},
{
title
:
'业务对象类型'
,
key
:
'name'
,
align
:
'center'
,
minWidth
:
140
,
formatter
(
row
,
column
)
{
{
title
:
'业务对象类型'
,
key
:
'name'
,
align
:
'center'
,
minWidth
:
140
,
formatter
(
row
,
column
)
{
...
@@ -203,6 +283,7 @@ export default {
...
@@ -203,6 +283,7 @@ export default {
deep
:
true
,
deep
:
true
,
handler
(
val
)
{
handler
(
val
)
{
if
(
val
)
{
if
(
val
)
{
this
.
ifShow
=
false
this
.
taskState
=
val
this
.
taskState
=
val
this
.
getTableData
(
val
)
this
.
getTableData
(
val
)
}
}
...
@@ -233,13 +314,14 @@ export default {
...
@@ -233,13 +314,14 @@ export default {
return
item
return
item
})
})
console
.
log
(
'this.tableData'
,
this
.
tableData
)
console
.
log
(
'this.tableData'
,
this
.
tableData
)
this
.
$emit
(
'total'
,
res
.
items
.
totalElements
)
this
.
pagination
.
total
=
res
.
items
.
totalElements
this
.
pagination
.
total
=
res
.
items
.
totalElements
}
}
})
})
},
},
selectionChange
(
val
)
{
//
selectionChange(val) {
this
.
selectionRow
=
val
//
this.selectionRow = val
},
//
},
paginationCurrentChange
(
currentPage
)
{
paginationCurrentChange
(
currentPage
)
{
this
.
pagination
.
currentPage
=
currentPage
this
.
pagination
.
currentPage
=
currentPage
this
.
getTableData
(
this
.
taskState
)
this
.
getTableData
(
this
.
taskState
)
...
@@ -259,6 +341,9 @@ export default {
...
@@ -259,6 +341,9 @@ export default {
gotoTaskDeatil
(
params
)
{
gotoTaskDeatil
(
params
)
{
this
.
itemData
=
params
this
.
itemData
=
params
this
.
ifShow
=
true
this
.
ifShow
=
true
},
searchEvent
()
{
console
.
log
(
'开始搜索了'
)
}
}
}
}
}
}
...
@@ -282,7 +367,10 @@ export default {
...
@@ -282,7 +367,10 @@ export default {
.processTask-table
{
.processTask-table
{
padding
:
14px
;
padding
:
14px
;
margin-bottom
:
6px
;
margin-bottom
:
6px
;
// overflow:auto
.table-tool
{
display
:
flex
;
justify-content
:
space-between
;
}
}
}
.detail-content
{
.detail-content
{
...
@@ -292,17 +380,27 @@ export default {
...
@@ -292,17 +380,27 @@ export default {
right
:
0
;
right
:
0
;
border-top
:
1px
solid
#ddd
;
border-top
:
1px
solid
#ddd
;
background
:
#Fff
;
background
:
#Fff
;
z-index
:
10
;
overflow
:
auto
;
overflow
:
auto
;
.down-pic
{
.down-pic
{
position
:
absolute
;
position
:
absolute
;
left
:
0
;
left
:
0
;
right
:
0
;
right
:
0
;
top
:
0
;
top
:
0
;
z-index
:
100
;
margin
:
0
auto
;
margin
:
0
auto
;
cursor
:
pointer
;
cursor
:
pointer
;
}
}
.icon-box
{
display
:
flex
;
width
:
100%
;
justify-content
:
flex-end
;
}
.icon-btn
{
font-size
:
18px
;
margin-left
:
6px
;
margin-top
:
5px
;
cursor
:
pointer
;
color
:
#2f90e2
;
}
}
}
}
}
...
...
applications/dee-task-center/src/views/workflow/task-center/newhome/index.vue
View file @
62cb2efa
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<dee-fold-pane
<dee-fold-pane
:min-percent=
"5"
:min-percent=
"5"
:max-percent=
"30"
:max-percent=
"30"
:default-percent=
"
22
"
:default-percent=
"
15
"
split=
"vertical"
split=
"vertical"
class=
"detail-pane"
class=
"detail-pane"
>
>
...
@@ -27,6 +27,7 @@
...
@@ -27,6 +27,7 @@
<img
v-if=
"data.icon"
width=
"21px"
height=
"21px"
:src=
"data.icon"
alt=
""
>
<img
v-if=
"data.icon"
width=
"21px"
height=
"21px"
:src=
"data.icon"
alt=
""
>
<span
v-if=
"node.label"
class=
"change-text"
>
<span
v-if=
"node.label"
class=
"change-text"
>
{{
node
.
label
}}
{{
node
.
label
}}
<!--
<span>
(
{{
node
.
data
.
num
}}
)
</span>
-->
</span>
</span>
</div>
</div>
...
@@ -37,7 +38,7 @@
...
@@ -37,7 +38,7 @@
</
template
>
</
template
>
<
template
#
paneR
>
<
template
#
paneR
>
<div
class=
"right-panel"
>
<div
class=
"right-panel"
>
<ProcessTaskTable
v-if=
"initdata.componentName==='ProcessTaskTable'"
:initdata=
"initdata"
/>
<ProcessTaskTable
v-if=
"initdata.componentName==='ProcessTaskTable'"
:initdata=
"initdata"
@
total=
"getProcessTaskTotalNum"
/>
<MyProcessTaskTable
v-if=
"initdata.componentName==='MyProcessTaskTable'"
:initdata=
"initdata"
/>
<MyProcessTaskTable
v-if=
"initdata.componentName==='MyProcessTaskTable'"
:initdata=
"initdata"
/>
<IEDTaskTable
v-if=
"initdata.componentName==='IEDTaskTable'"
:initdata=
"initdata"
/>
<IEDTaskTable
v-if=
"initdata.componentName==='IEDTaskTable'"
:initdata=
"initdata"
/>
<PuchaseTaskTable
v-if=
"initdata.componentName==='PuchaseTaskTable'"
:initdata=
"initdata"
/>
<PuchaseTaskTable
v-if=
"initdata.componentName==='PuchaseTaskTable'"
:initdata=
"initdata"
/>
...
@@ -95,6 +96,10 @@ export default {
...
@@ -95,6 +96,10 @@ export default {
}
else
{
}
else
{
this
.
initdata
=
data
this
.
initdata
=
data
}
}
},
getProcessTaskTotalNum
(
value
)
{
console
.
log
(
'获取数量'
,
value
)
this
.
todoNum
=
value
}
}
}
}
}
}
...
...
applications/dee-task-center/src/views/workflow/task-center/newhome/view.js
View file @
62cb2efa
...
@@ -2,7 +2,15 @@ export default {
...
@@ -2,7 +2,15 @@ export default {
props
:
{},
props
:
{},
data
()
{
data
()
{
return
{
return
{
treeData
:
[
todoNum
:
null
}
},
mounted
()
{
},
computed
:
{
treeData
()
{
return
[
{
{
name
:
'流程任务'
,
name
:
'流程任务'
,
icon
:
'/icons/dee-project/plan.png'
,
icon
:
'/icons/dee-project/plan.png'
,
...
@@ -14,7 +22,8 @@ export default {
...
@@ -14,7 +22,8 @@ export default {
name
:
'待处理'
,
name
:
'待处理'
,
componentName
:
'ProcessTaskTable'
,
componentName
:
'ProcessTaskTable'
,
icon
:
'/icons/dee-project/team.png'
,
icon
:
'/icons/dee-project/team.png'
,
state
:
'todo'
state
:
'todo'
,
num
:
this
.
todoNum
},
},
{
{
name
:
'已完成'
,
name
:
'已完成'
,
...
@@ -23,8 +32,8 @@ export default {
...
@@ -23,8 +32,8 @@ export default {
state
:
'finished'
state
:
'finished'
},
},
{
{
// /workflow/inst?
name
:
'我发起的流程'
,
name
:
'我发起的流程'
,
ifClick
:
false
,
componentName
:
'MyProcessTaskTable'
,
componentName
:
'MyProcessTaskTable'
,
icon
:
'/icons/dee-project/team.png'
,
icon
:
'/icons/dee-project/team.png'
,
state
:
''
,
state
:
''
,
...
@@ -124,9 +133,11 @@ export default {
...
@@ -124,9 +133,11 @@ export default {
name
:
'分发任务'
,
name
:
'分发任务'
,
icon
:
'/icons/dee-project/baseline.png'
,
icon
:
'/icons/dee-project/baseline.png'
,
componentName
:
'DistributeTable'
,
componentName
:
'DistributeTable'
,
ifClick
:
false
,
children
:
[
children
:
[
{
{
name
:
'待处理'
,
name
:
'待处理'
,
ifClick
:
false
,
componentName
:
'PlanTeam'
,
componentName
:
'PlanTeam'
,
icon
:
'/icons/dee-project/team.png'
,
icon
:
'/icons/dee-project/team.png'
,
type
:
'Pending'
,
type
:
'Pending'
,
...
@@ -153,6 +164,7 @@ export default {
...
@@ -153,6 +164,7 @@ export default {
componentName
:
'PlanTeam'
,
componentName
:
'PlanTeam'
,
icon
:
'/icons/dee-project/team.png'
,
icon
:
'/icons/dee-project/team.png'
,
type
:
'Done'
,
type
:
'Done'
,
ifClick
:
false
,
children
:
[
children
:
[
{
{
name
:
'主办'
,
name
:
'主办'
,
...
@@ -173,6 +185,7 @@ export default {
...
@@ -173,6 +185,7 @@ export default {
},
},
{
{
name
:
'我发起的分发'
,
name
:
'我发起的分发'
,
ifClick
:
false
,
componentName
:
'DistributeTable'
,
componentName
:
'DistributeTable'
,
icon
:
'/icons/dee-project/team.png'
,
icon
:
'/icons/dee-project/team.png'
,
children
:
[
children
:
[
...
@@ -214,9 +227,6 @@ export default {
...
@@ -214,9 +227,6 @@ export default {
}
}
]
]
}
}
},
mounted
()
{
},
},
methods
:
{
methods
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment