田源
2023-11-22 474047882bc1d22b910783057f00ad875e411dab
首页保存按钮loading
已修改3个文件
41 ■■■■ 文件已修改
Source/UBCS-WEB/src/components/StatisticsComponent/lineChart.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/views/statistic/statisticPage.vue 26 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/views/wel/Statistic.vue 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/components/StatisticsComponent/lineChart.vue
@@ -1,7 +1,7 @@
<template>
  <div id="main">
    <basic-container>
      <v-chart :options="option" ref="chart" style="width: 100%;height:100vh"></v-chart>
      <v-chart :options="option" ref="chart" style="width: 100%;"></v-chart>
    </basic-container>
  </div>
</template>
@@ -41,7 +41,7 @@
          },
        ],
        title: {
          text: '主题库数据统计分析',
          text: '主数据统计分析',
          left:'center',
          textAlign:'center'
        },
Source/UBCS-WEB/src/views/statistic/statisticPage.vue
@@ -1,5 +1,18 @@
<template>
<lineChart></lineChart>
  <!--  新增右侧按钮-->
  <div>
    <div style=" display: flex; justify-content: flex-end;">
      <el-button plain type="primary" @click="addHandler">新增</el-button>
    </div>
    <!--  新增对话框-->
    <el-dialog
      title="新增数据统计分析"
      :visible.sync="addVisible"
      append-to-body
    >
    </el-dialog>
  </div>
</template>
<script>
@@ -10,9 +23,14 @@
    lineChart
  },
  name: "statisticPage",
  data(){
    return{
  data() {
    return {
      addVisible: false,
    }
  },
  methods: {
    addHandler() {
      this.addVisible = true;
    }
  }
}
Source/UBCS-WEB/src/views/wel/Statistic.vue
@@ -9,7 +9,6 @@
               top='-40px'>
      <el-table
        ref="TableBox"
        v-loading="TableLoading"
        :data="Crud.data"
        border
        style="width: 100%"
@@ -54,7 +53,7 @@
        </el-table-column>
      </el-table>
      <div slot="footer" class="dialog-footer">
        <el-button plain type="primary" @click="SaveHandler">保存</el-button>
        <el-button plain type="primary" @click="SaveHandler" v-loading="BtnLoading">保存</el-button>
      </div>
    </el-dialog>
  </div>
@@ -67,7 +66,7 @@
  name: "Statistic",
  data() {
    return {
      TableLoading: false,
      BtnLoading: false,
      loading: true,
      Crud: {
        form: '',
@@ -127,7 +126,7 @@
        this.$message.warning('请选择一条数据!');
        return;
      }
      this.TableLoading = true;
      this.BtnLoading = true;
      try {
        const {data: {code}} = await save(this.userId, this.SelectRow.map(item => item.code));
        if (code === 200) {
@@ -136,12 +135,12 @@
          this.option.data = [];
          this.MasterGetList();
          this.dialogTableVisible = false;
          this.TableLoading = false;
          this.BtnLoading = false;
          this.loading = true;
          this.FontInfo();
        }
      } catch {
        this.TableLoading = false;
        this.BtnLoading = false;
      }
    },
    MoreHandler() {