diff --git a/.env.development b/.env.development index 5a5271d..564053e 100644 --- a/.env.development +++ b/.env.development @@ -1,6 +1,6 @@ # just a flag ENV = 'development' -# base api -VUE_APP_BASE_API = https://bd-fangke.ali251.langye.net -VUE_APP_UPLOAD_API = https://bd-fangke.ali251.langye.net/api/admin/upload-file +# base api(与测试/正式环境同一后端域名) +VUE_APP_BASE_API = http://yxbd-fangke.ali251.langye.net +VUE_APP_UPLOAD_API = http://yxbd-fangke.ali251.langye.net/api/admin/upload-file diff --git a/.env.production b/.env.production index ab0119b..66f3506 100644 --- a/.env.production +++ b/.env.production @@ -2,5 +2,5 @@ ENV = 'production' # base api -VUE_APP_BASE_API = https://bd-fangke.ali251.langye.net -VUE_APP_UPLOAD_API = https://bd-fangke.ali251.langye.net/api/admin/upload-file \ No newline at end of file +VUE_APP_BASE_API = +VUE_APP_UPLOAD_API = /api/admin/upload-file diff --git a/.env.staging b/.env.staging index a8793a0..69a97b4 100644 --- a/.env.staging +++ b/.env.staging @@ -4,5 +4,5 @@ NODE_ENV = production ENV = 'staging' # base api -VUE_APP_BASE_API = '/stage-api' - +VUE_APP_BASE_API = https://yxbd-fangke.ali251.langye.net +VUE_APP_UPLOAD_API = https://yxbd-fangke.ali251.langye.net/api/admin/upload-file diff --git a/package.json b/package.json index c596a6e..14f1721 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,8 @@ "vue": "2.6.10", "vue-count-to": "^1.0.13", "vue-router": "3.0.6", - "vuex": "3.1.0" + "vuex": "3.1.0", + "xlsx": "^0.18.5" }, "devDependencies": { "@vue/cli-plugin-babel": "4.4.4", diff --git a/src/api/system/user.js b/src/api/system/user.js index 1cb4a77..c551c77 100644 --- a/src/api/system/user.js +++ b/src/api/system/user.js @@ -11,10 +11,10 @@ export function save(data) { export function listuser(params) { return request({ url: '/api/admin/admin', - method: 'get', + method: 'get', params }) -} +} export function del(data) { return request({ @@ -22,13 +22,33 @@ export function del(data) { method: 'post', data }) -} - +} + export function setRoles(data) { return request({ url: '/api/admin/admin/set-roles', method: 'post', data }) -} +} + +export function importPreview(data) { + return request({ + url: '/api/admin/admin/import-preview', + method: 'post', + data, + timeout: 120000, + isLoading: true + }) +} + +export function importSubmit(data) { + return request({ + url: '/api/admin/admin/import-submit', + method: 'post', + data, + timeout: 120000, + isLoading: true + }) +} diff --git a/src/api/visit/vip.js b/src/api/visit/vip.js new file mode 100644 index 0000000..e7ae9e8 --- /dev/null +++ b/src/api/visit/vip.js @@ -0,0 +1,42 @@ +import request from "@/utils/request"; + +export function getList(params) { + return request({ + url: "/api/admin/vip-customer/index", + method: "get", + params + }); +} + +export function show(params) { + return request({ + method: "get", + url: "/api/admin/vip-customer/show", + params + }); +} + +export function save(data) { + return request({ + method: "post", + url: "/api/admin/vip-customer/save", + data + }); +} + +export function destroy(params) { + return request({ + method: "get", + url: "/api/admin/vip-customer/destroy", + params + }); +} + +export function importVip(data) { + return request({ + method: "post", + url: "/api/admin/vip-customer/import", + data + }); +} + diff --git a/src/components/morecharts/PieChart.vue b/src/components/morecharts/PieChart.vue index 3979b90..82af3f1 100644 --- a/src/components/morecharts/PieChart.vue +++ b/src/components/morecharts/PieChart.vue @@ -60,8 +60,8 @@ this.setOptions(this.chartData); }, setOptions(chartdata) { - console.log(chartdata.xArr) this.chart.setOption({ + color: ['#409EFF', '#8B6EF5', '#2BB673', '#FF8A00'], dataZoom: [ //给x轴设置滚动条 // { @@ -127,30 +127,30 @@ xAxis: [{ type: 'category', data: chartdata.xArr, - axisLine: { - show: false //不显示坐标轴轴线 - }, - axisTick: { - show: false //不显示坐标轴刻度 + axisLine: { + show: false //不显示坐标轴轴线 + }, + axisTick: { + show: false //不显示坐标轴刻度 }, }], yAxis: [{ type: 'value', - minInterval: 1, - axisLine: { - show: false //不显示坐标轴轴线 - }, - axisTick: { - show: false //不显示坐标轴刻度 + minInterval: 1, + axisLine: { + show: false //不显示坐标轴轴线 + }, + axisTick: { + show: false //不显示坐标轴刻度 }, - }], + }], radiusArr:[], series: [{ name: '数据', type: 'pie', stack: 'vistors', - barWidth: '60%', - radius: chartdata.radiusArr, + barWidth: '60%', + radius: chartdata.radiusArr, center: ['50%', '45%'], data: chartdata.yArr, animationDuration @@ -160,4 +160,4 @@ } } } - + diff --git a/src/views/dashboard/components/PanelGroup.vue b/src/views/dashboard/components/PanelGroup.vue index 2c638c6..67a9268 100644 --- a/src/views/dashboard/components/PanelGroup.vue +++ b/src/views/dashboard/components/PanelGroup.vue @@ -10,15 +10,15 @@