diff --git a/.env.development b/.env.development index 03b4db5..15dbabb 100644 --- a/.env.development +++ b/.env.development @@ -2,6 +2,6 @@ ENV = 'development' # base api -#VUE_APP_BASE_API = https://sstt.115.langye.net -VUE_APP_BASE_API = http://sstt.ali251.langye.net/ +VUE_APP_BASE_API = https://sstt.115.langye.net +#VUE_APP_BASE_API = http://sstt.ali251.langye.net/ VUE_APP_UPLOAD_API = http://sstt.ali251.langye.net/api/admin/upload-file diff --git a/src/api/dashboard.js b/src/api/dashboard.js index 858d041..a761669 100644 --- a/src/api/dashboard.js +++ b/src/api/dashboard.js @@ -1,26 +1,40 @@ -import request from '@/utils/request' - -export function getCounts() { - return request({ - url: '/api/admin/get-counts', - method: 'get' - }) -} - - -export function getChartsData(params) { - return request({ - url: '/api/admin/get-charts-data', - method: 'get', - params: params - }) +import request from '@/utils/request' + +export function getCounts() { + return request({ + url: '/api/admin/get-counts', + method: 'get' + }) +} + + +export function getChartsData(params) { + return request({ + url: '/api/admin/get-charts-data', + method: 'get', + params: params + }) } -export function getChartsHome(params) { - return request({ - url: '/api/admin/chart/home', - method: 'get', - params: params - }) +export function getChartsHome(params) { + return request({ + url: '/api/admin/chart/home', + method: 'get', + params: params + }) } +export function getBusinessData(params) { + return request({ + url: '/api/admin/chart/business_data', + method: 'get', + params: params + }) +} +export function getOrderData(params) { + return request({ + url: '/api/admin/chart/order_data', + method: 'get', + params: params + }) +} diff --git a/src/api/user.js b/src/api/user.js index e12d073..9fbdf50 100644 --- a/src/api/user.js +++ b/src/api/user.js @@ -4,7 +4,8 @@ export function login(data) { return request({ url: '/api/admin/auth/login', method: 'post', - data + data, + isLoading: false }) } @@ -12,7 +13,8 @@ export function getInfo(token) { return request({ url: '/api/admin/auth/me', method: 'post', - params: { token } + params: { token }, + isLoading: false }) } @@ -27,6 +29,7 @@ export function getAuthMenu(token) { return request({ url: '/api/admin/auth/permissions', method: 'get', - params: { token } + params: { token }, + isLoading: false }) -} \ No newline at end of file +} diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue index 41af1d9..a5dcdfa 100644 --- a/src/views/dashboard/index.vue +++ b/src/views/dashboard/index.vue @@ -1,342 +1,346 @@ - - - - - + + + + + diff --git a/src/views/finance/component/addScheduleListLog.vue b/src/views/finance/component/addScheduleListLog.vue index 5f873bf..37fdb6e 100644 --- a/src/views/finance/component/addScheduleListLog.vue +++ b/src/views/finance/component/addScheduleListLog.vue @@ -9,7 +9,7 @@ 经度 :
- +
@@ -19,7 +19,7 @@ 纬度 :
- +
diff --git a/src/views/product/sku.vue b/src/views/product/sku.vue index 27b2ec8..7d7623b 100644 --- a/src/views/product/sku.vue +++ b/src/views/product/sku.vue @@ -92,7 +92,10 @@ export default { }, methods: { async getTypes(){ - const res = await getTypes({},false) + const res = await getTypes({ + page: 1, + page_size: 999 + },false) this.types = res.data }, diff --git a/vue.config.js b/vue.config.js index d7383a8..b3e32aa 100644 --- a/vue.config.js +++ b/vue.config.js @@ -7,7 +7,7 @@ function resolve(dir) { } const name = defaultSettings.title || '四世同堂业务管理系统' // page title - +const timeStamp = new Date().getTime() // If your port is set to 80, // use administrator privileges to execute the command line. // For example, Mac: sudo npm run @@ -25,7 +25,7 @@ module.exports = { * Detail: https://cli.vuejs.org/config/#publicpath */ publicPath: '/admin/', - outputDir: '/Users/mac/Documents/Work/c-常州四世同堂/code/shishitongtang-service/public/admin', + outputDir: './dist', assetsDir: 'static', css: { loaderOptions: { // 向 CSS 相关的 loader 传递选项