<el-select v-model="value_item" placeholder="请选择项目" @change="handlerSearch($event, 2)">
<el-option
v-for="item in options_item"
:key="item.projectId"
:label="item.projectName"
:value="item.projectId"
></el-option>
</el-select>
handlerSearch (e, type) {
if (type === 1) {
this.page = 1
this.getListData()
} else if (type === 2) {
let obj = {}
obj = this.options_item.find((item) => {
return item.projectId === e
})
// console.log(obj)
let subject = obj['subject']
this.options_sub = subject
this.value_sub = subject[0]['subjectId']
let topicType = obj['topicType']
this.options_type = topicType
this.value_type = this.options_type.length > 0 ? topicType[0]['topicTypeId'] : ''
this.page = 1
this.getListData()
}
},
let obj = {}
obj = this.options_item.find((item) => {
return item.projectId === e
})
// console.log(obj)