田源
2023-11-21 397615fff40b62bed4d47d38fc579b7fcc26fcef
首页统计loading优化
已修改1个文件
35 ■■■■ 文件已修改
Source/UBCS-WEB/src/views/wel/Statistic.vue 35 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/views/wel/Statistic.vue
@@ -9,6 +9,7 @@
               top='-40px'>
      <el-table
        ref="TableBox"
        v-loading="TableLoading"
        :data="Crud.data"
        border
        style="width: 100%"
@@ -66,6 +67,7 @@
  name: "Statistic",
  data() {
    return {
      TableLoading: false,
      loading: true,
      Crud: {
        form: '',
@@ -120,30 +122,27 @@
      // console.log(row)
      this.SelectRow = row;
    },
    SaveHandler() {
    async SaveHandler() {
      if (this.SelectRow.length <= 0) {
        this.$message.warning('请选择一条数据!')
        return
        this.$message.warning('请选择一条数据!');
        return;
      }
      let mdmNameList = [];
      mdmNameList = this.SelectRow.map(item => {
        return item.code
      })
      console.log(mdmNameList)
      save(this.userId, mdmNameList).then(res => {
        console.log(res)
        if (res.data.code === 200) {
          this.$message.success('保存成功!')
          //清除已有数组中push数据
      this.TableLoading = true;
      try {
        const {data: {code}} = await save(this.userId, this.SelectRow.map(item => item.code));
        if (code === 200) {
          this.$message.success('保存成功!');
          this.newData = [];
          this.option.data = []
          this.MasterGetList()
          this.option.data = [];
          this.MasterGetList();
          this.dialogTableVisible = false;
          //字体和边框重新加载
          this.TableLoading = false;
          this.loading = true;
          this.FontInfo()
          this.FontInfo();
        }
      })
      } catch {
        this.TableLoading = false;
      }
    },
    MoreHandler() {
      this.dialogTableVisible = true;