Browse Source

init

undefined
wangxiaohua 4 years ago
parent
commit
cbce6daaef
2 changed files with 6 additions and 4 deletions
  1. +1
    -0
      pages/center/Piabodata/Employeesstatistics.vue
  2. +5
    -4
      uview-ui/libs/request/index.js

+ 1
- 0
pages/center/Piabodata/Employeesstatistics.vue View File

@@ -249,6 +249,7 @@
},
//接待量排名
staffStatisticsReceptionTop10(promse){
this.$u.post('/cusLvStatistics/staffStatisticsReceptionTop10',promse).then(res=>{
res.result.forEach(item=>{
item.zxl=item.data


+ 5
- 4
uview-ui/libs/request/index.js View File

@@ -137,7 +137,8 @@ class Request {
// get请求
this.get = (url, data = {}, header = {
'Authorization': 'Bearer '+token.token,
'content-type': 'application/x-www-form-urlencoded'
'content-type': 'application/json',
// application/x-www-form-urlencoded
}) => {
return this.request({
method: 'GET',
@@ -150,7 +151,7 @@ class Request {
// post请求
this.post = (url, data = {}, header = {
'Authorization': 'Bearer '+token.token,
'content-type': 'application/x-www-form-urlencoded'
'content-type': 'application/json'
}) => {
return this.request({
url,
@@ -163,7 +164,7 @@ class Request {
// put请求,不支持支付宝小程序(HX2.6.15)
this.put = (url, data = {}, header = {
'Authorization': 'Bearer '+token.token,
'content-type': 'application/x-www-form-urlencoded'
'content-type': 'application/json'
}) => {
return this.request({
url,
@@ -176,7 +177,7 @@ class Request {
// delete请求,不支持支付宝和头条小程序(HX2.6.15)
this.delete = (url, data = {}, header = {
'Authorization': 'Bearer '+token.token,
'content-type': 'application/x-www-form-urlencoded'
'content-type': 'application/json'
}) => {
return this.request({
url,


Loading…
Cancel
Save