|
@@ -95,6 +95,7 @@
|
|
|
:dropdownStyle="{ maxHeight: '400px', overflow: 'auto' }"
|
|
|
:treeData="treeData"
|
|
|
:treeNodeFilterProp="'title'"
|
|
|
+ v-model="dd"
|
|
|
:showSearch="true"
|
|
|
placeholder="请选择"
|
|
|
@change="handleChange"
|
|
@@ -394,6 +395,7 @@ export default {
|
|
|
sourceTypeMap: {},
|
|
|
treeData: [],
|
|
|
typeList: [],
|
|
|
+ dd: undefined,
|
|
|
// 表头
|
|
|
columns: [
|
|
|
/* {
|
|
@@ -908,6 +910,8 @@ export default {
|
|
|
typeId: this.$route.query.typeId,
|
|
|
status: this.$route.query.status || this.status
|
|
|
}
|
|
|
+ this.typeList = []
|
|
|
+ this.dd = undefined
|
|
|
this.visible = true
|
|
|
this.$refs.table.refresh(true)
|
|
|
},
|
|
@@ -956,7 +960,6 @@ export default {
|
|
|
this.$refs.importModalUpdate.base(null, 2)
|
|
|
},
|
|
|
handleChange (value, label, extra) {
|
|
|
- alert(value)
|
|
|
const data = this.treeData.find(item => item.id === value)
|
|
|
if (data && data.children && data.children.length > 0) {
|
|
|
this.typeList = data.children.map(item => item.id)
|