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
9ae5e92d
Commit
9ae5e92d
authored
Oct 17, 2024
by
ztf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改项目相关组件
parent
200d845d
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
155 additions
and
113 deletions
+155
-113
index.vue
.../src/privateComponents/components/createProject/index.vue
+4
-8
index.vue
...ct/src/privateComponents/components/editProject/index.vue
+33
-32
index.vue
.../privateComponents/components/gotoProjectDetial/index.vue
+1
-1
index.vue
...ect/src/privateComponents/components/importFile/index.vue
+5
-9
index.vue
.../privateComponents/components/selectProjectName/index.vue
+112
-63
No files found.
applications/dee-project/src/privateComponents/components/createProject/index.vue
View file @
9ae5e92d
...
@@ -30,7 +30,7 @@ export default {
...
@@ -30,7 +30,7 @@ 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
,
projectC
ategory
:
''
,
projectC
lass
:
''
,
baseQuery
:
{
baseQuery
:
{
modelName
:
'DxContextProject'
,
modelName
:
'DxContextProject'
,
operator
:
'AND'
,
operator
:
'AND'
,
...
@@ -40,13 +40,13 @@ export default {
...
@@ -40,13 +40,13 @@ export default {
}
}
},
},
watch
:
{
watch
:
{
'form.
projectCategory
'
:
{
'form.
dynamicAttrs.projectClass
'
:
{
immediate
:
true
,
immediate
:
true
,
deep
:
true
,
deep
:
true
,
handler
(
val
)
{
handler
(
val
)
{
console
.
log
(
'监听项目分类'
,
val
)
console
.
log
(
'监听项目分类'
,
val
)
if
(
val
)
{
if
(
val
)
{
this
.
projectC
ategory
=
val
this
.
projectC
lass
=
val
}
}
}
}
}
}
...
@@ -77,17 +77,13 @@ export default {
...
@@ -77,17 +77,13 @@ export default {
params
.
parentId
=
parentId
params
.
parentId
=
parentId
return
params
return
params
}
}
const
params
=
createParams
(
this
.
projectC
ategory
)
const
params
=
createParams
(
this
.
projectC
lass
)
console
.
log
(
'params新建项目'
,
params
)
console
.
log
(
'params新建项目'
,
params
)
post
(
'/DxContextProject/saveRecursionContext'
,
params
)
post
(
'/DxContextProject/saveRecursionContext'
,
params
)
.
then
(
res
=>
{
.
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 @
9ae5e92d
<
template
>
<
!-- <
template>
<div class="project">
<div class="project">
<dee-as-com
<dee-as-com
:lay-config="{
:lay-config="{
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
layKey: 'projectEdit'
layKey: 'projectEdit'
}"
}"
:form="form"
:form="form"
:basic-data="{id:basicData.id}"
@on-submit="toSubmit"
@on-submit="toSubmit"
@on-cancel="cancel"
@on-cancel="cancel"
/>
/>
...
@@ -36,41 +37,41 @@ export default {
...
@@ -36,41 +37,41 @@ export default {
}
}
},
},
mounted() {
mounted() {
this
.
getInitData
()
//
this.getInitData()
},
},
methods: {
methods: {
getInitData
()
{
//
getInitData() {
const
id
=
this
.
basicData
.
id
//
const id = this.basicData.id
const
params
=
{
//
const params = {
'searchItems'
:
{
//
'searchItems': {
'children'
:
[],
//
'children': [],
'items'
:
[{
//
'items': [{
'fieldName'
:
'id'
,
//
'fieldName': 'id',
'operator'
:
'EQ'
,
//
'operator': 'EQ',
'value'
:
id
//
'value': id
}],
//
}],
'operator'
:
'AND'
//
'operator': 'AND'
},
//
},
'openProps'
:
[
//
'openProps': [
{
'name'
:
'header'
},
//
{ 'name': 'header' },
{
'name'
:
'managerOrg'
},
//
{ 'name': 'managerOrg' },
{
'name'
:
'manager'
},
//
{ 'name': 'manager' },
{
'name'
:
'extProject'
},
//
{ 'name': 'extProject' },
{
'name'
:
'extProgram'
}
//
{ 'name': 'extProgram' }
]
//
]
}
//
}
post
(
`/DxContextProject/find/recursion`
,
params
).
then
(
res
=>
{
//
post(`/DxContextProject/find/recursion`, params).then(res => {
this
.
form
=
res
.
items
.
content
[
0
]
//
this.form = res.items.content[0]
})
//
})
},
//
},
toSubmit() {
toSubmit() {
const params = { ...this.form }
const params = { ...this.form }
console.log('params', params)
console.log('params', params)
post
(
'/DxContextProject/saveRecursionContext'
,
params
)
//
post('/DxContextProject/saveRecursionContext', params)
.
then
(
res
=>
{
//
.then(res => {
this
.
$utils
.
showMessageSuccess
(
`修改成功`
)
//
this.$utils.showMessageSuccess(`修改成功`)
this
.
$emit
(
'completeEven'
)
//
this.$emit('completeEven')
})
//
})
},
},
cancel() {
cancel() {
this.$emit('cancel')
this.$emit('cancel')
...
@@ -84,4 +85,4 @@ export default {
...
@@ -84,4 +85,4 @@ export default {
.project{
.project{
height: 500px;
height: 500px;
}
}
</
style
>
</style>
-->
applications/dee-project/src/privateComponents/components/gotoProjectDetial/index.vue
View file @
9ae5e92d
...
@@ -57,7 +57,7 @@ export default {
...
@@ -57,7 +57,7 @@ export default {
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
.
dynamicAttrs
.
projectClass
===
'project'
?
'项目'
:
'子项
'
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/importFile/index.vue
View file @
9ae5e92d
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: zhangtianfeng 3232807530@qq.com
* @Author: zhangtianfeng 3232807530@qq.com
* @Date: 2024-09-13 16:02:41
* @Date: 2024-09-13 16:02:41
* @LastEditors: zhangtianfeng 3232807530@qq.com
* @LastEditors: zhangtianfeng 3232807530@qq.com
* @LastEditTime: 2024-10-
09 09:27:34
* @LastEditTime: 2024-10-
17 13:36:36
* @FilePath: \inet-two\applications\dee-project\src\privateComponents\components\importFile\index.vue
* @FilePath: \inet-two\applications\dee-project\src\privateComponents\components\importFile\index.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
-->
...
@@ -38,14 +38,6 @@ export default {
...
@@ -38,14 +38,6 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
// const action = this.$refs['upload'].$parent.$parent.$parent.$parent.$parent.basicData.subTypeName
// if (action === 'ExtPuchasePlanAttribute') {
// this.action = '/ExtPuchasePlanAttribute/importPurchasePlan'
// } else if (action === 'ExtIEDPlan') {
// this.action = '/ExtIEDPlan/importIEDPlan'
// } else if (action === 'ExtICMExternalInterfacePlan') {
// this.action = '/ExtICMExternalInterfacePlan/importICMPlan'
// }
const
action
=
this
.
$refs
[
'upload'
].
$parent
.
$parent
.
$parent
.
$parent
.
$parent
.
basicData
.
subTypeName
const
action
=
this
.
$refs
[
'upload'
].
$parent
.
$parent
.
$parent
.
$parent
.
$parent
.
basicData
.
subTypeName
const
actionMap
=
{
const
actionMap
=
{
'ExtPuchasePlanAttribute'
:
'/ExtPuchasePlanAttribute/importPurchasePlan'
,
'ExtPuchasePlanAttribute'
:
'/ExtPuchasePlanAttribute/importPurchasePlan'
,
...
@@ -58,11 +50,15 @@ export default {
...
@@ -58,11 +50,15 @@ export default {
methods
:
{
methods
:
{
importFile
(
file
)
{
importFile
(
file
)
{
const
action
=
this
.
$refs
[
'upload'
].
$parent
.
$parent
.
$parent
.
$parent
.
$parent
.
basicData
.
subTypeName
const
formData
=
new
FormData
()
const
formData
=
new
FormData
()
if
(
!
file
)
return
this
.
$utils
.
showMessageWarning
(
'请选择文件'
)
if
(
!
file
)
return
this
.
$utils
.
showMessageWarning
(
'请选择文件'
)
if
(
file
!==
''
)
{
if
(
file
!==
''
)
{
formData
.
append
(
'file'
,
file
.
file
)
formData
.
append
(
'file'
,
file
.
file
)
formData
.
append
(
'projectId'
,
this
.
$route
.
query
.
id
)
formData
.
append
(
'projectId'
,
this
.
$route
.
query
.
id
)
if
(
action
===
'ExtIEDPlan'
)
{
formData
.
append
(
'projectSecret'
,
this
.
$route
.
query
.
secretCode
)
}
post
(
this
.
action
,
formData
).
then
(
res
=>
{
post
(
this
.
action
,
formData
).
then
(
res
=>
{
this
.
$utils
.
showMessageSuccess
(
'操作成功'
)
this
.
$utils
.
showMessageSuccess
(
'操作成功'
)
this
.
$emit
(
'completeEven'
)
this
.
$emit
(
'completeEven'
)
...
...
applications/dee-project/src/privateComponents/components/selectProjectName/index.vue
View file @
9ae5e92d
...
@@ -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-10-1
5 09:24:48
* @LastEditTime: 2024-10-1
7 10:32:07
-->
-->
<
template
>
<
template
>
<div>
<div>
...
@@ -26,7 +26,8 @@
...
@@ -26,7 +26,8 @@
typeName: 'ExtInComeContract',
typeName: 'ExtInComeContract',
layKey: 'projectContractResult'
layKey: 'projectContractResult'
}"
}"
dis-business
:result-data="tableData"
@radio-current-change="radioCurrentChange"
@radio-current-change="radioCurrentChange"
/>
/>
<!-- dis-business
<!-- dis-business
...
@@ -43,7 +44,7 @@
...
@@ -43,7 +44,7 @@
<
script
>
<
script
>
// 选择当前项目群/项目下面的合同
// 选择当前项目群/项目下面的合同
//
import { post } from '@/utils/http'
import
{
post
}
from
'@/utils/http'
export
default
{
export
default
{
name
:
'SelectProjectName'
,
name
:
'SelectProjectName'
,
componentName
:
'选择项目名称'
,
componentName
:
'选择项目名称'
,
...
@@ -52,6 +53,10 @@ export default {
...
@@ -52,6 +53,10 @@ export default {
type
:
[
Object
,
Array
,
String
,
Number
],
type
:
[
Object
,
Array
,
String
,
Number
],
default
:
()
=>
null
default
:
()
=>
null
},
},
basicData
:
{
type
:
Object
,
default
:
()
=>
{
}
},
form
:
{
form
:
{
type
:
Object
,
type
:
Object
,
default
:
()
=>
{
}
default
:
()
=>
{
}
...
@@ -65,35 +70,39 @@ export default {
...
@@ -65,35 +70,39 @@ export default {
projectList
:
[],
projectList
:
[],
showSelect
:
false
,
showSelect
:
false
,
selectRow
:
{},
selectRow
:
{},
tableData
:
[]
tableData
:
[],
itemNumber
:
null
,
programId
:
null
,
projectId
:
null
}
}
},
},
watch
:
{
watch
:
{
value
(
val
)
{
value
(
val
)
{
this
.
$emit
(
'input'
,
val
)
this
.
$emit
(
'input'
,
val
)
},
},
'form.
projectCategory
'
:
{
'form.
dynamicAttrs.projectClass
'
:
{
immediate
:
true
,
immediate
:
true
,
deep
:
true
,
deep
:
true
,
handler
(
val
)
{
handler
(
val
)
{
console
.
log
(
'监听项目分类选择合同'
,
val
)
if
(
val
)
{
if
(
val
)
{
console
.
log
(
'进来了'
)
this
.
showIcon
=
val
!==
'program'
this
.
showIcon
=
val
!==
'program'
this
.
showSelect
=
val
===
'childProject'
}
}
},
// 监听这个的id,判断当前选择项目或者项目群下面的合同
'form.extProgram'
:
{
immediate
:
true
,
deep
:
true
,
handler
(
val
)
{
if
(
val
)
{
console
.
log
(
'项目群id'
,
val
)
this
.
programId
=
val
.
id
}
}
}
}
}
}
// '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': {
// 'form.extProject': {
// immediate: true,
// immediate: true,
// deep: true,
// deep: true,
...
@@ -108,10 +117,45 @@ export default {
...
@@ -108,10 +117,45 @@ export default {
// }
// }
},
},
mounted
()
{
},
mounted
()
{
console
.
log
(
'basicData'
,
this
.
basicData
)
},
methods
:
{
methods
:
{
getProjectNumber
()
{
const
params
=
{
'pageFrom'
:
1
,
'pageSize'
:
10
,
'searchItems'
:
{
'children'
:
[],
'items'
:
[
{
'fieldName'
:
'id'
,
'operator'
:
'EQ'
,
'value'
:
this
.
programId
||
this
.
projectId
}
],
'operator'
:
'AND'
},
'openProps'
:
[],
'sortItem'
:
[
{
'fieldName'
:
'modifyTime'
,
'sortOrder'
:
'desc'
}
]
}
post
(
'/DxContextProject/search'
,
params
).
then
(
res
=>
{
if
(
res
.
items
)
{
this
.
itemNumber
=
res
.
items
.
content
[
0
].
number
console
.
log
(
'this.itemNumber'
,
this
.
itemNumber
)
}
})
},
handleClickOpen
()
{
handleClickOpen
()
{
this
.
dialogShow
=
true
this
.
dialogShow
=
true
this
.
getContractList
()
},
},
handleChange
(
val
)
{
handleChange
(
val
)
{
this
.
$emit
(
'input'
,
val
)
this
.
$emit
(
'input'
,
val
)
...
@@ -127,51 +171,56 @@ export default {
...
@@ -127,51 +171,56 @@ export default {
this
.
$set
(
this
.
form
,
'totalBudget'
,
this
.
selectRow
.
contractAmount
)
this
.
$set
(
this
.
form
,
'totalBudget'
,
this
.
selectRow
.
contractAmount
)
this
.
handleChange
(
this
.
selectRow
.
name
)
this
.
handleChange
(
this
.
selectRow
.
name
)
this
.
dialogShow
=
false
this
.
dialogShow
=
false
},
getContractList
()
{
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
},
{
'fieldName'
:
'itemNumber'
,
'operator'
:
'EQ'
,
'value'
:
this
.
itemNumber
}
],
'operator'
:
'AND'
},
'openProps'
:
[],
'sortItem'
:
[
{
'fieldName'
:
'modifyTime'
,
'sortOrder'
:
'desc'
}
]
}
post
(
'/ExtInComeContract/search'
,
params
).
then
(
res
=>
{
if
(
res
.
items
)
{
this
.
tableData
=
res
.
items
.
content
}
})
}
}
// 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
// }
// })
// }
}
}
}
}
...
...
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