Compare commits
16 Commits
1718c1cdf3
...
420a212e15
Author | SHA1 | Date |
---|---|---|
|
420a212e15 | 2 years ago |
|
4b01c6eb0a | 2 years ago |
|
3b6bddc49f | 3 years ago |
|
d6eb9442e5 | 4 years ago |
|
17eb1ec7bd | 4 years ago |
|
9591dd0716 | 4 years ago |
|
e7ce08b0a8 | 4 years ago |
|
b94ae622e9 | 4 years ago |
|
dda0c9ad43 | 4 years ago |
|
10615d04dd | 4 years ago |
|
390d66bafe | 4 years ago |
|
d03828cd02 | 4 years ago |
|
9b36f48af8 | 4 years ago |
|
506592771f | 4 years ago |
|
393e694e30 | 4 years ago |
|
4f4060052f | 4 years ago |
@ -0,0 +1,22 @@ |
|||
# 告诉EditorConfig插件,这是根文件,不用继续往上查找 |
|||
root = true |
|||
|
|||
# 匹配全部文件 |
|||
[*] |
|||
# 设置字符集 |
|||
charset = utf-8 |
|||
# 缩进风格,可选space、tab |
|||
indent_style = space |
|||
# 缩进的空格数 |
|||
indent_size = 2 |
|||
# 结尾换行符,可选lf、cr、crlf |
|||
end_of_line = lf |
|||
# 在文件结尾插入新行 |
|||
insert_final_newline = true |
|||
# 删除一行中的前后空格 |
|||
trim_trailing_whitespace = true |
|||
|
|||
# 匹配md结尾的文件 |
|||
[*.md] |
|||
insert_final_newline = false |
|||
trim_trailing_whitespace = false |
@ -0,0 +1,12 @@ |
|||
# 开发环境配置 |
|||
ENV = 'development' |
|||
|
|||
# 若依管理系统/开发环境 |
|||
VUE_APP_BASE_API = 'http://124.70.15.185:9527' |
|||
VUE_APP_H5_QR = 'http://172.119.51.219/h5/invitation.html' |
|||
VUE_APP_H5_INFO = 'http://172.119.51.219/h5/info.html' |
|||
#VUE_APP_BASE_API = 'http://172.119.50.181:9527' |
|||
|
|||
|
|||
# 路由懒加载 |
|||
VUE_CLI_BABEL_TRANSPILE_MODULES = true |
@ -0,0 +1,7 @@ |
|||
# 生产环境配置 |
|||
ENV = 'production' |
|||
|
|||
# 若依管理系统/生产环境 |
|||
VUE_APP_BASE_API = 'http://10.10.10.17:9527' |
|||
VUE_APP_H5_QR = 'http://10.10.10.16:8778/h5/invitation.html' |
|||
VUE_APP_H5_INFO = 'http://10.10.10.16:8778/h5/info.html' |
@ -0,0 +1,7 @@ |
|||
NODE_ENV = production |
|||
|
|||
# 测试环境配置 |
|||
ENV = 'staging' |
|||
|
|||
# 供应商资质检查/测试环境 |
|||
VUE_APP_BASE_API = '/stage-api' |
@ -0,0 +1,10 @@ |
|||
# 忽略build目录下类型为js的文件的语法检查 |
|||
build/*.js |
|||
# 忽略src/assets目录下文件的语法检查 |
|||
src/assets |
|||
# 忽略public目录下文件的语法检查 |
|||
public |
|||
# 忽略当前目录下为js的文件的语法检查 |
|||
*.js |
|||
# 忽略当前目录下为vue的文件的语法检查 |
|||
*.vue |
@ -0,0 +1,199 @@ |
|||
// ESlint 检查配置
|
|||
module.exports = { |
|||
root: true, |
|||
parserOptions: { |
|||
parser: 'babel-eslint', |
|||
sourceType: 'module' |
|||
}, |
|||
env: { |
|||
browser: true, |
|||
node: true, |
|||
es6: true, |
|||
}, |
|||
extends: ['plugin:vue/recommended', 'eslint:recommended'], |
|||
|
|||
// add your custom rules here
|
|||
//it is base on https://github.com/vuejs/eslint-config-vue
|
|||
rules: { |
|||
"vue/max-attributes-per-line": [2, { |
|||
"singleline": 10, |
|||
"multiline": { |
|||
"max": 1, |
|||
"allowFirstLine": false |
|||
} |
|||
}], |
|||
"vue/singleline-html-element-content-newline": "off", |
|||
"vue/multiline-html-element-content-newline":"off", |
|||
"vue/name-property-casing": ["error", "PascalCase"], |
|||
"vue/no-v-html": "off", |
|||
'accessor-pairs': 2, |
|||
'arrow-spacing': [2, { |
|||
'before': true, |
|||
'after': true |
|||
}], |
|||
'block-spacing': [2, 'always'], |
|||
'brace-style': [2, '1tbs', { |
|||
'allowSingleLine': true |
|||
}], |
|||
'camelcase': [0, { |
|||
'properties': 'always' |
|||
}], |
|||
'comma-dangle': [2, 'never'], |
|||
'comma-spacing': [2, { |
|||
'before': false, |
|||
'after': true |
|||
}], |
|||
'comma-style': [2, 'last'], |
|||
'constructor-super': 2, |
|||
'curly': [2, 'multi-line'], |
|||
'dot-location': [2, 'property'], |
|||
'eol-last': 2, |
|||
'eqeqeq': ["error", "always", {"null": "ignore"}], |
|||
'generator-star-spacing': [2, { |
|||
'before': true, |
|||
'after': true |
|||
}], |
|||
'handle-callback-err': [2, '^(err|error)$'], |
|||
'indent': [2, 2, { |
|||
'SwitchCase': 1 |
|||
}], |
|||
'jsx-quotes': [2, 'prefer-single'], |
|||
'key-spacing': [2, { |
|||
'beforeColon': false, |
|||
'afterColon': true |
|||
}], |
|||
'keyword-spacing': [2, { |
|||
'before': true, |
|||
'after': true |
|||
}], |
|||
'new-cap': [2, { |
|||
'newIsCap': true, |
|||
'capIsNew': false |
|||
}], |
|||
'new-parens': 2, |
|||
'no-array-constructor': 2, |
|||
'no-caller': 2, |
|||
'no-console': 'off', |
|||
'no-class-assign': 2, |
|||
'no-cond-assign': 2, |
|||
'no-const-assign': 2, |
|||
'no-control-regex': 0, |
|||
'no-delete-var': 2, |
|||
'no-dupe-args': 2, |
|||
'no-dupe-class-members': 2, |
|||
'no-dupe-keys': 2, |
|||
'no-duplicate-case': 2, |
|||
'no-empty-character-class': 2, |
|||
'no-empty-pattern': 2, |
|||
'no-eval': 2, |
|||
'no-ex-assign': 2, |
|||
'no-extend-native': 2, |
|||
'no-extra-bind': 2, |
|||
'no-extra-boolean-cast': 2, |
|||
'no-extra-parens': [2, 'functions'], |
|||
'no-fallthrough': 2, |
|||
'no-floating-decimal': 2, |
|||
'no-func-assign': 2, |
|||
'no-implied-eval': 2, |
|||
'no-inner-declarations': [2, 'functions'], |
|||
'no-invalid-regexp': 2, |
|||
'no-irregular-whitespace': 2, |
|||
'no-iterator': 2, |
|||
'no-label-var': 2, |
|||
'no-labels': [2, { |
|||
'allowLoop': false, |
|||
'allowSwitch': false |
|||
}], |
|||
'no-lone-blocks': 2, |
|||
'no-mixed-spaces-and-tabs': 2, |
|||
'no-multi-spaces': 2, |
|||
'no-multi-str': 2, |
|||
'no-multiple-empty-lines': [2, { |
|||
'max': 1 |
|||
}], |
|||
'no-native-reassign': 2, |
|||
'no-negated-in-lhs': 2, |
|||
'no-new-object': 2, |
|||
'no-new-require': 2, |
|||
'no-new-symbol': 2, |
|||
'no-new-wrappers': 2, |
|||
'no-obj-calls': 2, |
|||
'no-octal': 2, |
|||
'no-octal-escape': 2, |
|||
'no-path-concat': 2, |
|||
'no-proto': 2, |
|||
'no-redeclare': 2, |
|||
'no-regex-spaces': 2, |
|||
'no-return-assign': [2, 'except-parens'], |
|||
'no-self-assign': 2, |
|||
'no-self-compare': 2, |
|||
'no-sequences': 2, |
|||
'no-shadow-restricted-names': 2, |
|||
'no-spaced-func': 2, |
|||
'no-sparse-arrays': 2, |
|||
'no-this-before-super': 2, |
|||
'no-throw-literal': 2, |
|||
'no-trailing-spaces': 2, |
|||
'no-undef': 2, |
|||
'no-undef-init': 2, |
|||
'no-unexpected-multiline': 2, |
|||
'no-unmodified-loop-condition': 2, |
|||
'no-unneeded-ternary': [2, { |
|||
'defaultAssignment': false |
|||
}], |
|||
'no-unreachable': 2, |
|||
'no-unsafe-finally': 2, |
|||
'no-unused-vars': [2, { |
|||
'vars': 'all', |
|||
'args': 'none' |
|||
}], |
|||
'no-useless-call': 2, |
|||
'no-useless-computed-key': 2, |
|||
'no-useless-constructor': 2, |
|||
'no-useless-escape': 0, |
|||
'no-whitespace-before-property': 2, |
|||
'no-with': 2, |
|||
'one-var': [2, { |
|||
'initialized': 'never' |
|||
}], |
|||
'operator-linebreak': [2, 'after', { |
|||
'overrides': { |
|||
'?': 'before', |
|||
':': 'before' |
|||
} |
|||
}], |
|||
'padded-blocks': [2, 'never'], |
|||
'quotes': [2, 'single', { |
|||
'avoidEscape': true, |
|||
'allowTemplateLiterals': true |
|||
}], |
|||
'semi': [2, 'never'], |
|||
'semi-spacing': [2, { |
|||
'before': false, |
|||
'after': true |
|||
}], |
|||
'space-before-blocks': [2, 'always'], |
|||
'space-before-function-paren': [2, 'never'], |
|||
'space-in-parens': [2, 'never'], |
|||
'space-infix-ops': 2, |
|||
'space-unary-ops': [2, { |
|||
'words': true, |
|||
'nonwords': false |
|||
}], |
|||
'spaced-comment': [2, 'always', { |
|||
'markers': ['global', 'globals', 'eslint', 'eslint-disable', '*package', '!', ','] |
|||
}], |
|||
'template-curly-spacing': [2, 'never'], |
|||
'use-isnan': 2, |
|||
'valid-typeof': 2, |
|||
'wrap-iife': [2, 'any'], |
|||
'yield-star-spacing': [2, 'both'], |
|||
'yoda': [2, 'never'], |
|||
'prefer-const': 2, |
|||
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0, |
|||
'object-curly-spacing': [2, 'always', { |
|||
objectsInObjects: false |
|||
}], |
|||
'array-bracket-spacing': [2, 'never'] |
|||
} |
|||
} |
@ -0,0 +1,23 @@ |
|||
.DS_Store |
|||
node_modules/ |
|||
dist/ |
|||
npm-debug.log* |
|||
yarn-debug.log* |
|||
yarn-error.log* |
|||
**/*.log |
|||
|
|||
tests/**/coverage/ |
|||
tests/e2e/reports |
|||
selenium-debug.log |
|||
|
|||
# Editor directories and files |
|||
.idea |
|||
.vscode |
|||
*.suo |
|||
*.ntvs* |
|||
*.njsproj |
|||
*.sln |
|||
*.local |
|||
|
|||
package-lock.json |
|||
yarn.lock |
@ -1,3 +1,8 @@ |
|||
# supplier-flair |
|||
|
|||
供应商资质 |
|||
|
|||
# supplier-flair |
|||
供应商资质 |
|||
node版本 v14.15.5 可以运行 |
|||
遗留问题 |
|||
请求接口二维码报错 |
|||
10.10.10.16 顺宇说是访问这个地址 但是接口报错 后台接口的问题 |
|||
|
@ -0,0 +1,13 @@ |
|||
module.exports = { |
|||
presets: [ |
|||
// https://github.com/vuejs/vue-cli/tree/master/packages/@vue/babel-preset-app
|
|||
'@vue/cli-plugin-babel/preset' |
|||
], |
|||
'env': { |
|||
'development': { |
|||
// babel-plugin-dynamic-import-node plugin only does one thing by converting all import() to require().
|
|||
// This plugin can significantly increase the speed of hot updates, when you have a large number of pages.
|
|||
'plugins': ['dynamic-import-node'] |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,12 @@ |
|||
@echo off |
|||
echo. |
|||
echo [信息] 打包Web工程,生成dist文件。 |
|||
echo. |
|||
|
|||
%~d0 |
|||
cd %~dp0 |
|||
|
|||
cd .. |
|||
npm run build:prod |
|||
|
|||
pause |
@ -0,0 +1,12 @@ |
|||
@echo off |
|||
echo. |
|||
echo [信息] 安装Web工程,生成node_modules文件。 |
|||
echo. |
|||
|
|||
%~d0 |
|||
cd %~dp0 |
|||
|
|||
cd .. |
|||
npm install --registry=https://registry.npm.taobao.org |
|||
|
|||
pause |
@ -0,0 +1,12 @@ |
|||
@echo off |
|||
echo. |
|||
echo [信息] 使用 Vue 运行 Web 工程。 |
|||
echo. |
|||
|
|||
%~d0 |
|||
cd %~dp0 |
|||
|
|||
cd .. |
|||
npm run dev |
|||
|
|||
pause |
@ -0,0 +1,35 @@ |
|||
const { run } = require('runjs') |
|||
const chalk = require('chalk') |
|||
const config = require('../vue.config.js') |
|||
const rawArgv = process.argv.slice(2) |
|||
const args = rawArgv.join(' ') |
|||
|
|||
if (process.env.npm_config_preview || rawArgv.includes('--preview')) { |
|||
const report = rawArgv.includes('--report') |
|||
|
|||
run(`vue-cli-service build ${args}`) |
|||
|
|||
const port = 9526 |
|||
const publicPath = config.publicPath |
|||
|
|||
var connect = require('connect') |
|||
var serveStatic = require('serve-static') |
|||
const app = connect() |
|||
|
|||
app.use( |
|||
publicPath, |
|||
serveStatic('./dist', { |
|||
index: ['index.html', '/'] |
|||
}) |
|||
) |
|||
|
|||
app.listen(port, function () { |
|||
console.log(chalk.green(`> Preview at http://localhost:${port}${publicPath}`)) |
|||
if (report) { |
|||
console.log(chalk.green(`> Report at http://localhost:${port}${publicPath}report.html`)) |
|||
} |
|||
|
|||
}) |
|||
} else { |
|||
run(`vue-cli-service build ${args}`) |
|||
} |
@ -0,0 +1,90 @@ |
|||
{ |
|||
"name": "gyszzsc", |
|||
"version": "3.5.0", |
|||
"description": "供应商资质应用管理系统", |
|||
"author": "qinshunyu", |
|||
"license": "MIT", |
|||
"scripts": { |
|||
"dev": "vue-cli-service serve", |
|||
"build:prod": "vue-cli-service build", |
|||
"build:stage": "vue-cli-service build --mode staging", |
|||
"preview": "node build/index.js --preview", |
|||
"lint": "eslint --ext .js,.vue src" |
|||
}, |
|||
"husky": { |
|||
"hooks": { |
|||
"pre-commit": "lint-staged" |
|||
} |
|||
}, |
|||
"lint-staged": { |
|||
"src/**/*.{js,vue}": [ |
|||
"eslint --fix", |
|||
"git add" |
|||
] |
|||
}, |
|||
"keywords": [ |
|||
"vue", |
|||
"admin", |
|||
"dashboard", |
|||
"element-ui", |
|||
"boilerplate", |
|||
"admin-template", |
|||
"management-system" |
|||
], |
|||
"repository": { |
|||
"type": "git", |
|||
"url": "https://gitee.com/y_project/RuoYi-Vue.git" |
|||
}, |
|||
"dependencies": { |
|||
"@riophae/vue-treeselect": "0.4.0", |
|||
"axios": "0.21.0", |
|||
"clipboard": "2.0.6", |
|||
"core-js": "3.8.1", |
|||
"echarts": "4.9.0", |
|||
"echarts-liquidfill": "^2.0.2", |
|||
"element-ui": "2.15.0", |
|||
"file-saver": "2.0.4", |
|||
"fuse.js": "6.4.3", |
|||
"highlight.js": "9.18.5", |
|||
"js-beautify": "1.13.0", |
|||
"js-cookie": "2.2.1", |
|||
"jsencrypt": "3.0.0-rc.1", |
|||
"node-sass": "^6.0.1", |
|||
"nprogress": "0.2.0", |
|||
"quill": "1.3.7", |
|||
"screenfull": "5.0.2", |
|||
"sortablejs": "1.10.2", |
|||
"vue": "2.6.12", |
|||
"vue-count-to": "1.0.13", |
|||
"vue-cropper": "0.5.5", |
|||
"vue-qr": "^2.4.0", |
|||
"vue-router": "3.4.9", |
|||
"vuedraggable": "2.24.3", |
|||
"vuex": "3.6.0" |
|||
}, |
|||
"devDependencies": { |
|||
"@vue/cli-plugin-babel": "4.4.6", |
|||
"@vue/cli-plugin-eslint": "4.4.6", |
|||
"@vue/cli-service": "4.4.6", |
|||
"babel-eslint": "10.1.0", |
|||
"chalk": "4.1.0", |
|||
"connect": "3.6.6", |
|||
"eslint": "7.15.0", |
|||
"eslint-plugin-vue": "7.2.0", |
|||
"lint-staged": "10.5.3", |
|||
"runjs": "4.4.2", |
|||
"sass": "1.32.0", |
|||
"sass-loader": "10.1.0", |
|||
"script-ext-html-webpack-plugin": "2.1.5", |
|||
"svg-sprite-loader": "5.1.1", |
|||
"vue-template-compiler": "2.6.12" |
|||
}, |
|||
"engines": { |
|||
"node": ">=8.9", |
|||
"npm": ">= 3.0.0" |
|||
}, |
|||
"browserslist": [ |
|||
"> 1%", |
|||
"last 2 versions" |
|||
] |
|||
} |
After Width: | Height: | Size: 4.2 KiB |
After Width: | Height: | Size: 436 KiB |
After Width: | Height: | Size: 197 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 9.7 KiB |
After Width: | Height: | Size: 4.2 KiB |
@ -0,0 +1,341 @@ |
|||
<!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="favicon.ico"> |
|||
<title>欢迎使用食品原料供应商资质检查系统</title> |
|||
<script src="jquery.min.js"></script> |
|||
</head> |
|||
<style> |
|||
html,body,h1,h2,h3,h4,h5,h6,div,dl,dt,dd,ul,ol,li,p,blockquote,pre,hr,figure,table,caption,th,td,form,fieldset,legend,input,button,textarea,menu { |
|||
margin: 0; |
|||
padding: 0; |
|||
} |
|||
body { |
|||
height: 100%; |
|||
-moz-osx-font-smoothing: grayscale; |
|||
-webkit-font-smoothing: antialiased; |
|||
text-rendering: optimizeLegibility; |
|||
font-family: Helvetica Neue, Helvetica, Arial, Microsoft Yahei, Hiragino Sans GB, Heiti SC, WenQuanYi Micro Hei, sans-serif; |
|||
} |
|||
|
|||
label { |
|||
font-weight: 700; |
|||
} |
|||
|
|||
html { |
|||
height: 100%; |
|||
box-sizing: border-box; |
|||
} |
|||
*, |
|||
*:before, |
|||
*:after { |
|||
box-sizing: inherit; |
|||
} |
|||
.flex-box { |
|||
display: -webkit-box; |
|||
display: -webkit-flex; |
|||
/* Safari */ |
|||
display: flex; |
|||
justify-content: center; |
|||
align-items: center; |
|||
} |
|||
.flex-box-column { |
|||
display: -webkit-box; |
|||
display: -webkit-flex; |
|||
/* Safari */ |
|||
display: flex; |
|||
justify-content: center; |
|||
align-items: center; |
|||
flex-direction: column; |
|||
} |
|||
.search-container { |
|||
position: relative; |
|||
width: 100vw; |
|||
min-height: 100%; |
|||
background-image: url('bg-invitation.png'); |
|||
background-repeat: no-repeat; |
|||
background-size: 100% 100%; |
|||
} |
|||
.content-block { |
|||
position: relative; |
|||
margin-top: 2vh; |
|||
width: 320px; |
|||
width: 93.5%; |
|||
color: #fff; |
|||
} |
|||
.content-box { |
|||
position: relative; |
|||
top:0; |
|||
width: 100%; |
|||
min-height: 200px; |
|||
padding: 15px; |
|||
margin-bottom: 15px; |
|||
word-wrap:break-word; |
|||
background: #FFFFFF; |
|||
border-radius: 10px; |
|||
box-shadow: 0px 4px 20px 0px rgba(65, 194, 252, 0.14), 0px 7px 13px 0px rgba(50, 147, 255, 0.52); |
|||
} |
|||
.content-box .content-title{ |
|||
margin-bottom: 8px; |
|||
font-size: 20px; |
|||
font-weight: 400; |
|||
color: #1F5C99; |
|||
line-height: 54px; |
|||
border-bottom: 1px dashed #D2E1EA; |
|||
} |
|||
.content-box .content-text { |
|||
font-size: 16px; |
|||
line-height: 44px; |
|||
color: #666666; |
|||
border-bottom: 1px dashed #D2E1EA; |
|||
overflow: hidden; |
|||
} |
|||
.content-box .content-text label{ |
|||
display: inline-block; |
|||
/* float: left; */ |
|||
width: 40%; |
|||
line-height: 34px; |
|||
font-weight: normal; |
|||
vertical-align: top; |
|||
} |
|||
.content-box .content-text span{ |
|||
display: block; |
|||
float: right; |
|||
width: 60%; |
|||
line-height: 34px; |
|||
color: #222222; |
|||
text-align: right; |
|||
} |
|||
.content-box .content-btn{ |
|||
margin-top: 70px; |
|||
} |
|||
.content-box .content-btn a{ |
|||
display: block; |
|||
width: 100%; |
|||
padding: 15px 0; |
|||
margin-bottom: 25px; |
|||
font-size: 18px; |
|||
color: #FFFFFF; |
|||
text-align: center; |
|||
text-decoration: none; |
|||
background: #30E3D8; |
|||
border-radius: 80px; |
|||
} |
|||
.content-box .content-btn a.btn-register{ |
|||
background: #3293FF; |
|||
} |
|||
.text-indent-1 { |
|||
text-indent:1em; |
|||
} |
|||
.beinvited-popup{ |
|||
position: absolute; |
|||
top: 0; |
|||
left: 0; |
|||
width: 100%; |
|||
height: 100%; |
|||
background: rgba(0, 0, 0, 0.5); |
|||
} |
|||
.beinvited-popup .content-box{ |
|||
position: absolute; |
|||
left: 8%; |
|||
top: 25%; |
|||
width: 84%; |
|||
box-shadow: none; |
|||
} |
|||
.content-box .content-text:last-child{ |
|||
border-bottom: 0 none; |
|||
} |
|||
.content-box .content-text span input{ |
|||
height: 30px; |
|||
text-align: right; |
|||
border: 0 none; |
|||
} |
|||
.content-box .content-text .num-code{ |
|||
float: right; |
|||
display: block; |
|||
width: 30%; |
|||
height: 44px; |
|||
margin-left: 8px; |
|||
} |
|||
.content-box .content-text .num-code img{ |
|||
width: 100%; |
|||
margin-top: 4px; |
|||
} |
|||
.content-box .content-text .input-code{ |
|||
width: 35%; |
|||
} |
|||
.content-box .content-text .input-code input{ |
|||
width: 100%; |
|||
} |
|||
.content-box{ |
|||
position: relative; |
|||
} |
|||
.content-box .content-close{ |
|||
position: absolute; |
|||
left: 50%; |
|||
margin-left: -18px; |
|||
bottom: -20%; |
|||
width: 36px; |
|||
} |
|||
.content-box .content-close a img{ |
|||
width: 100%; |
|||
} |
|||
.success-popup{ |
|||
position: absolute; |
|||
top: 0; |
|||
left: 0; |
|||
width: 100%; |
|||
height: 100%; |
|||
background: rgba(0, 0, 0, 0.5); |
|||
} |
|||
.success-popup .content-box{ |
|||
position: absolute; |
|||
left: 8%; |
|||
top: 25%; |
|||
width: 84%; |
|||
background: none; |
|||
box-shadow: none; |
|||
} |
|||
.success-popup .content-box .content-info img{ |
|||
width: 100%; |
|||
} |
|||
.success-popup .content-box .content-close { |
|||
position: absolute; |
|||
left: 50%; |
|||
margin-left: -18px; |
|||
bottom: -20%; |
|||
width: 36px; |
|||
} |
|||
.pic-item { |
|||
position: relative; |
|||
width: 146px; |
|||
height: 146px; |
|||
float: right; |
|||
} |
|||
</style> |
|||
<body> |
|||
<div class="search-container flex-box-column"> |
|||
<div class="content-block"> |
|||
<div class="content-box"> |
|||
<h3 class="content-title">企业信息</h3> |
|||
<div class="content-info" id="enterprise-info"> |
|||
<p class="content-text"><label>企业名称:</label></p><p class="content-text" style="color:#1F5C99" id="name"></p> |
|||
<div id="enterpriseOtherSwitch"> |
|||
<!-- <p class="content-text"><label>法人责任主体名称:</label><span id="nameLegalPersonLiabilitySubject"></span></p> --> |
|||
<p class="content-text"><label>法定代表人名称:</label></p><p class="content-text" id="nameLegalRepresentative"></p> |
|||
<!-- <p class="content-text"><label>法定代表人证件类型:</label><span id="typeLegalRepresentative"></span></p> --> |
|||
<p class="content-text"><label>法定代表人证件号码:</label><span id="certificateNumberLegalRepresentative"></span></p> |
|||
<!-- <p class="content-text"><label>统一社会信用代码类型:</label><span id="corporateUnifiedSocialCreditType"></span></p> --> |
|||
<p class="content-text"><label>统一社会信用代码:</label><span id="corporateUnifiedSocialCreditCode"></span></p> |
|||
<!-- <p class="content-text"><label>企业行业大类型:</label><span id="enterpriseIndustryBigType"></span></p> |
|||
<p class="content-text"><label>企业行业小类型:</label><span id="enterpriseIndustrySmallType"></span></p> --> |
|||
<p class="content-text"><label>企业类型:</label><span id="enterpriseType"></span></p> |
|||
<!-- <p class="content-text"><label>邮箱:</label><span id="email"></span></p> --> |
|||
<p class="content-text"><label>官网地址:</label><span id="websiteAddress"></span></p> |
|||
<!-- <p class="content-text"><label>电话:</label><span id="mobile"></span></p> --> |
|||
<p class="content-text"><label>详细地址:</label><span id="address"></span></p> |
|||
<!-- <p class="content-text"><label>企业注册地详细地址:</label><span id="placeRegistrationAddress"></span></p> --> |
|||
<!-- <p class="content-text"><label>认证资料类型:</label><span id="certificatedInformationType"></span></p> --> |
|||
<p class="content-text"><label>联系人姓名:</label><span id="duty"></span></p> |
|||
<p class="content-text"><label>联系方式:</label><span id="contactInformation"></span></p> |
|||
<p class="content-text"><label>备注:</label><span id="remarks"></span></p> |
|||
<p class="content-text"><label>企业logo:</label><img id="logo" src="" class="pic-item"></p> |
|||
<p class="content-text"><label>营业执照照片:</label><img id="companyImg" src="" class="pic-item"></p> |
|||
<!-- <p class="content-text"><label>法人证件正面照片:</label><img id="faceIdImg" src="" class="pic-item"></p> |
|||
<p class="content-text"><label>法人证件反面照片:</label><img id="rearIdImg" src="" class="pic-item"></p> --> |
|||
</div> |
|||
<div id="enterpriseDescribeSwitch"> |
|||
<p class="content-text"><label style="width:25%;">企业简介:</label><span style="width:74%;" id="enterpriseDescribe"></span></p> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</body> |
|||
<script> |
|||
var code = ''; |
|||
var uuid = ""; |
|||
var enterpriseid= ""; |
|||
var infoOpen = ''; |
|||
var baseUrlIp = "http://121.36.65.171:9527"; |
|||
var enterpriseTpyeOption = ['政府机关','研究机构','社会团体','企业事业单位'] |
|||
function getEnterpriseOptions () { |
|||
$.ajax({ |
|||
url: baseUrlIp + "/system/dict/data/type/enterprise_category", |
|||
type: "get", // 请求方式get / post |
|||
dataType: "json", // 数据类型 |
|||
// 请求成功后的回调函数 |
|||
success: function(res) { |
|||
if(res.code == 200){ |
|||
let data = res.data |
|||
} |
|||
|
|||
}, |
|||
error: function(err) { |
|||
console.log(err); |
|||
} |
|||
}); |
|||
} |
|||
|
|||
function enterpriseInfo(){ |
|||
var str = window.location.href.split('?')[1]; |
|||
if (!str) {return}; |
|||
enterpriseid=str.split('&')[0]; |
|||
if(enterpriseid.indexOf('=') == -1) { |
|||
return |
|||
} |
|||
enterpriseid = enterpriseid.split('=')[1] |
|||
$.ajax({ |
|||
url: baseUrlIp + "/system/enterpriseManager/selectEnterpriseParticularsByIdForH5?enterpriseid=" + enterpriseid,//调用根据企业ID获取企业信息接口 |
|||
type: "get", // 请求方式get / post |
|||
dataType: "json", // 数据类型 |
|||
// 请求成功后的回调函数 |
|||
success: function(res) { |
|||
if(res.code == 200){ |
|||
let data = res.data |
|||
for (const key in data) { |
|||
if (Object.hasOwnProperty.call(data, key)) { |
|||
const element = data[key]; |
|||
// if(key == 'enterpriseDescribeSwitch'){ |
|||
// console.log(111111); |
|||
// } |
|||
if(element != null && $("#"+key).length > 0){ |
|||
if(key == 'enterpriseDescribeSwitch' || key == 'enterpriseOtherSwitch') { |
|||
if(element == 0){ |
|||
$("#"+key).hide() |
|||
} else if(element == 1) { |
|||
$("#"+key).show() |
|||
} |
|||
} else if (key == 'logo' || key == 'companyImg' || key == 'faceIdImg' || key == 'rearIdImg') { |
|||
$("#"+key).attr('src',element) |
|||
} else if (key == 'enterpriseType') { |
|||
$("#"+key).text(enterpriseTpyeOption[element-1]) |
|||
} else { |
|||
$("#"+key).text(element) |
|||
} |
|||
|
|||
} |
|||
} |
|||
} |
|||
} else { |
|||
html +='<span style="color:#000;">error</span>'; |
|||
$('#enterprise-info').append(html); |
|||
} |
|||
|
|||
}, |
|||
error: function(err) { |
|||
console.log(err); |
|||
} |
|||
}); |
|||
} |
|||
// 默认加载验证码 |
|||
$(document).ready(function(){ |
|||
enterpriseInfo() |
|||
getEnterpriseOptions() |
|||
}) |
|||
|
|||
</script> |
|||
</html> |
@ -0,0 +1,351 @@ |
|||
<!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="favicon.ico"> |
|||
<title>供应商资质应用管理系统</title> |
|||
<script src="jquery.min.js"></script> |
|||
</head> |
|||
<style> |
|||
html,body,h1,h2,h3,h4,h5,h6,div,dl,dt,dd,ul,ol,li,p,blockquote,pre,hr,figure,table,caption,th,td,form,fieldset,legend,input,button,textarea,menu { |
|||
margin: 0; |
|||
padding: 0; |
|||
} |
|||
body { |
|||
height: 100%; |
|||
-moz-osx-font-smoothing: grayscale; |
|||
-webkit-font-smoothing: antialiased; |
|||
text-rendering: optimizeLegibility; |
|||
font-family: Helvetica Neue, Helvetica, Arial, Microsoft Yahei, Hiragino Sans GB, Heiti SC, WenQuanYi Micro Hei, sans-serif; |
|||
} |
|||
|
|||
label { |
|||
font-weight: 700; |
|||
} |
|||
|
|||
html { |
|||
height: 100%; |
|||
box-sizing: border-box; |
|||
} |
|||
*, |
|||
*:before, |
|||
*:after { |
|||
box-sizing: inherit; |
|||
} |
|||
.flex-box { |
|||
display: -webkit-box; |
|||
display: -webkit-flex; |
|||
/* Safari */ |
|||
display: flex; |
|||
justify-content: center; |
|||
align-items: center; |
|||
} |
|||
.flex-box-column { |
|||
display: -webkit-box; |
|||
display: -webkit-flex; |
|||
/* Safari */ |
|||
display: flex; |
|||
justify-content: center; |
|||
align-items: center; |
|||
flex-direction: column; |
|||
} |
|||
.search-container { |
|||
position: relative; |
|||
width: 100vw; |
|||
min-height: 100%; |
|||
background-image: url('bg-invitation.png'); |
|||
background-repeat: no-repeat; |
|||
background-size: 100% 100%; |
|||
} |
|||
.content-block { |
|||
position: relative; |
|||
margin-top: 2vh; |
|||
width: 320px; |
|||
width: 93.5%; |
|||
color: #fff; |
|||
} |
|||
.content-box { |
|||
position: relative; |
|||
top:0; |
|||
width: 100%; |
|||
min-height: 200px; |
|||
padding: 15px; |
|||
margin-bottom: 15px; |
|||
word-wrap:break-word; |
|||
background: #FFFFFF; |
|||
border-radius: 10px; |
|||
box-shadow: 0px 4px 20px 0px rgba(65, 194, 252, 0.14), 0px 7px 13px 0px rgba(50, 147, 255, 0.52); |
|||
} |
|||
.content-box .content-title{ |
|||
margin-bottom: 8px; |
|||
font-size: 20px; |
|||
font-weight: 400; |
|||
color: #1F5C99; |
|||
line-height: 54px; |
|||
border-bottom: 1px dashed #D2E1EA; |
|||
} |
|||
.content-box .content-text { |
|||
font-size: 14px; |
|||
/* line-height: 40px; */ |
|||
color: #666666; |
|||
/* border-bottom: 1px dashed #D2E1EA; */ |
|||
overflow: hidden; |
|||
} |
|||
.content-box .content-text-content { |
|||
position: relative; |
|||
font-size: 16px; |
|||
line-height: 44px; |
|||
color: #1F5C99; |
|||
border-bottom: 1px dashed #D2E1EA; |
|||
overflow: hidden; |
|||
} |
|||
.content-box .content-text label{ |
|||
display: inline-block; |
|||
/* float: left; */ |
|||
/* width: 40%; */ |
|||
font-weight: 600; |
|||
line-height: 34px; |
|||
vertical-align: top; |
|||
} |
|||
.content-box .content-text span{ |
|||
display: block; |
|||
float: right; |
|||
width: 60%; |
|||
line-height: 34px; |
|||
color: #222222; |
|||
text-align: right; |
|||
} |
|||
.content-box .content-btn{ |
|||
margin-top: 70px; |
|||
} |
|||
.content-box .content-btn a{ |
|||
display: block; |
|||
width: 100%; |
|||
padding: 15px 0; |
|||
margin-bottom: 25px; |
|||
font-size: 18px; |
|||
color: #FFFFFF; |
|||
text-align: center; |
|||
text-decoration: none; |
|||
background: #30E3D8; |
|||
border-radius: 80px; |
|||
} |
|||
.content-box .content-btn a.btn-register{ |
|||
background: #3293FF; |
|||
} |
|||
.text-indent-1 { |
|||
text-indent:1em; |
|||
} |
|||
.beinvited-popup{ |
|||
position: absolute; |
|||
top: 0; |
|||
left: 0; |
|||
width: 100%; |
|||
height: 100%; |
|||
background: rgba(0, 0, 0, 0.5); |
|||
} |
|||
.beinvited-popup .content-box{ |
|||
position: absolute; |
|||
left: 8%; |
|||
top: 25%; |
|||
width: 84%; |
|||
box-shadow: none; |
|||
} |
|||
.content-box .content-text:last-child{ |
|||
border-bottom: 0 none; |
|||
} |
|||
.content-box .content-text span input{ |
|||
height: 30px; |
|||
text-align: right; |
|||
border: 0 none; |
|||
} |
|||
.content-box .content-text .num-code{ |
|||
float: right; |
|||
display: block; |
|||
width: 30%; |
|||
height: 44px; |
|||
margin-left: 8px; |
|||
} |
|||
.content-box .content-text .num-code img{ |
|||
width: 100%; |
|||
margin-top: 4px; |
|||
} |
|||
.content-box .content-text .input-code{ |
|||
width: 35%; |
|||
} |
|||
.content-box .content-text .input-code input{ |
|||
width: 100%; |
|||
} |
|||
.content-box{ |
|||
position: relative; |
|||
} |
|||
.content-box .content-close{ |
|||
position: absolute; |
|||
left: 50%; |
|||
margin-left: -18px; |
|||
bottom: -20%; |
|||
width: 36px; |
|||
} |
|||
.content-box .content-close a img{ |
|||
width: 100%; |
|||
} |
|||
.success-popup{ |
|||
position: absolute; |
|||
top: 0; |
|||
left: 0; |
|||
width: 100%; |
|||
height: 100%; |
|||
background: rgba(0, 0, 0, 0.5); |
|||
} |
|||
.success-popup .content-box{ |
|||
position: absolute; |
|||
left: 8%; |
|||
top: 25%; |
|||
width: 84%; |
|||
background: none; |
|||
box-shadow: none; |
|||
} |
|||
.success-popup .content-box .content-info img{ |
|||
width: 100%; |
|||
} |
|||
.success-popup .content-box .content-close { |
|||
position: absolute; |
|||
left: 50%; |
|||
margin-left: -18px; |
|||
bottom: -20%; |
|||
width: 36px; |
|||
} |
|||
.pic-item { |
|||
position: relative; |
|||
width: 146px; |
|||
height: 146px; |
|||
} |
|||
</style> |
|||
<body> |
|||
<div class="search-container flex-box-column"> |
|||
<div class="content-block"> |
|||
<div class="content-box"> |
|||
<h3 class="content-title">企业信息</h3> |
|||
<div class="content-info" id="enterprise-info"> |
|||
<p class="content-text"><label>企业名称:</label></p> |
|||
<p class="content-text-content" id="name"></p> |
|||
<div id="enterpriseOtherSwitch"> |
|||
<p class="content-text"><label>法定代表人名称:</label></p> |
|||
<p class="content-text-content" id="nameLegalRepresentative"></p> |
|||
<p class="content-text"><label>法定代表人证件号码:</label></p> |
|||
<p class="content-text-content" id="certificateNumberLegalRepresentative"></p> |
|||
<p class="content-text"><label>统一社会信用代码:</label></p> |
|||
<p class="content-text-content" id="corporateUnifiedSocialCreditCode"></p> |
|||
<p class="content-text"><label>企业类型:</label></p> |
|||
<p class="content-text-content" id="enterpriseType"></p> |
|||
<p class="content-text"><label>官网地址:</label></p> |
|||
<p class="content-text-content" id="websiteAddress"></p> |
|||
<p class="content-text"><label>详细地址:</label></p> |
|||
<p class="content-text-content" id="address"></p> |
|||
<p class="content-text"><label>联系人姓名:</label></p> |
|||
<p class="content-text-content" id="duty"></p> |
|||
<p class="content-text"><label>联系方式:</label></p> |
|||
<p class="content-text-content" id="contactInformation"></p> |
|||
<p class="content-text"><label>备注:</label></p> |
|||
<p class="content-text-content" id="remarks"></p> |
|||
<p class="content-text"><label>企业logo:</label></p> |
|||
<p class="content-text-content"><img id="logo" src="" class="pic-item"></p> |
|||
<p class="content-text"><label>营业执照照片:</label></p> |
|||
<p class="content-text-content"><img id="companyImg" src="" class="pic-item"></p> |
|||
|
|||
</div> |
|||
<div id="enterpriseDescribeSwitch"> |
|||
<p class="content-text"><label>企业简介:</label></span></p> |
|||
<p class="content-text-content" id="enterpriseDescribe"></p> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</body> |
|||
<script> |
|||
var code = ''; |
|||
var uuid = ""; |
|||
var enterpriseid= ""; |
|||
var infoOpen = ''; |
|||
var baseUrlIp = "http://124.70.15.185:9527"; |
|||
var enterpriseTpyeOption = ['政府机关','研究机构','社会团体','企业事业单位'] |
|||
function getEnterpriseOptions () { |
|||
$.ajax({ |
|||
url: baseUrlIp + "/system/dict/data/type/enterprise_category", |
|||
type: "get", // 请求方式get / post |
|||
dataType: "json", // 数据类型 |
|||
// 请求成功后的回调函数 |
|||
success: function(res) { |
|||
if(res.code == 200){ |
|||
let data = res.data |
|||
} |
|||
|
|||
}, |
|||
error: function(err) { |
|||
console.log(err); |
|||
} |
|||
}); |
|||
} |
|||
|
|||
function enterpriseInfo(){ |
|||
var str = window.location.href.split('?')[1]; |
|||
if (!str) {return}; |
|||
enterpriseid=str.split('&')[0]; |
|||
if(enterpriseid.indexOf('=') == -1) { |
|||
return |
|||
} |
|||
enterpriseid = enterpriseid.split('=')[1] |
|||
$.ajax({ |
|||
url: baseUrlIp + "/system/enterpriseManager/selectEnterpriseParticularsByIdForH5?enterpriseid=" + enterpriseid,//调用根据企业ID获取企业信息接口 |
|||
type: "get", // 请求方式get / post |
|||
dataType: "json", // 数据类型 |
|||
// 请求成功后的回调函数 |
|||
success: function(res) { |
|||
if(res.code == 200){ |
|||
let data = res.data |
|||
for (const key in data) { |
|||
if (Object.hasOwnProperty.call(data, key)) { |
|||
const element = data[key]; |
|||
// if(key == 'enterpriseDescribeSwitch'){ |
|||
// console.log(111111); |
|||
// } |
|||
if(element != null && $("#"+key).length > 0){ |
|||
if(key == 'enterpriseDescribeSwitch' || key == 'enterpriseOtherSwitch') { |
|||
if(element == 0){ |
|||
$("#"+key).hide() |
|||
} else if(element == 1) { |
|||
$("#"+key).show() |
|||
} |
|||
} else if (key == 'logo' || key == 'companyImg' || key == 'faceIdImg' || key == 'rearIdImg') { |
|||
$("#"+key).attr('src',element) |
|||
} else if (key == 'enterpriseType') { |
|||
$("#"+key).text(enterpriseTpyeOption[element-1]) |
|||
} else { |
|||
$("#"+key).text(element) |
|||
} |
|||
|
|||
} |
|||
} |
|||
} |
|||
} else { |
|||
html +='<span style="color:#000;">error</span>'; |
|||
$('#enterprise-info').append(html); |
|||
} |
|||
|
|||
}, |
|||
error: function(err) { |
|||
console.log(err); |
|||
} |
|||
}); |
|||
} |
|||
// 默认加载验证码 |
|||
$(document).ready(function(){ |
|||
enterpriseInfo() |
|||
// getEnterpriseOptions() |
|||
}) |
|||
|
|||
</script> |
|||
</html> |
@ -0,0 +1,448 @@ |
|||
<!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="favicon.ico"> |
|||
<title>供应商资质应用管理系统</title> |
|||
<script src="jquery.min.js"></script> |
|||
</head> |
|||
<style> |
|||
html,body,h1,h2,h3,h4,h5,h6,div,dl,dt,dd,ul,ol,li,p,blockquote,pre,hr,figure,table,caption,th,td,form,fieldset,legend,input,button,textarea,menu { |
|||
margin: 0; |
|||
padding: 0; |
|||
} |
|||
body { |
|||
height: 100%; |
|||
-moz-osx-font-smoothing: grayscale; |
|||
-webkit-font-smoothing: antialiased; |
|||
text-rendering: optimizeLegibility; |
|||
font-family: Helvetica Neue, Helvetica, Arial, Microsoft Yahei, Hiragino Sans GB, Heiti SC, WenQuanYi Micro Hei, sans-serif; |
|||
} |
|||
|
|||
label { |
|||
font-weight: 700; |
|||
} |
|||
|
|||
html { |
|||
height: 100%; |
|||
box-sizing: border-box; |
|||
} |
|||
*, |
|||
*:before, |
|||
*:after { |
|||
box-sizing: inherit; |
|||
} |
|||
.flex-box { |
|||
display: -webkit-box; |
|||
display: -webkit-flex; |
|||
/* Safari */ |
|||
display: flex; |
|||
justify-content: center; |
|||
align-items: center; |
|||
} |
|||
.flex-box-column { |
|||
display: -webkit-box; |
|||
display: -webkit-flex; |
|||
/* Safari */ |
|||
display: flex; |
|||
justify-content: center; |
|||
align-items: center; |
|||
flex-direction: column; |
|||
} |
|||
.search-container { |
|||
position: relative; |
|||
width: 100vw; |
|||
min-height: 100%; |
|||
background-image: url('bg-invitation.png'); |
|||
background-repeat: no-repeat; |
|||
background-size: 100% 100%; |
|||
} |
|||
.content-block { |
|||
position: relative; |
|||
margin-top: 42vh; |
|||
width: 320px; |
|||
width: 93.5%; |
|||
color: #fff; |
|||
} |
|||
.content-box { |
|||
position: relative; |
|||
top:0; |
|||
width: 100%; |
|||
min-height: 200px; |
|||
padding: 15px; |
|||
margin-bottom: 15px; |
|||
word-wrap:break-word; |
|||
background: #FFFFFF; |
|||
border-radius: 10px; |
|||
box-shadow: 0px 4px 20px 0px rgba(65, 194, 252, 0.14), 0px 7px 13px 0px rgba(50, 147, 255, 0.52); |
|||
} |
|||
.content-box .content-title{ |
|||
margin-bottom: 8px; |
|||
font-size: 20px; |
|||
font-weight: 400; |
|||
color: #1F5C99; |
|||
line-height: 54px; |
|||
border-bottom: 1px dashed #D2E1EA; |
|||
} |
|||
.content-box .content-text { |
|||
font-size: 16px; |
|||
line-height: 44px; |
|||
color: #666666; |
|||
border-bottom: 1px dashed #D2E1EA; |
|||
overflow: hidden; |
|||
} |
|||
.content-box .content-text label{ |
|||
line-height: 34px; |
|||
font-weight: normal; |
|||
vertical-align: top; |
|||
} |
|||
.content-box .content-text span{ |
|||
display: block; |
|||
float: right; |
|||
/* max-width: 60%; */ |
|||
padding-right: 5px; |
|||
line-height: 34px; |
|||
color: #222222; |
|||
text-align: right; |
|||
} |
|||
.content-box .content-btn{ |
|||
margin-top: 70px; |
|||
} |
|||
.content-box .content-btn a{ |
|||
display: block; |
|||
width: 100%; |
|||
padding: 15px 0; |
|||
margin-bottom: 25px; |
|||
font-size: 18px; |
|||
color: #FFFFFF; |
|||
text-align: center; |
|||
text-decoration: none; |
|||
background: #30E3D8; |
|||
border-radius: 80px; |
|||
} |
|||
.content-box .content-btn a.btn-register{ |
|||
background: #3293FF; |
|||
} |
|||
.text-indent-1 { |
|||
text-indent:1em; |
|||
} |
|||
.beinvited-popup{ |
|||
position: absolute; |
|||
top: 0; |
|||
left: 0; |
|||
width: 100%; |
|||
height: 100%; |
|||
background: rgba(0, 0, 0, 0.5); |
|||
} |
|||
.beinvited-popup .content-box{ |
|||
position: absolute; |
|||
left: 8%; |
|||
top: 25%; |
|||
width: 84%; |
|||
box-shadow: none; |
|||
} |
|||
.content-box .content-text:last-child{ |
|||
border-bottom: 0 none; |
|||
} |
|||
.content-box .content-text span input{ |
|||
height: 30px; |
|||
text-align: right; |
|||
border: 0 none; |
|||
} |
|||
.content-box .content-text .num-code{ |
|||
float: right; |
|||
display: block; |
|||
width: 30%; |
|||
height: 44px; |
|||
margin-left: 8px; |
|||
} |
|||
.content-box .content-text .num-code img{ |
|||
width: 100%; |
|||
margin-top: 4px; |
|||
} |
|||
.content-box .content-text .input-code{ |
|||
width: 39%; |
|||
} |
|||
.content-box .content-text .input-code input{ |
|||
width: 100%; |
|||
} |
|||
.content-box{ |
|||
position: relative; |
|||
} |
|||
.content-box .content-close{ |
|||
position: absolute; |
|||
left: 50%; |
|||
margin-left: -18px; |
|||
bottom: -20%; |
|||
width: 36px; |
|||
} |
|||
.content-box .content-close a img{ |
|||
width: 100%; |
|||
} |
|||
.success-popup{ |
|||
position: absolute; |
|||
top: 0; |
|||
left: 0; |
|||
width: 100%; |
|||
height: 100%; |
|||
background: rgba(0, 0, 0, 0.5); |
|||
} |
|||
.success-popup .content-box{ |
|||
position: absolute; |
|||
left: 8%; |
|||
top: 25%; |
|||
width: 84%; |
|||
background: none; |
|||
box-shadow: none; |
|||
} |
|||
.success-popup .content-box .content-info img{ |
|||
width: 100%; |
|||
} |
|||
.success-popup .content-box .content-close { |
|||
position: absolute; |
|||
left: 50%; |
|||
margin-left: -18px; |
|||
bottom: -20%; |
|||
width: 36px; |
|||
} |
|||
</style> |
|||
<body> |
|||
<div class="search-container flex-box-column"> |
|||
<div class="content-block"> |
|||
<div class="content-box"> |
|||
<h3 class="content-title">申请企业信息</h3> |
|||
<div class="content-info" id="enterprise-info"> |
|||
|
|||
</div> |
|||
<div class="content-btn"> |
|||
<a href="javascript:;" class="btn-invitate">登录并接受申请</a> |
|||
<!-- <a href="javascript:;" class="btn-register">去注册</a> --> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<!-- 受邀企业弹窗 --> |
|||
<div class="beinvited-popup" id="beinvited-popup" style="display: none;"> |
|||
<div class="content-box"> |
|||
<h3 class="content-title">受邀企业</h3> |
|||
<div class="content-info"> |
|||
<form class="content-form" action="#" method="GET" name="content-form"> |
|||
<p class="content-text"><label>用户名:</label><span><input type="text" name="name" id="name" placeholder="请输入用户名"></span></p> |
|||
<p class="content-text"><label>密码:<label><span><input type="password" name="password" id="password" placeholder="请输入密码"></span></p> |
|||
<p class="content-text"> |
|||
<label>验证码:</label> |
|||
<span class="input-code"><input type="text" name="vcode" id="vcode" placeholder="请输入验证码"></span> |
|||
<strong class="num-code"></strong> |
|||
</p> |
|||
</form> |
|||
</div> |
|||
<div class="content-btn"> |
|||
<a href="javascript:;" class="btn-accept">接受申请</a> |
|||
</div> |
|||
<div class="content-close"> |
|||
<a href="javascript:;" class="btn-close"><img src="close.png" alt=""></a> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<!-- 受邀企业注册成功提示弹窗 --> |
|||
<div class="success-popup" id="success-popup" style="display: none;"> |
|||
<div class="content-box"> |
|||
<div class="content-info"> |
|||
<img src="bg-success-popup.png" alt=""> |
|||
</div> |
|||
<div class="content-close"> |
|||
<a href="javascript:;" class="btn-close"><img src="close.png" alt=""></a> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</body> |
|||
<script> |
|||
var code = ''; |
|||
var uuid = ""; |
|||
var enterpriseid= ""; |
|||
var infoOpen = ''; |
|||
var baseUrlIp = "http://121.36.65.171:9527"; |
|||
var registerIP = "http://121.36.65.171:8778" |
|||
|
|||
// 点击 去注册 按钮,复制链接并去浏览器打开 |
|||
$(".btn-register").click(function(){ |
|||
var input = $("<input value = "+ registerIP +">"); |
|||
$("body").prepend(input); |
|||
$("body").find("input").eq(0).select(); |
|||
document.execCommand("copy"); |
|||
$("body").find("input").eq(0).remove(); |
|||
alert("请到浏览器粘贴并打开链接 "+ registerIP); |
|||
}); |
|||
// 点击 登录并接受邀请 按钮,打开受邀企业弹窗 |
|||
$(".btn-invitate").click(function(){ |
|||
if($("#beinvited-popup").css("display")=="none"){ |
|||
$("#beinvited-popup").show(); |
|||
} |
|||
}); |
|||
// 点击 接受邀请弹窗-关闭按钮,关闭弹窗 |
|||
$(".beinvited-popup .btn-close").click(function(){ |
|||
if($("#beinvited-popup").css("display")=="block"){ |
|||
$("#beinvited-popup").hide(); |
|||
} |
|||
}); |
|||
// 点击 受邀企业成功提示弹窗-关闭按钮,关闭弹窗 |
|||
$(".success-popup .btn-close").click(function(){ |
|||
if($("#success-popup").css("display")=="block"){ |
|||
$("#success-popup").hide(); |
|||
} |
|||
}); |
|||
// 默认加载验证码 |
|||
$(document).ready(function(res){ |
|||
$.ajax({ |
|||
url: baseUrlIp + "/captchaImage",//调用获取验证码接口 |
|||
type: "get", // 请求方式get / post |
|||
dataType: "json", // 数据类型 |
|||
// 请求成功后的回调函数 |
|||
success: function(res) { |
|||
uuid=res.uuid; |
|||
if(res.code == 200){ |
|||
// data后台返回来的数据 |
|||
var html = ''; |
|||
html +='<img id="imgUrl" src="data:gif;base64,'+ res.img +'" alt="">' |
|||
} else { |
|||
html +='<span style="color:#000;">error</span>'; |
|||
} |
|||
// append 结尾插入内容 |
|||
$(".num-code").append(html); |
|||
|
|||
}, |
|||
error: function(err) { |
|||
console.log(err); |
|||
} |
|||
}); |
|||
}) |
|||
// 刷新验证码 |
|||
$(".num-code").click(function(){ |
|||
$.ajax({ |
|||
url: baseUrlIp + "/captchaImage", |
|||
type: "get", // 请求方式get / post |
|||
dataType: "json", // 数据类型 |
|||
// 请求成功后的回调函数 |
|||
success: function(res) { |
|||
$("#imgUrl").attr("src","data:gif;base64,"+ res.img) |
|||
uuid=res.uuid; |
|||
}, |
|||
error: function(err) { |
|||
console.log(err); |
|||
} |
|||
}); |
|||
}); |
|||
// 点击 接受邀请 按钮,提交验证 |
|||
$(".btn-accept").click(function(){ |
|||
var name = $('input[name=name]').val(); |
|||
var password = $('input[name=password]').val(); |
|||
var vcode = $('input[name=vcode]').val(); |
|||
if($.trim(name)==''){ |
|||
alert("请输入用户名") |
|||
$('input[name=name]').focus() |
|||
return false |
|||
} |
|||
if($.trim(password)==''){ |
|||
alert("请输入密码") |
|||
$('input[name=password]').focus() |
|||
return false |
|||
} |
|||
if($.trim(vcode)==''){ |
|||
alert("请输入验证码") |
|||
$('input[name=vcode]').focus() |
|||
return false |
|||
} |
|||
|
|||
const data = { |
|||
username:name, |
|||
password, |
|||
code:vcode, |
|||
uuid |
|||
} |
|||
|
|||
$.ajax({ |
|||
url: baseUrlIp + "/login",//调用登录接口 |
|||
type: "post", // 请求方式get / post |
|||
dataType: "json", // 数据类型 |
|||
contentType : "application/json;charset=utf-8", |
|||
data : JSON.stringify(data), |
|||
// 请求成功后的回调函数 |
|||
success: function(res) { |
|||
var token = res.token; |
|||
if(res.code == 200){ |
|||
const dataT = { |
|||
enterpriseId:parseInt(enterpriseid), |
|||
isItPublic:infoOpen |
|||
} |
|||
$.ajax({ |
|||
url: baseUrlIp + "/system/enterprise/acceptInvitation",//调用接受邀请接口 |
|||
type: "post", // 请求方式get / post |
|||
dataType: "json", // 数据类型 |
|||
contentType : "application/json;charset=utf-8", |
|||
data: JSON.stringify(dataT ), |
|||
headers: { |
|||
'Authorization': token, |
|||
}, |
|||
// 请求成功后的回调函数 |
|||
success: function(res) { |
|||
if(res.code == 200){ |
|||
$("#success-popup").show() |
|||
$("#beinvited-popup").hide() |
|||
} else { |
|||
alert(res.msg) |
|||
} |
|||
}, |
|||
error: function(err) { |
|||
console.log(err); |
|||
} |
|||
}); |
|||
} else { |
|||
alert(res.msg) |
|||
} |
|||
}, |
|||
error: function(err) { |
|||
console.log(err); |
|||
} |
|||
}); |
|||
}); |
|||
|
|||
function enterpriseInfo(){ |
|||
var str = window.location.href.split('?')[1]; |
|||
if (!str) {return}; |
|||
enterpriseid=str.split('&')[0]; |
|||
if(enterpriseid.indexOf('=') == -1) { |
|||
return |
|||
} |
|||
enterpriseid = enterpriseid.split('=')[1] |
|||
infoOpen=str.split('&')[1]; |
|||
if(infoOpen.indexOf('=') == -1) { |
|||
return |
|||
} |
|||
infoOpen = infoOpen.split('=')[1] |
|||
$.ajax({ |
|||
url: baseUrlIp + "/system/enterpriseManager/selectEnterpriseByIdForH5?enterpriseid=" + enterpriseid,//调用根据企业ID获取企业信息接口 |
|||
type: "get", // 请求方式get / post |
|||
dataType: "json", // 数据类型 |
|||
// 请求成功后的回调函数 |
|||
success: function(res) { |
|||
if(res.code == 200){ |
|||
// data后台返回来的数据 |
|||
var html = ''; |
|||
html +='<p class="content-text"><label>企业名称:</label><span id="enterprise_name">'+ res.data.name +'</span></p>' |
|||
+'<p class="content-text"><label>法定代表人名称:</label><span id="enterprise_person">'+ res.data.nameLegalRepresentative +'</span></p>' |
|||
} else { |
|||
html +='<span style="color:#000;">error</span>'; |
|||
} |
|||
// append 结尾插入内容 |
|||
$('#enterprise-info').append(html); |
|||
}, |
|||
error: function(err) { |
|||
console.log(err); |
|||
} |
|||
}); |
|||
} |
|||
enterpriseInfo() |
|||
</script> |
|||
</html> |
@ -0,0 +1,208 @@ |
|||
<!DOCTYPE html> |
|||
<html> |
|||
<head> |
|||
<meta charset="utf-8"> |
|||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
|||
<meta name="renderer" content="webkit"> |
|||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> |
|||
<link rel="icon" href="<%= BASE_URL %>favicon.ico"> |
|||
<title><%= webpackConfig.name %></title> |
|||
<!--[if lt IE 11]><script>window.location.href='/html/ie.html';</script><![endif]--> |
|||
</head> |
|||
<style> |
|||
html, |
|||
body, |
|||
#app { |
|||
height: 100%; |
|||
margin: 0px; |
|||
padding: 0px; |
|||
} |
|||
.chromeframe { |
|||
margin: 0.2em 0; |
|||
background: #ccc; |
|||
color: #000; |
|||
padding: 0.2em 0; |
|||
} |
|||
|
|||
#loader-wrapper { |
|||
position: fixed; |
|||
top: 0; |
|||
left: 0; |
|||
width: 100%; |
|||
height: 100%; |
|||
z-index: 999999; |
|||
} |
|||
|
|||
#loader { |
|||
display: block; |
|||
position: relative; |
|||
left: 50%; |
|||
top: 50%; |
|||
width: 150px; |
|||
height: 150px; |
|||
margin: -75px 0 0 -75px; |
|||
border-radius: 50%; |
|||
border: 3px solid transparent; |
|||
border-top-color: #FFF; |
|||
-webkit-animation: spin 2s linear infinite; |
|||
-ms-animation: spin 2s linear infinite; |
|||
-moz-animation: spin 2s linear infinite; |
|||
-o-animation: spin 2s linear infinite; |
|||
animation: spin 2s linear infinite; |
|||
z-index: 1001; |
|||
} |
|||
|
|||
#loader:before { |
|||
content: ""; |
|||
position: absolute; |
|||
top: 5px; |
|||
left: 5px; |
|||
right: 5px; |
|||
bottom: 5px; |
|||
border-radius: 50%; |
|||
border: 3px solid transparent; |
|||
border-top-color: #FFF; |
|||
-webkit-animation: spin 3s linear infinite; |
|||
-moz-animation: spin 3s linear infinite; |
|||
-o-animation: spin 3s linear infinite; |
|||
-ms-animation: spin 3s linear infinite; |
|||
animation: spin 3s linear infinite; |
|||
} |
|||
|
|||
#loader:after { |
|||
content: ""; |
|||
position: absolute; |
|||
top: 15px; |
|||
left: 15px; |
|||
right: 15px; |
|||
bottom: 15px; |
|||
border-radius: 50%; |
|||
border: 3px solid transparent; |
|||
border-top-color: #FFF; |
|||
-moz-animation: spin 1.5s linear infinite; |
|||
-o-animation: spin 1.5s linear infinite; |
|||
-ms-animation: spin 1.5s linear infinite; |
|||
-webkit-animation: spin 1.5s linear infinite; |
|||
animation: spin 1.5s linear infinite; |
|||
} |
|||
|
|||
|
|||
@-webkit-keyframes spin { |
|||
0% { |
|||
-webkit-transform: rotate(0deg); |
|||
-ms-transform: rotate(0deg); |
|||
transform: rotate(0deg); |
|||
} |
|||
100% { |
|||
-webkit-transform: rotate(360deg); |
|||
-ms-transform: rotate(360deg); |
|||
transform: rotate(360deg); |
|||
} |
|||
} |
|||
|
|||
@keyframes spin { |
|||
0% { |
|||
-webkit-transform: rotate(0deg); |
|||
-ms-transform: rotate(0deg); |
|||
transform: rotate(0deg); |
|||
} |
|||
100% { |
|||
-webkit-transform: rotate(360deg); |
|||
-ms-transform: rotate(360deg); |
|||
transform: rotate(360deg); |
|||
} |
|||
} |
|||
|
|||
|
|||
#loader-wrapper .loader-section { |
|||
position: fixed; |
|||
top: 0; |
|||
width: 51%; |
|||
height: 100%; |
|||
background: #7171C6; |
|||
z-index: 1000; |
|||
-webkit-transform: translateX(0); |
|||
-ms-transform: translateX(0); |
|||
transform: translateX(0); |
|||
} |
|||
|
|||
#loader-wrapper .loader-section.section-left { |
|||
left: 0; |
|||
} |
|||
|
|||
#loader-wrapper .loader-section.section-right { |
|||
right: 0; |
|||
} |
|||
|
|||
|
|||
.loaded #loader-wrapper .loader-section.section-left { |
|||
-webkit-transform: translateX(-100%); |
|||
-ms-transform: translateX(-100%); |
|||
transform: translateX(-100%); |
|||
-webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000); |
|||
transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000); |
|||
} |
|||
|
|||
.loaded #loader-wrapper .loader-section.section-right { |
|||
-webkit-transform: translateX(100%); |
|||
-ms-transform: translateX(100%); |
|||
transform: translateX(100%); |
|||
-webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000); |
|||
transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000); |
|||
} |
|||
|
|||
.loaded #loader { |
|||
opacity: 0; |
|||
-webkit-transition: all 0.3s ease-out; |
|||
transition: all 0.3s ease-out; |
|||
} |
|||
|
|||
.loaded #loader-wrapper { |
|||
visibility: hidden; |
|||
-webkit-transform: translateY(-100%); |
|||
-ms-transform: translateY(-100%); |
|||
transform: translateY(-100%); |
|||
-webkit-transition: all 0.3s 1s ease-out; |
|||
transition: all 0.3s 1s ease-out; |
|||
} |
|||
|
|||
.no-js #loader-wrapper { |
|||
display: none; |
|||
} |
|||
|
|||
.no-js h1 { |
|||
color: #222222; |
|||
} |
|||
|
|||
#loader-wrapper .load_title { |
|||
font-family: 'Open Sans'; |
|||
color: #FFF; |
|||
font-size: 19px; |
|||
width: 100%; |
|||
text-align: center; |
|||
z-index: 9999999999999; |
|||
position: absolute; |
|||
top: 60%; |
|||
opacity: 1; |
|||
line-height: 30px; |
|||
} |
|||
|
|||
#loader-wrapper .load_title span { |
|||
font-weight: normal; |
|||
font-style: italic; |
|||
font-size: 13px; |
|||
color: #FFF; |
|||
opacity: 0.5; |
|||
} |
|||
</style> |
|||
<body> |
|||
<div id="app"> |
|||
<div id="loader-wrapper"> |
|||
<div id="loader"></div> |
|||
<div class="loader-section section-left"></div> |
|||
<div class="loader-section section-right"></div> |
|||
<div class="load_title">正在加载系统资源,请耐心等待</div> |
|||
</div> |
|||
</div> |
|||
</body> |
|||
</html> |
@ -0,0 +1,2 @@ |
|||
User-agent: * |
|||
Disallow: / |
@ -0,0 +1,11 @@ |
|||
<template> |
|||
<div id="app"> |
|||
<router-view /> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
export default { |
|||
name: 'App' |
|||
} |
|||
</script> |
@ -0,0 +1,30 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
// 获取需要审核企业列表
|
|||
export function getAuditEnterpriseList(query) { |
|||
return request({ |
|||
url: '/system/enterpriseManager/getAuditEnterpriseList', |
|||
method: 'get', |
|||
params: query |
|||
}) |
|||
} |
|||
|
|||
|
|||
// 企业通过审核
|
|||
export function passAuditEnterprise(query) { |
|||
return request({ |
|||
url: '/system/enterpriseManager/auditEnterprise', |
|||
method: 'post', |
|||
data:query |
|||
}) |
|||
} |
|||
|
|||
// 驳回企业审核
|
|||
export function turnDownEnterprise(query) { |
|||
return request({ |
|||
url: '/system/enterpriseManager/turnDownEnterprise', |
|||
method: 'post', |
|||
data:query |
|||
}) |
|||
} |
|||
|
@ -0,0 +1,65 @@ |
|||
|
|||
|
|||
import request from '@/utils/request' |
|||
|
|||
// 申请加入组织列表
|
|||
export function applyToJoinList(query) { |
|||
return request({ |
|||
url: '/system/dept/applyToJoinList', |
|||
method: 'post', |
|||
data: query |
|||
}) |
|||
} |
|||
// 根据cryptoDeptId查看组织
|
|||
export function getDeptByCryptoDeptId(query) { |
|||
return request({ |
|||
url: '/system/dept/getDeptByCryptoDeptId', |
|||
method: 'post', |
|||
data: query |
|||
}) |
|||
} |
|||
|
|||
|
|||
// 审核申请加入组织列表
|
|||
export function applyToJoin(query) { |
|||
return request({ |
|||
url: '/system/dept/applyToJoin', |
|||
method: 'post', |
|||
data: query |
|||
}) |
|||
} |
|||
// 申请加入组织列表
|
|||
export function selfCreatedList(query) { |
|||
return request({ |
|||
url: '/system/dept/selfCreatedList', |
|||
method: 'post', |
|||
data: query |
|||
}) |
|||
} |
|||
|
|||
// 创建根节点
|
|||
export function createNewRootNode(query) { |
|||
return request({ |
|||
url: '/system/dept/createNewRootNode', |
|||
method: 'post', |
|||
data: query |
|||
}) |
|||
} |
|||
|
|||
// 同意申请加入组织
|
|||
export function agreeApplyToJoin(query) { |
|||
return request({ |
|||
url: '/system/dept/agreeApplyToJoin', |
|||
method: 'post', |
|||
data: query |
|||
}) |
|||
} |
|||
|
|||
// 拒绝申请加入组织
|
|||
export function refuseApplyToJoin(query) { |
|||
return request({ |
|||
url: '/system/dept/refuseApplyToJoin', |
|||
method: 'post', |
|||
data: query |
|||
}) |
|||
} |
@ -0,0 +1,20 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
// 食品原料供应商资质检索
|
|||
export function searchList(query) { |
|||
return request({ |
|||
url: '/system/enterpriseManager/list', |
|||
method: 'get', |
|||
params: query |
|||
}) |
|||
} |
|||
|
|||
// 根据企业ID获取企业详情,资质列表,合作伙伴列表
|
|||
export function electEnterpriseById(query) { |
|||
return request({ |
|||
url: '/system/enterpriseManager/selectEnterpriseById', |
|||
method: 'get', |
|||
params:query |
|||
}) |
|||
} |
|||
|
@ -0,0 +1,60 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
// 根据用户编号获取详细信息
|
|||
export function getIndexInfo() { |
|||
return request({ |
|||
url: '/system/user/getIndexInfo', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
|
|||
// 系统级首页接口
|
|||
export function getSystemIndexInfo() { |
|||
return request({ |
|||
url: '/system/user/getEnterpriseIndexInfo', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
// 操作日志
|
|||
export function selectOperLogListByLogin(params) { |
|||
return request({ |
|||
url: '/monitor/operlog/selectOperLogListByLogin', |
|||
method: 'get', |
|||
params |
|||
}) |
|||
} |
|||
|
|||
// 根据登陆信息获取合作伙伴申请验证码
|
|||
export function getPartnersApplyForVerificationCodesBy() { |
|||
return request({ |
|||
url: '/system/enterpriseManager/getPartnersApplyForVerificationCodesBy', |
|||
method: 'post' |
|||
}) |
|||
} |
|||
|
|||
// 根据登陆信息更新合作伙伴申请验证码
|
|||
export function updatePartnersApplyForVerificationCodesBy() { |
|||
return request({ |
|||
url: '/system/enterpriseManager/updatePartnersApplyForVerificationCodesBy', |
|||
method: 'post' |
|||
}) |
|||
} |
|||
|
|||
// 启用与关闭申请码
|
|||
export function setVerificationCodesSwitch(data) { |
|||
return request({ |
|||
url: '/system/enterpriseManager/setVerificationCodesSwitch', |
|||
method: 'post', |
|||
data:data |
|||
}) |
|||
} |
|||
// 获取申请码启用与关闭的状态
|
|||
export function getVerificationCodesSwitchByLogin() { |
|||
return request({ |
|||
url: '/system/enterpriseManager/getVerificationCodesSwitchByLogin', |
|||
method: 'post' |
|||
}) |
|||
} |
|||
|
@ -0,0 +1,107 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
// 登录方法
|
|||
export function login(username, password, code, uuid) { |
|||
const data = { |
|||
username, |
|||
password, |
|||
code, |
|||
uuid |
|||
} |
|||
return request({ |
|||
url: '/login', |
|||
method: 'post', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
// 获取用户详细信息
|
|||
export function getInfo() { |
|||
return request({ |
|||
url: '/getInfo', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
// 退出方法
|
|||
export function logout() { |
|||
return request({ |
|||
url: '/logout', |
|||
method: 'post' |
|||
}) |
|||
} |
|||
|
|||
// 获取验证码
|
|||
export function getCodeImg() { |
|||
return request({ |
|||
url: '/captchaImage', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
// 发送注册用短信验证码
|
|||
export function sendRegeditCode(params) { |
|||
return request({ |
|||
url: '/system/user/sendRegeditCode', |
|||
method: 'post', |
|||
data:params |
|||
}) |
|||
} |
|||
|
|||
// 发送忘记密码用短信验证码
|
|||
export function sendModifyPasswordCode(param) { |
|||
return request({ |
|||
url: '/system/user/sendModifyPasswordCode', |
|||
method: 'post', |
|||
data:param |
|||
}) |
|||
} |
|||
|
|||
|
|||
// 注册用户
|
|||
export function registerUser(param) { |
|||
return request({ |
|||
url: '/system/user/regeditUser', |
|||
method: 'post', |
|||
data:param |
|||
}) |
|||
} |
|||
|
|||
|
|||
|
|||
|
|||
// 通过账号获取用户信息
|
|||
export function getUserByUserName(param) { |
|||
return request({ |
|||
url: '/system/user/getUserByUserName', |
|||
method: 'post', |
|||
data:param |
|||
}) |
|||
} |
|||
|
|||
// 校验忘记密码验证码
|
|||
export function validModifyPasswordCode(param) { |
|||
return request({ |
|||
url: '/system/user/validModifyPasswordCode', |
|||
method: 'post', |
|||
data:param |
|||
}) |
|||
} |
|||
|
|||
// 忘记密码-修改密码
|
|||
export function forgetPassword(param) { |
|||
return request({ |
|||
url: '/system/user/forgetPassword', |
|||
method: 'post', |
|||
data:param |
|||
}) |
|||
} |
|||
|
|||
// 登陆初始进入页面
|
|||
export function firstEnterPath(param) { |
|||
return request({ |
|||
url: '/firstEnterPath', |
|||
method: 'post', |
|||
data:param |
|||
}) |
|||
} |
@ -0,0 +1,9 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
// 获取路由
|
|||
export const getRouters = () => { |
|||
return request({ |
|||
url: '/getRouters', |
|||
method: 'get' |
|||
}) |
|||
} |
@ -0,0 +1,9 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
// 查询缓存详细
|
|||
export function getCache() { |
|||
return request({ |
|||
url: '/monitor/cache', |
|||
method: 'get' |
|||
}) |
|||
} |
@ -0,0 +1,80 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
// 查询定时任务调度列表
|
|||
export function listJob(query) { |
|||
return request({ |
|||
url: '/monitor/job/list', |
|||
method: 'get', |
|||
params: query |
|||
}) |
|||
} |
|||
|
|||
// 查询定时任务调度详细
|
|||
export function getJob(jobId) { |
|||
return request({ |
|||
url: '/monitor/job/' + jobId, |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
// 新增定时任务调度
|
|||
export function addJob(data) { |
|||
return request({ |
|||
url: '/monitor/job', |
|||
method: 'post', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
// 修改定时任务调度
|
|||
export function updateJob(data) { |
|||
return request({ |
|||
url: '/monitor/job', |
|||
method: 'put', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
// 删除定时任务调度
|
|||
export function delJob(jobId) { |
|||
return request({ |
|||
url: '/monitor/job/' + jobId, |
|||
method: 'delete' |
|||
}) |
|||
} |
|||
|
|||
// 导出定时任务调度
|
|||
export function exportJob(query) { |
|||
return request({ |
|||
url: '/monitor/job/export', |
|||
method: 'get', |
|||
params: query |
|||
}) |
|||
} |
|||
|
|||
// 任务状态修改
|
|||
export function changeJobStatus(jobId, status) { |
|||
const data = { |
|||
jobId, |
|||
status |
|||
} |
|||
return request({ |
|||
url: '/monitor/job/changeStatus', |
|||
method: 'put', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
|
|||
// 定时任务立即执行一次
|
|||
export function runJob(jobId, jobGroup) { |
|||
const data = { |
|||
jobId, |
|||
jobGroup |
|||
} |
|||
return request({ |
|||
url: '/monitor/job/run', |
|||
method: 'put', |
|||
data: data |
|||
}) |
|||
} |
@ -0,0 +1,35 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
// 查询调度日志列表
|
|||
export function listJobLog(query) { |
|||
return request({ |
|||
url: '/monitor/jobLog/list', |
|||
method: 'get', |
|||
params: query |
|||
}) |
|||
} |
|||
|
|||
// 删除调度日志
|
|||
export function delJobLog(jobLogId) { |
|||
return request({ |
|||
url: '/monitor/jobLog/' + jobLogId, |
|||
method: 'delete' |
|||
}) |
|||
} |
|||
|
|||
// 清空调度日志
|
|||
export function cleanJobLog() { |
|||
return request({ |
|||
url: '/monitor/jobLog/clean', |
|||
method: 'delete' |
|||
}) |
|||
} |
|||
|
|||
// 导出调度日志
|
|||
export function exportJobLog(query) { |
|||
return request({ |
|||
url: '/monitor/jobLog/export', |
|||
method: 'get', |
|||
params: query |
|||
}) |
|||
} |
@ -0,0 +1,35 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
// 查询登录日志列表
|
|||
export function list(query) { |
|||
return request({ |
|||
url: '/monitor/logininfor/list', |
|||
method: 'get', |
|||
params: query |
|||
}) |
|||
} |
|||
|
|||
// 删除登录日志
|
|||
export function delLogininfor(infoId) { |
|||
return request({ |
|||
url: '/monitor/logininfor/' + infoId, |
|||
method: 'delete' |
|||
}) |
|||
} |
|||
|
|||
// 清空登录日志
|
|||
export function cleanLogininfor() { |
|||
return request({ |
|||
url: '/monitor/logininfor/clean', |
|||
method: 'delete' |
|||
}) |
|||
} |
|||
|
|||
// 导出登录日志
|
|||
export function exportLogininfor(query) { |
|||
return request({ |
|||
url: '/monitor/logininfor/export', |
|||
method: 'get', |
|||
params: query |
|||
}) |
|||
} |
@ -0,0 +1,18 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
// 查询在线用户列表
|
|||
export function list(query) { |
|||
return request({ |
|||
url: '/monitor/online/list', |
|||
method: 'get', |
|||
params: query |
|||
}) |
|||
} |
|||
|
|||
// 强退用户
|
|||
export function forceLogout(tokenId) { |
|||
return request({ |
|||
url: '/monitor/online/' + tokenId, |
|||
method: 'delete' |
|||
}) |
|||
} |
@ -0,0 +1,35 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
// 查询操作日志列表
|
|||
export function list(query) { |
|||
return request({ |
|||
url: '/monitor/operlog/list', |
|||
method: 'get', |
|||
params: query |
|||
}) |
|||
} |
|||
|
|||
// 删除操作日志
|
|||
export function delOperlog(operId) { |
|||
return request({ |
|||
url: '/monitor/operlog/' + operId, |
|||
method: 'delete' |
|||
}) |
|||
} |
|||
|
|||
// 清空操作日志
|
|||
export function cleanOperlog() { |
|||
return request({ |
|||
url: '/monitor/operlog/clean', |
|||
method: 'delete' |
|||
}) |
|||
} |
|||
|
|||
// 导出操作日志
|
|||
export function exportOperlog(query) { |
|||
return request({ |
|||
url: '/monitor/operlog/export', |
|||
method: 'get', |
|||
params: query |
|||
}) |
|||
} |
@ -0,0 +1,9 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
// 查询服务器详细
|
|||
export function getServer() { |
|||
return request({ |
|||
url: '/monitor/server', |
|||
method: 'get' |
|||
}) |
|||
} |
@ -0,0 +1,57 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
// 标准文件列表
|
|||
export function getFileList(query) { |
|||
return request({ |
|||
url: '/system/file/list', |
|||
method: 'get', |
|||
params: query |
|||
}) |
|||
} |
|||
// 获取标准文件详细信息
|
|||
export function getFileById(query) { |
|||
return request({ |
|||
url: '/system/file', |
|||
method: 'get', |
|||
params: query |
|||
}) |
|||
} |
|||
|
|||
|
|||
// 新增标准文件
|
|||
export function addFile(query) { |
|||
return request({ |
|||
url: '/system/file', |
|||
method: 'post', |
|||
data:query |
|||
}) |
|||
} |
|||
|
|||
|
|||
// 修改标准文件
|
|||
export function putFile(query) { |
|||
return request({ |
|||
url: '/system/file', |
|||
method: 'put', |
|||
data:query |
|||
}) |
|||
} |
|||
|
|||
|
|||
// 删除标准文件
|
|||
export function deleteFileByIds(query) { |
|||
return request({ |
|||
url: '/system/file/'+query, |
|||
method: 'delete', |
|||
// params:query
|
|||
}) |
|||
} |
|||
|
|||
|
|||
// 标准文件是否展示
|
|||
export function visibleFileShow(visible,id) { |
|||
return request({ |
|||
url: '/system/file/show/'+visible +'/'+id, |
|||
method: 'post', |
|||
}) |
|||
} |
@ -0,0 +1,57 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
// 获取系统级预包装列表
|
|||
export function getStandardList(query) { |
|||
return request({ |
|||
url: '/system/standard/list', |
|||
method: 'get', |
|||
params: query |
|||
}) |
|||
} |
|||
// 获取预包装标准
|
|||
export function getStandardById(query) { |
|||
return request({ |
|||
url: '/system/standard/'+query, |
|||
method: 'get', |
|||
// params: query
|
|||
}) |
|||
} |
|||
|
|||
// 新增预包装标准
|
|||
export function addStandard(query) { |
|||
return request({ |
|||
url: '/system/standard', |
|||
method: 'post', |
|||
data:query |
|||
}) |
|||
} |
|||
|
|||
// 修改预包装标准
|
|||
export function putStandard(query) { |
|||
return request({ |
|||
url: '/system/standard', |
|||
method: 'put', |
|||
data:query |
|||
}) |
|||
} |
|||
|
|||
// 删除预包装标准
|
|||
export function deleteStandardByIds(query) { |
|||
return request({ |
|||
url: '/system/standard/'+query, |
|||
method: 'delete', |
|||
// params:query
|
|||
}) |
|||
} |
|||
|
|||
|
|||
|
|||
|
|||
// 发码
|
|||
export function sendQr(query) { |
|||
return request({ |
|||
url: '/system/standard/send/'+query, |
|||
method: 'post', |
|||
// data:query
|
|||
}) |
|||
} |
@ -0,0 +1,54 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
// 查询企业级预包装标准列表
|
|||
export function getProductStandardList(query) { |
|||
return request({ |
|||
url: '/company/standard/list', |
|||
method: 'get', |
|||
params: query |
|||
}) |
|||
} |
|||
// 获取企业级预包装标准详细信息
|
|||
export function getProductStandardById(query) { |
|||
return request({ |
|||
url: '/company/standard/'+query, |
|||
method: 'get', |
|||
// params: query
|
|||
}) |
|||
} |
|||
// 新增企业级预包装标准
|
|||
export function addProductStandard(query) { |
|||
return request({ |
|||
url: '/company/standard', |
|||
method: 'post', |
|||
data:query |
|||
}) |
|||
} |
|||
|
|||
|
|||
|
|||
// 修改企业级预包装标准
|
|||
export function putProductStandard(query) { |
|||
return request({ |
|||
url: '/company/standard', |
|||
method: 'put', |
|||
data:query |
|||
}) |
|||
} |
|||
|
|||
// 删除企业级预包装标准
|
|||
export function deleteProductStandardByIds(query) { |
|||
return request({ |
|||
url: '/company/standard/'+query, |
|||
method: 'delete', |
|||
// params:query
|
|||
}) |
|||
} |
|||
// 发码
|
|||
export function sendQr(query) { |
|||
return request({ |
|||
url: '/company/standard/send/'+query, |
|||
method: 'post', |
|||
// data:query
|
|||
}) |
|||
} |
@ -0,0 +1,83 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
// 查询企业认证列表
|
|||
export function listCertification(query) { |
|||
return request({ |
|||
url: '/system/certification/list', |
|||
method: 'get', |
|||
params: query |
|||
}) |
|||
} |
|||
|
|||
// 查询企业认证详细
|
|||
export function getCertification(certificationId) { |
|||
return request({ |
|||
url: '/system/certification/' + certificationId, |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
// 新增企业认证
|
|||
export function addCertification(data) { |
|||
return request({ |
|||
url: '/system/certification', |
|||
method: 'post', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
// 修改企业认证
|
|||
export function updateCertification(data) { |
|||
return request({ |
|||
url: '/system/certification', |
|||
method: 'put', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
// 删除企业认证
|
|||
export function delCertification(certificationId) { |
|||
return request({ |
|||
url: '/system/certification/' + certificationId, |
|||
method: 'delete' |
|||
}) |
|||
} |
|||
|
|||
// 导出企业认证
|
|||
export function exportCertification(query) { |
|||
return request({ |
|||
url: '/system/certification/export', |
|||
method: 'get', |
|||
params: query |
|||
}) |
|||
} |
|||
|
|||
|
|||
|
|||
// 查询自己的认证信息
|
|||
export function getEnterpriseCertificationInfoByLogin() { |
|||
return request({ |
|||
url: '/system/certification/getEnterpriseCertificationInfoByLogin', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
// 企业工商认证
|
|||
export function certificationEnterprise(data) { |
|||
return request({ |
|||
url: '/system/enterpriseManager/certificationEnterprise', |
|||
method: 'post', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
// 企业工业互联网认证
|
|||
export function industrialInternetCertification(data) { |
|||
return request({ |
|||
url: '/system/enterpriseManager/industrialInternetCertification', |
|||
method: 'post', |
|||
// data: data
|
|||
}) |
|||
} |
|||
|
|||
|
|||
|
@ -0,0 +1,69 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
// 查询参数列表
|
|||
export function listConfig(query) { |
|||
return request({ |
|||
url: '/system/config/list', |
|||
method: 'get', |
|||
params: query |
|||
}) |
|||
} |
|||
|
|||
// 查询参数详细
|
|||
export function getConfig(configId) { |
|||
return request({ |
|||
url: '/system/config/' + configId, |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
// 根据参数键名查询参数值
|
|||
export function getConfigKey(configKey) { |
|||
return request({ |
|||
url: '/system/config/configKey/' + configKey, |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
// 新增参数配置
|
|||
export function addConfig(data) { |
|||
return request({ |
|||
url: '/system/config', |
|||
method: 'post', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
// 修改参数配置
|
|||
export function updateConfig(data) { |
|||
return request({ |
|||
url: '/system/config', |
|||
method: 'put', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
// 删除参数配置
|
|||
export function delConfig(configId) { |
|||
return request({ |
|||
url: '/system/config/' + configId, |
|||
method: 'delete' |
|||
}) |
|||
} |
|||
|
|||
// 刷新参数缓存
|
|||
export function refreshCache() { |
|||
return request({ |
|||
url: '/system/config/refreshCache', |
|||
method: 'delete' |
|||
}) |
|||
} |
|||
|
|||
// 导出参数
|
|||
export function exportConfig(query) { |
|||
return request({ |
|||
url: '/system/config/export', |
|||
method: 'get', |
|||
params: query |
|||
}) |
|||
} |
@ -0,0 +1,78 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
// 查询部门列表
|
|||
export function listDept(query) { |
|||
return request({ |
|||
url: '/system/dept/list', |
|||
method: 'get', |
|||
params: query |
|||
}) |
|||
} |
|||
|
|||
// 根据企业名称查询资质
|
|||
export function getQualificationByDeptId(data) { |
|||
return request({ |
|||
url: '/system/dept/getQualificationByDeptId', |
|||
method: 'post', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
|
|||
// 查询部门列表(排除节点)
|
|||
export function listDeptExcludeChild(deptId) { |
|||
return request({ |
|||
url: '/system/dept/list/exclude/' + deptId, |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
// 查询部门详细
|
|||
export function getDept(deptId) { |
|||
return request({ |
|||
url: '/system/dept/' + deptId, |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
// 查询部门下拉树结构
|
|||
export function treeselect() { |
|||
return request({ |
|||
url: '/system/dept/treeselect', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
// 根据角色ID查询部门树结构
|
|||
export function roleDeptTreeselect(roleId) { |
|||
return request({ |
|||
url: '/system/dept/roleDeptTreeselect/' + roleId, |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
// 新增部门
|
|||
export function addDept(data) { |
|||
return request({ |
|||
url: '/system/dept', |
|||
method: 'post', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
// 修改部门
|
|||
export function updateDept(data) { |
|||
return request({ |
|||
url: '/system/dept', |
|||
method: 'put', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
// 删除部门
|
|||
export function delDept(deptId) { |
|||
return request({ |
|||
url: '/system/dept/' + deptId, |
|||
method: 'delete' |
|||
}) |
|||
} |
@ -0,0 +1,61 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
// 查询字典数据列表
|
|||
export function listData(query) { |
|||
return request({ |
|||
url: '/system/dict/data/list', |
|||
method: 'get', |
|||
params: query |
|||
}) |
|||
} |
|||
|
|||
// 查询字典数据详细
|
|||
export function getData(dictCode) { |
|||
return request({ |
|||
url: '/system/dict/data/' + dictCode, |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
// 根据字典类型查询字典数据信息
|
|||
export function getDicts(dictType) { |
|||
return request({ |
|||
url: '/system/dict/data/type/' + dictType, |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
// 新增字典数据
|
|||
export function addData(data) { |
|||
return request({ |
|||
url: '/system/dict/data', |
|||
method: 'post', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
// 修改字典数据
|
|||
export function updateData(data) { |
|||
return request({ |
|||
url: '/system/dict/data', |
|||
method: 'put', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
// 删除字典数据
|
|||
export function delData(dictCode) { |
|||
return request({ |
|||
url: '/system/dict/data/' + dictCode, |
|||
method: 'delete' |
|||
}) |
|||
} |
|||
|
|||
// 导出字典数据
|
|||
export function exportData(query) { |
|||
return request({ |
|||
url: '/system/dict/data/export', |
|||
method: 'get', |
|||
params: query |
|||
}) |
|||
} |
@ -0,0 +1,69 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
// 查询字典类型列表
|
|||
export function listType(query) { |
|||
return request({ |
|||
url: '/system/dict/type/list', |
|||
method: 'get', |
|||
params: query |
|||
}) |
|||
} |
|||
|
|||
// 查询字典类型详细
|
|||
export function getType(dictId) { |
|||
return request({ |
|||
url: '/system/dict/type/' + dictId, |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
// 新增字典类型
|
|||
export function addType(data) { |
|||
return request({ |
|||
url: '/system/dict/type', |
|||
method: 'post', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
// 修改字典类型
|
|||
export function updateType(data) { |
|||
return request({ |
|||
url: '/system/dict/type', |
|||
method: 'put', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
// 删除字典类型
|
|||
export function delType(dictId) { |
|||
return request({ |
|||
url: '/system/dict/type/' + dictId, |
|||
method: 'delete' |
|||
}) |
|||
} |
|||
|
|||
// 刷新字典缓存
|
|||
export function refreshCache() { |
|||
return request({ |
|||
url: '/system/dict/type/refreshCache', |
|||
method: 'delete' |
|||
}) |
|||
} |
|||
|
|||
// 导出字典类型
|
|||
export function exportType(query) { |
|||
return request({ |
|||
url: '/system/dict/type/export', |
|||
method: 'get', |
|||
params: query |
|||
}) |
|||
} |
|||
|
|||
// 获取字典选择框列表
|
|||
export function optionselect() { |
|||
return request({ |
|||
url: '/system/dict/type/optionselect', |
|||
method: 'get' |
|||
}) |
|||
} |
@ -0,0 +1,91 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
// 查询合作伙伴列表
|
|||
export function listEnterprise(query) { |
|||
return request({ |
|||
url: '/system/enterprise/list', |
|||
method: 'get', |
|||
params: query |
|||
}) |
|||
} |
|||
|
|||
// 查询合作伙伴详细
|
|||
export function getEnterprise(id) { |
|||
return request({ |
|||
url: '/system/enterprise/' + id, |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
// 新增合作伙伴
|
|||
export function addEnterprise(data) { |
|||
return request({ |
|||
url: '/system/enterprise', |
|||
method: 'post', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
// 修改合作伙伴
|
|||
export function updateEnterprise(data) { |
|||
return request({ |
|||
url: '/system/enterprise', |
|||
method: 'put', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
// 删除合作伙伴
|
|||
export function delEnterprise(id) { |
|||
return request({ |
|||
url: '/system/enterprise/' + id, |
|||
method: 'delete' |
|||
}) |
|||
} |
|||
|
|||
// 导出合作伙伴
|
|||
export function exportEnterprise(query) { |
|||
return request({ |
|||
url: '/system/enterprise/export', |
|||
method: 'get', |
|||
params: query |
|||
}) |
|||
} |
|||
|
|||
|
|||
// 根据合作伙伴申请验证码获取企业信息
|
|||
export function getEnterpriseIdByPartnersApplyForVerificationCodes(data) { |
|||
return request({ |
|||
url: '/system/enterpriseManager/getEnterpriseIdByPartnersApplyForVerificationCodes', |
|||
method: 'post', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
// 通过申请验证码发送合作伙伴邀请
|
|||
export function invitationByCode(data) { |
|||
return request({ |
|||
url: '/system/enterprise/invitationByCode', |
|||
method: 'post', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
// 同意申请验证码合作伙伴邀请
|
|||
export function agreeInvitationByCode(data) { |
|||
return request({ |
|||
url: '/system/enterprise/agreeInvitationByCode', |
|||
method: 'post', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
|
|||
// 不同意申请验证码合作伙伴邀请
|
|||
export function disagreeInvitationByCode(data) { |
|||
return request({ |
|||
url: '/system/enterprise/disagreeInvitationByCode', |
|||
method: 'post', |
|||
data: data |
|||
}) |
|||
} |
@ -0,0 +1,76 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
// 查询企业管理列表
|
|||
export function listEnterpriseManager(query) { |
|||
return request({ |
|||
url: '/system/enterpriseManager/list', |
|||
method: 'get', |
|||
params: query |
|||
}) |
|||
} |
|||
|
|||
// 查询企业管理详细
|
|||
export function getEnterpriseManager(enterpriseid) { |
|||
return request({ |
|||
url: '/system/enterpriseManager/' + enterpriseid, |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
// 新增企业管理
|
|||
export function addEnterpriseManager(data) { |
|||
return request({ |
|||
url: '/system/enterpriseManager', |
|||
method: 'post', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
// 修改企业管理
|
|||
export function updateEnterpriseManager(data) { |
|||
return request({ |
|||
url: '/system/enterpriseManager', |
|||
method: 'put', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
// 删除企业管理
|
|||
export function delEnterpriseManager(enterpriseid) { |
|||
return request({ |
|||
url: '/system/enterpriseManager/' + enterpriseid, |
|||
method: 'delete' |
|||
}) |
|||
} |
|||
|
|||
// 导出企业管理
|
|||
export function exportEnterpriseManager(query) { |
|||
return request({ |
|||
url: '/system/enterpriseManager/export', |
|||
method: 'get', |
|||
params: query |
|||
}) |
|||
} |
|||
|
|||
|
|||
|
|||
// 根据登陆账户获取企业详细信息
|
|||
export function getEnterPriseInfoByLogin() { |
|||
return request({ |
|||
url: '/system/enterpriseManager/getEnterPriseInfoByLogin', |
|||
method: 'get', |
|||
// params: query
|
|||
}) |
|||
} |
|||
|
|||
// 根据父节点id获取子节点
|
|||
export function getAreaByParentId(params) { |
|||
return request({ |
|||
url: '/system/area/getAreaByParentId', |
|||
method: 'post', |
|||
data: params |
|||
}) |
|||
} |
|||
|
|||
|
|||
|
@ -0,0 +1,60 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
// 查询菜单列表
|
|||
export function listMenu(query) { |
|||
return request({ |
|||
url: '/system/menu/list', |
|||
method: 'get', |
|||
params: query |
|||
}) |
|||
} |
|||
|
|||
// 查询菜单详细
|
|||
export function getMenu(menuId) { |
|||
return request({ |
|||
url: '/system/menu/' + menuId, |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
// 查询菜单下拉树结构
|
|||
export function treeselect() { |
|||
return request({ |
|||
url: '/system/menu/treeselect', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
// 根据角色ID查询菜单下拉树结构
|
|||
export function roleMenuTreeselect(roleId) { |
|||
return request({ |
|||
url: '/system/menu/roleMenuTreeselect/' + roleId, |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
// 新增菜单
|
|||
export function addMenu(data) { |
|||
return request({ |
|||
url: '/system/menu', |
|||
method: 'post', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
// 修改菜单
|
|||
export function updateMenu(data) { |
|||
return request({ |
|||
url: '/system/menu', |
|||
method: 'put', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
// 删除菜单
|
|||
export function delMenu(menuId) { |
|||
return request({ |
|||
url: '/system/menu/' + menuId, |
|||
method: 'delete' |
|||
}) |
|||
} |
@ -0,0 +1,44 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
// 查询公告列表
|
|||
export function listNotice(query) { |
|||
return request({ |
|||
url: '/system/notice/list', |
|||
method: 'get', |
|||
params: query |
|||
}) |
|||
} |
|||
|
|||
// 查询公告详细
|
|||
export function getNotice(noticeId) { |
|||
return request({ |
|||
url: '/system/notice/' + noticeId, |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
// 新增公告
|
|||
export function addNotice(data) { |
|||
return request({ |
|||
url: '/system/notice', |
|||
method: 'post', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
// 修改公告
|
|||
export function updateNotice(data) { |
|||
return request({ |
|||
url: '/system/notice', |
|||
method: 'put', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
// 删除公告
|
|||
export function delNotice(noticeId) { |
|||
return request({ |
|||
url: '/system/notice/' + noticeId, |
|||
method: 'delete' |
|||
}) |
|||
} |
@ -0,0 +1,53 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
// 查询岗位列表
|
|||
export function listPost(query) { |
|||
return request({ |
|||
url: '/system/post/list', |
|||
method: 'get', |
|||
params: query |
|||
}) |
|||
} |
|||
|
|||
// 查询岗位详细
|
|||
export function getPost(postId) { |
|||
return request({ |
|||
url: '/system/post/' + postId, |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
// 新增岗位
|
|||
export function addPost(data) { |
|||
return request({ |
|||
url: '/system/post', |
|||
method: 'post', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
// 修改岗位
|
|||
export function updatePost(data) { |
|||
return request({ |
|||
url: '/system/post', |
|||
method: 'put', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
// 删除岗位
|
|||
export function delPost(postId) { |
|||
return request({ |
|||
url: '/system/post/' + postId, |
|||
method: 'delete' |
|||
}) |
|||
} |
|||
|
|||
// 导出岗位
|
|||
export function exportPost(query) { |
|||
return request({ |
|||
url: '/system/post/export', |
|||
method: 'get', |
|||
params: query |
|||
}) |
|||
} |
@ -0,0 +1,53 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
// 查询企业资质列表
|
|||
export function listQualification(query) { |
|||
return request({ |
|||
url: '/system/qualification/list', |
|||
method: 'get', |
|||
params: query |
|||
}) |
|||
} |
|||
|
|||
// 查询企业资质详细
|
|||
export function getQualification(enterpriseQualificationId) { |
|||
return request({ |
|||
url: '/system/qualification/' + enterpriseQualificationId, |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
// 新增企业资质
|
|||
export function addQualification(data) { |
|||
return request({ |
|||
url: '/system/qualification', |
|||
method: 'post', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
// 修改企业资质
|
|||
export function updateQualification(data) { |
|||
return request({ |
|||
url: '/system/qualification', |
|||
method: 'put', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
// 删除企业资质
|
|||
export function delQualification(enterpriseQualificationId) { |
|||
return request({ |
|||
url: '/system/qualification/' + enterpriseQualificationId, |
|||
method: 'delete' |
|||
}) |
|||
} |
|||
|
|||
// 导出企业资质
|
|||
export function exportQualification(query) { |
|||
return request({ |
|||
url: '/system/qualification/export', |
|||
method: 'get', |
|||
params: query |
|||
}) |
|||
} |
@ -0,0 +1,75 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
// 查询角色列表
|
|||
export function listRole(query) { |
|||
return request({ |
|||
url: '/system/role/list', |
|||
method: 'get', |
|||
params: query |
|||
}) |
|||
} |
|||
|
|||
// 查询角色详细
|
|||
export function getRole(roleId) { |
|||
return request({ |
|||
url: '/system/role/' + roleId, |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
// 新增角色
|
|||
export function addRole(data) { |
|||
return request({ |
|||
url: '/system/role', |
|||
method: 'post', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
// 修改角色
|
|||
export function updateRole(data) { |
|||
return request({ |
|||
url: '/system/role', |
|||
method: 'put', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
// 角色数据权限
|
|||
export function dataScope(data) { |
|||
return request({ |
|||
url: '/system/role/dataScope', |
|||
method: 'put', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
// 角色状态修改
|
|||
export function changeRoleStatus(roleId, status) { |
|||
const data = { |
|||
roleId, |
|||
status |
|||
} |
|||
return request({ |
|||
url: '/system/role/changeStatus', |
|||
method: 'put', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
// 删除角色
|
|||
export function delRole(roleId) { |
|||
return request({ |
|||
url: '/system/role/' + roleId, |
|||
method: 'delete' |
|||
}) |
|||
} |
|||
|
|||
// 导出角色
|
|||
export function exportRole(query) { |
|||
return request({ |
|||
url: '/system/role/export', |
|||
method: 'get', |
|||
params: query |
|||
}) |
|||
} |
@ -0,0 +1,127 @@ |
|||
import request from '@/utils/request' |
|||
import { praseStrEmpty } from "@/utils/ruoyi"; |
|||
|
|||
// 查询用户列表
|
|||
export function listUser(query) { |
|||
return request({ |
|||
url: '/system/user/list', |
|||
method: 'get', |
|||
params: query |
|||
}) |
|||
} |
|||
|
|||
// 查询用户详细
|
|||
export function getUser(userId) { |
|||
return request({ |
|||
url: '/system/user/' + praseStrEmpty(userId), |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
// 新增用户
|
|||
export function addUser(data) { |
|||
return request({ |
|||
url: '/system/user', |
|||
method: 'post', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
// 修改用户
|
|||
export function updateUser(data) { |
|||
return request({ |
|||
url: '/system/user', |
|||
method: 'put', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
// 删除用户
|
|||
export function delUser(userId) { |
|||
return request({ |
|||
url: '/system/user/' + userId, |
|||
method: 'delete' |
|||
}) |
|||
} |
|||
|
|||
// 导出用户
|
|||
export function exportUser(query) { |
|||
return request({ |
|||
url: '/system/user/export', |
|||
method: 'get', |
|||
params: query |
|||
}) |
|||
} |
|||
|
|||
// 用户密码重置
|
|||
export function resetUserPwd(userId, password) { |
|||
const data = { |
|||
userId, |
|||
password |
|||
} |
|||
return request({ |
|||
url: '/system/user/resetPwd', |
|||
method: 'put', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
// 用户状态修改
|
|||
export function changeUserStatus(userId, status) { |
|||
const data = { |
|||
userId, |
|||
status |
|||
} |
|||
return request({ |
|||
url: '/system/user/changeStatus', |
|||
method: 'put', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
// 查询用户个人信息
|
|||
export function getUserProfile() { |
|||
return request({ |
|||
url: '/system/user/profile', |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
// 修改用户个人信息
|
|||
export function updateUserProfile(data) { |
|||
return request({ |
|||
url: '/system/user/profile', |
|||
method: 'put', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
// 用户密码重置
|
|||
export function updateUserPwd(oldPassword, newPassword) { |
|||
const data = { |
|||
oldPassword, |
|||
newPassword |
|||
} |
|||
return request({ |
|||
url: '/system/user/profile/updatePwd', |
|||
method: 'put', |
|||
params: data |
|||
}) |
|||
} |
|||
|
|||
// 用户头像上传
|
|||
export function uploadAvatar(data) { |
|||
return request({ |
|||
url: '/system/user/profile/avatar', |
|||
method: 'post', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
// 下载用户导入模板
|
|||
export function importTemplate() { |
|||
return request({ |
|||
url: '/system/user/importTemplate', |
|||
method: 'get' |
|||
}) |
|||
} |
@ -0,0 +1,76 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
// 查询生成表数据
|
|||
export function listTable(query) { |
|||
return request({ |
|||
url: '/tool/gen/list', |
|||
method: 'get', |
|||
params: query |
|||
}) |
|||
} |
|||
// 查询db数据库列表
|
|||
export function listDbTable(query) { |
|||
return request({ |
|||
url: '/tool/gen/db/list', |
|||
method: 'get', |
|||
params: query |
|||
}) |
|||
} |
|||
|
|||
// 查询表详细信息
|
|||
export function getGenTable(tableId) { |
|||
return request({ |
|||
url: '/tool/gen/' + tableId, |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
// 修改代码生成信息
|
|||
export function updateGenTable(data) { |
|||
return request({ |
|||
url: '/tool/gen', |
|||
method: 'put', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
// 导入表
|
|||
export function importTable(data) { |
|||
return request({ |
|||
url: '/tool/gen/importTable', |
|||
method: 'post', |
|||
params: data |
|||
}) |
|||
} |
|||
|
|||
// 预览生成代码
|
|||
export function previewTable(tableId) { |
|||
return request({ |
|||
url: '/tool/gen/preview/' + tableId, |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
// 删除表数据
|
|||
export function delTable(tableId) { |
|||
return request({ |
|||
url: '/tool/gen/' + tableId, |
|||
method: 'delete' |
|||
}) |
|||
} |
|||
|
|||
// 生成代码(自定义路径)
|
|||
export function genCode(tableName) { |
|||
return request({ |
|||
url: '/tool/gen/genCode/' + tableName, |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
// 同步数据库
|
|||
export function synchDb(tableName) { |
|||
return request({ |
|||
url: '/tool/gen/synchDb/' + tableName, |
|||
method: 'get' |
|||
}) |
|||
} |
After Width: | Height: | Size: 160 KiB |
After Width: | Height: | Size: 96 KiB |
After Width: | Height: | Size: 4.7 KiB |
@ -0,0 +1,9 @@ |
|||
import Vue from 'vue' |
|||
import SvgIcon from '@/components/SvgIcon'// svg component
|
|||
|
|||
// register globally
|
|||
Vue.component('svg-icon', SvgIcon) |
|||
|
|||
const req = require.context('./svg', false, /\.svg$/) |
|||
const requireAll = requireContext => requireContext.keys().map(requireContext) |
|||
requireAll(req) |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 954 B |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 179 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 971 B |
After Width: | Height: | Size: 732 B |
After Width: | Height: | Size: 3.9 KiB |
After Width: | Height: | Size: 2.4 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 3.3 KiB |
After Width: | Height: | Size: 2.8 KiB |
After Width: | Height: | Size: 418 B |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 356 B |
After Width: | Height: | Size: 724 B |
After Width: | Height: | Size: 818 B |
After Width: | Height: | Size: 627 B |
After Width: | Height: | Size: 347 B |
After Width: | Height: | Size: 497 B |
After Width: | Height: | Size: 459 B |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 944 B |
After Width: | Height: | Size: 2.4 KiB |
After Width: | Height: | Size: 421 B |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 320 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 744 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 285 B |