| | |
| | | props: { |
| | | pageSize: { |
| | | type: String, |
| | | default: "10" |
| | | default: "100" |
| | | }, |
| | | currentPage: { |
| | | type: String, |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | TreeValue:'', |
| | | idData: '', |
| | | masterVrBtnList: [], |
| | | tableHeadFindData: [], |
| | |
| | | getTreeList({'conditionMap[id]': this.idData}).then(res => { |
| | | if(res){ |
| | | if(res.data.length === 0){ |
| | | this.$message.error("左侧菜单查询为空"); |
| | | this.$message.error("主数据分类查询为空!"); |
| | | }else{ |
| | | this.Treedata = res.data; |
| | | const [firstProperty] = res.data; |
| | |
| | | //树点击事件 |
| | | async nodeClick(data) { |
| | | try { |
| | | console.log(data) |
| | | this.TreeValue=data.label.split(" ")[0].trim(); |
| | | this.$emit('TreeValue',this.TreeValue) |
| | | this.nodeClickList = data; |
| | | this.tableHeadDataFateher = [] |
| | | this.tableHeadFindData = [] |