@ -0,0 +1,14 @@ |
|||
# https://editorconfig.org |
|||
root = true |
|||
|
|||
[*] |
|||
charset = utf-8 |
|||
indent_style = space |
|||
indent_size = 2 |
|||
end_of_line = lf |
|||
insert_final_newline = true |
|||
trim_trailing_whitespace = true |
|||
|
|||
[*.md] |
|||
insert_final_newline = false |
|||
trim_trailing_whitespace = false |
@ -0,0 +1,21 @@ |
|||
NODE_ENV = production |
|||
|
|||
# just a flag |
|||
ENV = 'boot' |
|||
|
|||
VUE_APP_PROJECT_NAME = 'fids-admin-sp' |
|||
# 开发环境请求域名前缀, 该变量仅仅开发环境需要设置 |
|||
VUE_APP_DEV_REQUEST_DOMAIN_PREFIX = 'http://124.70.15.185:8900' |
|||
# 请求域名前缀, 该变量仅仅生产环境需要设置 |
|||
VUE_APP_PROD_REQUEST_DOMAIN_PREFIX = 'http://124.70.15.185:8900' |
|||
# 是否启用多租户 |
|||
VUE_APP_IS_MULTI_TENANT = true |
|||
# 是否启用验证码 |
|||
VUE_APP_IS_CAPTCHA = true |
|||
# 客户端秘钥 |
|||
VUE_APP_CLIENT_ID=fids_ui |
|||
VUE_APP_CLIENT_SECRET=fids_ui_secret |
|||
|
|||
# base api |
|||
VUE_APP_BASE_API = '/api' |
|||
|
@ -0,0 +1,30 @@ |
|||
# just a flag |
|||
ENV = 'development' |
|||
|
|||
VUE_APP_PROJECT_NAME = 'fids-admin-sp' |
|||
|
|||
# SpringCloud项目使用这个 开发环境请求域名前缀, 该变量仅仅开发环境需要设置 |
|||
VUE_APP_DEV_REQUEST_DOMAIN_PREFIX = 'http://172.119.50.111:8900' |
|||
# SpringBoot 项目使用这个 |
|||
#VUE_APP_DEV_REQUEST_DOMAIN_PREFIX = 'http://124.70.30.20:8900' |
|||
|
|||
# 请求域名前缀, 该变量仅仅生产环境需要设置 |
|||
VUE_APP_PROD_REQUEST_DOMAIN_PREFIX = '' |
|||
# URI 前缀,用于根据URI前缀进行代理 |
|||
VUE_APP_BASE_API = '/api' |
|||
# 是否启用多租户 |
|||
VUE_APP_IS_MULTI_TENANT = true |
|||
# 是否启用验证码 |
|||
VUE_APP_IS_CAPTCHA = true |
|||
# 客户端秘钥 |
|||
VUE_APP_CLIENT_ID=fids_ui |
|||
VUE_APP_CLIENT_SECRET=fids_ui_secret |
|||
|
|||
# vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable, |
|||
# to control whether the babel-plugin-dynamic-import-node plugin is enabled. |
|||
# It only does one thing by converting all import() to require(). |
|||
# This configuration can significantly increase the speed of hot updates, |
|||
# when you have a large number of pages. |
|||
# Detail: https://github.com/vuejs/vue-cli/blob/dev/packages/@vue/babel-preset-app/index.js |
|||
|
|||
VUE_CLI_BABEL_TRANSPILE_MODULES = true |
@ -0,0 +1,28 @@ |
|||
NODE_ENV = production |
|||
|
|||
# just a flag |
|||
ENV = 'docker' |
|||
|
|||
VUE_APP_PROJECT_NAME = 'fids-admin-sp' |
|||
# 开发环境请求域名前缀, 该变量仅仅开发环境需要设置 |
|||
VUE_APP_DEV_REQUEST_DOMAIN_PREFIX = 'http://124.70.15.185:8900' |
|||
# 请求域名前缀, 该变量仅仅生产环境需要设置 |
|||
VUE_APP_PROD_REQUEST_DOMAIN_PREFIX = 'http://124.70.15.185:8900' |
|||
# URI 前缀,用于根据URI前缀进行代理 |
|||
VUE_APP_BASE_API = '/api' |
|||
# 是否启用多租户 |
|||
VUE_APP_IS_MULTI_TENANT = true |
|||
# 是否启用验证码 |
|||
VUE_APP_IS_CAPTCHA = true |
|||
# 客户端秘钥 |
|||
VUE_APP_CLIENT_ID=fids_ui |
|||
VUE_APP_CLIENT_SECRET=fids_ui_secret |
|||
|
|||
# vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable, |
|||
# to control whether the babel-plugin-dynamic-import-node plugin is enabled. |
|||
# It only does one thing by converting all import() to require(). |
|||
# This configuration can significantly increase the speed of hot updates, |
|||
# when you have a large number of pages. |
|||
# Detail: https://github.com/vuejs/vue-cli/blob/dev/packages/@vue/babel-preset-app/index.js |
|||
|
|||
VUE_CLI_BABEL_TRANSPILE_MODULES = true |
@ -0,0 +1,20 @@ |
|||
# just a flag |
|||
ENV = 'production' |
|||
|
|||
VUE_APP_PROJECT_NAME = 'fids-admin-sp' |
|||
# 开发环境请求域名前缀, 该变量仅仅开发环境需要设置 |
|||
# VUE_APP_DEV_REQUEST_DOMAIN_PREFIX = 'http://120.46.128.104:8900' |
|||
# 请求域名前缀, 该变量仅仅生产环境需要设置 |
|||
VUE_APP_PROD_REQUEST_DOMAIN_PREFIX = 'http://120.46.128.104:8900' |
|||
|
|||
# base api |
|||
VUE_APP_BASE_API = '/api' |
|||
# 是否启用多租户 |
|||
VUE_APP_IS_MULTI_TENANT = true |
|||
# 是否启用验证码 |
|||
VUE_APP_IS_CAPTCHA = true |
|||
# 客户端秘钥 |
|||
VUE_APP_CLIENT_ID=fids_ui |
|||
VUE_APP_CLIENT_SECRET=fids_ui_secret |
|||
# 是否启用验证码 |
|||
VUE_APP_IS_CAPTCHA = true |
@ -0,0 +1,8 @@ |
|||
NODE_ENV = production |
|||
|
|||
# just a flag |
|||
ENV = 'staging' |
|||
|
|||
# base api |
|||
VUE_APP_BASE_API = '/stage-api' |
|||
|
@ -0,0 +1,4 @@ |
|||
build/*.js |
|||
src/assets |
|||
public |
|||
dist |
@ -0,0 +1,19 @@ |
|||
module.exports = { |
|||
root: true, |
|||
env: { |
|||
browser: true, |
|||
node: true, |
|||
es6: true |
|||
}, |
|||
'extends': [ |
|||
'plugin:vue/essential', 'plugin:vue/recommended', 'eslint:recommended' |
|||
], |
|||
rules: { |
|||
// 还可以写表达式,厉害了~
|
|||
/* 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off', |
|||
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off', */ |
|||
}, |
|||
parserOptions: { |
|||
parser: 'babel-eslint' |
|||
} |
|||
} |
@ -0,0 +1,26 @@ |
|||
# Compiled class file |
|||
*.class |
|||
|
|||
# Log file |
|||
*.log |
|||
|
|||
# BlueJ files |
|||
*.ctxt |
|||
|
|||
# Mobile Tools for Java (J2ME) |
|||
.mtj.tmp/ |
|||
|
|||
# Package Files # |
|||
*.jar |
|||
*.war |
|||
*.nar |
|||
*.ear |
|||
*.zip |
|||
*.tar.gz |
|||
*.rar |
|||
|
|||
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml |
|||
hs_err_pid* |
|||
.idea/ |
|||
node_modules/ |
|||
fids-admin-sp/ |
@ -0,0 +1,5 @@ |
|||
module.exports = { |
|||
presets: [ |
|||
'@vue/cli-plugin-babel/preset' |
|||
] |
|||
} |
@ -0,0 +1,102 @@ |
|||
{ |
|||
"name": "fids-admin-sp", |
|||
"version": "0.1.0", |
|||
"author": "fids", |
|||
"scripts": { |
|||
"serve": "vue-cli-service serve", |
|||
"build": "vue-cli-service build", |
|||
"lint": "vue-cli-service lint" |
|||
}, |
|||
"keywords": [ |
|||
"vue", |
|||
"admin", |
|||
"dashboard", |
|||
"element-ui", |
|||
"management-system" |
|||
], |
|||
"repository": { |
|||
"type": "git", |
|||
"url": "" |
|||
}, |
|||
"bugs": { |
|||
"url": "" |
|||
}, |
|||
"dependencies": { |
|||
"@riophae/vue-treeselect": "0.0.38", |
|||
"axios": "^0.19.2", |
|||
"chromedriver": "^79.0.0", |
|||
"clipboard": "^2.0.4", |
|||
"codemirror": "5.45.0", |
|||
"core-js": "^3.6.5", |
|||
"driver.js": "0.9.5", |
|||
"dropzone": "5.5.1", |
|||
"echarts": "^4.2.1", |
|||
"element-ui": "^2.12.0", |
|||
"file-saver": "^2.0.1", |
|||
"fuse.js": "^3.4.4", |
|||
"js-base64": "^3.4.5", |
|||
"jsonlint": "1.6.3", |
|||
"jszip": "3.2.1", |
|||
"normalize.css": "^7.0.0", |
|||
"nprogress": "^0.2.0", |
|||
"path-to-regexp": "2.4.0", |
|||
"screenfull": "^4.2.0", |
|||
"showdown": "^1.9.1", |
|||
"sortablejs": "1.8.4", |
|||
"spark-md5": "^3.0.1", |
|||
"tui-editor": "1.3.3", |
|||
"vue": "^2.6.11", |
|||
"vue-area-linkage": "^5.1.0", |
|||
"vue-count-to": "^1.0.13", |
|||
"vue-i18n": "^7.3.2", |
|||
"vue-router": "^3.4.3", |
|||
"vue-simple-uploader": "^0.7.4", |
|||
"vue-splitpane": "1.0.4", |
|||
"vuedraggable": "2.20.0", |
|||
"vuex": "^3.5.1", |
|||
"xlsx": "^0.14.1" |
|||
}, |
|||
"devDependencies": { |
|||
"@babel/core": "7.0.0", |
|||
"@babel/register": "7.0.0", |
|||
"@vue/cli-plugin-babel": "~4.5.0", |
|||
"@vue/cli-plugin-eslint": "~4.5.0", |
|||
"@vue/cli-plugin-router": "~4.5.0", |
|||
"@vue/cli-plugin-vuex": "~4.5.0", |
|||
"@vue/cli-service": "~4.5.0", |
|||
"@vue/test-utils": "1.0.0-beta.29", |
|||
"autoprefixer": "^9.5.1", |
|||
"babel-core": "7.0.0-bridge.0", |
|||
"babel-eslint": "^10.1.0", |
|||
"babel-jest": "23.6.0", |
|||
"chalk": "2.4.2", |
|||
"chokidar": "2.1.5", |
|||
"connect": "3.6.6", |
|||
"eslint": "^6.7.2", |
|||
"eslint-plugin-vue": "^6.2.2", |
|||
"html-webpack-plugin": "3.2.0", |
|||
"husky": "1.3.1", |
|||
"lint-staged": "8.1.5", |
|||
"mockjs": "1.0.1-beta3", |
|||
"node-sass": "^4.14.1", |
|||
"plop": "2.3.0", |
|||
"runjs": "^4.3.2", |
|||
"sass-loader": "^7.3.1", |
|||
"script-ext-html-webpack-plugin": "^2.1.4", |
|||
"script-loader": "0.7.2", |
|||
"serve-static": "^1.13.2", |
|||
"svg-sprite-loader": "^4.1.3", |
|||
"svgo": "1.2.0", |
|||
"vue-template-compiler": "^2.6.11", |
|||
"webpack": "^4.44.1" |
|||
}, |
|||
"engines": { |
|||
"node": ">=8.9", |
|||
"npm": ">= 3.0.0" |
|||
}, |
|||
"browserslist": [ |
|||
"> 1%", |
|||
"last 2 versions", |
|||
"not dead" |
|||
] |
|||
} |
@ -0,0 +1,5 @@ |
|||
module.exports = { |
|||
plugins: { |
|||
autoprefixer: {} |
|||
} |
|||
} |
After Width: | Height: | Size: 4.2 KiB |
After Width: | Height: | Size: 4.2 KiB |
@ -0,0 +1,17 @@ |
|||
<!DOCTYPE html> |
|||
<html lang="en"> |
|||
<head> |
|||
<meta charset="utf-8"> |
|||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> |
|||
<meta name="viewport" content="width=device-width,initial-scale=1.0"> |
|||
<link rel="icon" href="<%= BASE_URL %>favicon.ico"> |
|||
<title><%= htmlWebpackPlugin.options.title %></title> |
|||
</head> |
|||
<body> |
|||
<noscript> |
|||
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong> |
|||
</noscript> |
|||
<div id="app"></div> |
|||
<!-- built files will be auto injected --> |
|||
</body> |
|||
</html> |
@ -0,0 +1,21 @@ |
|||
<template> |
|||
<div id='app'> |
|||
<router-view class="router_view"/> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
export default { |
|||
name: 'App', |
|||
components: {}, |
|||
created() { |
|||
//TODO 每次刷新页面会加载这个方法?是否能在这里判断 必须要缓存的Token ,用户信息等 |
|||
}, |
|||
} |
|||
</script> |
|||
<style lang="scss" scoped> |
|||
#app { |
|||
.router_view { |
|||
} |
|||
} |
|||
</style> |
@ -0,0 +1,148 @@ |
|||
import axios from 'axios' |
|||
import {Message, MessageBox} from 'element-ui' |
|||
import db from '@/utils/localstorage' |
|||
import {Base64} from 'js-base64'; |
|||
import store from '@/store' |
|||
|
|||
const service = axios.create() |
|||
//请求添加条件,如token
|
|||
service.interceptors.request.use( |
|||
config => { |
|||
const isToken = config.headers['X-isToken'] === false ? config.headers['X-isToken'] : true; |
|||
const token = db.get('TOKEN', ''); |
|||
if (token && isToken) { |
|||
config.headers.token = 'Bearer ' + token; |
|||
} |
|||
|
|||
config.headers.tenant = db.get('TENANT', '') |
|||
const clientId = process.env.VUE_APP_CLIENT_ID; |
|||
const clientSecret = process.env.VUE_APP_CLIENT_SECRET; |
|||
config.headers['Authorization'] = `Basic ${Base64.encode(`${clientId}:${clientSecret}`)}`; |
|||
|
|||
return config |
|||
}, |
|||
error => { |
|||
return Promise.reject(error) |
|||
} |
|||
) |
|||
|
|||
// 接口返回处理
|
|||
service.interceptors.response.use( |
|||
response => { |
|||
return response |
|||
}, |
|||
error => { |
|||
return Promise.reject(error) |
|||
} |
|||
) |
|||
|
|||
function handleError(error, reject, opts) { |
|||
let isAlert = opts.custom ? opts.custom['isAlert'] : true; |
|||
isAlert = isAlert === undefined ? true : isAlert; |
|||
if (isAlert) { |
|||
if (error.code === 'ECONNABORTED') { |
|||
Message({ |
|||
message: '请求超时' |
|||
}) |
|||
} else if (error.response && error.response.data) { |
|||
if (error.response.data.msg) { |
|||
Message({ |
|||
message: error.response.data.msg |
|||
}) |
|||
} else if (error.response.data.message) { |
|||
Message({ |
|||
message: error.response.data.message |
|||
}) |
|||
} |
|||
} else if (error.message) { |
|||
Message({ |
|||
message: error.message |
|||
}) |
|||
} |
|||
} |
|||
reject(error) |
|||
} |
|||
|
|||
function handleSuccess(res, resolve, opts) { |
|||
let isAlert = opts.custom ? opts.custom['isAlert'] : true; |
|||
isAlert = isAlert === undefined ? true : isAlert; |
|||
if (res.data.isError) { |
|||
// 未登录
|
|||
if (res.data.code === 40000 || res.data.code === 40001 |
|||
|| res.data.code === 40002 || res.data.code === 40003 |
|||
|| res.data.code === 40005 || res.data.code === 40006 |
|||
|| res.data.code === 40008 |
|||
) { |
|||
MessageBox.alert(res.data.msg, '提醒', { |
|||
confirmButtonText: '确定', |
|||
callback: () => { |
|||
store.commit('account/logout') |
|||
window.location.hash = '/login' |
|||
} |
|||
}) |
|||
} else { |
|||
if (isAlert) { |
|||
Message.error(res.data.msg); |
|||
} |
|||
} |
|||
} |
|||
resolve(res) |
|||
} |
|||
|
|||
// http请求
|
|||
const httpServer = (opts) => { |
|||
// 公共参数
|
|||
const publicParams = { |
|||
ts: Date.now() |
|||
} |
|||
|
|||
// http默认配置
|
|||
const method = opts.method.toUpperCase() |
|||
// baseURL
|
|||
// 开发环境: /api // 开发环境在 vue.config.js 中有 devServer.proxy 代理
|
|||
// 生产环境: http://IP:PORT/api // 生产环境中 代理失效, 故需要配置绝对路径
|
|||
const httpDefaultOpts = { |
|||
method, |
|||
baseURL: process.env.VUE_APP_PROD_REQUEST_DOMAIN_PREFIX + process.env.VUE_APP_BASE_API, |
|||
url: opts.url, |
|||
responseType: opts.responseType || '', |
|||
timeout: 20000 |
|||
} |
|||
if (opts['meta']) { |
|||
httpDefaultOpts.headers = opts['meta'] |
|||
} |
|||
|
|||
const dataRequest = ['PUT', 'POST', 'PATCH'] |
|||
if (dataRequest.includes(method)) { |
|||
httpDefaultOpts.data = opts.data || {} |
|||
} else { |
|||
httpDefaultOpts.params = { |
|||
...publicParams, |
|||
...(opts.data || {}) |
|||
} |
|||
} |
|||
|
|||
// formData转换
|
|||
if (opts.formData) { |
|||
httpDefaultOpts.transformRequest = [data => { |
|||
const formData = new FormData() |
|||
if (data) { |
|||
Object.entries(data).forEach(item => { |
|||
formData.append(item[0], item[1]) |
|||
}) |
|||
} |
|||
return formData |
|||
}] |
|||
} |
|||
|
|||
const promise = new Promise((resolve, reject) => { |
|||
service(httpDefaultOpts).then(response => { |
|||
handleSuccess(response, resolve, opts) |
|||
}).catch(error => { |
|||
handleError(error, reject, opts) |
|||
}) |
|||
}) |
|||
return promise |
|||
} |
|||
|
|||
export default httpServer |
@ -0,0 +1,74 @@ |
|||
import axiosApi from './AxiosApi.js' |
|||
import db from '@/utils/localstorage' |
|||
|
|||
const apiList = { |
|||
generateId: { |
|||
url: "/authorityadmin/common/generateId", |
|||
method: "GET" |
|||
} |
|||
} |
|||
|
|||
export default { |
|||
uploadFile: `${process.env.VUE_APP_DEV_REQUEST_DOMAIN_PREFIX}${process.env.VUE_APP_BASE_API}/file/attachment/upload`, |
|||
enums(data) { |
|||
return axiosApi({ |
|||
method: 'GET', |
|||
url: `/oauthadmin/enums`, |
|||
data |
|||
}) |
|||
}, |
|||
export (url, data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: url, |
|||
responseType: "blob", |
|||
data |
|||
}) |
|||
}, |
|||
loadImg(data) { |
|||
const token = db.get('TOKEN', '') |
|||
const tenant = db.get('TENANT', '') |
|||
return `${process.env.VUE_APP_DEV_REQUEST_DOMAIN_PREFIX}${process.env.VUE_APP_BASE_API}/file/attachment/download/${data.bizType}/${data.bizId}?token=${token}&tenant=${tenant}` |
|||
}, |
|||
// 生成id
|
|||
generateId(data) { |
|||
return axiosApi({ |
|||
...apiList.generateId, |
|||
data |
|||
}) |
|||
}, |
|||
// 查询附件
|
|||
getAttachment(data) { |
|||
return axiosApi({ |
|||
url: "/file/attachment", |
|||
method: "get", |
|||
data |
|||
}) |
|||
}, |
|||
// 删除附件
|
|||
deleteAttachment(data) { |
|||
return axiosApi({ |
|||
url: "/file/attachment", |
|||
method: "delete", |
|||
data |
|||
}) |
|||
}, |
|||
// 下载附件
|
|||
downloadAttachment(data) { |
|||
return axiosApi({ |
|||
url: `/file/attachment/download`, |
|||
method: "get", |
|||
responseType: "blob", |
|||
data |
|||
}) |
|||
}, |
|||
// 根据业务类型/业务id打包下载
|
|||
downloadAttachmentBiz(data) { |
|||
return axiosApi({ |
|||
url: `/file/attachment/download/biz`, |
|||
method: "get", |
|||
responseType: "blob", |
|||
data |
|||
}) |
|||
} |
|||
} |
@ -0,0 +1,15 @@ |
|||
import axiosApi from './AxiosApi.js' |
|||
|
|||
const apiList = { |
|||
getVisitList: `/authority/dashboard/visit` |
|||
} |
|||
|
|||
export default { |
|||
getVisitList (data) { |
|||
return axiosApi({ |
|||
method: 'GET', |
|||
url: apiList.getVisitList, |
|||
data |
|||
}) |
|||
} |
|||
} |
@ -0,0 +1,186 @@ |
|||
//上传文件、图片地址
|
|||
export const UPLOAD = `${process.env.VUE_APP_PROD_REQUEST_DOMAIN_PREFIX}${process.env.VUE_APP_BASE_API}/file/attachment/upload` |
|||
//登录模块
|
|||
export const CAPTCHA = `/oauthadmin/anno/captcha`; //获取图形验证码
|
|||
export const LOGIN = `/oauthadmin/anno/token`; //登录
|
|||
export const ROUTER = `/oauthadmin/menu/router`; //获取路由
|
|||
export const RESOURCE = `/oauthadmin/resource/visible`; //查询用户可用的所有资源
|
|||
//注册模块
|
|||
export const REGISTER = `/tenant/tenant/register`; //注册
|
|||
export const GETEMAILCAPTCHA = `/msgs/mailverification/sendRegisterEmail`; //获取验证码
|
|||
export const VERIFYAUTHCODEREGISTEREMAIL = `/msgs/mailverification/verifyAuthCodeRegisterEmail`; //校验电子邮件验证码
|
|||
|
|||
//企业租户管理
|
|||
export const TENANTPASS = `/tenant/tenant/statusTenant`; |
|||
export const TENANTSTATUS = `/tenant/tenant/status`; |
|||
export const TENANTSTATUSPREFIX = `/tenant/tenant/statusPrefix`; |
|||
export const TENANTSTATUSTRUSTEESHIP = `/tenant/tenant/statusEnterprise`; |
|||
export const AUTHORITYTENANTPAGE = `/authorityadmin/tenant/page`; |
|||
export const AUTHORITYTENANT = `/authorityadmin/tenant`; |
|||
export const AUTHORITYTENANTINIT = `/authorityadmin/tenant/init`; |
|||
export const AUTHORITYTENANTCHECK = `/authorityadmin/tenant/check`; |
|||
// export const AUTHORITYTENANTREMOVE = `/authorityadmin/tenant/remove`;
|
|||
export const AUTHORITYTENANTREMOVE = `/tenant/tenant`; |
|||
export const DATASOURCECONFIGPAGE = `/tenant/datasourceConfig/page`; |
|||
export const DATASOURCECONFIGQUERY = `/tenant/datasourceConfig/query`; |
|||
export const DATASOURCECONFIG = `/tenant/datasourceConfig`; |
|||
export const DATASOURCECONFIGPREVIEW = `/tenant/datasourceConfig/preview`; |
|||
export const DATASOURCECONFIGEXPORT = `/tenant/datasourceConfig/export`; |
|||
export const DATASOURCECONFIGIMPORT = `/tenant/datasourceConfig/import`; |
|||
export const DATASOURCECONFIGTESTCONNECT = `/tenant/datasourceConfig/testConnect`; |
|||
export const TENANTPAGETENANTALL = `/tenant/tenant/pageTenantAll`; |
|||
|
|||
export const LINKAGE = `/tenant/commonArea/linkage`; //省市区
|
|||
export const SELECTTYPE = `/tenant/commonIndustry/allTree`; //行业类型
|
|||
export const INDUSTRYTYPE = `/tenant/commonIndustry/linkageEnumeration`; //行业小类
|
|||
export const TENANTGETCODE = '/tenant/tenant/getcode' //通过code获取企业信息
|
|||
export const INFORMATIONMODIFY = `/tenant/tenant/updateTenant`; //信息维护修改
|
|||
|
|||
//企业群组管理
|
|||
export const SIGNSUPERUSER = `/tenant/tenant/userType`; //设置超级用户
|
|||
export const GROUPLIST = `/tenant/tenantGroup/page`; //群组列表
|
|||
export const DELETEGROUP = `/tenant/tenant/userType`; //删除群组
|
|||
export const GETGROUPSTYLE = `/tagManagement/tagType/queryTagTypeFROUP`; //获取群组样式
|
|||
export const GETUSERLIST = `/tenant/tenant/queryLikeTenantName`; //获取用户列表
|
|||
export const BUILDGROUP = `/tenant/tenantGroup/saveTenantGroup`; //新建群组
|
|||
export const GROUPINFO = `/tenant/tenantGroup/queryTenantGroupAll`; //获取群组信息
|
|||
export const MODIFYGROUPINFO = `/tenant/tenantGroup/updateTenantGroup`; //获取群组信息
|
|||
|
|||
//标签管理
|
|||
export const LABELREVIEWLIST = `/tagManagement/tagInfo/queryAdminTagApply`; //超级用户标签审核列表
|
|||
export const LABELDETAILS = `/tagManagement/tagInfo/queryApplyDetailByTagId`; //超级用户标签详情
|
|||
export const AGREEAPPLY = `/tagManagement/tagInfo/updateTagApplyTypeIsAcceptByIds`; //超级用户通过、批量通过
|
|||
export const REFUSEAPPLY = `/tagManagement/tagInfo/updateTagApplyTypeIsRejectByIds`; //超级用户驳回、批量驳回
|
|||
export const SUPERAPPLYLABEL = `/tag/tagInfo/saveTagInfo`; //超级用户申请标签
|
|||
export const SUPERLABELLIST = `/tag/tagInfo/queryTagApplyType`; //超级用户标签列表
|
|||
export const UNIFORMSTYLE = `/tag/tagType/queryTagTypeUNIFY`; //统一标签样式查询
|
|||
//合作方管理 partnerManagement.js
|
|||
export const PARTNERAPPLICATIONPAGE = `/authorityadmin/application/pageApplication`; |
|||
export const PARTNERAPPLICATION = `/authorityadmin/application`; |
|||
//应用管理 applicationManagement.js
|
|||
export const AUTHORITYAPPLICATIONPAGE = `/authorityadmin/authCreativeApp/pageCreativeAll`; |
|||
export const AUTHORITYAPPLICATION = `/authorityadmin/authCreativeApp`; |
|||
export const AUTHORITYAPPLICATION_PARTERLIST = `/authorityadmin/application/getApplicationDown`; |
|||
export const AUTHORITYAPPLICATIONPREVIEW = `/authorityadmin/application/preview`; |
|||
export const AUTHORITYAPPLICATIONEXPORT = `/authorityadmin/application/export`; |
|||
export const AUTHORITYAPPLICATIONIMPORT = `/authorityadmin/application/import`; |
|||
//权限管理 authorityManagement.js
|
|||
export const AUTHORITYMENUALLTREE = `/authorityadmin/menu/tree`; |
|||
export const AUTHORITYMENU = `/authorityadmin/menu`; |
|||
export const AUTHORITYRESOURCEPAGE = `/authorityadmin/resource/page`; |
|||
export const AUTHORITYRESOURCE = `/authorityadmin/resource`; |
|||
export const AUTHORITYROLEPAGE = `/authorityadmin/role/page`; |
|||
export const AUTHORITYROLE = `/authorityadmin/role`; |
|||
export const AUTHORITYROLEUSER = `/authorityadmin/role/user`; |
|||
export const AUTHORITYROLEAUTHORITY = `/authorityadmin/role/authority`; |
|||
export const AUTHORITYROLEIMPORT = `/authorityadmin/role/import`; |
|||
export const AUTHORITYROLEDETAILS = `/authorityadmin/role/details`; |
|||
export const AUTHORITYROLECHECK = `/authorityadmin/role/check`; |
|||
//用户中心 userCenter.js
|
|||
export const AUTHORITYORGTREE = `/authorityadmin/org/tree`; |
|||
export const AUTHORITYORG = `/authorityadmin/org`; |
|||
export const AUTHORITYORGPREVIEW = `/authorityadmin/org/preview`; |
|||
export const AUTHORITYORGEXPORT = `/authorityadmin/org/export`; |
|||
export const AUTHORITYORGIMPORT = `/authorityadmin/org/import`; |
|||
export const AUTHORITYSTATIONPAGE = `/authoritadmin/station/page`; |
|||
export const AUTHORITYSTATION = `/authorityadmin/station`; |
|||
export const AUTHORITYSTATIONPREVIEW = `/authorityadmin/station/preview`; |
|||
export const AUTHORITYSTATIONEXPORT = `/authorityadmin/station/export`; |
|||
export const AUTHORITYSTATIONIMPORT = `/authorityadmin/station/import`; |
|||
export const AUTHORITYUSERPAGE = `/authorityadmin/user/page`; |
|||
export const AUTHORITYUSER = `/authorityadmin/user`; |
|||
export const AUTHORITYUSERPREVIEW = `/authorityadmin/user/preview`; |
|||
export const AUTHORITYUSEREXPORT = `/authorityadmin/user/export`; |
|||
export const AUTHORITYUSERIMPORT = `/authorityadmin/user/import`; |
|||
export const AUTHORITYUSERBASE = `/authorityadmin/user/base`; |
|||
export const AUTHORITYUSERAVATAR = `/authorityadmin/user/avatar`; |
|||
export const AUTHORITYUSERPASSWORD = `/authorityadmin/user/password`; |
|||
export const AUTHORITYUSERRESET = `/authorityadmin/user/reset`; |
|||
export const AUTHORITYUSERRELOAD = `/authorityadmin/user/reload`; |
|||
//系统管理 systemManagement.js
|
|||
export const TENANTGLOBALUSERPAGE = `/tenant/globalUser/page`; |
|||
export const TENANTGLOBALUSER = `/tenant/globalUser`; |
|||
export const TENANTGLOBALUSERDELETTE = `/tenant/globalUser/delete`; |
|||
export const TENANTGLOBALUSERCHECK = `/tenant/globalUser/check`; |
|||
export const TENANTGLOBALUSERPREVIEW = `/tenant/globalUser/preview`; |
|||
export const TENANTGLOBALUSEREXPORT = `/tenant/globalUser/export`; |
|||
export const TENANTGLOBALUSERIMPORT = `/tenant/globalUser/import`; |
|||
export const TENANTGLOBALUSERRESET = `/tenant/globalUser/reset`; |
|||
export const AUTHORITYDICTIONARYPAGE = `/authorityadmin/dictionary/page`; |
|||
export const AUTHORITYDICTIONARY = `/authorityadmin/dictionary`; |
|||
export const AUTHORITYDICTIONARYITEMPAGE = `/authorityadmin/dictionaryItem/page`; |
|||
export const AUTHORITYDICTIONARYITEM = `/authorityadmin/dictionaryItem`; |
|||
export const AUTHORITYDICTIONARYITEMCODES = `/oauthadmin/dictionaryItem/codes`; |
|||
export const AUTHORITYDICTIONARYITEMPREVIEW = `/authorityadmin/dictionaryItem/preview`; |
|||
export const AUTHORITYDICTIONARYITEMEXPORT = `/authorityadmin/dictionaryItem/export`; |
|||
export const AUTHORITYDICTIONARYITEMIMPORT = `/authorityadmin/dictionaryItem/import`; |
|||
export const AUTHORITYSYSTEMAPIPAGE = `/authorityadmin/systemApi/page`; |
|||
export const AUTHORITYSYSTEMAPI = `/authorityadmin/systemApi`; |
|||
export const AUTHORITYSYSTEMAPIPREVIEW = `/authorityadmin/systemApi/preview`; |
|||
export const AUTHORITYSYSTEMAPIEXPORT = `/authorityadmin/systemApi/export`; |
|||
export const AUTHORITYSYSTEMAPIIMPORT = `/authorityadmin/systemApi/import`; |
|||
|
|||
//日志管理 logManagement.js
|
|||
export const AUTHORITYLOGINLOGPAGE = `/authorityadmin/loginLog/page`; |
|||
export const AUTHORITYLOGINLOG = `/authorityadmin/loginLog`; |
|||
export const AUTHORITYLOGINLOGCLEAR = `/authorityadmin/loginLog/clear`; |
|||
export const AUTHORITYLOGINLOGPREVIEW = `/authorityadmin/loginLog/preview`; |
|||
export const AUTHORITYLOGINLOGEXPORT = `/authorityadmin/loginLog/export`; |
|||
export const AUTHORITYOPTLOGPAGE = `/authorityadmin/optLog/page`; |
|||
export const AUTHORITYOPTLOG = `/authorityadmin/optLog`; |
|||
export const AUTHORITYOPTLOGCLEAR = `/authorityadmin/optLog/clear`; |
|||
export const AUTHORITYOPTLOGPREVIEW = `/authorityadmin/optLog/preview`; |
|||
export const AUTHORITYOPTLOGEXPORT = `/authorityadmin/optLog/export`; |
|||
|
|||
//消息中心 messageCenter.js
|
|||
export const MSGSCENTERINFOPAGE = `/msgs/msgsCenterInfo/page`; |
|||
export const MSGSCENTERINFOMARK = `/msgs/msgsCenterInfo/mark`; |
|||
export const MSGSCENTERINFO = `/msgs/msgsCenterInfo`; |
|||
export const MSGSCENTERINFOPREVIEW = `/msgs/msgsCenterInfo/preview`; |
|||
export const MSGSCENTERINFOEXPORT = `/msgs/msgsCenterInfo/export`; |
|||
export const MSGSCENTERINFOIMPORT = `/msgs/msgsCenterInfo/import`; |
|||
//短信中心 smsCenter.js
|
|||
export const SMSTASKPAGE = `/msgs/smsTask/page`; |
|||
export const SMSTASK = `/msgs/smsTask`; |
|||
export const SMSTASKPREVIEW = `/msgs/smsTask/preview`; |
|||
export const SMSTASKEXPORT = `/msgs/smsTask/export`; |
|||
export const SMSTASKIMPORT = `/msgs/smsTask/import`; |
|||
export const SMSTEMPLATEPAGE = `/msgs/smsTemplate/page`; |
|||
export const SMSTEMPLATE = `/msgs/smsTemplate`; |
|||
export const SMSTEMPLATECHECK = `/msgs/smsTemplate/check`; |
|||
export const SMSTEMPLATEPREVIEW = `/msgs/smsTemplate/preview`; |
|||
export const SMSTEMPLATEEXPORT = `/msgs/smsTemplate/export`; |
|||
export const SMSTEMPLATEIMPORT = `/msgs/smsTemplate/import`; |
|||
export const SMSSENDSTATUSPAGE = `/msgs/smsSendStatus/page`; |
|||
//文件中心 fileCenter.js
|
|||
export const FILEATTACHMENTPAGE = `/file/attachment/page`; |
|||
export const FILEATTACHMENTUPLOAD = `/file/attachment/upload`; |
|||
export const FILEATTACHMENTDOWNLOAD = `/file/attachment/download`; |
|||
export const FILEATTACHMENTDOWNLOADBIZ = `/file/attachment/download/biz`; |
|||
export const FILEATTACHMENTDOWNLOADURL = `/file/attachment/download/url`; |
|||
export const FILEATTACHMENT = `/file/attachment`; |
|||
//基础配置 basicConfiguration.js
|
|||
export const AUTHORITYAREAPAGE = `/authorityadmin/area/page`; |
|||
export const AUTHORITYAREA = `/authorityadmin/area`; |
|||
export const AUTHORITYAREAQUERY = `/authorityadmin/area/query`; |
|||
export const AUTHORITYAREALINKAGE = `/authorityadmin/area/linkage`; |
|||
export const AUTHORITYAREATREE = `/authorityadmin/area/tree`; |
|||
export const AUTHORITYAREACHECK = `/authorityadmin/area/check`; |
|||
export const AUTHORITYPARAMETERPAGE = `/authorityadmin/parameter/page`; |
|||
export const AUTHORITYPARAMETER = `/authorityadmin/parameter`; |
|||
export const AUTHORITYPARAMETERPREVIEW = `/authorityadmin/parameter/preview`; |
|||
export const AUTHORITYPARAMETEREXPORT = `/authorityadmin/parameter/export`; |
|||
export const AUTHORITYPARAMETERIMPORT = `/authorityadmin/parameter/import`; |
|||
//网关管理 后端要使用zuul服务,以下接口需要加一个前缀 /gate
|
|||
export const BLOCKLISTPAGE = `/gateway/blockList/page`; |
|||
export const BLOCKLISTQUERY = `/gateway/blockList/query`; |
|||
export const BLOCKLIST = `/gateway/blockList`; |
|||
export const BLOCKLISTPREVIEW = `/gateway/blockList/preview`; |
|||
export const BLOCKLISTEXPORT = `/gateway/blockList/export`; |
|||
export const BLOCKLISTIMPORT = `/gateway/blockList/import`; |
|||
export const RATELIMITERPAGE = `/gateway/rateLimiter/page`; |
|||
export const RATELIMITERQUERY = `/gateway/rateLimiter/query`; |
|||
export const RATELIMITER = `/gateway/rateLimiter`; |
|||
export const RATELIMITERPREVIEW = `/gateway/rateLimiter/preview`; |
|||
export const RATELIMITEREXPORT = `/gateway/rateLimiter/export`; |
|||
export const RATELIMITERIMPORT = `/gateway/rateLimiter/import`; |
@ -0,0 +1,67 @@ |
|||
import axiosApi from "@/api/AxiosApi"; |
|||
import { |
|||
AUTHORITYAPPLICATIONPAGE, |
|||
AUTHORITYAPPLICATION, |
|||
AUTHORITYAPPLICATIONPREVIEW, |
|||
AUTHORITYAPPLICATIONEXPORT, |
|||
AUTHORITYAPPLICATIONIMPORT, |
|||
AUTHORITYAPPLICATION_PARTERLIST |
|||
} from "@/api/api"; |
|||
|
|||
export function applicationPageApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: AUTHORITYAPPLICATIONPAGE, |
|||
data, |
|||
}) |
|||
} |
|||
export function applicationSaveApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: AUTHORITYAPPLICATION, |
|||
data, |
|||
}) |
|||
} |
|||
export function applicationUpdateApi(data) { |
|||
return axiosApi({ |
|||
method: 'PUT', |
|||
url: AUTHORITYAPPLICATION, |
|||
data, |
|||
}) |
|||
} |
|||
export function applicationDeleteApi(data) { |
|||
return axiosApi({ |
|||
method: 'DELETE', |
|||
url: AUTHORITYAPPLICATION, |
|||
data, |
|||
}) |
|||
} |
|||
export function applicationPreviewApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: AUTHORITYAPPLICATIONPREVIEW, |
|||
data, |
|||
}) |
|||
} |
|||
export function applicationExportApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: AUTHORITYAPPLICATIONEXPORT, |
|||
data, |
|||
}) |
|||
} |
|||
export function applicationImportApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: AUTHORITYAPPLICATIONIMPORT, |
|||
data, |
|||
}) |
|||
} |
|||
|
|||
//合作方列表
|
|||
export function applicationPartnerListApi() { |
|||
return axiosApi({ |
|||
method: 'GET', |
|||
url: AUTHORITYAPPLICATION_PARTERLIST, |
|||
}) |
|||
} |
@ -0,0 +1,150 @@ |
|||
import axiosApi from "@/api/AxiosApi"; |
|||
import { |
|||
AUTHORITYMENUALLTREE, |
|||
AUTHORITYMENU, |
|||
AUTHORITYRESOURCEPAGE, |
|||
AUTHORITYRESOURCE, |
|||
AUTHORITYROLEPAGE, |
|||
AUTHORITYROLE, |
|||
AUTHORITYROLEUSER, |
|||
AUTHORITYROLEAUTHORITY, |
|||
AUTHORITYROLEIMPORT, |
|||
AUTHORITYROLEDETAILS, |
|||
AUTHORITYROLECHECK |
|||
} from "@/api/api"; |
|||
|
|||
export function menuAllTreeApi(data) { |
|||
return axiosApi({ |
|||
method: 'GET', |
|||
url: AUTHORITYMENUALLTREE, |
|||
data |
|||
}) |
|||
} |
|||
export function menuSaveApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: AUTHORITYMENU, |
|||
data |
|||
}) |
|||
} |
|||
export function menuUpdateApi(data) { |
|||
return axiosApi({ |
|||
method: 'PUT', |
|||
url: AUTHORITYMENU, |
|||
data |
|||
}) |
|||
} |
|||
export function menuDeleteApi(data) { |
|||
return axiosApi({ |
|||
method: 'DELETE', |
|||
url: AUTHORITYMENU, |
|||
data |
|||
}) |
|||
} |
|||
export function resourcePageApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: AUTHORITYRESOURCEPAGE, |
|||
data |
|||
}) |
|||
} |
|||
export function resourceSaveApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: AUTHORITYRESOURCE, |
|||
data |
|||
}) |
|||
} |
|||
export function resourceUpdateApi(data) { |
|||
return axiosApi({ |
|||
method: 'PUT', |
|||
url: AUTHORITYRESOURCE, |
|||
data |
|||
}) |
|||
} |
|||
export function resourceDeleteApi(data) { |
|||
return axiosApi({ |
|||
method: 'DELETE', |
|||
url: AUTHORITYRESOURCE, |
|||
data |
|||
}) |
|||
} |
|||
export function rolePageApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: AUTHORITYROLEPAGE, |
|||
data |
|||
}) |
|||
} |
|||
export function roleSaveApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: AUTHORITYROLE, |
|||
data |
|||
}) |
|||
} |
|||
export function roleUpdateApi(data) { |
|||
return axiosApi({ |
|||
method: 'PUT', |
|||
url: AUTHORITYROLE, |
|||
data |
|||
}) |
|||
} |
|||
export function roleDeleteApi(data) { |
|||
return axiosApi({ |
|||
method: 'DELETE', |
|||
url: AUTHORITYROLE, |
|||
data |
|||
}) |
|||
} |
|||
export function roleUserApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: AUTHORITYROLEUSER, |
|||
data |
|||
}) |
|||
} |
|||
export function roleAuthorityApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: AUTHORITYROLEAUTHORITY, |
|||
data |
|||
}) |
|||
} |
|||
export function roleImportApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: AUTHORITYROLEIMPORT, |
|||
data |
|||
}) |
|||
} |
|||
export function findRoleApi(id) { |
|||
return axiosApi({ |
|||
method: 'GET', |
|||
url: `${AUTHORITYROLE}/${id}`, |
|||
}) |
|||
} |
|||
export function findRoleDetailsApi(id) { |
|||
return axiosApi({ |
|||
method: 'GET', |
|||
url: `${AUTHORITYROLEDETAILS}/${id}`, |
|||
}) |
|||
} |
|||
export function findRoleCheckApi(code) { |
|||
return axiosApi({ |
|||
method: 'GET', |
|||
url: `${AUTHORITYROLECHECK}/${code}`, |
|||
}) |
|||
} |
|||
export function findRoleUserApi(roleId) { |
|||
return axiosApi({ |
|||
method: 'GET', |
|||
url: `${AUTHORITYROLEUSER}/${roleId}`, |
|||
}) |
|||
} |
|||
export function findRoleAuthorityApi(roleId) { |
|||
return axiosApi({ |
|||
method: 'GET', |
|||
url: `${AUTHORITYROLEAUTHORITY}/${roleId}`, |
|||
}) |
|||
} |
@ -0,0 +1,119 @@ |
|||
import axiosApi from "@/api/AxiosApi"; |
|||
import { |
|||
AUTHORITYAREAPAGE, |
|||
AUTHORITYAREA, |
|||
AUTHORITYAREAQUERY, |
|||
AUTHORITYAREALINKAGE, |
|||
AUTHORITYAREATREE, |
|||
AUTHORITYAREACHECK, |
|||
AUTHORITYPARAMETERPAGE, |
|||
AUTHORITYPARAMETER, |
|||
AUTHORITYPARAMETERPREVIEW, |
|||
AUTHORITYPARAMETEREXPORT, |
|||
AUTHORITYPARAMETERIMPORT, |
|||
} from "@/api/api"; |
|||
export function areaPageApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: AUTHORITYAREAPAGE, |
|||
data, |
|||
}) |
|||
} |
|||
export function areaUpdateApi(data) { |
|||
return axiosApi({ |
|||
method: 'PUT', |
|||
url: AUTHORITYAREA, |
|||
data, |
|||
}) |
|||
} |
|||
export function areaSaveApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: AUTHORITYAREA, |
|||
data, |
|||
}) |
|||
} |
|||
export function areaDeleteApi(data) { |
|||
return axiosApi({ |
|||
method: 'DELETE', |
|||
url: AUTHORITYAREA, |
|||
data, |
|||
}) |
|||
} |
|||
export function areaQueryApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: AUTHORITYAREAQUERY, |
|||
data, |
|||
}) |
|||
} |
|||
export function areaLinkageApi(data) { |
|||
return axiosApi({ |
|||
method: 'GET', |
|||
url: AUTHORITYAREALINKAGE, |
|||
data, |
|||
}) |
|||
} |
|||
export function areaTreeApi(data) { |
|||
return axiosApi({ |
|||
method: 'GET', |
|||
url: AUTHORITYAREATREE, |
|||
data, |
|||
}) |
|||
} |
|||
export function areaCheckApi(code,id) { |
|||
return axiosApi({ |
|||
method: 'GET', |
|||
url: `${AUTHORITYAREACHECK}/${code}`, |
|||
data: {id: id} |
|||
}) |
|||
} |
|||
export function parameterPageApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: AUTHORITYPARAMETERPAGE, |
|||
data, |
|||
}) |
|||
} |
|||
export function parameterSaveApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: AUTHORITYPARAMETER, |
|||
data, |
|||
}) |
|||
} |
|||
export function parameterUpdateApi(data) { |
|||
return axiosApi({ |
|||
method: 'PUT', |
|||
url: AUTHORITYPARAMETER, |
|||
data, |
|||
}) |
|||
} |
|||
export function parameterDeleteApi(data) { |
|||
return axiosApi({ |
|||
method: 'DELETE', |
|||
url: AUTHORITYPARAMETER, |
|||
data, |
|||
}) |
|||
} |
|||
export function parameterPreviewApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: AUTHORITYPARAMETERPREVIEW, |
|||
data, |
|||
}) |
|||
} |
|||
export function parameterExportApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: AUTHORITYPARAMETEREXPORT, |
|||
data, |
|||
}) |
|||
} |
|||
export function parameterImportApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: AUTHORITYPARAMETERIMPORT, |
|||
data, |
|||
}) |
|||
} |
@ -0,0 +1,58 @@ |
|||
import axiosApi from "./AxiosApi"; |
|||
import {GROUPLIST,DELETEGROUP,GETGROUPSTYLE,GETUSERLIST,BUILDGROUP,GROUPINFO,MODIFYGROUPINFO} from "./api"; |
|||
|
|||
//获取群组列表
|
|||
export function groupList(data){ |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: GROUPLIST, |
|||
data |
|||
}) |
|||
} |
|||
//删除群组
|
|||
export function deleteGroup(data){ |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: DELETEGROUP, |
|||
data |
|||
}) |
|||
} |
|||
//获取群组样式(下拉框)
|
|||
export function getGroupStyle(data){ |
|||
return axiosApi({ |
|||
method: 'GET', |
|||
url: GETGROUPSTYLE, |
|||
data |
|||
}) |
|||
} |
|||
//用户列表(下拉框、穿梭框)(超级用户和普通用户)
|
|||
export function getUserList(data){ |
|||
return axiosApi({ |
|||
method: 'GET', |
|||
url: GETUSERLIST, |
|||
data |
|||
}) |
|||
} |
|||
//新建群组
|
|||
export function buildGroup(data){ |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: BUILDGROUP, |
|||
data |
|||
}) |
|||
} |
|||
//获取某一群组的信息
|
|||
export function groupInfo(data){ |
|||
return axiosApi({ |
|||
method: 'GET', |
|||
url: `${GROUPINFO}/${data}`, |
|||
}) |
|||
} |
|||
//配置企业
|
|||
export function modifyGroupInfo(data){ |
|||
return axiosApi({ |
|||
method: 'PUT', |
|||
url: MODIFYGROUPINFO, |
|||
data |
|||
}) |
|||
} |
@ -0,0 +1,257 @@ |
|||
import axiosApi from "@/api/AxiosApi"; |
|||
import myAxios from "@/api/myAxios"; |
|||
import { |
|||
AUTHORITYTENANT, |
|||
AUTHORITYTENANTINIT, |
|||
AUTHORITYTENANTCHECK, |
|||
AUTHORITYTENANTPAGE, |
|||
AUTHORITYTENANTREMOVE, |
|||
TENANTSTATUS, |
|||
TENANTPASS, |
|||
TENANTSTATUSPREFIX, |
|||
TENANTSTATUSTRUSTEESHIP, |
|||
DATASOURCECONFIGPAGE, |
|||
DATASOURCECONFIGQUERY, |
|||
DATASOURCECONFIG, |
|||
DATASOURCECONFIGPREVIEW, |
|||
DATASOURCECONFIGEXPORT, |
|||
DATASOURCECONFIGIMPORT, |
|||
DATASOURCECONFIGTESTCONNECT, |
|||
TENANTPAGETENANTALL, |
|||
|
|||
INFORMATIONMODIFY, |
|||
LINKAGE, |
|||
SELECTTYPE, |
|||
INDUSTRYTYPE, |
|||
TENANTGETCODE, |
|||
SIGNSUPERUSER |
|||
} from "@/api/api"; |
|||
export function tenantPageTenantAllApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: TENANTPAGETENANTALL, |
|||
data, |
|||
}) |
|||
} |
|||
//企业申请审批
|
|||
export function tenantPassStatusApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: `${TENANTPASS}`, |
|||
data |
|||
}) |
|||
} |
|||
//企业申请状态修改
|
|||
export function tenantStatusApi(ids, status) { |
|||
return axiosApi({ |
|||
method: 'GET', |
|||
url: `${TENANTSTATUS}/?ids[]=${ids}&status=${status}`, |
|||
}) |
|||
} |
|||
//企业前缀审批、驳回
|
|||
export function tenantStatusPrefixApi(ids, status) { |
|||
return axiosApi({ |
|||
method: 'GET', |
|||
url: `${TENANTSTATUSPREFIX}/?ids[]=${ids}&status=${status}`, |
|||
}) |
|||
} |
|||
//企业托管审批、驳回
|
|||
export function tenantStatusTrusteeshipApi(ids, status) { |
|||
return axiosApi({ |
|||
method: 'GET', |
|||
url: `${TENANTSTATUSTRUSTEESHIP}/?ids[]=${ids}&status=${status}`, |
|||
}) |
|||
} |
|||
|
|||
export function tenantPageApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: AUTHORITYTENANTPAGE, |
|||
data, |
|||
}) |
|||
} |
|||
|
|||
export function tenantSaveApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: AUTHORITYTENANT, |
|||
data, |
|||
}) |
|||
} |
|||
|
|||
export function tenantUpdateApi(data) { |
|||
return axiosApi({ |
|||
method: 'PUT', |
|||
url: AUTHORITYTENANT, |
|||
data, |
|||
}) |
|||
} |
|||
|
|||
export function tenantInitApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: AUTHORITYTENANTINIT, |
|||
data, |
|||
}) |
|||
} |
|||
|
|||
export function tenantDeleteApi(data) { |
|||
return axiosApi({ |
|||
method: 'DELETE', |
|||
url: AUTHORITYTENANTREMOVE, |
|||
data, |
|||
}) |
|||
} |
|||
|
|||
export function tenantCheckApi(data) { |
|||
return axiosApi({ |
|||
method: 'GET', |
|||
url: AUTHORITYTENANTCHECK, |
|||
data, |
|||
}) |
|||
} |
|||
|
|||
export function tenantPreviewApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: AUTHORITYTENANT, |
|||
data, |
|||
}) |
|||
} |
|||
|
|||
export function tenantExportApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: AUTHORITYTENANT, |
|||
data, |
|||
}) |
|||
} |
|||
|
|||
export function datasourceConfigPageApi(data, custom = {}) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: DATASOURCECONFIGPAGE, |
|||
data, |
|||
custom |
|||
}) |
|||
} |
|||
|
|||
export function datasourceConfigQueryApi(data, custom = {}) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: DATASOURCECONFIGQUERY, |
|||
data, |
|||
custom |
|||
}) |
|||
} |
|||
|
|||
export function datasourceConfigSaveApi(data, custom = {}) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: DATASOURCECONFIG, |
|||
data, |
|||
custom |
|||
}) |
|||
} |
|||
|
|||
export function datasourceConfigUpdateApi(data, custom = {}) { |
|||
return axiosApi({ |
|||
method: 'PUT', |
|||
url: DATASOURCECONFIG, |
|||
data, |
|||
custom |
|||
}) |
|||
} |
|||
|
|||
export function datasourceConfigDeleteApi(data, custom = {}) { |
|||
return axiosApi({ |
|||
method: 'DELETE', |
|||
url: DATASOURCECONFIG, |
|||
data, |
|||
custom |
|||
}) |
|||
} |
|||
|
|||
export function datasourceConfigPreviewApi(data, custom = {}) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: DATASOURCECONFIGPREVIEW, |
|||
data, |
|||
custom |
|||
}) |
|||
} |
|||
|
|||
export function datasourceConfigExportApi(data, custom = {}) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: DATASOURCECONFIGEXPORT, |
|||
data, |
|||
custom |
|||
}) |
|||
} |
|||
|
|||
export function datasourceConfigImportApi(data, custom = {}) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: DATASOURCECONFIGIMPORT, |
|||
data, |
|||
custom |
|||
}) |
|||
} |
|||
|
|||
export function datasourceConfigTestConnectApi(data, custom = {}) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: DATASOURCECONFIGTESTCONNECT, |
|||
data, |
|||
custom |
|||
}) |
|||
} |
|||
|
|||
//省市区
|
|||
export function registerArea(parentId) { |
|||
return axiosApi({ |
|||
method: 'GET', |
|||
url: LINKAGE, |
|||
data: { parentId } |
|||
}) |
|||
} |
|||
//行业类型
|
|||
export function selectType(parentId) { |
|||
return axiosApi({ |
|||
method: 'GET', |
|||
url: SELECTTYPE, |
|||
data: { parentId } |
|||
}) |
|||
} |
|||
export function industryType(enumeration) { |
|||
return axiosApi({ |
|||
method: 'GET', |
|||
url: INDUSTRYTYPE, |
|||
data: { enumeration } |
|||
}) |
|||
} |
|||
//信息维护根据code获取企业信息
|
|||
export function enterpriseInfo(code) { |
|||
return myAxios({ |
|||
method: 'GET', |
|||
url: `${TENANTGETCODE}/${code}` |
|||
}) |
|||
} |
|||
//信息维护提交修改
|
|||
export function informationModify(data) { |
|||
return myAxios({ |
|||
method: 'POST', |
|||
url: INFORMATIONMODIFY, |
|||
data, |
|||
fromData: true |
|||
}) |
|||
} |
|||
//设置超级用户
|
|||
export function signSuperUser(data) { |
|||
return axiosApi({ |
|||
method: 'GET', |
|||
url: SIGNSUPERUSER, |
|||
data |
|||
}) |
|||
} |
@ -0,0 +1,52 @@ |
|||
import axiosApi from "@/api/AxiosApi"; |
|||
import { |
|||
FILEATTACHMENTPAGE, |
|||
FILEATTACHMENTUPLOAD, |
|||
FILEATTACHMENTDOWNLOAD, |
|||
FILEATTACHMENTDOWNLOADBIZ, |
|||
FILEATTACHMENTDOWNLOADURL, |
|||
FILEATTACHMENT, |
|||
} from "@/api/api"; |
|||
export function attachmentPageApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: FILEATTACHMENTPAGE, |
|||
data, |
|||
}) |
|||
} |
|||
export function attachmentUploadApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: FILEATTACHMENTUPLOAD, |
|||
data, |
|||
}) |
|||
} |
|||
export function attachmentDownloadApi(data) { |
|||
return axiosApi({ |
|||
method: 'GET', |
|||
url: FILEATTACHMENTDOWNLOAD, |
|||
responseType: "blob", |
|||
data, |
|||
}) |
|||
} |
|||
export function attachmentDownloadBizApi(data) { |
|||
return axiosApi({ |
|||
method: 'GET', |
|||
url: FILEATTACHMENTDOWNLOADBIZ, |
|||
data, |
|||
}) |
|||
} |
|||
export function attachmentDownloadUrlApi(data) { |
|||
return axiosApi({ |
|||
method: 'GET', |
|||
url: FILEATTACHMENTDOWNLOADURL, |
|||
data, |
|||
}) |
|||
} |
|||
export function attachmentDeleteApi(data) { |
|||
return axiosApi({ |
|||
method: 'DELETE', |
|||
url: FILEATTACHMENT, |
|||
data, |
|||
}) |
|||
} |
@ -0,0 +1,159 @@ |
|||
import axiosApi from "@/api/AxiosApi"; |
|||
import { |
|||
BLOCKLISTPAGE, |
|||
BLOCKLISTQUERY, |
|||
BLOCKLIST, |
|||
BLOCKLISTPREVIEW, |
|||
BLOCKLISTEXPORT, |
|||
BLOCKLISTIMPORT, |
|||
RATELIMITERPAGE, |
|||
RATELIMITERQUERY, |
|||
RATELIMITER, |
|||
RATELIMITERPREVIEW, |
|||
RATELIMITEREXPORT, |
|||
RATELIMITERIMPORT, |
|||
} from "@/api/api"; |
|||
|
|||
export function blockListPageApi(data,custom = {}) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: BLOCKLISTPAGE, |
|||
data, |
|||
custom |
|||
}) |
|||
} |
|||
|
|||
export function blockListQueryApi(data,custom= {}) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: BLOCKLISTQUERY, |
|||
data, |
|||
custom |
|||
}) |
|||
} |
|||
|
|||
export function blockListSaveApi(data,custom= {}) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: BLOCKLIST, |
|||
data, |
|||
custom |
|||
}) |
|||
} |
|||
|
|||
export function blockListUpdateApi(data,custom= {}) { |
|||
return axiosApi({ |
|||
method: 'PUT', |
|||
url: BLOCKLIST, |
|||
data, |
|||
custom |
|||
}) |
|||
} |
|||
|
|||
export function blockListDeleteApi(data,custom= {}) { |
|||
return axiosApi({ |
|||
method: 'DELETE', |
|||
url: BLOCKLIST, |
|||
data, |
|||
custom |
|||
}) |
|||
} |
|||
|
|||
export function blockListPreviewApi(data,custom= {}) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: BLOCKLISTPREVIEW, |
|||
data, |
|||
custom |
|||
}) |
|||
} |
|||
|
|||
export function blockListExportApi(data,custom= {}) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: BLOCKLISTEXPORT, |
|||
data, |
|||
custom |
|||
}) |
|||
} |
|||
|
|||
export function blockListImportApi(data,custom= {}) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: BLOCKLISTIMPORT, |
|||
data, |
|||
custom |
|||
}) |
|||
} |
|||
|
|||
export function rateLimiterPageApi(data,custom = {}) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: RATELIMITERPAGE, |
|||
data, |
|||
custom |
|||
}) |
|||
} |
|||
|
|||
export function rateLimiterQueryApi(data,custom= {}) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: RATELIMITERQUERY, |
|||
data, |
|||
custom |
|||
}) |
|||
} |
|||
|
|||
export function rateLimiterSaveApi(data,custom= {}) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: RATELIMITER, |
|||
data, |
|||
custom |
|||
}) |
|||
} |
|||
|
|||
export function rateLimiterUpdateApi(data,custom= {}) { |
|||
return axiosApi({ |
|||
method: 'PUT', |
|||
url: RATELIMITER, |
|||
data, |
|||
custom |
|||
}) |
|||
} |
|||
|
|||
export function rateLimiterDeleteApi(data,custom= {}) { |
|||
return axiosApi({ |
|||
method: 'DELETE', |
|||
url: RATELIMITER, |
|||
data, |
|||
custom |
|||
}) |
|||
} |
|||
|
|||
export function rateLimiterPreviewApi(data,custom= {}) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: RATELIMITERPREVIEW, |
|||
data, |
|||
custom |
|||
}) |
|||
} |
|||
|
|||
export function rateLimiterExportApi(data,custom= {}) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: RATELIMITEREXPORT, |
|||
data, |
|||
custom |
|||
}) |
|||
} |
|||
|
|||
export function rateLimiterImportApi(data,custom= {}) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: RATELIMITERIMPORT, |
|||
data, |
|||
custom |
|||
}) |
|||
} |
@ -0,0 +1,60 @@ |
|||
import axiosApi from "./AxiosApi"; |
|||
import {SUPERAPPLYLABEL, SUPERLABELLIST,LABELREVIEWLIST,AGREEAPPLY,REFUSEAPPLY,LABELDETAILS,UNIFORMSTYLE} from "./api"; |
|||
|
|||
//标签审核列表
|
|||
export function labelReviewList(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: LABELREVIEWLIST, |
|||
data |
|||
}) |
|||
} |
|||
//通过、批量通过标签审核
|
|||
export function agreeApply (data) { |
|||
return axiosApi({ |
|||
method: 'PUT', |
|||
url: AGREEAPPLY, |
|||
data |
|||
}) |
|||
} |
|||
//驳回、批量驳回标签申请
|
|||
export function refuseApply(data) { |
|||
return axiosApi({ |
|||
method: 'PUT', |
|||
url: REFUSEAPPLY, |
|||
data |
|||
}) |
|||
} |
|||
//标签详情
|
|||
export function labelDetails (data) { |
|||
return axiosApi({ |
|||
method: 'GET', |
|||
url: LABELDETAILS, |
|||
data |
|||
}) |
|||
} |
|||
//超级用户申请标签
|
|||
export function superApplyLabel(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: SUPERAPPLYLABEL, |
|||
data, |
|||
}) |
|||
} |
|||
//超级用户标签列表
|
|||
export function superLabelList(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: SUPERLABELLIST, |
|||
data, |
|||
}) |
|||
} |
|||
//获取统一样式
|
|||
export function getUniformStyle(data) { |
|||
return axiosApi({ |
|||
method: 'GET', |
|||
url: UNIFORMSTYLE, |
|||
data, |
|||
}) |
|||
} |
|||
|
@ -0,0 +1,83 @@ |
|||
import axiosApi from './AxiosApi.js' |
|||
import { |
|||
AUTHORITYLOGINLOGPAGE, |
|||
AUTHORITYLOGINLOG, |
|||
AUTHORITYLOGINLOGCLEAR, |
|||
AUTHORITYLOGINLOGPREVIEW, |
|||
AUTHORITYLOGINLOGEXPORT, |
|||
AUTHORITYOPTLOGPAGE, |
|||
AUTHORITYOPTLOG, |
|||
AUTHORITYOPTLOGCLEAR, |
|||
AUTHORITYOPTLOGPREVIEW, |
|||
AUTHORITYOPTLOGEXPORT, |
|||
} from "./api"; |
|||
export function loginLogPageApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: AUTHORITYLOGINLOGPAGE, |
|||
data, |
|||
}) |
|||
} |
|||
export function loginLogDeleteApi(data) { |
|||
return axiosApi({ |
|||
method: 'DELETE', |
|||
url: AUTHORITYLOGINLOG, |
|||
data, |
|||
}) |
|||
} |
|||
export function loginLogClearApi(data) { |
|||
return axiosApi({ |
|||
method: 'DELETE', |
|||
url: AUTHORITYLOGINLOGCLEAR, |
|||
data, |
|||
}) |
|||
} |
|||
export function loginLogPreviewApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: AUTHORITYLOGINLOGPREVIEW, |
|||
data, |
|||
}) |
|||
} |
|||
export function loginLogExportApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: AUTHORITYLOGINLOGEXPORT, |
|||
data, |
|||
}) |
|||
} |
|||
export function operateLogPageApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: AUTHORITYOPTLOGPAGE, |
|||
data, |
|||
}) |
|||
} |
|||
export function operateLogDeleteApi(data) { |
|||
return axiosApi({ |
|||
method: 'DELETE', |
|||
url: AUTHORITYOPTLOG, |
|||
data, |
|||
}) |
|||
} |
|||
export function operateLogClearApi(data) { |
|||
return axiosApi({ |
|||
method: 'DELETE', |
|||
url: AUTHORITYOPTLOGCLEAR, |
|||
data, |
|||
}) |
|||
} |
|||
export function operateLogPreviewApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: AUTHORITYOPTLOGPREVIEW, |
|||
data, |
|||
}) |
|||
} |
|||
export function operateLogExportApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: AUTHORITYOPTLOGEXPORT, |
|||
data, |
|||
}) |
|||
} |
@ -0,0 +1,37 @@ |
|||
import axiosApi from './AxiosApi.js' |
|||
import {CAPTCHA, LOGIN, ROUTER, RESOURCE,} from './api' |
|||
//获取验证码
|
|||
export function getCaptcha(randomId) { |
|||
return axiosApi({ |
|||
method: 'GET', |
|||
url: `${CAPTCHA}?key=${randomId}`, |
|||
responseType: 'arraybuffer', |
|||
meta: { |
|||
"X-isToken": false |
|||
} |
|||
}) |
|||
} |
|||
//登录
|
|||
export function login(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: LOGIN, |
|||
data |
|||
}) |
|||
} |
|||
//获取路由
|
|||
export function getRouter(data) { |
|||
return axiosApi({ |
|||
method: 'GET', |
|||
url: ROUTER, |
|||
data: data || {} |
|||
}) |
|||
} |
|||
//获取用户可用的所有资源
|
|||
export function getResource(data) { |
|||
return axiosApi({ |
|||
method: 'GET', |
|||
url: RESOURCE, |
|||
data: data || {} |
|||
}) |
|||
} |
@ -0,0 +1,73 @@ |
|||
import axiosApi from "@/api/AxiosApi"; |
|||
import { |
|||
MSGSCENTERINFOPAGE, |
|||
MSGSCENTERINFOMARK, |
|||
MSGSCENTERINFO, |
|||
MSGSCENTERINFOPREVIEW, |
|||
MSGSCENTERINFOEXPORT, |
|||
MSGSCENTERINFOIMPORT, |
|||
} from "@/api/api"; |
|||
|
|||
export function messageCenterPageApi(data,custom = {}) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: MSGSCENTERINFOPAGE, |
|||
data, |
|||
custom |
|||
}) |
|||
} |
|||
export function messageCenterMarkApi(data) { |
|||
return axiosApi({ |
|||
method: 'GET', |
|||
url: MSGSCENTERINFOMARK, |
|||
data, |
|||
}) |
|||
} |
|||
export function messageCenterSaveApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: MSGSCENTERINFO, |
|||
data, |
|||
}) |
|||
} |
|||
export function messageCenterUpdateApi(data) { |
|||
return axiosApi({ |
|||
method: 'PUT', |
|||
url: MSGSCENTERINFO, |
|||
data, |
|||
}) |
|||
} |
|||
export function messageCenterDeleteApi(data) { |
|||
return axiosApi({ |
|||
method: 'DELETE', |
|||
url: MSGSCENTERINFO, |
|||
data, |
|||
}) |
|||
} |
|||
export function getMessageCenterApi(id) { |
|||
return axiosApi({ |
|||
method: 'GET', |
|||
url: `${MSGSCENTERINFO}/${id}`, |
|||
}) |
|||
} |
|||
export function messageCenterPreviewApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: MSGSCENTERINFOPREVIEW, |
|||
data, |
|||
}) |
|||
} |
|||
export function messageCenterExportApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: MSGSCENTERINFOEXPORT, |
|||
data, |
|||
}) |
|||
} |
|||
export function messageCenterImportApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: MSGSCENTERINFOIMPORT, |
|||
data, |
|||
}) |
|||
} |
@ -0,0 +1,147 @@ |
|||
import axios from 'axios' |
|||
import {Message, MessageBox} from 'element-ui' |
|||
import db from '@/utils/localstorage' |
|||
import {Base64} from 'js-base64'; |
|||
import store from '@/store' |
|||
|
|||
const service = axios.create() |
|||
//请求添加条件,如token
|
|||
service.interceptors.request.use(config => { |
|||
const isToken = config.headers['X-isToken'] === false ? config.headers['X-isToken'] : true; |
|||
const token = db.get('TOKEN', ''); |
|||
if (token && isToken) { |
|||
config.headers.token = 'Bearer ' + token; |
|||
} |
|||
|
|||
//config.headers.tenant = db.get('TENANT', '')
|
|||
const clientId = process.env.VUE_APP_CLIENT_ID; |
|||
const clientSecret = process.env.VUE_APP_CLIENT_SECRET; |
|||
config.headers['Authorization'] = `Basic ${Base64.encode(`${clientId}:${clientSecret}`)}`; |
|||
|
|||
return config |
|||
}, |
|||
error => { |
|||
return Promise.reject(error) |
|||
} |
|||
) |
|||
|
|||
// 接口返回处理
|
|||
service.interceptors.response.use( |
|||
response => { |
|||
return response |
|||
}, |
|||
error => { |
|||
return Promise.reject(error) |
|||
} |
|||
) |
|||
|
|||
function handleError(error, reject, opts) { |
|||
let isAlert = opts.custom ? opts.custom['isAlert'] : true; |
|||
isAlert = isAlert === undefined ? true : isAlert; |
|||
if (isAlert) { |
|||
if (error.code === 'ECONNABORTED') { |
|||
Message({ |
|||
message: '请求超时' |
|||
}) |
|||
} else if (error.response && error.response.data) { |
|||
if(error.response.data.msg){ |
|||
Message({ |
|||
message: error.response.data.msg |
|||
}) |
|||
} else if(error.response.data.message){ |
|||
Message({ |
|||
message: error.response.data.message |
|||
}) |
|||
} |
|||
} else if (error.message) { |
|||
Message({ |
|||
message: error.message |
|||
}) |
|||
} |
|||
} |
|||
reject(error) |
|||
} |
|||
|
|||
function handleSuccess(res, resolve, opts) { |
|||
let isAlert = opts.custom ? opts.custom['isAlert'] : true; |
|||
isAlert = isAlert === undefined ? true : isAlert; |
|||
if (res.data.isError) { |
|||
// 未登录
|
|||
if (res.data.code === 40000 || res.data.code === 40001 |
|||
|| res.data.code === 40002 || res.data.code === 40003 |
|||
|| res.data.code === 40005 || res.data.code === 40006 |
|||
|| res.data.code === 40008 |
|||
) { |
|||
MessageBox.alert(res.data.msg, '提醒', { |
|||
confirmButtonText: '确定', |
|||
callback: () => { |
|||
store.commit('account/logout') |
|||
window.location.hash = '/login' |
|||
} |
|||
}) |
|||
} else { |
|||
if (isAlert) { |
|||
Message.error(res.data.msg); |
|||
} |
|||
} |
|||
} |
|||
resolve(res) |
|||
} |
|||
|
|||
// http请求
|
|||
const myAxios = (opts) => { |
|||
// 公共参数
|
|||
const publicParams = { |
|||
ts: Date.now() |
|||
} |
|||
|
|||
// http默认配置
|
|||
const method = opts.method.toUpperCase() |
|||
// baseURL
|
|||
// 开发环境: /api // 开发环境在 vue.config.js 中有 devServer.proxy 代理
|
|||
// 生产环境: http://IP:PORT/api // 生产环境中 代理失效, 故需要配置绝对路径
|
|||
const httpDefaultOpts = { |
|||
method, |
|||
baseURL: process.env.VUE_APP_PROD_REQUEST_DOMAIN_PREFIX + process.env.VUE_APP_BASE_API, |
|||
url: opts.url, |
|||
responseType: opts.responseType || '', |
|||
timeout: 20000 |
|||
} |
|||
if (opts['meta']) { |
|||
httpDefaultOpts.headers = opts['meta'] |
|||
} |
|||
|
|||
const dataRequest = ['PUT', 'POST', 'PATCH'] |
|||
if (dataRequest.includes(method)) { |
|||
httpDefaultOpts.data = opts.data || {} |
|||
} else { |
|||
httpDefaultOpts.params = { |
|||
...publicParams, |
|||
...(opts.data || {}) |
|||
} |
|||
} |
|||
|
|||
// formData转换
|
|||
if (opts.formData) { |
|||
httpDefaultOpts.transformRequest = [data => { |
|||
const formData = new FormData() |
|||
if (data) { |
|||
Object.entries(data).forEach(item => { |
|||
formData.append(item[0], item[1]) |
|||
}) |
|||
} |
|||
return formData |
|||
}] |
|||
} |
|||
|
|||
const promise = new Promise((resolve, reject) => { |
|||
service(httpDefaultOpts).then(response => { |
|||
handleSuccess(response, resolve, opts) |
|||
}).catch(error => { |
|||
handleError(error, reject, opts) |
|||
}) |
|||
}) |
|||
return promise |
|||
} |
|||
|
|||
export default myAxios |
@ -0,0 +1,34 @@ |
|||
import axiosApi from "@/api/AxiosApi"; |
|||
import { |
|||
PARTNERAPPLICATIONPAGE, |
|||
PARTNERAPPLICATION, |
|||
} from "@/api/api"; |
|||
|
|||
export function partnerPageApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: PARTNERAPPLICATIONPAGE, |
|||
data, |
|||
}) |
|||
} |
|||
export function partnerSaveApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: PARTNERAPPLICATION, |
|||
data, |
|||
}) |
|||
} |
|||
export function partnerUpdateApi(data) { |
|||
return axiosApi({ |
|||
method: 'PUT', |
|||
url: PARTNERAPPLICATION, |
|||
data, |
|||
}) |
|||
} |
|||
export function partnerDeleteApi(data) { |
|||
return axiosApi({ |
|||
method: 'DELETE', |
|||
url: PARTNERAPPLICATION, |
|||
data, |
|||
}) |
|||
} |
@ -0,0 +1,33 @@ |
|||
import axiosApi from "@/api/AxiosApi"; |
|||
import {GETEMAILCAPTCHA, REGISTER, VERIFYAUTHCODEREGISTEREMAIL} from "@/api/api"; |
|||
//注册
|
|||
export function register(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: REGISTER, |
|||
data |
|||
}) |
|||
} |
|||
//检测企业名称是否存在
|
|||
export function checkEnterpriseName (name) { |
|||
return axiosApi({ |
|||
method: 'GET', |
|||
url: `/tenant/tenant/checkName/${name}`, |
|||
}) |
|||
} |
|||
//获取验证码
|
|||
export function getEmailCaptcha(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: GETEMAILCAPTCHA, |
|||
data |
|||
}) |
|||
} |
|||
//校验电子邮件验证码
|
|||
export function verifyAuthCodeRegisterEmail(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: VERIFYAUTHCODEREGISTEREMAIL, |
|||
data |
|||
}) |
|||
} |
@ -0,0 +1,134 @@ |
|||
import axiosApi from "@/api/AxiosApi"; |
|||
import { |
|||
SMSTASKPAGE, |
|||
SMSTASK, |
|||
SMSTASKPREVIEW, |
|||
SMSTASKEXPORT, |
|||
SMSTASKIMPORT, |
|||
SMSTEMPLATEPAGE, |
|||
SMSTEMPLATE, |
|||
SMSTEMPLATECHECK, |
|||
SMSTEMPLATEPREVIEW, |
|||
SMSTEMPLATEEXPORT, |
|||
SMSTEMPLATEIMPORT, |
|||
SMSSENDSTATUSPAGE, |
|||
} from "@/api/api"; |
|||
export function smsTaskPageApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: SMSTASKPAGE, |
|||
data, |
|||
}) |
|||
} |
|||
export function smsTaskSaveApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: SMSTASK, |
|||
data, |
|||
}) |
|||
} |
|||
export function smsTaskUpdateApi(data) { |
|||
return axiosApi({ |
|||
method: 'PUT', |
|||
url: SMSTASK, |
|||
data, |
|||
}) |
|||
} |
|||
export function smsTaskDeleteApi(data) { |
|||
return axiosApi({ |
|||
method: 'DELETE', |
|||
url: SMSTASK, |
|||
data, |
|||
}) |
|||
} |
|||
export function getSmsTaskApi(id) { |
|||
return axiosApi({ |
|||
method: 'GET', |
|||
url: `${SMSTASK}/${id}`, |
|||
}) |
|||
} |
|||
export function smsTaskPreviewApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: SMSTASKPREVIEW, |
|||
data, |
|||
}) |
|||
} |
|||
export function smsTaskExportApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: SMSTASKEXPORT, |
|||
data, |
|||
}) |
|||
} |
|||
export function smsTaskImportApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: SMSTASKIMPORT, |
|||
data, |
|||
}) |
|||
} |
|||
export function smsTemplatePageApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: SMSTEMPLATEPAGE, |
|||
data, |
|||
}) |
|||
} |
|||
export function smsTemplateSaveApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: SMSTEMPLATE, |
|||
data, |
|||
}) |
|||
} |
|||
export function smsTemplateUpdateApi(data) { |
|||
return axiosApi({ |
|||
method: 'PUT', |
|||
url: SMSTEMPLATE, |
|||
data, |
|||
}) |
|||
} |
|||
export function smsTemplateDeleteApi(data) { |
|||
return axiosApi({ |
|||
method: 'DELETE', |
|||
url: SMSTEMPLATE, |
|||
data, |
|||
}) |
|||
} |
|||
export function smsTemplateCheckApi(data) { |
|||
return axiosApi({ |
|||
method: 'GET', |
|||
url: SMSTEMPLATECHECK, |
|||
data |
|||
}) |
|||
} |
|||
export function smsTemplatePreviewApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: SMSTEMPLATEPREVIEW, |
|||
data, |
|||
}) |
|||
} |
|||
export function smsTemplateExportApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: SMSTEMPLATEEXPORT, |
|||
responseType: "blob", |
|||
data, |
|||
}) |
|||
} |
|||
export function smsTemplateImportApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: SMSTEMPLATEIMPORT, |
|||
data, |
|||
}) |
|||
} |
|||
export function smsSendStatusPageApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: SMSSENDSTATUSPAGE, |
|||
data, |
|||
}) |
|||
} |
@ -0,0 +1,228 @@ |
|||
import axiosApi from "./AxiosApi"; |
|||
|
|||
import { |
|||
TENANTGLOBALUSERPAGE, |
|||
TENANTGLOBALUSER, |
|||
TENANTGLOBALUSERDELETTE, |
|||
TENANTGLOBALUSERCHECK, |
|||
TENANTGLOBALUSERPREVIEW, |
|||
TENANTGLOBALUSEREXPORT, |
|||
TENANTGLOBALUSERIMPORT, |
|||
TENANTGLOBALUSERRESET, |
|||
AUTHORITYDICTIONARYPAGE, |
|||
AUTHORITYDICTIONARY, |
|||
AUTHORITYDICTIONARYITEMPAGE, |
|||
AUTHORITYDICTIONARYITEM, |
|||
AUTHORITYDICTIONARYITEMCODES, |
|||
AUTHORITYDICTIONARYITEMPREVIEW, |
|||
AUTHORITYDICTIONARYITEMEXPORT, |
|||
AUTHORITYDICTIONARYITEMIMPORT, |
|||
AUTHORITYSYSTEMAPIPAGE, |
|||
AUTHORITYSYSTEMAPI, |
|||
AUTHORITYSYSTEMAPIPREVIEW, |
|||
AUTHORITYSYSTEMAPIEXPORT, |
|||
AUTHORITYSYSTEMAPIIMPORT, |
|||
} from "./api"; |
|||
export function globalUserPageApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: TENANTGLOBALUSERPAGE, |
|||
data, |
|||
}) |
|||
} |
|||
export function globalUserSaveApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: TENANTGLOBALUSER, |
|||
data, |
|||
}) |
|||
} |
|||
export function globalUserUpdateApi(data) { |
|||
return axiosApi({ |
|||
method: 'PUT', |
|||
url: TENANTGLOBALUSER, |
|||
data, |
|||
}) |
|||
} |
|||
export function globalUserDeleteApi(data) { |
|||
return axiosApi({ |
|||
method: 'DELETE', |
|||
url: TENANTGLOBALUSERDELETTE, |
|||
data, |
|||
}) |
|||
} |
|||
export function globalUserCheckApi(data) { |
|||
return axiosApi({ |
|||
method: 'GET', |
|||
url: TENANTGLOBALUSERCHECK, |
|||
data, |
|||
}) |
|||
} |
|||
export function globalUserPreviewApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: TENANTGLOBALUSERPREVIEW, |
|||
data, |
|||
}) |
|||
} |
|||
export function globalUserExportApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: TENANTGLOBALUSEREXPORT, |
|||
responseType: "blob", |
|||
data, |
|||
}) |
|||
} |
|||
export function globalUserImportApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: TENANTGLOBALUSERIMPORT, |
|||
data, |
|||
}) |
|||
} |
|||
export function globalUserResetApi(data) { |
|||
return axiosApi({ |
|||
method: 'PUT', |
|||
url: TENANTGLOBALUSERRESET, |
|||
data, |
|||
}) |
|||
} |
|||
export function dictionaryPageApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: AUTHORITYDICTIONARYPAGE, |
|||
data, |
|||
}) |
|||
} |
|||
export function dictionarySaveApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: AUTHORITYDICTIONARY, |
|||
data, |
|||
}) |
|||
} |
|||
export function dictionaryUpdateApi(data) { |
|||
return axiosApi({ |
|||
method: 'PUT', |
|||
url: AUTHORITYDICTIONARY, |
|||
data, |
|||
}) |
|||
} |
|||
export function dictionaryDeleteApi(data) { |
|||
return axiosApi({ |
|||
method: 'DELETE', |
|||
url: AUTHORITYDICTIONARY, |
|||
data, |
|||
}) |
|||
} |
|||
export function dictionaryItemPageApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: AUTHORITYDICTIONARYITEMPAGE, |
|||
data, |
|||
}) |
|||
} |
|||
export function dictionaryItemUpdateApi(data) { |
|||
return axiosApi({ |
|||
method: 'PUT', |
|||
url: AUTHORITYDICTIONARYITEM, |
|||
data, |
|||
}) |
|||
} |
|||
export function dictionaryItemSaveApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: AUTHORITYDICTIONARYITEM, |
|||
data, |
|||
}) |
|||
} |
|||
export function dictionaryItemDeleteApi(data) { |
|||
return axiosApi({ |
|||
method: 'DELETE', |
|||
url: AUTHORITYDICTIONARYITEM, |
|||
data, |
|||
}) |
|||
} |
|||
export function dictionaryItemListApi(data) { |
|||
return axiosApi({ |
|||
method: 'GET', |
|||
url: AUTHORITYDICTIONARYITEMCODES, |
|||
data, |
|||
}) |
|||
} |
|||
export function dictionaryItemPreviewApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: AUTHORITYDICTIONARYITEMPREVIEW, |
|||
data, |
|||
}) |
|||
} |
|||
export function dictionaryItemExportApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: AUTHORITYDICTIONARYITEMEXPORT, |
|||
data, |
|||
}) |
|||
} |
|||
export function dictionaryItemImportApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: AUTHORITYDICTIONARYITEMIMPORT, |
|||
data, |
|||
}) |
|||
} |
|||
export function systemApiPageApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: AUTHORITYSYSTEMAPIPAGE, |
|||
data, |
|||
}) |
|||
} |
|||
export function systemApiUpdateApi(data) { |
|||
return axiosApi({ |
|||
method: 'PUT', |
|||
url: AUTHORITYSYSTEMAPI, |
|||
data, |
|||
}) |
|||
} |
|||
export function systemApiSaveApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: AUTHORITYSYSTEMAPI, |
|||
data, |
|||
}) |
|||
} |
|||
export function systemApiDeleteApi(data) { |
|||
return axiosApi({ |
|||
method: 'DELETE', |
|||
url: AUTHORITYSYSTEMAPI, |
|||
data, |
|||
}) |
|||
} |
|||
export function systemApiPreviewApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: AUTHORITYSYSTEMAPIPREVIEW, |
|||
data, |
|||
}) |
|||
} |
|||
export function systemApiExportApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: AUTHORITYSYSTEMAPIEXPORT, |
|||
data, |
|||
}) |
|||
} |
|||
export function systemApiImportApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: AUTHORITYSYSTEMAPIIMPORT, |
|||
data, |
|||
}) |
|||
} |
|||
export function systemApiScan(serviceId) { |
|||
return axiosApi({ |
|||
method: 'GET', |
|||
url: `/${serviceId}/systemApiScan` |
|||
}) |
|||
} |
@ -0,0 +1,211 @@ |
|||
import axiosApi from './AxiosApi.js' |
|||
import { |
|||
AUTHORITYORGTREE, |
|||
AUTHORITYORG, |
|||
AUTHORITYORGPREVIEW, |
|||
AUTHORITYORGEXPORT, |
|||
AUTHORITYORGIMPORT, |
|||
AUTHORITYSTATIONPAGE, |
|||
AUTHORITYSTATION, |
|||
AUTHORITYSTATIONPREVIEW, |
|||
AUTHORITYSTATIONEXPORT, |
|||
AUTHORITYSTATIONIMPORT, |
|||
AUTHORITYUSERPAGE, |
|||
AUTHORITYUSER, |
|||
AUTHORITYUSERPREVIEW, |
|||
AUTHORITYUSEREXPORT, |
|||
AUTHORITYUSERIMPORT, |
|||
AUTHORITYUSERBASE, |
|||
AUTHORITYUSERAVATAR, |
|||
AUTHORITYUSERPASSWORD, |
|||
AUTHORITYUSERRESET, |
|||
AUTHORITYUSERRELOAD, |
|||
} from "./api"; |
|||
export function organizationTreeApi(data) { |
|||
return axiosApi({ |
|||
method: 'GET', |
|||
url: AUTHORITYORGTREE, |
|||
data, |
|||
}) |
|||
} |
|||
export function organizationSaveApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: AUTHORITYORG, |
|||
data, |
|||
}) |
|||
} |
|||
export function organizationUpdateApi(data) { |
|||
return axiosApi({ |
|||
method: 'PUT', |
|||
url: AUTHORITYORG, |
|||
data, |
|||
}) |
|||
} |
|||
export function organizationDeleteApi(data) { |
|||
return axiosApi({ |
|||
method: 'DELETE', |
|||
url: AUTHORITYORG, |
|||
data, |
|||
}) |
|||
} |
|||
export function organizationPreviewApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: AUTHORITYORGPREVIEW, |
|||
data, |
|||
}) |
|||
} |
|||
export function organizationExportApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: AUTHORITYORGEXPORT, |
|||
data, |
|||
}) |
|||
} |
|||
export function organizationImportApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: AUTHORITYORGIMPORT, |
|||
data, |
|||
}) |
|||
} |
|||
export function postPageApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: AUTHORITYSTATIONPAGE, |
|||
data, |
|||
}) |
|||
} |
|||
export function postSaveApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: AUTHORITYSTATION, |
|||
data, |
|||
}) |
|||
} |
|||
export function postUpdateApi(data) { |
|||
return axiosApi({ |
|||
method: 'PUT', |
|||
url: AUTHORITYSTATION, |
|||
data, |
|||
}) |
|||
} |
|||
export function postDeleteApi(data) { |
|||
return axiosApi({ |
|||
method: 'DELETE', |
|||
url: AUTHORITYSTATION, |
|||
data, |
|||
}) |
|||
} |
|||
export function postPreviewApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: AUTHORITYSTATIONPREVIEW, |
|||
data, |
|||
}) |
|||
} |
|||
export function postExportApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: AUTHORITYSTATIONEXPORT, |
|||
data, |
|||
}) |
|||
} |
|||
export function postImportApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: AUTHORITYSTATIONIMPORT, |
|||
data, |
|||
}) |
|||
} |
|||
export function userPageApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: AUTHORITYUSERPAGE, |
|||
data, |
|||
}) |
|||
} |
|||
export function userSaveApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: AUTHORITYUSER, |
|||
data, |
|||
}) |
|||
} |
|||
export function userUpdateApi(data) { |
|||
return axiosApi({ |
|||
method: 'PUT', |
|||
url: AUTHORITYUSER, |
|||
data, |
|||
}) |
|||
} |
|||
export function userDeleteApi(data) { |
|||
return axiosApi({ |
|||
method: 'DELETE', |
|||
url: AUTHORITYUSER, |
|||
data, |
|||
}) |
|||
} |
|||
export function getUserApi(id) { |
|||
return axiosApi({ |
|||
method: 'GET', |
|||
url: `${AUTHORITYUSER}/${id}`, |
|||
}) |
|||
} |
|||
export function userPreviewApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: AUTHORITYUSERPREVIEW, |
|||
data, |
|||
}) |
|||
} |
|||
export function userExportApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: AUTHORITYUSEREXPORT, |
|||
data, |
|||
}) |
|||
} |
|||
export function userImportApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: AUTHORITYUSERIMPORT, |
|||
data, |
|||
}) |
|||
} |
|||
export function userBaseApi(data) { |
|||
return axiosApi({ |
|||
method: 'PUT', |
|||
url: AUTHORITYUSERBASE, |
|||
data, |
|||
}) |
|||
} |
|||
export function userAvatarApi(data) { |
|||
return axiosApi({ |
|||
method: 'PUT', |
|||
url: AUTHORITYUSERAVATAR, |
|||
data, |
|||
}) |
|||
} |
|||
export function userPasswordApi(data) { |
|||
return axiosApi({ |
|||
method: 'PUT', |
|||
url: AUTHORITYUSERPASSWORD, |
|||
data, |
|||
}) |
|||
} |
|||
export function userResetApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: AUTHORITYUSERRESET, |
|||
data, |
|||
}) |
|||
} |
|||
export function userReloadApi(data) { |
|||
return axiosApi({ |
|||
method: 'POST', |
|||
url: AUTHORITYUSERRELOAD, |
|||
data, |
|||
}) |
|||
} |
After Width: | Height: | Size: 160 KiB |
After Width: | Height: | Size: 96 KiB |
After Width: | Height: | Size: 4.7 KiB |
After Width: | Height: | Size: 13 KiB |
After Width: | Height: | Size: 68 KiB |
After Width: | Height: | Size: 59 KiB |
After Width: | Height: | Size: 31 KiB |
After Width: | Height: | Size: 25 KiB |
After Width: | Height: | Size: 28 KiB |
After Width: | Height: | Size: 35 KiB |
After Width: | Height: | Size: 27 KiB |
After Width: | Height: | Size: 32 KiB |
After Width: | Height: | Size: 46 KiB |
After Width: | Height: | Size: 35 KiB |
After Width: | Height: | Size: 30 KiB |
After Width: | Height: | Size: 32 KiB |
After Width: | Height: | Size: 33 KiB |
After Width: | Height: | Size: 23 KiB |
After Width: | Height: | Size: 38 KiB |
After Width: | Height: | Size: 40 KiB |
After Width: | Height: | Size: 28 KiB |
After Width: | Height: | Size: 42 KiB |
After Width: | Height: | Size: 28 KiB |
After Width: | Height: | Size: 29 KiB |
After Width: | Height: | Size: 35 KiB |
After Width: | Height: | Size: 67 KiB |
After Width: | Height: | Size: 81 KiB |
After Width: | Height: | Size: 23 KiB |
After Width: | Height: | Size: 22 KiB |
After Width: | Height: | Size: 71 KiB |
After Width: | Height: | Size: 59 KiB |
After Width: | Height: | Size: 19 KiB |
After Width: | Height: | Size: 18 KiB |
After Width: | Height: | Size: 22 KiB |
After Width: | Height: | Size: 52 KiB |
After Width: | Height: | Size: 46 KiB |
After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 24 KiB |
After Width: | Height: | Size: 58 KiB |
After Width: | Height: | Size: 82 KiB |
After Width: | Height: | Size: 51 KiB |
After Width: | Height: | Size: 44 KiB |
After Width: | Height: | Size: 26 KiB |
After Width: | Height: | Size: 50 KiB |
After Width: | Height: | Size: 45 KiB |
After Width: | Height: | Size: 50 KiB |
After Width: | Height: | Size: 261 KiB |
After Width: | Height: | Size: 366 KiB |
After Width: | Height: | Size: 28 KiB |
After Width: | Height: | Size: 4.2 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 4.8 KiB |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 66 KiB |
After Width: | Height: | Size: 53 KiB |
After Width: | Height: | Size: 41 KiB |
After Width: | Height: | Size: 29 KiB |