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>
<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)
}
}
}
......
......@@ -2,7 +2,7 @@
* @Author: zhangtianfeng 3232807530@qq.com
* @Date: 2024-08-29 11:42:37
* @LastEditors: zhangtianfeng 3232807530@qq.com
* @LastEditTime: 2024-10-17 18:02:23
* @LastEditTime: 2024-10-18 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)
}
}
}
......
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