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
154b6a58
Commit
154b6a58
authored
Oct 16, 2024
by
ztf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新建项目相关修改
parent
7e2557ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
20 deletions
+3
-20
index.vue
...privateComponents/components/changeProjectState/index.vue
+3
-20
No files found.
applications/dee-project/src/privateComponents/components/changeProjectState/index.vue
View file @
154b6a58
...
...
@@ -6,6 +6,7 @@
layKey: 'updateState'
}"
:form="form"
:basic-data="{id:basicData.id}"
@on-submit="toSubmit"
@on-cancel="cancel"
/>
...
...
@@ -30,35 +31,17 @@ export default {
}
},
mounted
()
{
this
.
getInitData
()
//
this.getInitData()
},
methods
:
{
getInitData
()
{
const
id
=
this
.
basicData
.
id
const
params
=
{
'searchItems'
:
{
'children'
:
[],
'items'
:
[{
'fieldName'
:
'id'
,
'operator'
:
'EQ'
,
'value'
:
id
}],
'operator'
:
'AND'
}
}
post
(
`/DxContext/search`
,
params
).
then
(
res
=>
{
this
.
form
=
res
.
items
.
content
[
0
]
})
},
toSubmit
()
{
const
id
=
this
.
form
.
id
const
status
=
this
.
form
.
state
post
(
`/DxContextProject/lifecycle/changeStatus?id=
${
id
}
&status=
${
status
}
&isValid=true`
).
then
(
res
=>
{
if
(
res
.
items
)
{
this
.
$utils
.
showMessageSuccess
(
'修改成功'
)
this
.
$emit
(
'completeEven'
)
}
this
.
$emit
(
'completeEven'
)
})
},
cancel
()
{
...
...
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