Commit ead56ff1 authored by ztf's avatar ztf

解决选择子项的问题

parent 082468d6
<!--
* @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> <template>
<div> <div>
<el-select v-model="project" placeholder="请选择" @change="handleChange"> <el-select
v-model="project"
placeholder="请选择"
value-key="id"
@change="handleChange"
>
<el-option <el-option
v-for="item in projectList" v-for="item in projectList"
:key="item.id" :key="item.id"
...@@ -50,7 +49,6 @@ export default { ...@@ -50,7 +49,6 @@ export default {
} }
} }
} }
}, },
methods: { methods: {
getProjectList(programId) { getProjectList(programId) {
...@@ -78,7 +76,6 @@ export default { ...@@ -78,7 +76,6 @@ export default {
}, },
handleChange(val) { handleChange(val) {
this.$emit('input', val) this.$emit('input', val)
console.log('emit出去的值', val)
} }
} }
} }
......
...@@ -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-17 18:02:23 * @LastEditTime: 2024-10-18 09:55:50
--> -->
<template> <template>
<div> <div>
...@@ -109,7 +109,7 @@ export default { ...@@ -109,7 +109,7 @@ export default {
handler(val) { handler(val) {
if (val) { if (val) {
this.programNumber = this.form.extProgram.number this.programNumber = this.form.extProgram.number
console.log(' this.programNumber', this.programNumber) // console.log(' this.programNumber', this.programNumber)
} }
} }
}, },
...@@ -119,7 +119,7 @@ export default { ...@@ -119,7 +119,7 @@ export default {
handler(val) { handler(val) {
if (val) { if (val) {
this.projectNumber = this.form.extProject.number this.projectNumber = this.form.extProject.number
console.log(' this.projectNumber', this.projectNumber) // console.log(' this.projectNumber', this.projectNumber)
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment