From 4e837faa0307fda4d0d3bd463c88a7ef43817443 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 20 九月 2019 16:06:41 +0800
Subject: [PATCH] 2019-09-20update

---
 src/api/index.js |   34 ++++++++++++++++++++++++++++++++++
 1 files changed, 34 insertions(+), 0 deletions(-)

diff --git a/src/api/index.js b/src/api/index.js
index 10ba34c..cdd6846 100644
--- a/src/api/index.js
+++ b/src/api/index.js
@@ -1,6 +1,7 @@
 import axios from 'axios'
 
 axios.defaults.crossDomain = true
+axios.defaults.headers.common['token'] = 'token'
 axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8'
 axios.defaults.withCredentials = true
 
@@ -96,6 +97,39 @@
       }
     })
   }
+
+  /**
+   * @description 鑾峰彇椤甸潰閰嶇疆淇℃伅
+   * @param {String} MenuNo 椤甸潰鑿滃崟鍙傛暟
+   */
+  getMainConfigsData (MenuNo) {
+    return axios({
+      url: '/dostar',
+      data: {
+        func: 'GetMainConfigs',
+        MenuNo: MenuNo
+      }
+    })
+  }
+
+  /**
+   * @description 鑾峰彇椤甸潰鍒楄〃鏁版嵁
+   * @param {String} MenuNo 椤甸潰鑿滃崟鍙傛暟
+   */
+  getMainTableData (MenuNo, pageIndex = 1, pageSize = 10, orderColumn = '', orderType = '', search) {
+    return axios({
+      url: '/dostar',
+      data: {
+        func: 'GetMainData',
+        MenuNo: MenuNo,
+        PageIndex: pageIndex,
+        PageSize: pageSize,
+        orderColumn: orderColumn,
+        orderType: orderType,
+        search: search
+      }
+    })
+  }
 }
 
 export default new Api()
\ No newline at end of file

--
Gitblit v1.8.0