| | |
| | | CloneTreeAvueform: {}, |
| | | loading: false, |
| | | Treedata: [], |
| | | isLoading: false, |
| | | nodeClickList: "", |
| | | Treeoption: { |
| | | addBtn: false, |
| | |
| | | }, |
| | | //表格刷新 |
| | | TableRend() { |
| | | this.isLoading = true; |
| | | TableData({ |
| | | templateOid: this.templateOids, |
| | | codeClassifyOid: this.nodeClickList.oid, |
| | | page: this.currentPage, |
| | | limit: this.pageSize, |
| | | }).then(res => { |
| | | this.isLoading = false; |
| | | this.tableDataArray = res.data.data; |
| | | this.$emit('tableDataArray', this.tableDataArray) |
| | | this.$emit('total', res.data.total) |
| | |
| | | this.tableHeadFindData = [] |
| | | await this.TableHeadRend(); // 先执行 TableHeadRend() |
| | | this.TableRend(); // TableHeadRend() 方法完成后再执行 TableRend() |
| | | this.$emit('nodeClick', this.templateOids) |
| | | this.$emit('nodeClickTemplateOids', this.templateOids) |
| | | this.$emit("codeClassifyOid", this.nodeClickList.oid) |
| | | this.$emit("nodeClickList", this.nodeClickList) |
| | | } catch (error) { |
| | |
| | | handler(newval, oldval) { |
| | | this.tableData = newval; |
| | | this.searchResults = newval |
| | | this.doLayout() |
| | | this.doLayout(); |
| | | }, |
| | | }, |
| | | tableHeadFindData: { |
| | |
| | | }, |
| | | //集团码导出 |
| | | excelGroupCode(){ |
| | | debugger |
| | | this.isLoading = true; |
| | | exportGroupCodeExcel({ |
| | | codeClassifyOid: this.codeClassifyOid, |
| | |
| | | @Treedata="TreedataList" |
| | | @codeClassifyOid="codeClassifyOidList" |
| | | @coderuleoid="coderuleoidList" |
| | | @nodeClick="nodeClick" |
| | | @nodeClickTemplateOids="nodeClickTem" |
| | | @tableDataArray="tableDataArrays" |
| | | @tableHeadBttoms="tableHeadBttoms" |
| | | @tableHeadDataFateher="tableHeadDatas" |
| | |
| | | this.nodeClickList=val; |
| | | }, |
| | | TreeValueEmit(val) { |
| | | this.TreeValue = val |
| | | this.TreeValue = val; |
| | | }, |
| | | codeClassifyOidList(val) { |
| | | this.codeClassifyOid = val; |
| | |
| | | this.coderuleoid = val; |
| | | }, |
| | | TreedataList(val) { |
| | | this.Treedata = val |
| | | this.Treedata = val; |
| | | }, |
| | | pageSizes(val) { |
| | | this.pageSize = val |
| | | this.pageSize = val; |
| | | }, |
| | | currentPages(val) { |
| | | this.currentPage = val |
| | | this.currentPage = val; |
| | | }, |
| | | tableDataArrays(val) { |
| | | this.tableDataArray = val |
| | | this.tableDataArray = val; |
| | | }, |
| | | totals(val) { |
| | | this.total = val |
| | | this.total = val; |
| | | }, |
| | | tableHeadDatas(val) { |
| | | this.tableHeadDataFateher = val |
| | | this.tableHeadDataFateher = val; |
| | | }, |
| | | tableHeadFindDatas(val) { |
| | | this.tableHeadFindData = val |
| | | this.tableHeadFindData = val; |
| | | }, |
| | | nodeClick(val) { |
| | | nodeClickTem(val) { |
| | | this.templateOid = val; |
| | | this.isLoading = true; |
| | | setTimeout(() => { |
| | | this.isLoading = false; |
| | | }, 2000); |
| | | }, |
| | | tableHeadBttoms(val) { |
| | | this.masterVrBtnList = val |
| | | this.masterVrBtnList = val; |
| | | }, |
| | | } |
| | | } |