田源
2023-12-06 fe35627e29ba5604e8c7fb3af3c8e82becd7c144
主数据表格loading加载优化
已修改3个文件
23 ■■■■■ 文件已修改
Source/UBCS-WEB/src/components/Master/MasterTree.vue 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/views/MasterData/items.vue 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/components/Master/MasterTree.vue
@@ -31,10 +31,6 @@
      type: String,
      default: ''
    },
    isLoading:{
      type: Boolean,
      default:false
    }
  },
  data() {
    return {
@@ -151,14 +147,16 @@
    },
    //表格刷新
    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)
Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue
@@ -393,6 +393,11 @@
    this.doLayout()
  },
  watch: {
    isLoading:{
      handler(newval){
        console.log(newval)
      }
    },
    tableHeadDataFateher: {
      handler(newval, oldval) {
        this.options = newval.tableDefineVO.seniorQueryColumns
Source/UBCS-WEB/src/views/MasterData/items.vue
@@ -1,5 +1,5 @@
<template>
  <el-container v-loading="isLoading">
  <el-container>
    <el-aside style="width:250px">
      <basic-container>
        <!--          树组件-->
@@ -17,7 +17,7 @@
          @tableHeadFindData="tableHeadFindDatas"
          @nodeClickList="nodeClickLists"
          @total="totals"
          :isLoading="isLoading"
          @loading="loadingHandler"
        >
        </master-tree>
      </basic-container>
@@ -112,10 +112,14 @@
    },
    nodeClickTem(val) {
      this.templateOid = val;
    },
    tableHeadBttoms(val) {
      this.masterVrBtnList = val;
    },
    loadingHandler(val) {
      this.isLoading = val;
    }
  }
}
</script>