@ -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-ui' |
||||
|
# 开发环境请求域名前缀, 该变量仅仅开发环境需要设置 |
||||
|
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-ui' |
||||
|
|
||||
|
# 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-ui' |
||||
|
# 开发环境请求域名前缀, 该变量仅仅开发环境需要设置 |
||||
|
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-ui' |
||||
|
# 开发环境请求域名前缀, 该变量仅仅开发环境需要设置 |
||||
|
# 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-ui/ |
@ -0,0 +1,5 @@ |
|||||
|
module.exports = { |
||||
|
presets: [ |
||||
|
'@vue/cli-plugin-babel/preset' |
||||
|
] |
||||
|
} |
@ -0,0 +1,102 @@ |
|||||
|
{ |
||||
|
"name": "fids-ui", |
||||
|
"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: 271 KiB |
After Width: | Height: | Size: 4.2 KiB |
After Width: | Height: | Size: 4.2 KiB |
After Width: | Height: | Size: 4.3 KiB |
After Width: | Height: | Size: 4.6 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 = '/home' |
||||
|
} |
||||
|
}) |
||||
|
} 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: "/authority/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: `/oauth/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,166 @@ |
|||||
|
//上传文件、图片地址
|
||||
|
export const UPLOAD = `${process.env.VUE_APP_PROD_REQUEST_DOMAIN_PREFIX}${process.env.VUE_APP_BASE_API}/file/attachment/upload` |
||||
|
//登录模块 login.js
|
||||
|
export const CAPTCHA = `/oauth/anno/captcha`; //获取图形验证码
|
||||
|
export const LOGIN = `/oauth/anno/token`; //登录
|
||||
|
export const ROUTER = `/oauth/menu/router`; //获取路由
|
||||
|
export const RESOURCE = `/oauth/resource/visible`; //查询用户可用的所有资源
|
||||
|
//注册模块 register.js
|
||||
|
export const REGISTER = `/tenant/tenant/register`; //注册
|
||||
|
export const GETEMAILCAPTCHA = `/msgs/mailverification/sendRegisterEmail`; //获取验证码
|
||||
|
export const VERIFYAUTHCODEREGISTEREMAIL = `/msgs/mailverification/verifyAuthCodeRegisterEmail`; //校验电子邮件验证码
|
||||
|
export const VERIFY_EMAIL_EXIST = `/tenant/tenant/verifyEmail/`; //校验邮箱是否已被注册
|
||||
|
|
||||
|
//企业管理模块 enterpriseManagement.js
|
||||
|
export const LINKAGE = `/tenant/commonArea/linkage`; //省市区
|
||||
|
export const ENTERPRISEAUTH = `/tenant/tenant/examine`; //企业认证
|
||||
|
export const TENANTGETCODE = '/tenant/tenant/getcode' //通过code获取企业信息
|
||||
|
export const INFORMATIONMODIFY = `/tenant/tenant/updateTenant`; //信息维护修改
|
||||
|
export const SELECTTYPE = `/tenant/commonIndustry/allTree`; //行业类型
|
||||
|
export const INDUSTRYTYPE = `/tenant/commonIndustry/linkageEnumeration`; //行业小类
|
||||
|
|
||||
|
export const TENANTGET_TENANT_NAME = '/tenant/tenant/getTenantName' //登录获取企业名称
|
||||
|
//产品管理模块 productManagement.js
|
||||
|
export const QUERYCOMMODITY = `/product/commodityInfo/queryCommodity`; //查询动态商品列表数据
|
||||
|
export const SAVECOMMODITY = `/product/commodityInfo/saveCommodity`; //动态商品新增
|
||||
|
export const UPDATECOMMODITY = `/product/commodityInfo/updateCommodity`; //动态商品修改
|
||||
|
export const DELETECOMMODITY = `/product/commodityInfo/deleteCommodity`; //动态商品删除
|
||||
|
|
||||
|
export const SENDINGCODEPREVIEW = `/sending/codeSendingInfo/previewCodeSending`; //发码预览
|
||||
|
export const SENDINGCODESUBMIT = `/sending/codeSendingInfo/saveCodeSending`; //发码提交
|
||||
|
export const PRODUCTSENDCODELIST = `/sending/codeSendingInfo/pageCodeSending`; //发码历史
|
||||
|
export const MARKMANAGEMENTLIST = `/tagManagement/encoding/queryCommoditySending`; //产品标识管理列表
|
||||
|
|
||||
|
export const UNIFORMSTYLE = `/tag/tagType/queryTagTypeUNIFY`; //统一标签样式查询
|
||||
|
export const LABELSTYLELIST = `/tagManagement/tagType/queryTagTypeListToSelect`; //标签样式列表
|
||||
|
export const APPLYLABEL = `/tag/tagInfo/saveTagInfo`; //申请标签
|
||||
|
export const LABELAPPLYHISTORY = `/tag/tagInfo/queryTagApplyType`; //申请标签历史
|
||||
|
export const BINDLABEL = `/tag/binding/bindingTag`; //绑定标签
|
||||
|
export const ENCODINGEND = `/tag/binding/getEncodingEnd`; //计算结束标签编码
|
||||
|
export const BINDLABELHISTORY = `/tag/binding/queryProductAndTag`; //绑定标签历史
|
||||
|
export const APPLYSECURITYCODE = `/antifake/antifakeInfo/applyProductAntiFake`; //申请防伪码、批量申请防伪码
|
||||
|
export const QUERYSECURITYCODE = `/antifake/antifakeInfo/queryAntifakeImage`; //查看防伪码
|
||||
|
|
||||
|
export const TRACEMODELTREE = `/trace/traceModel/tree`; //溯源模板树形数据/traceModel/linkage
|
||||
|
export const TRACEMODELLINKAGE = `/trace/traceModel/linkage`; //溯源模板树形级联数据
|
||||
|
export const ADDTRACEMODEL = `/trace/traceModel`; //增加溯源模板
|
||||
|
export const UPDATETRACEMODEL = `/trace/traceModel`; //修改溯源模板
|
||||
|
export const DELETETRACEMODEL = `/trace/traceModel`; //删除溯源模板
|
||||
|
export const ADDTRACEINFO = `/trace/traceInfo/addTraceInfo`; //单独提交溯源信息
|
||||
|
export const ADDTRACEINFOALL = `/trace/traceInfo/addTraceInfoAll`; //批量提交溯源信息
|
||||
|
export const GETTRACEINFO = `/trace/traceInfo/getTraceInfo`; //获取溯源信息
|
||||
|
export const UPDATETRACEINFO = `/trace/traceInfo/getTraceInfo`; //获取溯源信息
|
||||
|
|
||||
|
export const SUPERAPPLYLABEL = `/tag/tagInfo/saveTagInfo`; //超级用户申请标签
|
||||
|
export const SUPERLABELLIST = `/tag/tagInfo/queryTagApplyType`; //超级用户标签列表
|
||||
|
export const LABELAPPROVALLIST = `/tagManagement/tagInfo/queryAdminTagApply`; //超级用户标签审批列表
|
||||
|
export const LABELDETAILS = `/tagManagement/tagInfo/queryApplyDetailByTagId`; //超级用户标签详情
|
||||
|
export const AGREEAPPLY = `/tagManagement/tagInfo/updateTagApplyTypeIsAcceptByIds`; //超级用户通过、批量通过
|
||||
|
export const REFUSEAPPLY = `/tagManagement/tagInfo/updateTagApplyTypeIsRejectByIds`; //超级用户驳回、批量驳回
|
||||
|
export const AVAILABLELABELAMOUNT = `/tagManagement/encoding/querySuperTenantNoneTagCount`; //超级用户查询未绑定标签数量
|
||||
|
//权限管理 authorityManagement.js
|
||||
|
export const AUTHORITYMENUALLTREE = `/authority/menu/tree`; |
||||
|
export const AUTHORITYMENU = `/authority/menu`; |
||||
|
export const AUTHORITYRESOURCEPAGE = `/authority/resource/page`; |
||||
|
export const AUTHORITYRESOURCE = `/authority/resource`; |
||||
|
export const AUTHORITYROLEPAGE = `/authority/role/page`; |
||||
|
export const AUTHORITYROLE = `/authority/role`; |
||||
|
export const AUTHORITYROLEUSER = `/authority/role/user`; |
||||
|
export const AUTHORITYROLEAUTHORITY = `/authority/role/authority`; |
||||
|
export const AUTHORITYROLEIMPORT = `/authority/role/import`; |
||||
|
export const AUTHORITYROLEDETAILS = `/authority/role/details`; |
||||
|
export const AUTHORITYROLECHECK = `/authority/role/check`; |
||||
|
//系统管理 systemManagement.js
|
||||
|
export const AUTHORITYDICTIONARYPAGE = `/authority/dictionary/page`; |
||||
|
export const AUTHORITYDICTIONARY = `/authority/dictionary`; |
||||
|
export const AUTHORITYDICTIONARYITEMPAGE = `/authority/dictionaryItem/page`; |
||||
|
export const AUTHORITYDICTIONARYITEM = `/authority/dictionaryItem`; |
||||
|
export const AUTHORITYDICTIONARYITEMCODES = `/oauth/dictionaryItem/codes`; |
||||
|
export const AUTHORITYDICTIONARYITEMPREVIEW = `/authority/dictionaryItem/preview`; |
||||
|
export const AUTHORITYDICTIONARYITEMEXPORT = `/authority/dictionaryItem/export`; |
||||
|
export const AUTHORITYDICTIONARYITEMIMPORT = `/authority/dictionaryItem/import`; |
||||
|
export const AUTHORITYSYSTEMAPIPAGE = `/authority/systemApi/page`; |
||||
|
export const AUTHORITYSYSTEMAPI = `/authority/systemApi`; |
||||
|
export const AUTHORITYSYSTEMAPIPREVIEW = `/authority/systemApi/preview`; |
||||
|
export const AUTHORITYSYSTEMAPIEXPORT = `/authority/systemApi/export`; |
||||
|
export const AUTHORITYSYSTEMAPIIMPORT = `/authority/systemApi/import`; |
||||
|
//日志管理 logManagement.js
|
||||
|
export const AUTHORITYLOGINLOGPAGE = `/authority/loginLog/page`; |
||||
|
export const AUTHORITYLOGINLOG = `/authority/loginLog`; |
||||
|
export const AUTHORITYLOGINLOGCLEAR = `/authority/loginLog/clear`; |
||||
|
export const AUTHORITYLOGINLOGPREVIEW = `/authority/loginLog/preview`; |
||||
|
export const AUTHORITYLOGINLOGEXPORT = `/authority/loginLog/export`; |
||||
|
export const AUTHORITYOPTLOGPAGE = `/authority/optLog/page`; |
||||
|
export const AUTHORITYOPTLOG = `/authority/optLog`; |
||||
|
export const AUTHORITYOPTLOGCLEAR = `/authority/optLog/clear`; |
||||
|
export const AUTHORITYOPTLOGPREVIEW = `/authority/optLog/preview`; |
||||
|
export const AUTHORITYOPTLOGEXPORT = `/authority/optLog/export`; |
||||
|
//用户中心 userCenter.js
|
||||
|
export const AUTHORITYORGTREE = `/authority/org/tree`; |
||||
|
export const AUTHORITYORG = `/authority/org`; |
||||
|
export const AUTHORITYORGPREVIEW = `/authority/org/preview`; |
||||
|
export const AUTHORITYORGEXPORT = `/authority/org/export`; |
||||
|
export const AUTHORITYORGIMPORT = `/authority/org/import`; |
||||
|
export const AUTHORITYSTATIONPAGE = `/authority/station/page`; |
||||
|
export const AUTHORITYSTATION = `/authority/station`; |
||||
|
export const AUTHORITYSTATIONPREVIEW = `/authority/station/preview`; |
||||
|
export const AUTHORITYSTATIONEXPORT = `/authority/station/export`; |
||||
|
export const AUTHORITYSTATIONIMPORT = `/authority/station/import`; |
||||
|
export const AUTHORITYUSERPAGE = `/authority/user/page`; |
||||
|
export const AUTHORITYUSER = `/authority/user`; |
||||
|
export const AUTHORITYUSERPREVIEW = `/authority/user/preview`; |
||||
|
export const AUTHORITYUSEREXPORT = `/authority/user/export`; |
||||
|
export const AUTHORITYUSERIMPORT = `/authority/user/import`; |
||||
|
export const AUTHORITYUSERBASE = `/authority/user/base`; |
||||
|
export const AUTHORITYUSERAVATAR = `/authority/user/avatar`; |
||||
|
export const AUTHORITYUSERPASSWORD = `/authority/user/password`; |
||||
|
export const AUTHORITYUSERRESET = `/authority/user/reset`; |
||||
|
export const AUTHORITYUSERRELOAD = `/authority/user/reload`; |
||||
|
//应用管理 applicationManagement.js
|
||||
|
export const AUTHORITYAPPLICATIONPAGE = `/authority/application/page`; |
||||
|
export const AUTHORITYAPPLICATION = `/authority/application`; |
||||
|
export const AUTHORITYAPPLICATIONPREVIEW = `/authority/application/preview`; |
||||
|
export const AUTHORITYAPPLICATIONEXPORT = `/authority/application/export`; |
||||
|
export const AUTHORITYAPPLICATIONIMPORT = `/authority/application/import`; |
||||
|
//消息中心 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 = `/authority/area/page`; |
||||
|
export const AUTHORITYAREA = `/authority/area`; |
||||
|
export const AUTHORITYAREAQUERY = `/authority/area/query`; |
||||
|
export const AUTHORITYAREALINKAGE = `/authority/area/linkage`; |
||||
|
export const AUTHORITYAREATREE = `/authority/area/tree`; |
||||
|
export const AUTHORITYAREACHECK = `/authority/area/check`; |
||||
|
export const AUTHORITYPARAMETERPAGE = `/authority/parameter/page`; |
||||
|
export const AUTHORITYPARAMETER = `/authority/parameter`; |
||||
|
export const AUTHORITYPARAMETERPREVIEW = `/authority/parameter/preview`; |
||||
|
export const AUTHORITYPARAMETEREXPORT = `/authority/parameter/export`; |
||||
|
export const AUTHORITYPARAMETERIMPORT = `/authority/parameter/import`; |
||||
|
|
||||
|
//未登录
|
||||
|
export const IDIS_CODE_SEARCH = `/idis/middlePlatform/analysDetail`; //标识搜索
|
@ -0,0 +1,58 @@ |
|||||
|
import axiosApi from "@/api/AxiosApi"; |
||||
|
import { |
||||
|
AUTHORITYAPPLICATIONPAGE, |
||||
|
AUTHORITYAPPLICATION, |
||||
|
AUTHORITYAPPLICATIONPREVIEW, |
||||
|
AUTHORITYAPPLICATIONEXPORT, |
||||
|
AUTHORITYAPPLICATIONIMPORT, |
||||
|
} 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, |
||||
|
}) |
||||
|
} |
@ -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,11 @@ |
|||||
|
import axiosApi from "@/api/AxiosApi"; |
||||
|
import { |
||||
|
IDIS_CODE_SEARCH, |
||||
|
} from "@/api/api"; |
||||
|
|
||||
|
export function analysDetail(idCode) { |
||||
|
return axiosApi({ |
||||
|
method: 'GET', |
||||
|
url: IDIS_CODE_SEARCH + '?identification=' + idCode, |
||||
|
}) |
||||
|
} |
@ -0,0 +1,61 @@ |
|||||
|
import axiosApi from "./AxiosApi"; |
||||
|
import myAxios from "@/api/myAxios"; |
||||
|
import { ENTERPRISEAUTH, INFORMATIONMODIFY, LINKAGE, SELECTTYPE, INDUSTRYTYPE, TENANTGETCODE, TENANTGET_TENANT_NAME } from "./api"; |
||||
|
//省市区
|
||||
|
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 } |
||||
|
}) |
||||
|
} |
||||
|
//企业认证
|
||||
|
export function enterpriseAuth(data) { |
||||
|
return myAxios({ |
||||
|
method: 'POST', |
||||
|
url: ENTERPRISEAUTH, |
||||
|
data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
//信息维护根据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 getTenantName(data) { |
||||
|
return axiosApi({ |
||||
|
method: 'GET', |
||||
|
url: `${TENANTGET_TENANT_NAME}`, |
||||
|
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,105 @@ |
|||||
|
import axiosApi from "./AxiosApi"; |
||||
|
import { |
||||
|
AGREEAPPLY, |
||||
|
APPLYLABEL, |
||||
|
AVAILABLELABELAMOUNT, |
||||
|
LABELAPPLYHISTORY, |
||||
|
LABELDETAILS, |
||||
|
LABELAPPROVALLIST, |
||||
|
REFUSEAPPLY, |
||||
|
SUPERAPPLYLABEL, |
||||
|
SUPERLABELLIST, UNIFORMSTYLE, LABELSTYLELIST, |
||||
|
} from "./api"; |
||||
|
//申请标签
|
||||
|
export function applyLabel(data) { |
||||
|
return axiosApi({ |
||||
|
method: 'POST', |
||||
|
url: APPLYLABEL, |
||||
|
data, |
||||
|
}) |
||||
|
} |
||||
|
//超级用户标签列表
|
||||
|
//获取标签样式
|
||||
|
export function getUniformStyle(data) { |
||||
|
return axiosApi({ |
||||
|
method: 'GET', |
||||
|
url: UNIFORMSTYLE, |
||||
|
data, |
||||
|
}) |
||||
|
} |
||||
|
//获取标签样式下拉框
|
||||
|
export function getLabelStyle(data) { |
||||
|
return axiosApi({ |
||||
|
method: 'GET', |
||||
|
url: LABELSTYLELIST, |
||||
|
data, |
||||
|
}) |
||||
|
} |
||||
|
export function superLabelList(data) { |
||||
|
return axiosApi({ |
||||
|
method: 'POST', |
||||
|
url: SUPERLABELLIST, |
||||
|
data, |
||||
|
}) |
||||
|
} |
||||
|
//标签申请历史
|
||||
|
export function labelApplyHistory(data) { |
||||
|
return axiosApi({ |
||||
|
method: 'POST', |
||||
|
url: LABELAPPLYHISTORY, |
||||
|
data, |
||||
|
}) |
||||
|
} |
||||
|
//超级用户申请标签
|
||||
|
export function superApplyLabel(data) { |
||||
|
return axiosApi({ |
||||
|
method: 'POST', |
||||
|
url: SUPERAPPLYLABEL, |
||||
|
data, |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
//超级用户标签审批列表
|
||||
|
export function labelApprovalList(data) { |
||||
|
return axiosApi({ |
||||
|
method: 'POST', |
||||
|
url: LABELAPPROVALLIST, |
||||
|
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 availableLabelAmount (data) { |
||||
|
return axiosApi({ |
||||
|
method: 'GET', |
||||
|
url: AVAILABLELABELAMOUNT, |
||||
|
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,38 @@ |
|||||
|
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 = '/home' |
||||
|
} |
||||
|
}) |
||||
|
} 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,147 @@ |
|||||
|
import axiosApi from "./AxiosApi"; |
||||
|
import { |
||||
|
QUERYCOMMODITY, |
||||
|
SAVECOMMODITY, |
||||
|
UPDATECOMMODITY, |
||||
|
DELETECOMMODITY, |
||||
|
SENDINGCODEPREVIEW, |
||||
|
SENDINGCODESUBMIT, |
||||
|
PRODUCTSENDCODELIST, |
||||
|
MARKMANAGEMENTLIST, |
||||
|
BINDLABEL, |
||||
|
BINDLABELHISTORY, |
||||
|
ENCODINGEND, |
||||
|
ADDTRACEINFO, |
||||
|
ADDTRACEINFOALL, |
||||
|
} from "./api"; |
||||
|
|
||||
|
//批量查询动态商品列表数据
|
||||
|
export function queryCommodity(data) { |
||||
|
return axiosApi({ |
||||
|
method: 'POST', |
||||
|
url: QUERYCOMMODITY, |
||||
|
data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
//动态商品新增
|
||||
|
export function saveCommodity(data) { |
||||
|
return axiosApi({ |
||||
|
method: 'POST', |
||||
|
url: SAVECOMMODITY, |
||||
|
data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
//动态商品修改
|
||||
|
export function updateCommodity(data) { |
||||
|
return axiosApi({ |
||||
|
method: 'PUT', |
||||
|
url: UPDATECOMMODITY, |
||||
|
data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
//动态商品删除
|
||||
|
export function deleteCommodity(data) { |
||||
|
return axiosApi({ |
||||
|
method: 'DELETE', |
||||
|
url: DELETECOMMODITY, |
||||
|
data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
//动态商品查看
|
||||
|
export function detailCommodity(id) { |
||||
|
return axiosApi({ |
||||
|
method: 'GET', |
||||
|
url: `/product/commodityInfo/queryCommodity/${id}` |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
//发码预览
|
||||
|
export function sendingCodePreview(data) { |
||||
|
return axiosApi({ |
||||
|
method: 'POST', |
||||
|
url: SENDINGCODEPREVIEW, |
||||
|
data, |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
//发码提交
|
||||
|
export function sendingCodeSubmit(data) { |
||||
|
return axiosApi({ |
||||
|
method: 'POST', |
||||
|
url: SENDINGCODESUBMIT, |
||||
|
data, |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
//发码历史
|
||||
|
export function productSendCodeList(data) { |
||||
|
return axiosApi({ |
||||
|
method: 'POST', |
||||
|
url: PRODUCTSENDCODELIST, |
||||
|
data, |
||||
|
}) |
||||
|
} |
||||
|
//产品标识管理列表
|
||||
|
export function markManagementList(data) { |
||||
|
return axiosApi({ |
||||
|
method: 'POST', |
||||
|
url: MARKMANAGEMENTLIST, |
||||
|
data, |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
//计算结束标签编码
|
||||
|
export function computeEncodingEnd(data) { |
||||
|
return axiosApi({ |
||||
|
method: 'POST', |
||||
|
url: ENCODINGEND, |
||||
|
data, |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
//绑定标签
|
||||
|
export function bindLabel(data) { |
||||
|
return axiosApi({ |
||||
|
method: 'POST', |
||||
|
url: BINDLABEL, |
||||
|
data, |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
//绑定标签历史
|
||||
|
export function bindLabelHistory(data) { |
||||
|
return axiosApi({ |
||||
|
method: 'POST', |
||||
|
url: BINDLABELHISTORY, |
||||
|
data, |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
//单独提交溯源信息
|
||||
|
export function addtraceInfo(data) { |
||||
|
return axiosApi({ |
||||
|
method: 'POST', |
||||
|
url: ADDTRACEINFO, |
||||
|
data, |
||||
|
}) |
||||
|
} |
||||
|
//批量提交溯源信息
|
||||
|
export function addtraceInfoAll(data) { |
||||
|
return axiosApi({ |
||||
|
method: 'POST', |
||||
|
url: ADDTRACEINFOALL, |
||||
|
data, |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
//批量提交溯源信息
|
||||
|
export function getTraceInfoByCodeSendingId(codeSendingId) { |
||||
|
return axiosApi({ |
||||
|
method: 'GET', |
||||
|
url: `/trace/traceInfo/getTraceInfoAll/${codeSendingId}`, |
||||
|
}) |
||||
|
} |
@ -0,0 +1,18 @@ |
|||||
|
import axiosApi from "@/api/AxiosApi"; |
||||
|
import {APPLYSECURITYCODE, QUERYSECURITYCODE,} from "@/api/api"; |
||||
|
//申请防伪码、批量申请防伪码
|
||||
|
export function applySecurityCode(data) { |
||||
|
return axiosApi({ |
||||
|
method: 'POST', |
||||
|
url: APPLYSECURITYCODE, |
||||
|
data, |
||||
|
}) |
||||
|
} |
||||
|
//查看防伪码
|
||||
|
export function querySecurityCode(data) { |
||||
|
return axiosApi({ |
||||
|
method: 'GET', |
||||
|
url: `${QUERYSECURITYCODE}/${data}`, |
||||
|
//data,
|
||||
|
}) |
||||
|
} |
@ -0,0 +1,41 @@ |
|||||
|
import axiosApi from "@/api/AxiosApi"; |
||||
|
import {ADDTRACEMODEL, DELETETRACEMODEL, TRACEMODELLINKAGE, TRACEMODELTREE, UPDATETRACEMODEL} from "@/api/api"; |
||||
|
//获取溯源模板树形数据
|
||||
|
export function traceModelTree () { |
||||
|
return axiosApi({ |
||||
|
method: 'GET', |
||||
|
url: TRACEMODELTREE |
||||
|
}) |
||||
|
} |
||||
|
//获取溯源模板树形级联数据
|
||||
|
export function traceModelLinkage (data) { |
||||
|
return axiosApi({ |
||||
|
method: 'GET', |
||||
|
url: TRACEMODELLINKAGE, |
||||
|
data |
||||
|
}) |
||||
|
} |
||||
|
//增加溯源模板项
|
||||
|
export function addTraceModel(data) { |
||||
|
return axiosApi({ |
||||
|
method: 'POST', |
||||
|
url: ADDTRACEMODEL, |
||||
|
data |
||||
|
}) |
||||
|
} |
||||
|
//修改溯源模板项
|
||||
|
export function updateTraceModel(data) { |
||||
|
return axiosApi({ |
||||
|
method: 'PUT', |
||||
|
url: UPDATETRACEMODEL, |
||||
|
data |
||||
|
}) |
||||
|
} |
||||
|
//删除溯源模板项
|
||||
|
export function deleteTraceModel(data) { |
||||
|
return axiosApi({ |
||||
|
method: 'DELETE', |
||||
|
url: DELETETRACEMODEL, |
||||
|
data |
||||
|
}) |
||||
|
} |
@ -0,0 +1,41 @@ |
|||||
|
import axiosApi from "@/api/AxiosApi"; |
||||
|
import { GETEMAILCAPTCHA, REGISTER, VERIFYAUTHCODEREGISTEREMAIL, VERIFY_EMAIL_EXIST } 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 |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
//检测邮箱是否存在
|
||||
|
export function checkEmailExits(email) { |
||||
|
return axiosApi({ |
||||
|
method: 'GET', |
||||
|
url: VERIFY_EMAIL_EXIST + `${email}`, |
||||
|
}) |
||||
|
} |
@ -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,155 @@ |
|||||
|
import axiosApi from './AxiosApi.js' |
||||
|
import { |
||||
|
AUTHORITYDICTIONARYPAGE, |
||||
|
AUTHORITYDICTIONARY, |
||||
|
AUTHORITYDICTIONARYITEMPAGE, |
||||
|
AUTHORITYDICTIONARYITEM, |
||||
|
AUTHORITYDICTIONARYITEMCODES, |
||||
|
AUTHORITYDICTIONARYITEMPREVIEW, |
||||
|
AUTHORITYDICTIONARYITEMEXPORT, |
||||
|
AUTHORITYDICTIONARYITEMIMPORT, |
||||
|
AUTHORITYSYSTEMAPIPAGE, |
||||
|
AUTHORITYSYSTEMAPI, |
||||
|
AUTHORITYSYSTEMAPIPREVIEW, |
||||
|
AUTHORITYSYSTEMAPIEXPORT, |
||||
|
AUTHORITYSYSTEMAPIIMPORT, |
||||
|
} from "./api"; |
||||
|
export function dictionaryPageApi(data) { |
||||
|
return axiosApi({ |
||||
|
method: 'POST', |
||||
|
url: AUTHORITYDICTIONARYPAGE, |
||||
|
data, |
||||
|
}) |
||||
|
} |
||||
|
export function dictionaryUpdateApi(data) { |
||||
|
return axiosApi({ |
||||
|
method: 'PUT', |
||||
|
url: AUTHORITYDICTIONARY, |
||||
|
data, |
||||
|
}) |
||||
|
} |
||||
|
export function dictionarySaveApi(data) { |
||||
|
return axiosApi({ |
||||
|
method: 'POST', |
||||
|
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: 184 KiB |
After Width: | Height: | Size: 129 KiB |
After Width: | Height: | Size: 261 KiB |
After Width: | Height: | Size: 2.7 KiB |