| | |
| | | const result = this.$route.query.id.substring(0, index); |
| | | this.idData=result |
| | | // console.log(this.$route) |
| | | console.log(this.idData) |
| | | getTreeList({'conditionMap[id]':this.idData }).then(res=>{ |
| | | this.Treedata=res.data |
| | | this.Treedata=res.data; |
| | | const [firstProperty] = res.data; |
| | | this.ModifyProperties(this.Treedata, 'text', 'label'); |
| | | this.codeClassifyOid=res.data[0].oid; |
| | | this.coderuleoid=res.data[0].attributes.coderuleoid; |
| | | this.codeClassifyOid=firstProperty.oid; |
| | | this.coderuleoid=firstProperty.attributes.coderuleoid; |
| | | this.$emit("coderuleoid", this.coderuleoid ) |
| | | }).catch(res=>{ |
| | | console.log(res) |
| | | this.$message.error(res) |
| | | }) |
| | | }, |
| | | |
| | |
| | | this.tableDataArray=res.data.data; |
| | | this.$emit('tableDataArray',this.tableDataArray) |
| | | this.$emit('total',res.data.total) |
| | | console.log('table',this.tableDataArray) |
| | | }) |
| | | }, |
| | | //表格头部 |
| | |
| | | } |
| | | this.tableHeadDataFateher = res.data; |
| | | this.templateOids = res.data.tableDefineVO.oid; |
| | | let List = res.data.tableDefineVO.cols[0]; |
| | | const [List] = res.data.tableDefineVO.cols; |
| | | List.forEach(item => { |
| | | let columnItem = { |
| | | label: item.title, |
| | |
| | | this.$emit('tableHeadDataFateher', this.tableHeadDataFateher); |
| | | this.$emit('tableHeadFindData', this.tableHeadFindData); |
| | | this.$emit('tableHeadBttoms', this.masterVrBtnList); |
| | | console.log( 'head',this.tableHeadFindData) |
| | | resolve(); |
| | | }).catch(err => { |
| | | reject(err) |