Browse Source

订单统计表格加了loading

fenghaifu 2 years ago
parent
commit
3920f80ca8

+ 4 - 1
src/views/reportForms/order-statistics/external-statistics.vue

@@ -192,6 +192,7 @@ export default {
     // 初次加载当月数据(列表、图)
     getThisMonthData() {
       this.$nextTick(() => {
+        this.loading = true;
         // let nowDate = new Date()
         // let date = {
         //   year: nowDate.getFullYear(),
@@ -210,7 +211,7 @@ export default {
           // 参数给 chart
           this.$refs.departmentChart.queryParam = this.queryParam
           this.$refs.customerChart.queryParam = this.queryParam
-
+          this.loading = false;
           if (res.success) {
             this.extStadata = res.result.records;
             this.pagination = {
@@ -226,8 +227,10 @@ export default {
     // 查询订单统计
     getExternalData() {
       this.$nextTick(() => {
+        this.loading = true;
         this.queryParam.vendorType = '外部'
         externalList(this.queryParam).then(res => {
+          this.loading = false;
           // 参数给 chart
           this.$refs.departmentChart.queryParam = this.queryParam
           this.$refs.customerChart.queryParam = this.queryParam

+ 4 - 0
src/views/reportForms/order-statistics/interior-statistics.vue

@@ -195,6 +195,7 @@ export default {
     // 初次加载当月数据(列表、图)
     getThisMonthData() {
       this.$nextTick(() => {
+        this.loading = true;
         //let nowDate = new Date()
         //let date = {
         //  year: nowDate.getFullYear(),
@@ -210,6 +211,7 @@ export default {
 
         this.queryParam.vendorType = '内部'
         externalList(this.queryParam).then(res => {
+          this.loading = false;
           // 参数给 chart
           this.$refs.departmentChart.queryParam = this.queryParam
           this.$refs.customerChart.queryParam = this.queryParam
@@ -232,8 +234,10 @@ export default {
     // 查询订单统计
     getExternalData() {
       this.$nextTick(() => {
+        this.loading = true;
         this.queryParam.vendorType = '内部'
         externalList(this.queryParam).then(res => {
+          this.loading = false;
           // 参数给 chart
           this.$refs.departmentChart.queryParam = this.queryParam