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
7e2557ee
Commit
7e2557ee
authored
Oct 16, 2024
by
ztf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改项目相关组件
parent
df6251db
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
279 additions
and
252 deletions
+279
-252
index.vue
...ivateComponents/components/ExtICMPlanDocLinkAdd/index.vue
+24
-19
index.vue
...teComponents/components/changeProjectState copy/index.vue
+0
-50
index.vue
...privateComponents/components/changeProjectState/index.vue
+7
-8
index.vue
.../privateComponents/components/createContactList/index.vue
+71
-0
index.vue
.../src/privateComponents/components/createProject/index.vue
+40
-65
index.vue
...ct/src/privateComponents/components/editProject/index.vue
+14
-53
index.vue
...ect/src/privateComponents/components/extProject/index.vue
+12
-16
index.vue
.../privateComponents/components/gotoProjectDetial/index.vue
+3
-4
index.vue
...rc/privateComponents/components/leftProjectTree/index.vue
+1
-1
index.vue
.../privateComponents/components/selectProjectName/index.vue
+104
-33
task-detail.vue
...ask-center/src/business-components/tabCom/task-detail.vue
+1
-1
index.vue
applications/dee-task-center/src/views/myTask/index.vue
+2
-2
No files found.
applications/dee-plan/src/privateComponents/components/ExtICMPlanDocLinkAdd/index.vue
View file @
7e2557ee
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
}"
}"
:dis-business="true"
:dis-business="true"
:result-data="tableData"
:result-data="tableData"
@
selectionChange="selection
Change"
@
radio-current-change="radioCurrent
Change"
/>
/>
<div
class=
"btns"
>
<div
class=
"btns"
>
<el-button
type=
"primary"
class=
"submitBTN"
:disabled=
"!isDisable"
@
click=
"tosubmit"
>
确定
</el-button>
<el-button
type=
"primary"
class=
"submitBTN"
:disabled=
"!isDisable"
@
click=
"tosubmit"
>
确定
</el-button>
...
@@ -32,6 +32,10 @@ export default {
...
@@ -32,6 +32,10 @@ export default {
name
:
'ExtICMPlanDocLinkAdd'
,
name
:
'ExtICMPlanDocLinkAdd'
,
componentName
:
'ICM相关联系单-添加'
,
componentName
:
'ICM相关联系单-添加'
,
props
:
{
props
:
{
parentTableData
:
{
type
:
Object
,
default
:
()
=>
{}
},
basicData
:
{
basicData
:
{
type
:
Object
,
type
:
Object
,
default
:
()
=>
{}
default
:
()
=>
{}
...
@@ -43,14 +47,14 @@ export default {
...
@@ -43,14 +47,14 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
select
ions
:
[]
,
select
Row
:
{}
,
searchForm
:
[],
searchForm
:
[],
tableData
:
[]
tableData
:
[]
}
}
},
},
computed
:
{
computed
:
{
isDisable
()
{
isDisable
()
{
return
Boolean
(
this
.
select
ions
.
length
)
return
Boolean
(
this
.
select
Row
.
id
)
},
},
queryParams
()
{
queryParams
()
{
// 基本参数
// 基本参数
...
@@ -92,24 +96,25 @@ export default {
...
@@ -92,24 +96,25 @@ export default {
this
.
searchForm
=
searchForm
this
.
searchForm
=
searchForm
this
.
getData
()
this
.
getData
()
},
},
selectionChange
(
data
)
{
radioCurrentChange
(
data
)
{
this
.
selections
=
data
this
.
selectRow
=
data
.
row
console
.
log
(
'this.selectRow'
,
this
.
selectRow
)
},
},
tosubmit
()
{
tosubmit
()
{
const
params
=
{
//
const params = {
sourceId
:
this
.
basic
Data
.
id
,
// 计划id
// sourceId: this.parentTable
Data.id, // 计划id
targetId
:
this
.
selections
[
0
]
.
id
// 联系单id
// targetId: this.selectRow
.id// 联系单id
}
//
}
if
(
this
.
selections
&&
this
.
selections
.
length
===
1
)
{
//
if (this.selections && this.selections.length === 1) {
post
(
'/ExtICMPlanDocLink/bindPlanAndDoc'
,
params
).
then
(
res
=>
{
post
(
`/ExtICMPlanDocLink/bindPlanAndDoc?sourceId=
${
this
.
parentTableData
.
id
}
&targetId=
${
this
.
selectRow
.
id
}
`
).
then
(
res
=>
{
if
(
res
.
items
)
{
if
(
res
.
items
)
{
this
.
$utils
.
showMessageSuccess
(
'添加成功!'
)
this
.
$utils
.
showMessageSuccess
(
'添加成功!'
)
this
.
$emit
(
'completeEven'
)
this
.
$emit
(
'completeEven'
)
}
}
})
})
}
else
{
//
} else {
this
.
$message
.
error
(
'一次只能添加一个技术联系单'
)
//
this.$message.error('一次只能添加一个技术联系单')
}
//
}
}
}
}
}
}
}
...
...
applications/dee-project/src/privateComponents/components/changeProjectState copy/index.vue
deleted
100644 → 0
View file @
df6251db
<
template
>
<div
class=
"project"
>
<dee-as-com
:lay-config=
"layConfig"
:basic-data=
"projectObj"
/>
</div>
</
template
>
<
script
>
export
default
{
name
:
'ChangeProjectState'
,
componentName
:
'修改项目状态333'
,
props
:
{
basicData
:
{
type
:
Object
,
default
:
()
=>
({})
}
},
data
()
{
return
{
}
},
computed
:
{
projectObj
()
{
return
this
.
basicData
&&
this
.
basicData
.
id
?
this
.
basicData
:
{
id
:
''
}
},
currentModelName
()
{
return
this
.
basicData
.
subTypeName
},
layConfig
()
{
const
configMap
=
{
'ExtProgram'
:
{
typeName
:
'ExtProgram'
,
layKey
:
'updateState'
},
'DxContext'
:
{
typeName
:
'DxContext'
,
layKey
:
'updateState'
},
'DxContextProject'
:
{
typeName
:
'DxContextProject'
,
layKey
:
'updateState'
}
}
return
configMap
[
this
.
currentModelName
]
||
{}
}
},
mounted
()
{
},
methods
:
{
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
</
style
>
applications/dee-project/src/privateComponents/components/changeProjectState/index.vue
View file @
7e2557ee
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<div
class=
"project"
>
<div
class=
"project"
>
<dee-as-com
<dee-as-com
:lay-config=
"
{
:lay-config=
"
{
typeName: '
ExtProgram
',
typeName: '
DxContextProject
',
layKey: 'updateState'
layKey: 'updateState'
}"
}"
:form="form"
:form="form"
...
@@ -26,8 +26,7 @@ export default {
...
@@ -26,8 +26,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
form
:
{},
form
:
{}
subTypeName
:
this
.
basicData
.
subTypeName
}
}
},
},
mounted
()
{
mounted
()
{
...
@@ -35,7 +34,6 @@ export default {
...
@@ -35,7 +34,6 @@ export default {
},
},
methods
:
{
methods
:
{
getInitData
()
{
getInitData
()
{
const
subTypeName
=
this
.
basicData
.
subTypeName
const
id
=
this
.
basicData
.
id
const
id
=
this
.
basicData
.
id
const
params
=
{
const
params
=
{
'searchItems'
:
{
'searchItems'
:
{
...
@@ -48,7 +46,7 @@ export default {
...
@@ -48,7 +46,7 @@ export default {
'operator'
:
'AND'
'operator'
:
'AND'
}
}
}
}
post
(
`/
${
subTypeName
}
/search`
,
params
).
then
(
res
=>
{
post
(
`/
DxContext
/search`
,
params
).
then
(
res
=>
{
this
.
form
=
res
.
items
.
content
[
0
]
this
.
form
=
res
.
items
.
content
[
0
]
})
})
},
},
...
@@ -56,9 +54,10 @@ export default {
...
@@ -56,9 +54,10 @@ export default {
toSubmit
()
{
toSubmit
()
{
const
id
=
this
.
form
.
id
const
id
=
this
.
form
.
id
const
status
=
this
.
form
.
state
const
status
=
this
.
form
.
state
const
subTypeName
=
this
.
subTypeName
===
'ExtProgram'
?
'ExtProgram'
:
'DxContext'
post
(
`/DxContextProject/lifecycle/changeStatus?id=
${
id
}
&status=
${
status
}
&isValid=true`
).
then
(
res
=>
{
post
(
`/
${
subTypeName
}
/lifecycle/changeStatus?id=
${
id
}
&status=
${
status
}
&isValid=true`
).
then
(
res
=>
{
if
(
res
.
items
)
{
this
.
$utils
.
showMessageSuccess
(
'修改成功'
)
this
.
$utils
.
showMessageSuccess
(
'修改成功'
)
}
this
.
$emit
(
'completeEven'
)
this
.
$emit
(
'completeEven'
)
})
})
},
},
...
...
applications/dee-project/src/privateComponents/components/createContactList/index.vue
0 → 100644
View file @
7e2557ee
<
template
>
<dee-as-com
:lay-config=
"
{
typeName: 'ContactList',
layKey: 'ExtICMPlanDocLink-createContactList'
}"
:form="form"
@on-submit="toSubmit"
@on-cancel="cancel"
/>
</
template
>
<
script
>
import
{
post
}
from
'@/utils/http'
export
default
{
name
:
'ExtICMPlanDocLinkCreateContactList'
,
componentName
:
'ICM详情-创建联系单-关联'
,
props
:
{
basicData
:
{
type
:
Object
,
default
:
()
=>
([])
}
// form: {
// type: Object,
// default: () => {}
// }
},
data
()
{
return
{
contactListId
:
null
,
form
:
{}
}
},
mounted
()
{
console
.
log
(
'basicData'
,
this
.
basicData
)
},
methods
:
{
// 创建技术联系单
async
createContactList
()
{
const
params
=
{
dxType
:
'DxDocument'
,
...
this
.
form
,
subTypeName
:
'ContactList'
}
console
.
log
(
'params技术联系单的参数'
,
params
)
await
post
(
'/DxDocument/recursion'
,
params
).
then
(
res
=>
{
this
.
contactListId
=
res
.
items
.
id
})
},
// 计划关联技术联系单
relevancyContactList
()
{
post
(
`/ExtICMPlanDocLink/bindPlanAndDoc?sourceId=
${
this
.
basicData
.
id
}
&targetId=
${
this
.
contactListId
}
`
).
then
(
res
=>
{
if
(
res
.
items
)
{
this
.
$utils
.
showMessageSuccess
(
'添加成功!'
)
this
.
$emit
(
'completeEven'
)
}
})
},
async
toSubmit
()
{
await
this
.
createContactList
()
this
.
relevancyContactList
()
},
cancel
()
{
this
.
$emit
(
'cancel'
)
}
}
}
</
script
>
<
style
>
</
style
>
applications/dee-project/src/privateComponents/components/createProject/index.vue
View file @
7e2557ee
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
<div
class=
"project"
>
<div
class=
"project"
>
<dee-as-com
<dee-as-com
:lay-config=
"
{
:lay-config=
"
{
typeName: '
ExtProgram
',
typeName: '
DxContextProject
',
layKey: '
defaul
tCreate'
layKey: '
projec
tCreate'
}"
}"
:form="form"
:form="form"
@on-submit="toSubmit"
@on-submit="toSubmit"
...
@@ -30,8 +30,13 @@ export default {
...
@@ -30,8 +30,13 @@ export default {
// eslint-disable-next-line vue/no-dupe-keys
// eslint-disable-next-line vue/no-dupe-keys
form
:
{},
form
:
{},
formData
:
this
.
basicData
,
formData
:
this
.
basicData
,
subTypeName
:
'ExtProgram'
,
projectCategory
:
''
,
projectCategory
:
''
baseQuery
:
{
modelName
:
'DxContextProject'
,
operator
:
'AND'
,
state
:
'edit'
,
subTypeName
:
'DxContextProject'
}
}
}
},
},
watch
:
{
watch
:
{
...
@@ -42,77 +47,47 @@ export default {
...
@@ -42,77 +47,47 @@ export default {
console
.
log
(
'监听项目分类'
,
val
)
console
.
log
(
'监听项目分类'
,
val
)
if
(
val
)
{
if
(
val
)
{
this
.
projectCategory
=
val
this
.
projectCategory
=
val
// if (val === 'program') {
// this.projectCategory = 'program'
// } else if (val === 'project') {
// this.projectCategory = 'project'
// } else if (val === 'childProject') {
// this.projectCategory = 'childProject'
// }
}
}
}
}
}
}
},
},
methods
:
{
methods
:
{
toSubmit
()
{
toSubmit
()
{
console
.
log
(
'进来了'
)
const
createParams
=
(
category
)
=>
{
if
(
this
.
projectCategory
===
'program'
)
{
const
params
=
{
...
this
.
form
,
...
this
.
baseQuery
}
console
.
log
(
'是项目群'
)
let
parentId
=
0
const
params
=
this
.
form
switch
(
category
)
{
post
(
'/ExtProgram/recursion'
,
params
).
then
(
res
=>
{
case
'program'
:
this
.
$utils
.
showMessageSuccess
(
`添加成功`
)
break
this
.
$emit
(
'completeEven'
)
case
'project'
:
})
parentId
=
this
.
form
.
extProgram
.
id
}
else
if
(
this
.
projectCategory
===
'project'
)
{
delete
params
.
extProgram
console
.
log
(
'是项目'
)
delete
params
.
dxType
const
id
=
this
.
form
.
extProgram
.
id
break
delete
this
.
form
.
extProgram
delete
this
.
form
.
dxType
const
params
=
{
id
:
id
,
extProgramProjectLinks
:
[{
operator
:
'ADD'
,
target
:
{
subTypeName
:
'DxContextProject'
,
dxType
:
'project'
,
...
this
.
form
,
operator
:
'ADD'
,
parentId
:
0
,
parentName
:
'Root'
,
state
:
'edit'
}
}],
operator
:
'NO_CHANGE'
}
post
(
'/ExtProgram/recursion'
,
params
).
then
(
res
=>
{
this
.
$utils
.
showMessageSuccess
(
`添加成功`
)
this
.
$emit
(
'completeEven'
)
})
}
else
if
(
this
.
projectCategory
===
'childProject'
)
{
console
.
log
(
'是子项'
)
const
parentId
=
this
.
form
.
extProject
.
id
delete
this
.
form
.
extProgram
delete
this
.
form
.
extProject
delete
this
.
form
.
dxType
delete
this
.
form
.
projectCategory
const
params
=
{
parentId
:
parentId
,
subTypeName
:
'DxContextProject'
,
operator
:
'ADD'
,
state
:
'edit'
,
modelName
:
'DxContextProject'
,
...
this
.
form
}
// this.form.subTypeName = 'DxContextProject'
case
'childProject'
:
// this.form.operator = 'ADD'
parentId
=
this
.
form
.
extProject
.
id
// const params = Object.assign(this.formData, this.form)
delete
params
.
extProgram
console
.
log
(
'params'
,
params
)
delete
params
.
extProject
post
(
'/DxContextProject/recursion'
,
params
).
then
(
res
=>
{
delete
params
.
dxType
break
default
:
return
null
}
params
.
parentId
=
parentId
return
params
}
const
params
=
createParams
(
this
.
projectCategory
)
console
.
log
(
'params新建项目'
,
params
)
post
(
'/DxContextProject/saveRecursionContext'
,
params
)
.
then
(
res
=>
{
this
.
$utils
.
showMessageSuccess
(
`添加成功`
)
this
.
$utils
.
showMessageSuccess
(
`添加成功`
)
this
.
$emit
(
'completeEven'
)
this
.
$emit
(
'completeEven'
)
})
})
}
// .catch(error => {
// console.error('提交失败:', error);
// this.$utils.showMessageError(`添加失败`);
// });
},
},
cancel
()
{
cancel
()
{
this
.
$emit
(
'cancel'
)
this
.
$emit
(
'cancel'
)
...
...
applications/dee-project/src/privateComponents/components/editProject/index.vue
View file @
7e2557ee
...
@@ -2,15 +2,13 @@
...
@@ -2,15 +2,13 @@
<div
class=
"project"
>
<div
class=
"project"
>
<dee-as-com
<dee-as-com
:lay-config=
"
{
:lay-config=
"
{
typeName: '
ExtProgram
',
typeName: '
DxContextProject
',
layKey: '
defaul
tEdit'
layKey: '
projec
tEdit'
}"
}"
:form="form"
:form="form"
@on-submit="toSubmit"
@on-submit="toSubmit"
@on-cancel="cancel"
@on-cancel="cancel"
/>
/>
<!-- -->
</div>
</div>
</
template
>
</
template
>
...
@@ -29,8 +27,12 @@ export default {
...
@@ -29,8 +27,12 @@ export default {
data
()
{
data
()
{
return
{
return
{
form
:
{},
form
:
{},
subTypeName
:
this
.
basicData
.
subTypeName
,
baseQuery
:
{
projectCategory
:
''
modelName
:
'DxContextProject'
,
operator
:
'AND'
,
state
:
'edit'
,
subTypeName
:
'DxContextProject'
}
}
}
},
},
mounted
()
{
mounted
()
{
...
@@ -50,7 +52,6 @@ export default {
...
@@ -50,7 +52,6 @@ export default {
'operator'
:
'AND'
'operator'
:
'AND'
},
},
'openProps'
:
[
'openProps'
:
[
{
'name'
:
'extProgramProjectLinks'
,
'openProps'
:
[{
'name'
:
'target'
}]
},
{
'name'
:
'header'
},
{
'name'
:
'header'
},
{
'name'
:
'managerOrg'
},
{
'name'
:
'managerOrg'
},
{
'name'
:
'manager'
},
{
'name'
:
'manager'
},
...
@@ -58,58 +59,18 @@ export default {
...
@@ -58,58 +59,18 @@ export default {
{
'name'
:
'extProgram'
}
{
'name'
:
'extProgram'
}
]
]
}
}
post
(
`/
${
this
.
subTypeName
}
/search
`
,
params
).
then
(
res
=>
{
post
(
`/
DxContextProject/find/recursion
`
,
params
).
then
(
res
=>
{
this
.
form
=
res
.
items
.
content
[
0
]
this
.
form
=
res
.
items
.
content
[
0
]
console
.
log
(
'this.form'
,
this
.
form
)
})
})
},
},
toSubmit
()
{
toSubmit
()
{
if
(
this
.
subTypeName
===
'ExtProgram'
)
{
const
params
=
{
...
this
.
form
}
const
params
=
{
...
this
.
form
,
operator
:
'MODIFY'
}
console
.
log
(
'params'
,
params
)
post
(
'/ExtProgram/recursion'
,
params
).
then
(
res
=>
{
post
(
'/DxContextProject/saveRecursionContext'
,
params
)
this
.
$utils
.
showMessageSuccess
(
`编辑成功`
)
.
then
(
res
=>
{
this
.
$emit
(
'completeEven'
)
this
.
$utils
.
showMessageSuccess
(
`修改成功`
)
})
}
else
if
(
this
.
subTypeName
===
'DxContext'
)
{
delete
this
.
form
.
extProgram
delete
this
.
form
.
extProject
delete
this
.
form
.
dxType
delete
this
.
form
.
projectCategory
delete
this
.
form
.
extProgramProjectLinks
console
.
log
(
' this.form修改之后的'
,
this
.
form
)
const
params
=
{
...
this
.
form
,
subTypeName
:
'DxContext'
,
modelName
:
'DxContext'
,
operator
:
'MODIFY'
,
parentId
:
0
,
parentName
:
'Root'
,
state
:
'edit'
}
post
(
'/DxContext/recursion'
,
params
).
then
(
res
=>
{
this
.
$utils
.
showMessageSuccess
(
`编辑成功`
)
this
.
$emit
(
'completeEven'
)
this
.
$emit
(
'completeEven'
)
})
})
}
else
if
(
this
.
subTypeName
===
'DxContextProject'
)
{
console
.
log
(
'是子项'
)
const
parentId
=
this
.
form
.
parentId
delete
this
.
form
.
extProgram
delete
this
.
form
.
extProject
delete
this
.
form
.
dxType
delete
this
.
form
.
projectCategory
const
params
=
{
parentId
:
parentId
,
subTypeName
:
'DxContextProject'
,
operator
:
'MODIFY'
,
state
:
'edit'
,
modelName
:
'DxContextProject'
,
...
this
.
form
}
post
(
'/DxContextProject/recursion'
,
params
).
then
(
res
=>
{
this
.
$utils
.
showMessageSuccess
(
`编辑成功`
)
this
.
$emit
(
'completeEven'
)
})
}
},
},
cancel
()
{
cancel
()
{
this
.
$emit
(
'cancel'
)
this
.
$emit
(
'cancel'
)
...
...
applications/dee-project/src/privateComponents/components/extProject/index.vue
View file @
7e2557ee
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: zhangtianfeng 3232807530@qq.com
* @Author: zhangtianfeng 3232807530@qq.com
* @Date: 2024-09-11 11:05:24
* @Date: 2024-09-11 11:05:24
* @LastEditors: zhangtianfeng 3232807530@qq.com
* @LastEditors: zhangtianfeng 3232807530@qq.com
* @LastEditTime: 2024-
09-12 11:06:53
* @LastEditTime: 2024-
10-16 09:15:46
-->
-->
<
template
>
<
template
>
<div>
<div>
...
@@ -45,8 +45,8 @@ export default {
...
@@ -45,8 +45,8 @@ export default {
immediate
:
true
,
immediate
:
true
,
deep
:
true
,
deep
:
true
,
handler
(
val
)
{
handler
(
val
)
{
console
.
log
(
'项目群id'
,
val
)
if
(
val
)
{
if
(
val
)
{
// console.log('改变了', val)
this
.
getProjectList
(
val
)
this
.
getProjectList
(
val
)
}
}
}
}
...
@@ -59,7 +59,7 @@ export default {
...
@@ -59,7 +59,7 @@ export default {
'searchItems'
:
{
'searchItems'
:
{
'children'
:
[],
'children'
:
[],
'items'
:
[{
'items'
:
[{
'fieldName'
:
'
i
d'
,
'fieldName'
:
'
parentI
d'
,
'operator'
:
'EQ'
,
'operator'
:
'EQ'
,
'value'
:
programId
'value'
:
programId
}
}
...
@@ -69,22 +69,17 @@ export default {
...
@@ -69,22 +69,17 @@ export default {
'sortItem'
:
[{
'sortItem'
:
[{
'fieldName'
:
'modifyTime'
,
'fieldName'
:
'modifyTime'
,
'sortOrder'
:
'desc'
'sortOrder'
:
'desc'
}],
openProps
:
[{
name
:
'extProgramProjectLinks'
,
openProps
:
[{
name
:
'target'
}]
}]
}]
}
}
post
(
`/
ExtProgram
/search`
,
params
).
then
((
res
)
=>
{
post
(
`/
DxContextProject
/search`
,
params
).
then
((
res
)
=>
{
if
(
res
.
items
.
content
)
{
if
(
res
.
items
.
content
)
{
this
.
projectList
=
[]
this
.
projectList
=
res
.
items
.
content
res
.
items
.
content
.
forEach
(
list
=>
{
console
.
log
(
'res.items.content'
,
res
.
items
.
content
)
list
.
extProgramProjectLinks
.
forEach
(
item
=>
{
// res.items.content.forEach(list => {
this
.
projectList
.
push
(
item
.
target
)
// list.extProgramProjectLinks.forEach(item => {
})
// this.projectList.push(item.target)
})
// })
// })
}
}
})
})
},
},
...
@@ -93,6 +88,7 @@ export default {
...
@@ -93,6 +88,7 @@ export default {
const
valObj
=
this
.
projectList
.
find
((
item
)
=>
{
return
item
.
name
===
val
})
const
valObj
=
this
.
projectList
.
find
((
item
)
=>
{
return
item
.
name
===
val
})
console
.
log
(
'点击事件'
,
valObj
)
console
.
log
(
'点击事件'
,
valObj
)
this
.
$emit
(
'input'
,
valObj
.
id
)
this
.
$emit
(
'input'
,
valObj
.
id
)
console
.
log
(
' val.id'
,
valObj
.
id
)
}
}
}
}
}
}
...
...
applications/dee-project/src/privateComponents/components/gotoProjectDetial/index.vue
View file @
7e2557ee
...
@@ -31,9 +31,8 @@ export default {
...
@@ -31,9 +31,8 @@ export default {
],
],
data
()
{
data
()
{
return
{
return
{
//
currentValue
:
this
.
value
?
this
.
value
.
number
||
this
.
value
:
null
,
currentValue
:
this
.
value
?
this
.
value
.
number
||
this
.
value
:
null
,
className
:
this
.
scope
.
row
.
subTypeName
===
'ExtProgram'
?
'default'
:
'link
'
,
className
:
this
.
scope
.
row
.
parentId
?
'link'
:
'default
'
,
form
:
null
form
:
null
}
}
},
},
...
@@ -52,13 +51,13 @@ export default {
...
@@ -52,13 +51,13 @@ export default {
},
},
methods
:
{
methods
:
{
ToRelatedPage
()
{
ToRelatedPage
()
{
if
(
this
.
form
.
subTypeName
!==
'ExtProgram'
)
{
if
(
this
.
form
.
parentId
)
{
const
secretCode
=
this
.
form
.
secretCode
const
secretCode
=
this
.
form
.
secretCode
const
name
=
this
.
form
.
name
const
name
=
this
.
form
.
name
const
id
=
this
.
form
.
id
const
id
=
this
.
form
.
id
const
pageNumber
=
'7cbdc38f-0122-4e78-b162-57601a33bb7a'
const
pageNumber
=
'7cbdc38f-0122-4e78-b162-57601a33bb7a'
const
title
=
'项目要素'
const
title
=
'项目要素'
const
type
=
this
.
form
.
projectCategory
===
'项目'
?
'项目'
:
'
子项
'
const
type
=
this
.
form
.
projectCategory
===
'项目'
?
'项目'
:
'
项目
'
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
`/page/
${
pageNumber
}
/
${
id
}
?type=
${
type
}
&title=
${
title
}
&id=
${
id
}
&name=
${
name
}
&secretCode=
${
secretCode
}
`
,
path
:
`/page/
${
pageNumber
}
/
${
id
}
?type=
${
type
}
&title=
${
title
}
&id=
${
id
}
&name=
${
name
}
&secretCode=
${
secretCode
}
`
,
query
:
{
name
:
name
,
id
:
id
}
query
:
{
name
:
name
,
id
:
id
}
...
...
applications/dee-project/src/privateComponents/components/leftProjectTree/index.vue
View file @
7e2557ee
...
@@ -59,7 +59,7 @@ export default {
...
@@ -59,7 +59,7 @@ export default {
id
:
this
.
$route
.
query
.
id
,
id
:
this
.
$route
.
query
.
id
,
componentType
:
'formConfig'
,
componentType
:
'formConfig'
,
formConfigType
:
'page'
,
formConfigType
:
'page'
,
pageKey
:
this
.
$route
.
query
.
type
===
'项目'
?
'79edd06e-3a7d-440e-bb4f-4b7691f7a641'
:
'e32bab11-07c1-42b9-9ce7-d00d12c3b680'
pageKey
:
'e32bab11-07c1-42b9-9ce7-d00d12c3b680'
}
}
}
}
},
},
...
...
applications/dee-project/src/privateComponents/components/selectProjectName/index.vue
View file @
7e2557ee
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: zhangtianfeng 3232807530@qq.com
* @Author: zhangtianfeng 3232807530@qq.com
* @Date: 2024-08-29 11:42:37
* @Date: 2024-08-29 11:42:37
* @LastEditors: zhangtianfeng 3232807530@qq.com
* @LastEditors: zhangtianfeng 3232807530@qq.com
* @LastEditTime: 2024-
09-12 18:59:27
* @LastEditTime: 2024-
10-15 09:24:48
-->
-->
<
template
>
<
template
>
<div>
<div>
...
@@ -18,27 +18,19 @@
...
@@ -18,27 +18,19 @@
/>
/>
</el-select>
-->
</el-select>
-->
<!--input输入-->
<!--input输入-->
<el-input
v-model=
"form.name"
disabled
placeholder=
"请输入"
@
input=
"handleChange"
/>
<el-input
v-model=
"form.name"
placeholder=
"请输入"
@
input=
"handleChange"
/>
<img
<img
v-if=
"showIcon"
class=
"icon"
src=
"/icons/c-add.png"
title=
"选择合同"
@
click=
"handleClickOpen"
>
v-if=
"showIcon"
<dee-dialog
width=
"60%"
class=
"projectContractResult"
:title=
"`选择合同`"
:dialog-visible=
"dialogShow"
@
handleClose=
"dialogShow = false"
>
class=
"icon"
src=
"/icons/c-add.png"
title=
"选择合同"
@
click=
"handleClickOpen"
>
<dee-dialog
width=
"45%"
:title=
"`选择合同`"
:dialog-visible=
"dialogShow"
@
handleClose=
"dialogShow = false"
>
<dee-as-com
<dee-as-com
:lay-config=
"
{
:lay-config=
"
{
typeName: 'ExtInComeContract',
typeName: 'ExtInComeContract',
layKey: 'projectContractResult'
layKey: 'projectContractResult'
}"
}"
@radio-current-change="radioCurrentChange"
@radio-current-change="radioCurrentChange"
/>
/>
<!-- dis-business
:result-data="tableData" -->
<div
class=
"dialogBtn"
>
<div
class=
"dialogBtn"
>
<el-button
type=
"primary"
@
click=
"submit"
>
确定
</el-button>
<el-button
type=
"primary"
@
click=
"submit"
>
确定
</el-button>
<el-button
type=
"default"
@
click=
"dialogShow = false"
>
取消
</el-button>
<el-button
type=
"default"
@
click=
"dialogShow = false"
>
取消
</el-button>
...
@@ -50,17 +42,19 @@
...
@@ -50,17 +42,19 @@
</
template
>
</
template
>
<
script
>
<
script
>
// 选择当前项目群/项目下面的合同
// import { post } from '@/utils/http'
export
default
{
export
default
{
name
:
'SelectProjectName'
,
name
:
'SelectProjectName'
,
componentName
:
'选择项目名称'
,
componentName
:
'选择项目名称'
,
props
:
{
props
:
{
value
:
{
value
:
{
type
:
[
Object
,
Array
,
String
],
type
:
[
Object
,
Array
,
String
,
Number
],
default
:
()
=>
null
default
:
()
=>
null
},
},
form
:
{
form
:
{
type
:
Object
,
type
:
Object
,
default
:
()
=>
{}
default
:
()
=>
{
}
}
}
},
},
data
()
{
data
()
{
...
@@ -70,7 +64,8 @@ export default {
...
@@ -70,7 +64,8 @@ export default {
showIcon
:
false
,
showIcon
:
false
,
projectList
:
[],
projectList
:
[],
showSelect
:
false
,
showSelect
:
false
,
selectRow
:
{}
selectRow
:
{},
tableData
:
[]
}
}
},
},
watch
:
{
watch
:
{
...
@@ -87,40 +82,116 @@ export default {
...
@@ -87,40 +82,116 @@ export default {
}
}
}
}
}
}
// 'form.extProgram': {
// immediate: true,
// deep: true,
// handler(val) {
// if (val) {
// console.log('val所属项目', val)
// this.getData(val.id)
// // this.showIcon = val !== 'program'
// // this.showSelect = val === 'childProject'
// }
// }
// },
// 'form.extProject': {
// immediate: true,
// deep: true,
// handler(val) {
// if (val) {
// console.log('val所属项目', val)
// this.getData(val.id)
// // this.showIcon = val !== 'program'
// // this.showSelect = val === 'childProject'
// }
// }
// }
},
},
mounted
()
{},
mounted
()
{
},
methods
:
{
methods
:
{
handleClickOpen
()
{
handleClickOpen
()
{
this
.
dialogShow
=
true
this
.
dialogShow
=
true
},
},
handleChange
(
val
)
{
handleChange
(
val
)
{
this
.
$emit
(
'input'
,
val
)
this
.
$emit
(
'input'
,
val
)
console
.
log
(
this
.
form
)
console
.
log
(
'val'
,
val
)
console
.
log
(
'this.form'
,
this
.
form
)
},
},
radioCurrentChange
(
data
)
{
radioCurrentChange
(
data
)
{
this
.
selectRow
=
data
.
row
this
.
selectRow
=
data
.
row
console
.
log
(
'data.row'
,
data
.
row
)
},
},
submit
()
{
submit
()
{
this
.
handleChange
(
this
.
selectRow
.
id
)
this
.
$set
(
this
.
form
,
'customUnit'
,
this
.
selectRow
.
supplierName
)
this
.
$set
(
this
.
form
,
'totalBudget'
,
this
.
selectRow
.
contractAmount
)
this
.
handleChange
(
this
.
selectRow
.
name
)
this
.
dialogShow
=
false
this
.
dialogShow
=
false
}
}
// getData() {
// const params = {
// 'pageFrom': 1,
// 'pageSize': 10,
// 'searchItems': {
// 'children': [],
// 'items': [
// {
// 'fieldName': 'state',
// 'operator': 'EQ',
// 'value': 'release'
// },
// {
// 'fieldName': 'state',
// 'operator': 'EQ',
// 'value': 'release'
// },
// {
// 'fieldName': 'checkOuted',
// 'operator': 'EQ',
// 'value': false
// },
// {
// 'fieldName': 'latest',
// 'operator': 'EQ',
// 'value': true
// }
// ],
// 'operator': 'AND'
// },
// 'openProps': [],
// 'sortItem': [
// {
// 'fieldName': 'modifyTime',
// 'sortOrder': 'desc'
// }
// ]
// }
// post('/ExtInComeContract/search', params).then(res => {
// if (res.items) {
// this.tableData = res.items.content
// }
// })
// }
}
}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.select-project
{
.select-project
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
space-between
;
justify-content
:
space-between
;
.icon
{
width
:
15px
;
.icon
{
height
:
15px
;
width
:
15px
;
margin-left
:
6
px
;
height
:
15
px
;
cursor
:
pointer
;
margin-left
:
6px
;
}
cursor
:
pointer
;
}
}
</
style
>
.projectContractResult
{
height
:
calc
(
80%
);
}
}
</
style
>
applications/dee-task-center/src/business-components/tabCom/task-detail.vue
View file @
7e2557ee
...
@@ -59,7 +59,7 @@
...
@@ -59,7 +59,7 @@
<div
<div
v-if=
"basicData&& basicData.businessObject &&basicData.businessObject.subTypeName&& basicData.businessObject.subTypeName==='ExtPlanFeedback'"
v-if=
"basicData&& basicData.businessObject &&basicData.businessObject.subTypeName&& basicData.businessObject.subTypeName==='ExtPlanFeedback'"
>
>
<
div
class=
"sub-title"
style=
"padding-bottom:12px"
>
计划反馈
</div
>
<
!--
<div
class=
"sub-title"
style=
"padding-bottom:12px"
>
计划反馈
</div>
--
>
<dee-as-com
<dee-as-com
v-if=
" isCheckTaskState && basicData.basicInfo.state==='BE_RESOLVED'"
v-if=
" isCheckTaskState && basicData.basicInfo.state==='BE_RESOLVED'"
:lay-config=
"
{
:lay-config=
"
{
...
...
applications/dee-task-center/src/views/myTask/index.vue
View file @
7e2557ee
...
@@ -54,7 +54,7 @@ export default {
...
@@ -54,7 +54,7 @@ export default {
icon
:
'/images/navagations/task-icon.png'
,
icon
:
'/images/navagations/task-icon.png'
,
total
:
res
.
items
.
todoTask
+
res
.
items
.
unClaimedTask
,
total
:
res
.
items
.
todoTask
+
res
.
items
.
unClaimedTask
,
name
:
'我的任务'
,
name
:
'我的任务'
,
route
:
'dee-task-center/workflow/task-center/
new
home'
,
route
:
'dee-task-center/workflow/task-center/home'
,
serverName
:
'dee-task-center'
,
serverName
:
'dee-task-center'
,
showMenu
:
false
,
showMenu
:
false
,
list
:
[
list
:
[
...
@@ -94,7 +94,7 @@ export default {
...
@@ -94,7 +94,7 @@ export default {
this
.
$store
.
dispatch
(
'menu/activeModel'
,
{
this
.
$store
.
dispatch
(
'menu/activeModel'
,
{
appId
:
'todoTask'
,
appId
:
'todoTask'
,
pageInfo
:
{
pageInfo
:
{
path
:
'/dee-task-center/workflow/task-center/
new
home'
path
:
'/dee-task-center/workflow/task-center/home'
}
}
})
})
// this.$store.dispatch('app/toggleSideBar')
// this.$store.dispatch('app/toggleSideBar')
...
...
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