lex-xin пре 5 година
родитељ
комит
9604710732

Разлика између датотеке није приказан због своје велике величине
+ 0 - 0
dist/index.html


Разлика између датотеке није приказан због своје велике величине
+ 0 - 0
dist/static/css/app.c73efa16.css


Разлика између датотеке није приказан због своје велике величине
+ 0 - 0
dist/static/js/app.80c59d8d.js


Разлика између датотеке није приказан због своје велике величине
+ 0 - 0
dist/static/js/app.aa1f5767.js


Разлика између датотеке није приказан због своје велике величине
+ 0 - 0
dist/static/js/chunk-libs.42358934.js


+ 30 - 12
src/views/dashboard/index.vue

@@ -100,7 +100,6 @@
                            :selectable='checkboxT'
                            width="55"
                            v-if='this.majorStatus <= 2'>
-
           </el-table-column>
           <el-table-column prop="city"
                            align="center"
@@ -250,6 +249,7 @@ import {
   updateClass
 } from "@/api/table";
 import { setTimeout } from "timers";
+import { rename } from 'fs';
 export default {
   name: "dashboard",
   data () {
@@ -370,7 +370,7 @@ export default {
       this.getMajors();
     },
     // 获取学生列表(查询也用这个接口)
-    getstudentList () {
+    getstudentList (callBack) {
       if (!this.majorId) {
         this.$message.error("请先选择分部与乐团在搜索学生");
         return;
@@ -388,6 +388,10 @@ export default {
         this.tableData = res.data.rows;
         this.total = res.data.total;
         this.pageSize = res.data.limit;
+        // 回调函数
+        if(callBack && typeof callBack === 'function') {
+            callBack()
+        }
       });
     },
     // 重置搜索
@@ -483,7 +487,7 @@ export default {
     },
     // 点击打开报名链接
     openUrl () {
-      // debugger
+      // debugger   
       this.code = true;
       this.qrcode();
       // window.open(`https://pay.dayaedu.com/#/order?classId=${this.majorId}&schoolName=${this.actionTearm}`)
@@ -514,7 +518,7 @@ export default {
       });
     },
     qrcode () {
-
+      let date = new Date().getTime()
       setTimeout(() => {
         let date = new Date().getTime();
         this.qrcodes = new QRCode(document.getElementById("qrCode"), {
@@ -528,13 +532,25 @@ export default {
       }
     },
     exportis () {
-      // var curTbl = document.getElementById('tableid');
-      // this.tableId = curTbl;
-      // console.log(curTbl);
-      if (this.tableData.length <= 0) {
-        return false
-      }
-      this.method5('tableid');
+        // var curTbl = document.getElementById('tableid');
+        // this.tableId = curTbl;
+        // 获取所有学生数据然后到出
+        this.limit = 200 // 每页获取200条数据
+        this.topForm.team = "";
+        this.topForm.status = "";
+        this.topForm.major = "";
+        this.page = 1;
+        // 重置,显示所有数据,然后到出
+        this.getstudentList(() => {
+            // 需要等数据更新,然后做下载功能
+            setTimeout(() => {
+                if (this.tableData.length <= 0) {
+                    return false
+                }
+                this.method5('tableid');    
+            }, 500);
+        })
+        
     },
 
     // 导出
@@ -622,7 +638,6 @@ export default {
             return ''
         }
         let temp = remark.split('\n')
-        console.log(temp)
         return temp
     }
   },
@@ -741,4 +756,7 @@ export default {
   flex-direction: column;
   align-items: center;
 }
+.nomargin {
+    margin: 0;
+}
 </style>

+ 0 - 1
src/views/order/index.vue

@@ -288,7 +288,6 @@ export default {
 
         })
       }
-
     },
     handleChange (val) {
       if (val) {

+ 12 - 16
vue.config.js

@@ -14,7 +14,9 @@ const name = defaultSettings.title || '大雅报名管理'; // page title
 // You can change the port by the following methods:
 // port = 9528 npm run dev OR npm run dev --port = 9528
 const port = process.env.port || process.env.npm_config_port || 9528; // dev port
-
+// const targetUrl = 'http://testpay.dayaedu.com'
+const targetUrl = 'https://manage.dayaedu.com'
+// const targetUrl = 'http://192.168.3.38:8088'
 // All configuration item explanations can be find in https://cli.vuejs.org/config/
 module.exports = {
 	/**
@@ -30,7 +32,7 @@ module.exports = {
   lintOnSave: false,
   productionSourceMap: false,
   devServer: {
-    // port: port,
+    port: port,
     open: true,
     // overlay: {
     // 	warnings: false,
@@ -39,25 +41,19 @@ module.exports = {
     proxy: {
       // change xxx-api/login => mock/login
       // detail: https://cli.vuejs.org/config/#devserver-proxy
-      // http://admin.dayaedu.com
-      // http://192.168.3.27
-      // http://192.168.3.28:8005
-      // 192.168.3.38:8088
       '/order': {
-        target: 'https://pay.dayaedu.com',
-        // target: `http://192.168.3.38:9000`,
+        target: targetUrl,
         changeOrigin: true,
-        pathRewrite: {
-          "^order": ''
-        }
+        ws: true,
+        '^/order': '/order',
+        xfwd: true
       },
       '/user': {
-        target: 'https://pay.dayaedu.com',
-        // target: `http://192.168.3.38:9000`,
+        target: targetUrl,
         changeOrigin: true,
-        pathRewrite: {
-          "^user": ''
-        }
+        ws: true,
+        '^/user': '/user',
+        xfwd: true
       }
     },
     // after: require('./mock/mock-server.js')

Неке датотеке нису приказане због велике количине промена