From 80104a65dc0e104b34d6b7fa0e80761be916f9b6 Mon Sep 17 00:00:00 2001 From: daihh Date: Wed, 14 Dec 2022 19:40:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E5=A2=9E=E5=8A=A0=E7=9A=84?= =?UTF-8?q?=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/modules/popup.js | 10 ++++++++++ src/api/system/whiteuser.js | 20 ++++++++++++++++++++ src/utils/testUsers.js | 3 +-- 3 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 src/api/modules/popup.js create mode 100644 src/api/system/whiteuser.js diff --git a/src/api/modules/popup.js b/src/api/modules/popup.js new file mode 100644 index 00000000..f06fbf46 --- /dev/null +++ b/src/api/modules/popup.js @@ -0,0 +1,10 @@ + +import ajax from '@/utils/xajax.js' + +const list=function (query){ + return ajax.post('/xboe/m/popup/list',query); +} + +export default { + list +} diff --git a/src/api/system/whiteuser.js b/src/api/system/whiteuser.js new file mode 100644 index 00000000..274a1320 --- /dev/null +++ b/src/api/system/whiteuser.js @@ -0,0 +1,20 @@ +import ajax from '@/utils/xajax.js' + + +/** + * 查询白名单 + * @param { + * code:'', + * name:'', + * environment:0 + * } data + * @returns + */ +const getList = function(data) { + return ajax.post('/xboe/sys/whiteuser/list',data); +} + + +export default{ + getList +} diff --git a/src/utils/testUsers.js b/src/utils/testUsers.js index 11f7a0c8..512c7fd8 100644 --- a/src/utils/testUsers.js +++ b/src/utils/testUsers.js @@ -1,5 +1,4 @@ /**测试人员名单*/ - const userCodes=[ '12345601', '12345603', @@ -28,7 +27,7 @@ const isTest=function(code){ return false; } }) - }else if(mode=='preview' || mode=='production' ){ + }else{ userCodesPro.some(item=>{ if(item===code){ testUser=true;