| | |
| | | type: String, |
| | | default: '' |
| | | }, |
| | | isLoading:{ |
| | | type: Boolean, |
| | | default:false |
| | | } |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | }, |
| | | //表格刷新 |
| | | TableRend() { |
| | | this.isLoading = true; |
| | | this.loading = true; |
| | | this.$emit('loading', this.loading) |
| | | TableData({ |
| | | templateOid: this.templateOids, |
| | | codeClassifyOid: this.nodeClickList.oid, |
| | | page: this.currentPage, |
| | | limit: this.pageSize, |
| | | }).then(res => { |
| | | this.isLoading = false; |
| | | this.loading = false; |
| | | this.$emit('loading', this.loading) |
| | | this.tableDataArray = res.data.data; |
| | | this.$emit('tableDataArray', this.tableDataArray) |
| | | this.$emit('total', res.data.total) |
| | |
| | | this.doLayout() |
| | | }, |
| | | watch: { |
| | | isLoading:{ |
| | | handler(newval){ |
| | | console.log(newval) |
| | | } |
| | | }, |
| | | tableHeadDataFateher: { |
| | | handler(newval, oldval) { |
| | | this.options = newval.tableDefineVO.seniorQueryColumns |
| | |
| | | <template> |
| | | <el-container v-loading="isLoading"> |
| | | <el-container> |
| | | <el-aside style="width:250px"> |
| | | <basic-container> |
| | | <!-- 树组件--> |
| | |
| | | @tableHeadFindData="tableHeadFindDatas" |
| | | @nodeClickList="nodeClickLists" |
| | | @total="totals" |
| | | :isLoading="isLoading" |
| | | @loading="loadingHandler" |
| | | > |
| | | </master-tree> |
| | | </basic-container> |
| | |
| | | }, |
| | | nodeClickTem(val) { |
| | | this.templateOid = val; |
| | | |
| | | }, |
| | | tableHeadBttoms(val) { |
| | | this.masterVrBtnList = val; |
| | | }, |
| | | loadingHandler(val) { |
| | | this.isLoading = val; |
| | | } |
| | | } |
| | | } |
| | | </script> |