田源
2023-10-18 b158e02f918b2dc3618165a52a587b9e89177e69
整合代码
已修改1个文件
36 ■■■■■ 文件已修改
Source/UBCS-WEB/src/views/wel/Statistic.vue 36 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/views/wel/Statistic.vue
@@ -85,25 +85,28 @@
    this.MasterGetList();
  },
  mounted() {
    this.$nextTick(() => {
      const dataFatherBox = this.$refs.dataBox.$el;
      console.log(dataFatherBox);
      this.$nextTick(() => {
        setTimeout(() => {
          const info = dataFatherBox.querySelectorAll('.item-info .info');
          console.log('info', info);
          info.forEach((info) => {
            info.style.fontSize = '17px';
          });
          this.loading=false;
        }, 1000); // 延迟1秒查找info元素
      });
    });
   this.FontInfo()
  },
  computed() {
  },
  methods: {
    FontInfo(){
      this.$nextTick(() => {
        const dataFatherBox = this.$refs.dataBox.$el;
        console.log(dataFatherBox);
        this.$nextTick(() => {
          setTimeout(() => {
            const info = dataFatherBox.querySelectorAll('.item-info .info');
            console.log('info', info);
            info.forEach((info) => {
              info.style.fontSize = '17px';
            });
            this.loading=false;
          }, 1000); // 延迟1秒查找info元素
        });
      });
    },
    selectionChange(row) {
      // console.log(row)
      this.SelectRow = row;
@@ -122,10 +125,15 @@
        console.log(res)
        if (res.data.code === 200) {
          this.$message.success('保存成功!')
          //清除已有数组中push数据
          this.option.data = [];
          this.newData=[];
          this.MasterGetList()
          this.dialogTableVisible = false;
          //字体重新加载变大
          this.loading=true;
          this.FontInfo()
        }
      })
    },