mo před 5 roky
rodič
revize
03c2915af1

Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 0 - 0
dist/index.html


Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 0 - 0
dist/static/css/app.aa3e66d9.css


Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 1 - 0
dist/static/css/app.b3253537.css


Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 0 - 0
dist/static/css/chunk-4de1c2b6.a37cd815.css


Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 0 - 0
dist/static/css/chunk-68697b0f.5e9c0b21.css


Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 0 - 0
dist/static/js/app.9b481043.js


+ 0 - 1
dist/static/js/chunk-4de1c2b6.16828111.js

@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4de1c2b6"],{"26fc":function(t,s,a){t.exports=a.p+"static/img/404_cloud.0f4bc32b.png"},"8cdb":function(t,s,a){"use strict";a.r(s);var e=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"wscn-http404-container"},[a("div",{staticClass:"wscn-http404"},[t._m(0),t._v(" "),a("div",{staticClass:"bullshit"},[a("div",{staticClass:"bullshit__oops"},[t._v("OOPS!")]),t._v(" "),t._m(1),t._v(" "),a("div",{staticClass:"bullshit__headline"},[t._v(t._s(t.message))]),t._v(" "),a("div",{staticClass:"bullshit__info"},[t._v("Please check that the URL you entered is correct, or click the button below to return to the homepage.")]),t._v(" "),a("a",{staticClass:"bullshit__return-home",attrs:{href:""}},[t._v("Back to home")])])])])},c=[function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"pic-404"},[e("img",{staticClass:"pic-404__parent",attrs:{src:a("a36b"),alt:"404"}}),t._v(" "),e("img",{staticClass:"pic-404__child left",attrs:{src:a("26fc"),alt:"404"}}),t._v(" "),e("img",{staticClass:"pic-404__child mid",attrs:{src:a("26fc"),alt:"404"}}),t._v(" "),e("img",{staticClass:"pic-404__child right",attrs:{src:a("26fc"),alt:"404"}})])},function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"bullshit__info"},[t._v("All rights reserved\n        "),a("a",{staticStyle:{color:"#20a0ff"},attrs:{href:"https://wallstreetcn.com",target:"_blank"}},[t._v("wallstreetcn")])])}],i={name:"Page404",computed:{message:function(){return"The webmaster said that you can not enter this page..."}}},l=i,n=(a("97ef"),a("2877")),r=Object(n["a"])(l,e,c,!1,null,"c095f994",null);s["default"]=r.exports},"97ef":function(t,s,a){"use strict";var e=a("d3f45"),c=a.n(e);c.a},a36b:function(t,s,a){t.exports=a.p+"static/img/404.a57b6f31.png"},d3f45:function(t,s,a){}}]);

+ 1 - 0
dist/static/js/chunk-68697b0f.5a717cc9.js

@@ -0,0 +1 @@
+(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-68697b0f"],{"146e":function(t,s,a){"use strict";var e=a("6d2d"),c=a.n(e);c.a},"26fc":function(t,s,a){t.exports=a.p+"static/img/404_cloud.0f4bc32b.png"},"6d2d":function(t,s,a){},"8cdb":function(t,s,a){"use strict";a.r(s);var e=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"wscn-http404-container"},[a("div",{staticClass:"wscn-http404"},[t._m(0),t._v(" "),a("div",{staticClass:"bullshit"},[a("div",{staticClass:"bullshit__oops"},[t._v("OOPS!")]),t._v(" "),t._m(1),t._v(" "),a("div",{staticClass:"bullshit__headline"},[t._v(t._s(t.message))]),t._v(" "),a("div",{staticClass:"bullshit__info"},[t._v("Please check that the URL you entered is correct, or click the button below to return to the homepage.")]),t._v(" "),a("a",{staticClass:"bullshit__return-home",attrs:{href:""}},[t._v("Back to home")])])])])},c=[function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"pic-404"},[e("img",{staticClass:"pic-404__parent",attrs:{src:a("a36b"),alt:"404"}}),t._v(" "),e("img",{staticClass:"pic-404__child left",attrs:{src:a("26fc"),alt:"404"}}),t._v(" "),e("img",{staticClass:"pic-404__child mid",attrs:{src:a("26fc"),alt:"404"}}),t._v(" "),e("img",{staticClass:"pic-404__child right",attrs:{src:a("26fc"),alt:"404"}})])},function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"bullshit__info"},[t._v("All rights reserved\n        "),a("a",{staticStyle:{color:"#20a0ff"},attrs:{href:"https://wallstreetcn.com",target:"_blank"}},[t._v("wallstreetcn")])])}],i={name:"Page404",computed:{message:function(){return"The webmaster said that you can not enter this page..."}}},l=i,n=(a("146e"),a("2877")),r=Object(n["a"])(l,e,c,!1,null,"794a952c",null);s["default"]=r.exports},a36b:function(t,s,a){t.exports=a.p+"static/img/404.a57b6f31.png"}}]);

+ 0 - 0
dist/static/js/chunk-elementUI.5dcf1ced.js → dist/static/js/chunk-elementUI.db54ce58.js


+ 0 - 0
dist/static/js/chunk-libs.3cf2b7f2.js → dist/static/js/chunk-libs.c8a53939.js


+ 0 - 1
src/api/user.js

@@ -1,7 +1,6 @@
 import request from '@/utils/request'
 
 export function login(data) {
-  console.log(data)
   return request({
     url: '/user/login',
     method: 'post',

+ 102 - 2
src/views/dashboard/index.vue

@@ -77,11 +77,14 @@
         <!--  v-if="majorStatus == 1" -->
         <el-button type='danger'
                    icon='el-icon-position'
+                   v-show="paymentStatus"
                    @click="getMoney">开启缴费</el-button>
         <el-button type='warning'
                    icon="el-icon-news"
                    v-if='this.majorId'
                    @click='openUrl'>打开二维码</el-button>
+        <el-button plain
+                 @click="exportis">导出</el-button>
       </el-form>
       <!-- 提示语 -->
       <p class="subMsg"
@@ -91,6 +94,7 @@
            v-if="majorId">
         <el-table :data="tableData"
                   style="width: 100%"
+                  id='tableid'
                   @selection-change="handleSelectionChange">
           <el-table-column type="selection"
                            :selectable='checkboxT'
@@ -243,6 +247,7 @@ export default {
   name: "dashboard",
   data () {
     return {
+      paymentStatus: false, // 开启缴费开关
       topForm: {
         team: "",
         status: "",
@@ -345,6 +350,12 @@ export default {
       if (status == 3 || status == 4) {
         this.disabled = false;
       }
+      // 判断乐团是否已经开启缴费
+      if (status == 2 || status == 3 || status == 4) {
+          this.paymentStatus = false
+      } else {
+          this.paymentStatus = true
+      }
       this.majorId = id;
       // 发请求 获取学生列表数据
       this.getstudentList();
@@ -509,8 +520,97 @@ export default {
       }
 
     },
-    // hidecode () {
-    // }
+    exportis () {
+      // var curTbl = document.getElementById('tableid');
+      // this.tableId = curTbl;
+      // console.log(curTbl);
+      console.log(this.tableData)
+      if(this.tableData.length <= 0) {
+          return false
+      }
+      this.method5('tableid');
+    },
+
+    // 导出
+    getExplorer () {
+      var explorer = window.navigator.userAgent;
+      //ie
+      if (explorer.indexOf("MSIE") >= 0) {
+        return 'ie';
+      }
+      //firefox
+      else if (explorer.indexOf("Firefox") >= 0) {
+        return 'Firefox';
+      }
+      //Chrome
+      else if (explorer.indexOf("Chrome") >= 0) {
+        return 'Chrome';
+      }
+      //Opera
+      else if (explorer.indexOf("Opera") >= 0) {
+        return 'Opera';
+      }
+      //Safari
+      else if (explorer.indexOf("Safari") >= 0) {
+        return 'Safari';
+      }
+    },
+    method5 (tableid) {
+
+      if (this.getExplorer() == 'ie') {
+        var curTbl = document.getElementById(tableid);
+        var oXL = new ActiveXObject("Excel.Application");
+        var oWB = oXL.Workbooks.Add();
+        var xlsheet = oWB.Worksheets(1);
+        var sel = document.body.createTextRange();
+        sel.moveToElementText(curTbl);
+        sel.select();
+        sel.execCommand("Copy");
+        xlsheet.Paste();
+        oXL.Visible = true;
+        try {
+
+          var fname = oXL.Application.GetSaveAsFilename("哈哈哈.xls", "Excel Spreadsheets (*.xls), *.xls");
+        } catch (e) {
+          print("Nested catch caught " + e);
+        } finally {
+          oWB.SaveAs(fname);
+          oWB.Close(savechanges = false);
+          oXL.Quit();
+          oXL = null;
+          this.idTmr = window.setInterval("Cleanup();", 1);
+        }
+
+      }
+      else {
+        this.tableToExcel();
+      }
+    },
+    Cleanup () {
+      window.clearInterval(this.idTmr);
+      this.CollectGarbage();
+    },
+    tableToExcel () {
+
+      (function () {
+        var uri = 'data:application/vnd.ms-excel;base64,',
+          template = '<html><head><meta charset="UTF-8"></head><body><table>{table}</table></body></html>',
+          base64 = function (s) { return window.btoa(unescape(encodeURIComponent(s))) },
+          format = function (s, c) {
+            return s.replace(/{(\w+)}/g,
+              function (m, p) { return c[p]; })          }
+        // table name
+        let table = document.getElementById('tableid')
+        // || name
+        var ctx = { worksheet: 'Worksheet', table: table.innerHTML }
+        window.location.href = uri + base64(format(template, ctx))
+        // 
+        // return function () {
+
+
+        // }
+      })()
+    },
   },
   watch: {
     radio (val) {

+ 4 - 2
vue.config.js

@@ -44,14 +44,16 @@ module.exports = {
       // http://192.168.3.28:8005
       // 192.168.3.38:8088
       '/order': {
-        target: `http://192.168.3.38:9000`,
+        target: 'http://testpay.dayaedu.com',
+        // target: `http://192.168.3.38:9000`,
         changeOrigin: true,
         pathRewrite: {
           "^order": ''
         }
       },
       '/user': {
-        target: `http://192.168.3.38:9000`,
+        target: 'http://testpay.dayaedu.com',
+        // target: `http://192.168.3.38:9000`,
         changeOrigin: true,
         pathRewrite: {
           "^user": ''

Některé soubory nejsou zobrazeny, neboť je v těchto rozdílových datech změněno mnoho souborů