增加管理员权限

feature-ymt
游梦婷 2 months ago
parent 6177a3e124
commit 2fcdb93a4c
  1. 13
      App.vue
  2. 6
      Utils/Api.js
  3. 2
      node_modules/.package-lock.json
  4. 26
      pages/tabBar/home/home.vue

@ -4,15 +4,16 @@
// url: 'http://192.168.3.4:9301/crest',
// imgUrl: 'https://192.168.3.4:9301/filesystem/',
//
// url: 'https://pay.dctpay.com/crest',
// imgUrl: 'https://gratia-pay.obs.cn-southwest-2.myhuaweicloud.com',
// redirectUrl:'https://pay.dctpay.com/cweb',
// hsgUrl:'https://hsg.dctpay.com',
url: 'https://pay.dctpay.com/crest',
imgUrl: 'https://gratia-pay.obs.cn-southwest-2.myhuaweicloud.com',
redirectUrl:'https://pay.dctpay.com/cweb',
hsgUrl:'https://hsg.dctpay.com',
//
url: 'https://gratia-pay.dctpay.com/crest',
/* url: 'https://gratia-pay.dctpay.com/crest',
imgUrl: 'https://gratia-pay-test.obs.cn-east-3.myhuaweicloud.com',
redirectUrl:'https://gratia-pay.dctpay.com/cweb',
hsgUrl:'https://hsgcs.dctpay.com',
hsgUrl:'https://hsgcs.dctpay.com', */
userInfo: "",
openId: '',
h5code: '',

@ -202,6 +202,12 @@ export const mermoveHomeCount = params => {
export const storemoveHomeCount = params => {
return POST('POST', `${base}/store/moveHomeCount`, params).then(res => res.data);
}
//管理员查询统计
export const AdimoveHomeCount = params => {
return POST('POST', `${base}/company/moveHomeCount`, params).then(res => res.data);
}
// 查询交易订单列表
export const getTradeOrderList = params => {
return POST('GET', `${base}/tradeOrder/getTradeOrderList`, params).then(res => res.data);

2
node_modules/.package-lock.json generated vendored

@ -1,7 +1,7 @@
{
"name": "基于uview职位分类选择,具备模糊搜索功能,使用更方便",
"version": "1.1.1",
"lockfileVersion": 2,
"lockfileVersion": 3,
"requires": true,
"packages": {
"node_modules/jweixin-module": {

@ -72,7 +72,8 @@
moveHomeCount,
mermoveHomeCount,
storemoveHomeCount,
getDictionaries
getDictionaries,
AdimoveHomeCount
} from '../../../Utils/Api.js'
let app = getApp();
export default {
@ -85,6 +86,18 @@
};
},
onLoad() {
//
if (this.userInfo.secUser.objectType == 1) {
this.funcList = [{
title: '收款记录',
url: '../../index/collectNotes/collectNotes',
img: '../../../static/img/home6.png'
}
]
return;
}
//
if (this.userInfo.secUser.objectType == 3) {
this.funcList = [{
@ -196,6 +209,9 @@
if (this.userInfo.secUser.objectType == 5) {
this.storemoveHomeCount();
}
if(this.userInfo.secUser.objectType == 1){
this.AdimoveHomeCount();
}
this.getDictionaries();
},
methods: {
@ -219,6 +235,14 @@
}
})
},
//
AdimoveHomeCount(){
AdimoveHomeCount().then(res => {
if (res.return_code == '000000') {
this.auditnum = res.return_data.today;
}
})
},
//
moveHomeCount() {
moveHomeCount().then(res => {

Loading…
Cancel
Save