增加管理员权限

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', // url: 'http://192.168.3.4:9301/crest',
// imgUrl: 'https://192.168.3.4:9301/filesystem/', // imgUrl: 'https://192.168.3.4:9301/filesystem/',
// //
// url: 'https://pay.dctpay.com/crest', url: 'https://pay.dctpay.com/crest',
// imgUrl: 'https://gratia-pay.obs.cn-southwest-2.myhuaweicloud.com', imgUrl: 'https://gratia-pay.obs.cn-southwest-2.myhuaweicloud.com',
// redirectUrl:'https://pay.dctpay.com/cweb', redirectUrl:'https://pay.dctpay.com/cweb',
// hsgUrl:'https://hsg.dctpay.com', 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', imgUrl: 'https://gratia-pay-test.obs.cn-east-3.myhuaweicloud.com',
redirectUrl:'https://gratia-pay.dctpay.com/cweb', redirectUrl:'https://gratia-pay.dctpay.com/cweb',
hsgUrl:'https://hsgcs.dctpay.com', hsgUrl:'https://hsgcs.dctpay.com', */
userInfo: "", userInfo: "",
openId: '', openId: '',
h5code: '', h5code: '',

@ -202,6 +202,12 @@ export const mermoveHomeCount = params => {
export const storemoveHomeCount = params => { export const storemoveHomeCount = params => {
return POST('POST', `${base}/store/moveHomeCount`, params).then(res => res.data); 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 => { export const getTradeOrderList = params => {
return POST('GET', `${base}/tradeOrder/getTradeOrderList`, params).then(res => res.data); 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职位分类选择,具备模糊搜索功能,使用更方便", "name": "基于uview职位分类选择,具备模糊搜索功能,使用更方便",
"version": "1.1.1", "version": "1.1.1",
"lockfileVersion": 2, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"node_modules/jweixin-module": { "node_modules/jweixin-module": {

@ -72,7 +72,8 @@
moveHomeCount, moveHomeCount,
mermoveHomeCount, mermoveHomeCount,
storemoveHomeCount, storemoveHomeCount,
getDictionaries getDictionaries,
AdimoveHomeCount
} from '../../../Utils/Api.js' } from '../../../Utils/Api.js'
let app = getApp(); let app = getApp();
export default { export default {
@ -85,6 +86,18 @@
}; };
}, },
onLoad() { 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) { if (this.userInfo.secUser.objectType == 3) {
this.funcList = [{ this.funcList = [{
@ -196,6 +209,9 @@
if (this.userInfo.secUser.objectType == 5) { if (this.userInfo.secUser.objectType == 5) {
this.storemoveHomeCount(); this.storemoveHomeCount();
} }
if(this.userInfo.secUser.objectType == 1){
this.AdimoveHomeCount();
}
this.getDictionaries(); this.getDictionaries();
}, },
methods: { methods: {
@ -219,6 +235,14 @@
} }
}) })
}, },
//
AdimoveHomeCount(){
AdimoveHomeCount().then(res => {
if (res.return_code == '000000') {
this.auditnum = res.return_data.today;
}
})
},
// //
moveHomeCount() { moveHomeCount() {
moveHomeCount().then(res => { moveHomeCount().then(res => {

Loading…
Cancel
Save