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
ead56ff1
Commit
ead56ff1
authored
Oct 18, 2024
by
ztf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决选择子项的问题
parent
082468d6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
12 deletions
+9
-12
index.vue
...ect/src/privateComponents/components/extProject/index.vue
+6
-9
index.vue
.../privateComponents/components/selectProjectName/index.vue
+3
-3
No files found.
applications/dee-project/src/privateComponents/components/extProject/index.vue
View file @
ead56ff1
<!--
* @Author: zhangtianfeng 3232807530@qq.com
* @Date: 2024-09-11 11:05:24
* @LastEditors: zhangtianfeng 3232807530@qq.com
* @LastEditTime: 2024-10-17 17:22:33
-->
<
template
>
<div>
<el-select
v-model=
"project"
placeholder=
"请选择"
@
change=
"handleChange"
>
<el-select
v-model=
"project"
placeholder=
"请选择"
value-key=
"id"
@
change=
"handleChange"
>
<el-option
v-for=
"item in projectList"
:key=
"item.id"
...
...
@@ -50,7 +49,6 @@ export default {
}
}
}
},
methods
:
{
getProjectList
(
programId
)
{
...
...
@@ -78,7 +76,6 @@ export default {
},
handleChange
(
val
)
{
this
.
$emit
(
'input'
,
val
)
console
.
log
(
'emit出去的值'
,
val
)
}
}
}
...
...
applications/dee-project/src/privateComponents/components/selectProjectName/index.vue
View file @
ead56ff1
...
...
@@ -2,7 +2,7 @@
* @Author: zhangtianfeng 3232807530@qq.com
* @Date: 2024-08-29 11:42:37
* @LastEditors: zhangtianfeng 3232807530@qq.com
* @LastEditTime: 2024-10-1
7 18:02:23
* @LastEditTime: 2024-10-1
8 09:55:50
-->
<
template
>
<div>
...
...
@@ -109,7 +109,7 @@ export default {
handler
(
val
)
{
if
(
val
)
{
this
.
programNumber
=
this
.
form
.
extProgram
.
number
console
.
log
(
' this.programNumber'
,
this
.
programNumber
)
//
console.log(' this.programNumber', this.programNumber)
}
}
},
...
...
@@ -119,7 +119,7 @@ export default {
handler
(
val
)
{
if
(
val
)
{
this
.
projectNumber
=
this
.
form
.
extProject
.
number
console
.
log
(
' this.projectNumber'
,
this
.
projectNumber
)
//
console.log(' this.projectNumber', this.projectNumber)
}
}
}
...
...
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