lex-xin 5 年 前
コミット
042e4c799d
4 ファイル変更15 行追加18 行削除
  1. 0 0
      dist/index.html
  2. 0 0
      dist/static/js/app.67b803fd.js
  3. 2 11
      src/router/index.js
  4. 13 7
      src/views/orderAccount/index.vue

ファイルの差分が大きいため隠しています
+ 0 - 0
dist/index.html


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/static/js/app.67b803fd.js


+ 2 - 11
src/router/index.js

@@ -73,17 +73,8 @@ export const constantRoutes = [
   },
   {
     path: '/orderacount',
-    component: Layout,
-    children: [{
-      path: 'order',
-      name: 'order',
-      component: orderAccount,
-      hidden: false,
-      meta: {
-        title: '订单查询(财务)',
-        icon: 'eye-open'
-      }
-    }],
+    component: orderAccount,
+    hidden: true
   },
   {
     path: '/404',

+ 13 - 7
src/views/orderAccount/index.vue

@@ -149,6 +149,11 @@ export default {
       }
     },
   },
+  mounted() {
+      if(this.account) {
+        this.getstudentList()
+    }
+  },
   methods: {
     handleCurrentChange (val) {
       this.page = val;
@@ -161,7 +166,6 @@ export default {
             return false
         }
         if(rows && typeof rows == 'number' ) {
-            console.log(rows)
             this.rows = rows
         } else {
             this.rows = 20
@@ -348,12 +352,14 @@ export default {
             const values = data.map(item => Number(item[column.property]));
             if (!values.every(value => isNaN(value))) {
                 sums[index] = values.reduce((prev, curr) => {
-                const value = Number(curr);
-                if (!isNaN(value)) {
-                    return prev + curr;
-                } else {
-                    return prev;
-                }
+                    const value = Number(curr);
+                    let temp
+                    if (!isNaN(value)) {
+                        temp = parseFloat(prev) + parseFloat(curr);
+                    } else {
+                        temp = prev;
+                    }
+                    return parseFloat(temp).toFixed(2)
                 }, 0);
                 sums[index] += ' 元';
             } else {

この差分においてかなりの量のファイルが変更されているため、一部のファイルを表示していません