lilei před 1 měsícem
rodič
revize
ad8dabbf24
2 změnil soubory, kde provedl 4 přidání a 2 odebrání
  1. 3 1
      src/views/reportData/dailyReport/table.vue
  2. 1 1
      vue.config.js

+ 3 - 1
src/views/reportData/dailyReport/table.vue

@@ -33,7 +33,7 @@
                   type="primary"
                   class="button-warning"
                   @click="handleExport"
-                  :disabled="disabled"
+                  :disabled="tableData.length==0"
                   :loading="exportLoading"
                   id="dayReportList-export">导出</a-button>
               </a-col>
@@ -148,6 +148,8 @@ export default {
     resetSearchForm () {
       this.$refs.ruleForm.resetFields()
       this.tableData = []
+      this.totalNums = 0
+      this.totalNums = []
     },
     exportTable (dom, title) {
       const zim = 'A、B、C、D、E、F、G、H、I、J、K、L、M、N、O、P、Q、R、S、T、U、V、W、X、Y、Z‌'.split('、')

+ 1 - 1
vue.config.js

@@ -108,7 +108,7 @@ const vueConfig = {
     // If you want to turn on the proxy, please remosve the mockjs /src/main.jsL11
     proxy: {
       '/api': {
-        target: 'http://192.168.2.132/ocs-admin',
+        target: 'http://192.168.2.10/ocs-admin',
         // target: 'https://t.ocs.360arrow.com/ocs-admin', //  练习
         // target: 'https://p.ocs.360arrow.com/ocs-admin', //  预发布
         ws: false,