first commit
This commit is contained in:
16
.editorconfig
Normal file
16
.editorconfig
Normal file
@@ -0,0 +1,16 @@
|
||||
# http://editorconfig.org
|
||||
root = true
|
||||
|
||||
[*]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
end_of_line = lf
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
|
||||
[*.md]
|
||||
trim_trailing_whitespace = false
|
||||
|
||||
[Makefile]
|
||||
indent_style = tab
|
||||
7
.eslintignore
Normal file
7
.eslintignore
Normal file
@@ -0,0 +1,7 @@
|
||||
/lambda/
|
||||
/scripts
|
||||
/config
|
||||
.history
|
||||
public
|
||||
.umi
|
||||
mock
|
||||
7
.eslintrc.js
Normal file
7
.eslintrc.js
Normal file
@@ -0,0 +1,7 @@
|
||||
module.exports = {
|
||||
extends: [require.resolve('@umijs/lint/dist/config/eslint')],
|
||||
globals: {
|
||||
page: true,
|
||||
REACT_APP_ENV: true,
|
||||
},
|
||||
};
|
||||
40
.gitignore
vendored
Normal file
40
.gitignore
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
|
||||
|
||||
# dependencies
|
||||
**/node_modules
|
||||
# roadhog-api-doc ignore
|
||||
/src/utils/request-temp.js
|
||||
_roadhog-api-doc
|
||||
|
||||
# production
|
||||
|
||||
# misc
|
||||
.DS_Store
|
||||
npm-debug.log*
|
||||
yarn-error.log
|
||||
|
||||
/coverage
|
||||
.idea
|
||||
yarn.lock
|
||||
package-lock.json
|
||||
*bak
|
||||
.vscode
|
||||
|
||||
|
||||
# visual studio code
|
||||
.history
|
||||
*.log
|
||||
functions/*
|
||||
.temp/**
|
||||
|
||||
# umi
|
||||
.umi
|
||||
.umi-production
|
||||
.umi-test
|
||||
|
||||
# screenshot
|
||||
screenshot
|
||||
.firebase
|
||||
.eslintcache
|
||||
|
||||
build
|
||||
22
.prettierignore
Normal file
22
.prettierignore
Normal file
@@ -0,0 +1,22 @@
|
||||
**/*.svg
|
||||
.umi
|
||||
.umi-production
|
||||
/dist
|
||||
.dockerignore
|
||||
.DS_Store
|
||||
.eslintignore
|
||||
*.png
|
||||
*.toml
|
||||
docker
|
||||
.editorconfig
|
||||
Dockerfile*
|
||||
.gitignore
|
||||
.prettierignore
|
||||
LICENSE
|
||||
.eslintcache
|
||||
*.lock
|
||||
yarn-error.log
|
||||
.history
|
||||
CNAME
|
||||
/build
|
||||
/public
|
||||
26
.prettierrc.js
Normal file
26
.prettierrc.js
Normal file
@@ -0,0 +1,26 @@
|
||||
module.exports = {
|
||||
singleQuote: true,
|
||||
trailingComma: 'all',
|
||||
printWidth: 100,
|
||||
proseWrap: 'never',
|
||||
endOfLine: 'lf',
|
||||
overrides: [
|
||||
{
|
||||
files: '.prettierrc',
|
||||
options: {
|
||||
parser: 'json',
|
||||
},
|
||||
},
|
||||
{
|
||||
files: 'document.ejs',
|
||||
options: {
|
||||
parser: 'html',
|
||||
},
|
||||
},
|
||||
],
|
||||
plugins: [
|
||||
'prettier-plugin-organize-imports',
|
||||
'prettier-plugin-packagejson',
|
||||
'prettier-plugin-two-style-order',
|
||||
],
|
||||
};
|
||||
57
README.md
Normal file
57
README.md
Normal file
@@ -0,0 +1,57 @@
|
||||
# Ant Design Pro
|
||||
|
||||
This project is initialized with [Ant Design Pro](https://pro.ant.design). Follow is the quick guide for how to use.
|
||||
|
||||
## Environment Prepare
|
||||
|
||||
Install `node_modules`:
|
||||
|
||||
```bash
|
||||
npm install
|
||||
```
|
||||
|
||||
or
|
||||
|
||||
```bash
|
||||
yarn
|
||||
```
|
||||
|
||||
## Provided Scripts
|
||||
|
||||
Ant Design Pro provides some useful script to help you quick start and build with web project, code style check and test.
|
||||
|
||||
Scripts provided in `package.json`. It's safe to modify or add additional script:
|
||||
|
||||
### Start project
|
||||
|
||||
```bash
|
||||
npm start
|
||||
```
|
||||
|
||||
### Build project
|
||||
|
||||
```bash
|
||||
npm run build
|
||||
```
|
||||
|
||||
### Check code style
|
||||
|
||||
```bash
|
||||
npm run lint
|
||||
```
|
||||
|
||||
You can also use script to auto fix some lint error:
|
||||
|
||||
```bash
|
||||
npm run lint:fix
|
||||
```
|
||||
|
||||
### Test code
|
||||
|
||||
```bash
|
||||
npm test
|
||||
```
|
||||
|
||||
## More
|
||||
|
||||
You can view full document on our [official website](https://pro.ant.design). And welcome any feedback in our [github](https://github.com/ant-design/ant-design-pro).
|
||||
177
config/config.dev.js
Normal file
177
config/config.dev.js
Normal file
@@ -0,0 +1,177 @@
|
||||
// https://umijs.org/config/
|
||||
import { defineConfig } from '@umijs/max';
|
||||
import { join } from 'path';
|
||||
import defaultSettings from './defaultSettings';
|
||||
import proxy from './proxy';
|
||||
|
||||
import routes from './routes';
|
||||
|
||||
const { REACT_APP_ENV = 'dev' } = process.env;
|
||||
|
||||
export default defineConfig({
|
||||
/**
|
||||
* @name 开启 hash 模式
|
||||
* @description 让 build 之后的产物包含 hash 后缀。通常用于增量发布和避免浏览器加载缓存。
|
||||
* @doc https://umijs.org/docs/api/config#hash
|
||||
*/
|
||||
hash: true,
|
||||
|
||||
/**
|
||||
* @name 兼容性设置
|
||||
* @description 设置 ie11 不一定完美兼容,需要检查自己使用的所有依赖
|
||||
* @doc https://umijs.org/docs/api/config#targets
|
||||
*/
|
||||
// targets: {
|
||||
// ie: 11,
|
||||
// },
|
||||
/**
|
||||
* @name 路由的配置,不在路由中引入的文件不会编译
|
||||
* @description 只支持 path,component,routes,redirect,wrappers,title 的配置
|
||||
* @doc https://umijs.org/docs/guides/routes
|
||||
*/
|
||||
// umi routes: https://umijs.org/docs/routing
|
||||
// routes,
|
||||
/**
|
||||
* @name 主题的配置
|
||||
* @description 虽然叫主题,但是其实只是 less 的变量设置
|
||||
* @doc antd的主题设置 https://ant.design/docs/react/customize-theme-cn
|
||||
* @doc umi 的theme 配置 https://umijs.org/docs/api/config#theme
|
||||
*/
|
||||
theme: {
|
||||
// 如果不想要 configProvide 动态设置主题需要把这个设置为 default
|
||||
// 只有设置为 variable, 才能使用 configProvide 动态设置主色调
|
||||
'root-entry-name': 'variable',
|
||||
},
|
||||
/**
|
||||
* @name moment 的国际化配置
|
||||
* @description 如果对国际化没有要求,打开之后能减少js的包大小
|
||||
* @doc https://umijs.org/docs/api/config#ignoremomentlocale
|
||||
*/
|
||||
ignoreMomentLocale: false,
|
||||
/**
|
||||
* @name 代理配置
|
||||
* @description 可以让你的本地服务器代理到你的服务器上,这样你就可以访问服务器的数据了
|
||||
* @see 要注意以下 代理只能在本地开发时使用,build 之后就无法使用了。
|
||||
* @doc 代理介绍 https://umijs.org/docs/guides/proxy
|
||||
* @doc 代理配置 https://umijs.org/docs/api/config#proxy
|
||||
*/
|
||||
proxy: proxy[REACT_APP_ENV],
|
||||
/**
|
||||
* @name 快速热更新配置
|
||||
* @description 一个不错的热更新组件,更新时可以保留 state
|
||||
*/
|
||||
fastRefresh: true,
|
||||
//============== 以下都是max的插件配置 ===============
|
||||
/**
|
||||
* @name 数据流插件
|
||||
* @@doc https://umijs.org/docs/max/data-flow
|
||||
*/
|
||||
model: {},
|
||||
/**
|
||||
* 一个全局的初始数据流,可以用它在插件之间共享数据
|
||||
* @description 可以用来存放一些全局的数据,比如用户信息,或者一些全局的状态,全局初始状态在整个 Umi 项目的最开始创建。
|
||||
* @doc https://umijs.org/docs/max/data-flow#%E5%85%A8%E5%B1%80%E5%88%9D%E5%A7%8B%E7%8A%B6%E6%80%81
|
||||
*/
|
||||
initialState: {},
|
||||
/**
|
||||
* @name layout 插件
|
||||
* @doc https://umijs.org/docs/max/layout-menu
|
||||
*/
|
||||
title: '云充电管理后台',
|
||||
layout: {
|
||||
locale: false,
|
||||
...defaultSettings,
|
||||
},
|
||||
define: {
|
||||
'process.env': {
|
||||
// API_URL: "http://adminapi.dianxr.com",
|
||||
API_URL: "http://192.168.1.63:6001",
|
||||
// API_URL: "http://192.168.1.54:6001",
|
||||
// API_URL: "http://admin.prod.zhongshuai2023.com",
|
||||
WS_URL: "ws://lv.com",
|
||||
STATIC_URL: "http://lv.com",
|
||||
WEMAP_KEY: 'ZFDBZ-YUTWB-353UZ-NYKEY-JTVIZ-Q3F6X'
|
||||
}
|
||||
},
|
||||
/**
|
||||
* @name moment2dayjs 插件
|
||||
* @description 将项目中的 moment 替换为 dayjs
|
||||
* @doc https://umijs.org/docs/max/moment2dayjs
|
||||
*/
|
||||
moment2dayjs: {
|
||||
preset: 'antd',
|
||||
plugins: ['duration'],
|
||||
},
|
||||
/**
|
||||
* @name 国际化插件
|
||||
* @doc https://umijs.org/docs/max/i18n
|
||||
*/
|
||||
locale: {
|
||||
// default zh-CN
|
||||
default: 'zh-CN',
|
||||
antd: true,
|
||||
// default true, when it is true, will use `navigator.language` overwrite default
|
||||
baseNavigator: true,
|
||||
},
|
||||
/**
|
||||
* @name antd 插件
|
||||
* @description 内置了 babel import 插件
|
||||
* @doc https://umijs.org/docs/max/antd#antd
|
||||
*/
|
||||
antd: {},
|
||||
/**
|
||||
* @name 网络请求配置
|
||||
* @description 它基于 axios 和 ahooks 的 useRequest 提供了一套统一的网络请求和错误处理方案。
|
||||
* @doc https://umijs.org/docs/max/request
|
||||
*/
|
||||
request: {},
|
||||
/**
|
||||
* @name 权限插件
|
||||
* @description 基于 initialState 的权限插件,必须先打开 initialState
|
||||
* @doc https://umijs.org/docs/max/access
|
||||
*/
|
||||
access: {},
|
||||
/**
|
||||
* @name <head> 中额外的 script
|
||||
* @description 配置 <head> 中额外的 script
|
||||
*/
|
||||
headScripts: [
|
||||
// 解决首次加载时白屏的问题
|
||||
{ src: '/scripts/loading.js', async: true },
|
||||
{
|
||||
src: `https://map.qq.com/api/gljs?v=1.exp&key=ZFDBZ-YUTWB-353UZ-NYKEY-JTVIZ-Q3F6X`,
|
||||
async: true,
|
||||
}
|
||||
],
|
||||
//================ pro 插件配置 =================
|
||||
presets: ['umi-presets-pro'],
|
||||
/**
|
||||
* @name openAPI 插件的配置
|
||||
* @description 基于 openapi 的规范生成serve 和mock,能减少很多样板代码
|
||||
* @doc https://pro.ant.design/zh-cn/docs/openapi/
|
||||
*/
|
||||
openAPI: [
|
||||
{
|
||||
requestLibPath: "import { request } from '@umijs/max'",
|
||||
// 或者使用在线的版本
|
||||
// schemaPath: "https://gw.alipayobjects.com/os/antfincdn/M%24jrzTTYJN/oneapi.json"
|
||||
schemaPath: join(__dirname, 'oneapi.json'),
|
||||
mock: false,
|
||||
},
|
||||
{
|
||||
requestLibPath: "import { request } from '@umijs/max'",
|
||||
schemaPath: 'https://gw.alipayobjects.com/os/antfincdn/CA1dOm%2631B/openapi.json',
|
||||
projectName: 'swagger',
|
||||
},
|
||||
],
|
||||
|
||||
mock: {
|
||||
include: ['mock/**/*', 'src/pages/**/_mock.ts'],
|
||||
},
|
||||
mfsu: {
|
||||
strategy: 'normal',
|
||||
},
|
||||
esbuildMinifyIIFE: true,
|
||||
requestRecord: {},
|
||||
tailwindcss: {},
|
||||
});
|
||||
174
config/config.js
Normal file
174
config/config.js
Normal file
@@ -0,0 +1,174 @@
|
||||
// https://umijs.org/config/
|
||||
import { defineConfig } from '@umijs/max';
|
||||
import { join } from 'path';
|
||||
import defaultSettings from './defaultSettings';
|
||||
import proxy from './proxy';
|
||||
|
||||
import routes from './routes';
|
||||
|
||||
const { REACT_APP_ENV = 'dev' } = process.env;
|
||||
|
||||
export default defineConfig({
|
||||
/**
|
||||
* @name 开启 hash 模式
|
||||
* @description 让 build 之后的产物包含 hash 后缀。通常用于增量发布和避免浏览器加载缓存。
|
||||
* @doc https://umijs.org/docs/api/config#hash
|
||||
*/
|
||||
hash: true,
|
||||
|
||||
/**
|
||||
* @name 兼容性设置
|
||||
* @description 设置 ie11 不一定完美兼容,需要检查自己使用的所有依赖
|
||||
* @doc https://umijs.org/docs/api/config#targets
|
||||
*/
|
||||
// targets: {
|
||||
// ie: 11,
|
||||
// },
|
||||
/**
|
||||
* @name 路由的配置,不在路由中引入的文件不会编译
|
||||
* @description 只支持 path,component,routes,redirect,wrappers,title 的配置
|
||||
* @doc https://umijs.org/docs/guides/routes
|
||||
*/
|
||||
// umi routes: https://umijs.org/docs/routing
|
||||
// routes,
|
||||
/**
|
||||
* @name 主题的配置
|
||||
* @description 虽然叫主题,但是其实只是 less 的变量设置
|
||||
* @doc antd的主题设置 https://ant.design/docs/react/customize-theme-cn
|
||||
* @doc umi 的theme 配置 https://umijs.org/docs/api/config#theme
|
||||
*/
|
||||
theme: {
|
||||
// 如果不想要 configProvide 动态设置主题需要把这个设置为 default
|
||||
// 只有设置为 variable, 才能使用 configProvide 动态设置主色调
|
||||
'root-entry-name': 'variable',
|
||||
},
|
||||
/**
|
||||
* @name moment 的国际化配置
|
||||
* @description 如果对国际化没有要求,打开之后能减少js的包大小
|
||||
* @doc https://umijs.org/docs/api/config#ignoremomentlocale
|
||||
*/
|
||||
ignoreMomentLocale: false,
|
||||
/**
|
||||
* @name 代理配置
|
||||
* @description 可以让你的本地服务器代理到你的服务器上,这样你就可以访问服务器的数据了
|
||||
* @see 要注意以下 代理只能在本地开发时使用,build 之后就无法使用了。
|
||||
* @doc 代理介绍 https://umijs.org/docs/guides/proxy
|
||||
* @doc 代理配置 https://umijs.org/docs/api/config#proxy
|
||||
*/
|
||||
proxy: proxy[REACT_APP_ENV],
|
||||
/**
|
||||
* @name 快速热更新配置
|
||||
* @description 一个不错的热更新组件,更新时可以保留 state
|
||||
*/
|
||||
fastRefresh: true,
|
||||
//============== 以下都是max的插件配置 ===============
|
||||
/**
|
||||
* @name 数据流插件
|
||||
* @@doc https://umijs.org/docs/max/data-flow
|
||||
*/
|
||||
model: {},
|
||||
/**
|
||||
* 一个全局的初始数据流,可以用它在插件之间共享数据
|
||||
* @description 可以用来存放一些全局的数据,比如用户信息,或者一些全局的状态,全局初始状态在整个 Umi 项目的最开始创建。
|
||||
* @doc https://umijs.org/docs/max/data-flow#%E5%85%A8%E5%B1%80%E5%88%9D%E5%A7%8B%E7%8A%B6%E6%80%81
|
||||
*/
|
||||
initialState: {},
|
||||
/**
|
||||
* @name layout 插件
|
||||
* @doc https://umijs.org/docs/max/layout-menu
|
||||
*/
|
||||
title: '云充电管理后台',
|
||||
layout: {
|
||||
locale: false,
|
||||
...defaultSettings,
|
||||
},
|
||||
define: {
|
||||
'process.env': {
|
||||
API_URL: "http://adminapi.prod.zhongshuai2023.com",
|
||||
// API_URL: "http://192.168.1.32:1002",
|
||||
WS_URL: "ws://lv.com",
|
||||
STATIC_URL: "http://lv.com",
|
||||
WEMAP_KEY: 'ZFDBZ-YUTWB-353UZ-NYKEY-JTVIZ-Q3F6X'
|
||||
}
|
||||
},
|
||||
/**
|
||||
* @name moment2dayjs 插件
|
||||
* @description 将项目中的 moment 替换为 dayjs
|
||||
* @doc https://umijs.org/docs/max/moment2dayjs
|
||||
*/
|
||||
moment2dayjs: {
|
||||
preset: 'antd',
|
||||
plugins: ['duration'],
|
||||
},
|
||||
/**
|
||||
* @name 国际化插件
|
||||
* @doc https://umijs.org/docs/max/i18n
|
||||
*/
|
||||
locale: {
|
||||
// default zh-CN
|
||||
default: 'zh-CN',
|
||||
antd: true,
|
||||
// default true, when it is true, will use `navigator.language` overwrite default
|
||||
baseNavigator: true,
|
||||
},
|
||||
/**
|
||||
* @name antd 插件
|
||||
* @description 内置了 babel import 插件
|
||||
* @doc https://umijs.org/docs/max/antd#antd
|
||||
*/
|
||||
antd: {},
|
||||
/**
|
||||
* @name 网络请求配置
|
||||
* @description 它基于 axios 和 ahooks 的 useRequest 提供了一套统一的网络请求和错误处理方案。
|
||||
* @doc https://umijs.org/docs/max/request
|
||||
*/
|
||||
request: {},
|
||||
/**
|
||||
* @name 权限插件
|
||||
* @description 基于 initialState 的权限插件,必须先打开 initialState
|
||||
* @doc https://umijs.org/docs/max/access
|
||||
*/
|
||||
access: {},
|
||||
/**
|
||||
* @name <head> 中额外的 script
|
||||
* @description 配置 <head> 中额外的 script
|
||||
*/
|
||||
headScripts: [
|
||||
// 解决首次加载时白屏的问题
|
||||
{ src: '/scripts/loading.js', async: true },
|
||||
{
|
||||
src: `https://map.qq.com/api/gljs?v=1.exp&key=ZFDBZ-YUTWB-353UZ-NYKEY-JTVIZ-Q3F6X`,
|
||||
async: true,
|
||||
}
|
||||
],
|
||||
//================ pro 插件配置 =================
|
||||
presets: ['umi-presets-pro'],
|
||||
/**
|
||||
* @name openAPI 插件的配置
|
||||
* @description 基于 openapi 的规范生成serve 和mock,能减少很多样板代码
|
||||
* @doc https://pro.ant.design/zh-cn/docs/openapi/
|
||||
*/
|
||||
openAPI: [
|
||||
{
|
||||
requestLibPath: "import { request } from '@umijs/max'",
|
||||
// 或者使用在线的版本
|
||||
// schemaPath: "https://gw.alipayobjects.com/os/antfincdn/M%24jrzTTYJN/oneapi.json"
|
||||
schemaPath: join(__dirname, 'oneapi.json'),
|
||||
mock: false,
|
||||
},
|
||||
{
|
||||
requestLibPath: "import { request } from '@umijs/max'",
|
||||
schemaPath: 'https://gw.alipayobjects.com/os/antfincdn/CA1dOm%2631B/openapi.json',
|
||||
projectName: 'swagger',
|
||||
},
|
||||
],
|
||||
mock: {
|
||||
include: ['mock/**/*', 'src/pages/**/_mock.ts'],
|
||||
},
|
||||
mfsu: {
|
||||
strategy: 'normal',
|
||||
},
|
||||
esbuildMinifyIIFE: true,
|
||||
requestRecord: {},
|
||||
tailwindcss: {},
|
||||
});
|
||||
29
config/defaultSettings.ts
Normal file
29
config/defaultSettings.ts
Normal file
@@ -0,0 +1,29 @@
|
||||
import { ProLayoutProps } from '@ant-design/pro-components';
|
||||
|
||||
/**
|
||||
* @name
|
||||
*/
|
||||
const Settings: ProLayoutProps & {
|
||||
pwa?: boolean;
|
||||
logo?: string;
|
||||
} = {
|
||||
navTheme: 'light',
|
||||
// 拂晓蓝
|
||||
colorPrimary: '#1890ff',
|
||||
layout: 'mix',
|
||||
contentWidth: 'Fluid',
|
||||
fixedHeader: false,
|
||||
fixSiderbar: true,
|
||||
colorWeak: false,
|
||||
title: '云充电管理后台',
|
||||
pwa: true,
|
||||
logo: false,
|
||||
iconfontUrl: '',
|
||||
token: {
|
||||
// 参见ts声明,demo 见文档,通过token 修改样式
|
||||
//https://procomponents.ant.design/components/layout#%E9%80%9A%E8%BF%87-token-%E4%BF%AE%E6%94%B9%E6%A0%B7%E5%BC%8F
|
||||
},
|
||||
tailwindcss: {},
|
||||
};
|
||||
|
||||
export default Settings;
|
||||
593
config/oneapi.json
Normal file
593
config/oneapi.json
Normal file
@@ -0,0 +1,593 @@
|
||||
{
|
||||
"openapi": "3.0.1",
|
||||
"info": {
|
||||
"title": "Ant Design Pro",
|
||||
"version": "1.0.0"
|
||||
},
|
||||
"servers": [
|
||||
{
|
||||
"url": "http://localhost:8000/"
|
||||
},
|
||||
{
|
||||
"url": "https://localhost:8000/"
|
||||
}
|
||||
],
|
||||
"paths": {
|
||||
"/api/currentUser": {
|
||||
"get": {
|
||||
"tags": ["api"],
|
||||
"description": "获取当前的用户",
|
||||
"operationId": "currentUser",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "Success",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/CurrentUser"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"401": {
|
||||
"description": "Error",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"x-swagger-router-controller": "api"
|
||||
},
|
||||
"/api/login/captcha": {
|
||||
"post": {
|
||||
"description": "发送验证码",
|
||||
"operationId": "getFakeCaptcha",
|
||||
"tags": ["login"],
|
||||
"parameters": [
|
||||
{
|
||||
"name": "phone",
|
||||
"in": "query",
|
||||
"description": "手机号",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "Success",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/FakeCaptcha"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/login/outLogin": {
|
||||
"post": {
|
||||
"description": "登录接口",
|
||||
"operationId": "outLogin",
|
||||
"tags": ["login"],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "Success",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"401": {
|
||||
"description": "Error",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"x-swagger-router-controller": "api"
|
||||
},
|
||||
"/api/login/account": {
|
||||
"post": {
|
||||
"tags": ["login"],
|
||||
"description": "登录接口",
|
||||
"operationId": "login",
|
||||
"requestBody": {
|
||||
"description": "登录系统",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/LoginParams"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": true
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "Success",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/LoginResult"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"401": {
|
||||
"description": "Error",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"x-codegen-request-body-name": "body"
|
||||
},
|
||||
"x-swagger-router-controller": "api"
|
||||
},
|
||||
"/api/notices": {
|
||||
"summary": "getNotices",
|
||||
"description": "NoticeIconItem",
|
||||
"get": {
|
||||
"tags": ["api"],
|
||||
"operationId": "getNotices",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "Success",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/NoticeIconList"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/rule": {
|
||||
"get": {
|
||||
"tags": ["rule"],
|
||||
"description": "获取规则列表",
|
||||
"operationId": "rule",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "current",
|
||||
"in": "query",
|
||||
"description": "当前的页码",
|
||||
"schema": {
|
||||
"type": "number"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "pageSize",
|
||||
"in": "query",
|
||||
"description": "页面的容量",
|
||||
"schema": {
|
||||
"type": "number"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "Success",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/RuleList"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"401": {
|
||||
"description": "Error",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"post": {
|
||||
"tags": ["rule"],
|
||||
"description": "新建规则",
|
||||
"operationId": "addRule",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "Success",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/RuleListItem"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"401": {
|
||||
"description": "Error",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"put": {
|
||||
"tags": ["rule"],
|
||||
"description": "新建规则",
|
||||
"operationId": "updateRule",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "Success",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/RuleListItem"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"401": {
|
||||
"description": "Error",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"delete": {
|
||||
"tags": ["rule"],
|
||||
"description": "删除规则",
|
||||
"operationId": "removeRule",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "Success",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"401": {
|
||||
"description": "Error",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"x-swagger-router-controller": "api"
|
||||
},
|
||||
"/swagger": {
|
||||
"x-swagger-pipe": "swagger_raw"
|
||||
}
|
||||
},
|
||||
"components": {
|
||||
"schemas": {
|
||||
"CurrentUser": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"avatar": {
|
||||
"type": "string"
|
||||
},
|
||||
"userid": {
|
||||
"type": "string"
|
||||
},
|
||||
"email": {
|
||||
"type": "string"
|
||||
},
|
||||
"signature": {
|
||||
"type": "string"
|
||||
},
|
||||
"title": {
|
||||
"type": "string"
|
||||
},
|
||||
"group": {
|
||||
"type": "string"
|
||||
},
|
||||
"tags": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"key": {
|
||||
"type": "string"
|
||||
},
|
||||
"label": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"notifyCount": {
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
},
|
||||
"unreadCount": {
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
},
|
||||
"country": {
|
||||
"type": "string"
|
||||
},
|
||||
"access": {
|
||||
"type": "string"
|
||||
},
|
||||
"geographic": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"province": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"label": {
|
||||
"type": "string"
|
||||
},
|
||||
"key": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"city": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"label": {
|
||||
"type": "string"
|
||||
},
|
||||
"key": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"address": {
|
||||
"type": "string"
|
||||
},
|
||||
"phone": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"LoginResult": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"status": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": {
|
||||
"type": "string"
|
||||
},
|
||||
"currentAuthority": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"PageParams": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"current": {
|
||||
"type": "number"
|
||||
},
|
||||
"pageSize": {
|
||||
"type": "number"
|
||||
}
|
||||
}
|
||||
},
|
||||
"RuleListItem": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"key": {
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
},
|
||||
"disabled": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"href": {
|
||||
"type": "string"
|
||||
},
|
||||
"avatar": {
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"owner": {
|
||||
"type": "string"
|
||||
},
|
||||
"desc": {
|
||||
"type": "string"
|
||||
},
|
||||
"callNo": {
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
},
|
||||
"status": {
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
},
|
||||
"updatedAt": {
|
||||
"type": "string",
|
||||
"format": "datetime"
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "string",
|
||||
"format": "datetime"
|
||||
},
|
||||
"progress": {
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
}
|
||||
}
|
||||
},
|
||||
"RuleList": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"data": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/RuleListItem"
|
||||
}
|
||||
},
|
||||
"total": {
|
||||
"type": "integer",
|
||||
"description": "列表的内容总数",
|
||||
"format": "int32"
|
||||
},
|
||||
"success": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
"FakeCaptcha": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"code": {
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
},
|
||||
"status": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"LoginParams": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"username": {
|
||||
"type": "string"
|
||||
},
|
||||
"password": {
|
||||
"type": "string"
|
||||
},
|
||||
"autoLogin": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"type": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"ErrorResponse": {
|
||||
"required": ["errorCode"],
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"errorCode": {
|
||||
"type": "string",
|
||||
"description": "业务约定的错误码"
|
||||
},
|
||||
"errorMessage": {
|
||||
"type": "string",
|
||||
"description": "业务上的错误信息"
|
||||
},
|
||||
"success": {
|
||||
"type": "boolean",
|
||||
"description": "业务上的请求是否成功"
|
||||
}
|
||||
}
|
||||
},
|
||||
"NoticeIconList": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"data": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/NoticeIconItem"
|
||||
}
|
||||
},
|
||||
"total": {
|
||||
"type": "integer",
|
||||
"description": "列表的内容总数",
|
||||
"format": "int32"
|
||||
},
|
||||
"success": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
"NoticeIconItemType": {
|
||||
"title": "NoticeIconItemType",
|
||||
"description": "已读未读列表的枚举",
|
||||
"type": "string",
|
||||
"properties": {},
|
||||
"enum": ["notification", "message", "event"]
|
||||
},
|
||||
"NoticeIconItem": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"extra": {
|
||||
"type": "string",
|
||||
"format": "any"
|
||||
},
|
||||
"key": { "type": "string" },
|
||||
"read": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"avatar": {
|
||||
"type": "string"
|
||||
},
|
||||
"title": {
|
||||
"type": "string"
|
||||
},
|
||||
"status": {
|
||||
"type": "string"
|
||||
},
|
||||
"datetime": {
|
||||
"type": "string",
|
||||
"format": "date"
|
||||
},
|
||||
"description": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": {
|
||||
"extensions": {
|
||||
"x-is-enum": true
|
||||
},
|
||||
"$ref": "#/components/schemas/NoticeIconItemType"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
54
config/proxy.ts
Normal file
54
config/proxy.ts
Normal file
@@ -0,0 +1,54 @@
|
||||
/**
|
||||
* @name 代理的配置
|
||||
* @see 在生产环境 代理是无法生效的,所以这里没有生产环境的配置
|
||||
* -------------------------------
|
||||
* The agent cannot take effect in the production environment
|
||||
* so there is no configuration of the production environment
|
||||
* For details, please see
|
||||
* https://pro.ant.design/docs/deploy
|
||||
*
|
||||
* @doc https://umijs.org/docs/guides/proxy
|
||||
*/
|
||||
export default {
|
||||
// 如果需要自定义本地开发服务器 请取消注释按需调整
|
||||
// dev: {
|
||||
// // localhost:8000/api/** -> https://preview.pro.ant.design/api/**
|
||||
// '/api/': {
|
||||
// // 要代理的地址
|
||||
// target: 'https://preview.pro.ant.design',
|
||||
// // 配置了这个可以从 http 代理到 https
|
||||
// // 依赖 origin 的功能可能需要这个,比如 cookie
|
||||
// changeOrigin: true,
|
||||
// },
|
||||
// },
|
||||
|
||||
/**
|
||||
* @name 详细的代理配置
|
||||
* @doc https://github.com/chimurai/http-proxy-middleware
|
||||
*/
|
||||
test: {
|
||||
// localhost:8000/api/** -> https://preview.pro.ant.design/api/**
|
||||
'/api/': {
|
||||
// target: 'https://proapi.azurewebsites.net',
|
||||
// target: 'http://192.168.1.32:6001',
|
||||
target: 'http://192.168.1.54:6001',
|
||||
|
||||
changeOrigin: true,
|
||||
pathRewrite: { '^': '' },
|
||||
},
|
||||
},
|
||||
dev: {
|
||||
'/admin/': {
|
||||
target: 'http://192.168.1.54:6001',
|
||||
changeOrigin: true,
|
||||
pathRewrite: { '^': '' },
|
||||
},
|
||||
},
|
||||
pre: {
|
||||
'/api/': {
|
||||
target: 'your pre url',
|
||||
changeOrigin: true,
|
||||
pathRewrite: { '^': '' },
|
||||
},
|
||||
},
|
||||
};
|
||||
37
config/routes.ts
Normal file
37
config/routes.ts
Normal file
@@ -0,0 +1,37 @@
|
||||
import { layout } from "@/app";
|
||||
import { MenuDataItem } from '@ant-design/pro-components'
|
||||
/**
|
||||
* @name umi 的路由配置
|
||||
* @description 只支持 path,component,routes,redirect,wrappers,name,icon 的配置
|
||||
* @param path path 只支持两种占位符配置,第一种是动态参数 :id 的形式,第二种是 * 通配符,通配符只能出现路由字符串的最后。
|
||||
* @param component 配置 location 和 path 匹配后用于渲染的 React 组件路径。可以是绝对路径,也可以是相对路径,如果是相对路径,会从 src/pages 开始找起。
|
||||
* @param routes 配置子路由,通常在需要为多个路径增加 layout 组件时使用。
|
||||
* @param redirect 配置路由跳转
|
||||
* @param wrappers 配置路由组件的包装组件,通过包装组件可以为当前的路由组件组合进更多的功能。 比如,可以用于路由级别的权限校验
|
||||
* @param name 配置路由的标题,默认读取国际化文件 menu.ts 中 menu.xxxx 的值,如配置 name 为 login,则读取 menu.ts 中 menu.login 的取值作为标题
|
||||
* @param icon 配置路由的图标,取值参考 https://ant.design/components/icon-cn, 注意去除风格后缀和大小写,如想要配置图标为 <StepBackwardOutlined /> 则取值应为 stepBackward 或 StepBackward,如想要配置图标为 <UserOutlined /> 则取值应为 user 或者 User
|
||||
* @doc https://umijs.org/docs/guides/routes
|
||||
*/
|
||||
export default [
|
||||
{
|
||||
path: '/user/login',
|
||||
redirect: '/user/login',
|
||||
headerRender: false,
|
||||
// 不展示页脚
|
||||
footerRender: false,
|
||||
// 不展示菜单
|
||||
menuRender: false,
|
||||
// 不展示菜单顶栏
|
||||
menuHeaderRender: false,
|
||||
// 隐藏子菜单
|
||||
hideChildrenInMenu: true,
|
||||
// 隐藏自己和子菜单
|
||||
hideInMenu: true,
|
||||
// 在面包屑中隐藏
|
||||
hideInBreadcrumb: true,
|
||||
},
|
||||
{
|
||||
path: '/',
|
||||
redirect: '/404',
|
||||
},
|
||||
];
|
||||
1
dist/1411.d86c9c0c.async.js
vendored
Normal file
1
dist/1411.d86c9c0c.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
581
dist/1757.58ff063a.async.js
vendored
Normal file
581
dist/1757.58ff063a.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/1757.dd92c41b.chunk.css
vendored
Normal file
1
dist/1757.dd92c41b.chunk.css
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/283.899ca4ab.async.js
vendored
Normal file
1
dist/283.899ca4ab.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
40
dist/2859.b3ab2137.async.js
vendored
Normal file
40
dist/2859.b3ab2137.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
81
dist/2901.355421dc.async.js
vendored
Normal file
81
dist/2901.355421dc.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
56
dist/449.7e339590.async.js
vendored
Normal file
56
dist/449.7e339590.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
27
dist/4587.7e2bec3b.async.js
vendored
Normal file
27
dist/4587.7e2bec3b.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/4642.fba01010.async.js
vendored
Normal file
1
dist/4642.fba01010.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/4974.a79f4396.async.js
vendored
Normal file
1
dist/4974.a79f4396.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
3
dist/5384.f5e21e3b.async.js
vendored
Normal file
3
dist/5384.f5e21e3b.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
58
dist/6030.760d1f86.async.js
vendored
Normal file
58
dist/6030.760d1f86.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
78
dist/6732.60ffda44.async.js
vendored
Normal file
78
dist/6732.60ffda44.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/8381.dfc8b002.async.js
vendored
Normal file
1
dist/8381.dfc8b002.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
3
dist/939.4dac2e3d.async.js
vendored
Normal file
3
dist/939.4dac2e3d.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
8
dist/9910.c8239399.async.js
vendored
Normal file
8
dist/9910.c8239399.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/CNAME
vendored
Normal file
1
dist/CNAME
vendored
Normal file
@@ -0,0 +1 @@
|
||||
preview.pro.ant.design
|
||||
BIN
dist/favicon.ico
vendored
Normal file
BIN
dist/favicon.ico
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.2 KiB |
BIN
dist/icons/icon-128x128.png
vendored
Normal file
BIN
dist/icons/icon-128x128.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.3 KiB |
BIN
dist/icons/icon-192x192.png
vendored
Normal file
BIN
dist/icons/icon-192x192.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.8 KiB |
BIN
dist/icons/icon-512x512.png
vendored
Normal file
BIN
dist/icons/icon-512x512.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.0 KiB |
14
dist/index.html
vendored
Normal file
14
dist/index.html
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
<!DOCTYPE html><html><head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>云充电管理后台</title>
|
||||
<link rel="stylesheet" href="/umi.1c2fc5d0.css">
|
||||
<script async="" src="/scripts/loading.js"></script>
|
||||
<script async="" src="https://map.qq.com/api/gljs?v=1.exp&key=ZFDBZ-YUTWB-353UZ-NYKEY-JTVIZ-Q3F6X"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
<script src="/umi.aa2b6861.js"></script>
|
||||
|
||||
</body></html>
|
||||
1
dist/logo.svg
vendored
Normal file
1
dist/logo.svg
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200" version="1.1" viewBox="0 0 200 200"><title>Group 28 Copy 5</title><desc>Created with Sketch.</desc><defs><linearGradient id="linearGradient-1" x1="62.102%" x2="108.197%" y1="0%" y2="37.864%"><stop offset="0%" stop-color="#4285EB"/><stop offset="100%" stop-color="#2EC7FF"/></linearGradient><linearGradient id="linearGradient-2" x1="69.644%" x2="54.043%" y1="0%" y2="108.457%"><stop offset="0%" stop-color="#29CDFF"/><stop offset="37.86%" stop-color="#148EFF"/><stop offset="100%" stop-color="#0A60FF"/></linearGradient><linearGradient id="linearGradient-3" x1="69.691%" x2="16.723%" y1="-12.974%" y2="117.391%"><stop offset="0%" stop-color="#FA816E"/><stop offset="41.473%" stop-color="#F74A5C"/><stop offset="100%" stop-color="#F51D2C"/></linearGradient><linearGradient id="linearGradient-4" x1="68.128%" x2="30.44%" y1="-35.691%" y2="114.943%"><stop offset="0%" stop-color="#FA8E7D"/><stop offset="51.264%" stop-color="#F74A5C"/><stop offset="100%" stop-color="#F51D2C"/></linearGradient></defs><g id="Page-1" fill="none" fill-rule="evenodd" stroke="none" stroke-width="1"><g id="logo" transform="translate(-20.000000, -20.000000)"><g id="Group-28-Copy-5" transform="translate(20.000000, 20.000000)"><g id="Group-27-Copy-3"><g id="Group-25" fill-rule="nonzero"><g id="2"><path id="Shape" fill="url(#linearGradient-1)" d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z"/><path id="Shape" fill="url(#linearGradient-2)" d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z"/></g><path id="Shape" fill="url(#linearGradient-3)" d="M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z"/></g><ellipse id="Combined-Shape" cx="100.519" cy="100.437" fill="url(#linearGradient-4)" rx="23.6" ry="23.581"/></g></g></g></g></svg>
|
||||
|
After Width: | Height: | Size: 3.8 KiB |
5
dist/pro_icon.svg
vendored
Normal file
5
dist/pro_icon.svg
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<svg width="42" height="42" xmlns="http://www.w3.org/2000/svg">
|
||||
<g>
|
||||
<path fill="#070707" d="m6.717392,13.773912l5.6,0c2.8,0 4.7,1.9 4.7,4.7c0,2.8 -2,4.7 -4.9,4.7l-2.5,0l0,4.3l-2.9,0l0,-13.7zm2.9,2.2l0,4.9l1.9,0c1.6,0 2.6,-0.9 2.6,-2.4c0,-1.6 -0.9,-2.4 -2.6,-2.4l-1.9,0l0,-0.1zm8.9,11.5l2.7,0l0,-5.7c0,-1.4 0.8,-2.3 2.2,-2.3c0.4,0 0.8,0.1 1,0.2l0,-2.4c-0.2,-0.1 -0.5,-0.1 -0.8,-0.1c-1.2,0 -2.1,0.7 -2.4,2l-0.1,0l0,-1.9l-2.7,0l0,10.2l0.1,0zm11.7,0.1c-3.1,0 -5,-2 -5,-5.3c0,-3.3 2,-5.3 5,-5.3s5,2 5,5.3c0,3.4 -1.9,5.3 -5,5.3zm0,-2.1c1.4,0 2.2,-1.1 2.2,-3.2c0,-2 -0.8,-3.2 -2.2,-3.2c-1.4,0 -2.2,1.2 -2.2,3.2c0,2.1 0.8,3.2 2.2,3.2z" class="st0" id="Ant-Design-Pro"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 677 B |
202
dist/scripts/loading.js
vendored
Normal file
202
dist/scripts/loading.js
vendored
Normal file
@@ -0,0 +1,202 @@
|
||||
/**
|
||||
* loading 占位
|
||||
* 解决首次加载时白屏的问题
|
||||
*/
|
||||
(function () {
|
||||
const _root = document.querySelector('#root');
|
||||
if (_root && _root.innerHTML === '') {
|
||||
_root.innerHTML = `
|
||||
<style>
|
||||
html,
|
||||
body,
|
||||
#root {
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
#root {
|
||||
background-repeat: no-repeat;
|
||||
background-size: 100% auto;
|
||||
}
|
||||
|
||||
.loading-title {
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
.loading-sub-title {
|
||||
margin-top: 20px;
|
||||
font-size: 1rem;
|
||||
color: #888;
|
||||
}
|
||||
|
||||
.page-loading-warp {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 26px;
|
||||
}
|
||||
.ant-spin {
|
||||
position: absolute;
|
||||
display: none;
|
||||
-webkit-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
color: rgba(0, 0, 0, 0.65);
|
||||
color: #1890ff;
|
||||
font-size: 14px;
|
||||
font-variant: tabular-nums;
|
||||
line-height: 1.5;
|
||||
text-align: center;
|
||||
list-style: none;
|
||||
opacity: 0;
|
||||
-webkit-transition: -webkit-transform 0.3s
|
||||
cubic-bezier(0.78, 0.14, 0.15, 0.86);
|
||||
transition: -webkit-transform 0.3s
|
||||
cubic-bezier(0.78, 0.14, 0.15, 0.86);
|
||||
transition: transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);
|
||||
transition: transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86),
|
||||
-webkit-transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);
|
||||
-webkit-font-feature-settings: "tnum";
|
||||
font-feature-settings: "tnum";
|
||||
}
|
||||
|
||||
.ant-spin-spinning {
|
||||
position: static;
|
||||
display: inline-block;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.ant-spin-dot {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.ant-spin-dot-item {
|
||||
position: absolute;
|
||||
display: block;
|
||||
width: 9px;
|
||||
height: 9px;
|
||||
background-color: #1890ff;
|
||||
border-radius: 100%;
|
||||
-webkit-transform: scale(0.75);
|
||||
-ms-transform: scale(0.75);
|
||||
transform: scale(0.75);
|
||||
-webkit-transform-origin: 50% 50%;
|
||||
-ms-transform-origin: 50% 50%;
|
||||
transform-origin: 50% 50%;
|
||||
opacity: 0.3;
|
||||
-webkit-animation: antspinmove 1s infinite linear alternate;
|
||||
animation: antSpinMove 1s infinite linear alternate;
|
||||
}
|
||||
|
||||
.ant-spin-dot-item:nth-child(1) {
|
||||
top: 0;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.ant-spin-dot-item:nth-child(2) {
|
||||
top: 0;
|
||||
right: 0;
|
||||
-webkit-animation-delay: 0.4s;
|
||||
animation-delay: 0.4s;
|
||||
}
|
||||
|
||||
.ant-spin-dot-item:nth-child(3) {
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
-webkit-animation-delay: 0.8s;
|
||||
animation-delay: 0.8s;
|
||||
}
|
||||
|
||||
.ant-spin-dot-item:nth-child(4) {
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
-webkit-animation-delay: 1.2s;
|
||||
animation-delay: 1.2s;
|
||||
}
|
||||
|
||||
.ant-spin-dot-spin {
|
||||
-webkit-transform: rotate(45deg);
|
||||
-ms-transform: rotate(45deg);
|
||||
transform: rotate(45deg);
|
||||
-webkit-animation: antrotate 1.2s infinite linear;
|
||||
animation: antRotate 1.2s infinite linear;
|
||||
}
|
||||
|
||||
.ant-spin-lg .ant-spin-dot {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
font-size: 32px;
|
||||
}
|
||||
|
||||
.ant-spin-lg .ant-spin-dot i {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
}
|
||||
|
||||
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
|
||||
.ant-spin-blur {
|
||||
background: #fff;
|
||||
opacity: 0.5;
|
||||
}
|
||||
}
|
||||
|
||||
@-webkit-keyframes antSpinMove {
|
||||
to {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes antSpinMove {
|
||||
to {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
@-webkit-keyframes antRotate {
|
||||
to {
|
||||
-webkit-transform: rotate(405deg);
|
||||
transform: rotate(405deg);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes antRotate {
|
||||
to {
|
||||
-webkit-transform: rotate(405deg);
|
||||
transform: rotate(405deg);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
<div style="
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 100%;
|
||||
min-height: 362px;
|
||||
">
|
||||
<div class="page-loading-warp">
|
||||
<div class="ant-spin ant-spin-lg ant-spin-spinning">
|
||||
<span class="ant-spin-dot ant-spin-dot-spin">
|
||||
<i class="ant-spin-dot-item"></i>
|
||||
<i class="ant-spin-dot-item"></i>
|
||||
<i class="ant-spin-dot-item"></i>
|
||||
<i class="ant-spin-dot-item"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="loading-title">
|
||||
正在加载资源
|
||||
</div>
|
||||
<div class="loading-sub-title">
|
||||
初次加载资源可能需要较多时间 请耐心等待
|
||||
</div>
|
||||
</div>
|
||||
`;
|
||||
}
|
||||
})();
|
||||
1
dist/src__pages__404.f65a06f8.async.js
vendored
Normal file
1
dist/src__pages__404.f65a06f8.async.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[4650],{77372:function(o,s,t){t.r(s);var n=t(7485),u=t(84974),_=t(50159),E=t(50959),a=t(11527),e=function(){return(0,a.jsx)(u.ZP,{status:"404",title:"404",subTitle:(0,n.useIntl)().formatMessage({id:"pages.404.subTitle"}),extra:(0,a.jsx)(_.ZP,{type:"primary",onClick:function(){return n.history.push("/")},children:(0,n.useIntl)().formatMessage({id:"pages.404.buttonText"})})})};s.default=e}}]);
|
||||
10
dist/src__pages__Admin.af796cad.async.js
vendored
Normal file
10
dist/src__pages__Admin.af796cad.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
10
dist/src__pages__Welcome.522f55aa.async.js
vendored
Normal file
10
dist/src__pages__Welcome.522f55aa.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/src__pages__config__agreement__edit.07815626.async.js
vendored
Normal file
1
dist/src__pages__config__agreement__edit.07815626.async.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6387],{53271:function($,v,e){e.r(v);var P=e(90228),s=e.n(P),g=e(87999),D=e.n(g),A=e(48305),O=e.n(A),C=e(50959),m=e(49547),b=e(35748),T=e(19014),j=e(50925),I=e(94675),R=e(2733),M=e(17885),U=e(66001),c=e.n(U),z=e(8776),n=e(11527),B=function(a){var L=(0,C.useState)(c().createEditorState("")),f=O()(L,2),d=f[0],i=f[1],W=j.Z.useForm(),x=O()(W,1),l=x[0],E=a.values;(0,C.useEffect)(function(){i(c().createEditorState(E.protocolContent?E.protocolContent:"")),l.resetFields(),l.setFieldsValue(E)},[l,a]);var F=function(){l.submit()},K=function(){a.onCancel()},y=function(){var t=D()(s()().mark(function o(_){var r;return s()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:r=JSON.parse(JSON.stringify(_)),r.protocolContent=d.toHTML(),a.onSubmit(r);case 3:case"end":return u.stop()}},o)}));return function(_){return t.apply(this,arguments)}}(),S=["undo","redo","separator","font-size","line-height","letter-spacing","separator","text-color","bold","italic","underline","strike-through","separator","superscript","subscript","remove-styles","emoji","separator","text-indent","text-align","separator","headings","list-ul","list-ol","blockquote","code","separator","link","separator","hr","separator","clear"],Z=function(){var t=D()(s()().mark(function o(_){var r,h;return s()().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:r=[".mp4",".mkv",".avi",".mov",".wmv",".flv",".webm",".m4v",".3gp",".3g2"],h=_.toLowerCase(),r.some(function(N){return h.endsWith(N)})?i(M.ContentUtils.insertMedias(d,[{type:"VIDEO",url:_}])):i(M.ContentUtils.insertMedias(d,[{type:"IMAGE",url:_}]));case 3:case"end":return p.stop()}},o)}));return function(_){return t.apply(this,arguments)}}(),G=["separator",{key:"FilesManagerImage",title:"\u4E0A\u4F20\u56FE\u7247/\u89C6\u9891",html:null,text:(0,n.jsx)(R.Z,{fileType:"image",mode:"",imagesShow:!1,onChange:Z,count:1}),onClick:function(){console.log("Hello World!")}}];return(0,n.jsx)(I.Z,{width:1200,title:"\u534F\u8BAE\u5185\u5BB9",open:a.open,forceRender:!0,destroyOnClose:!0,onOk:F,onCancel:K,children:(0,n.jsxs)(m.A,{form:l,submitter:!1,layout:"horizontal",onFinish:y,children:[(0,n.jsx)(b.Z,{name:"id",label:"ID",disabled:!0,hidden:!0}),(0,n.jsx)(T.Z,{width:300,name:"protocolName",label:"\u534F\u8BAE\u540D\u79F0",placeholder:"\u534F\u8BAE\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u8F93\u5165"}]}),(0,n.jsx)(m.A.Group,{children:(0,n.jsx)(m.A.Item,{name:"protocolContent",children:(0,n.jsx)("div",{className:"border-solid border-2 border-indigo-600",children:(0,n.jsx)(c(),{value:d,controls:S,extendControls:G,onChange:function(o){i(o)}})})})})]})})};v.default=B}}]);
|
||||
1
dist/src__pages__config__agreement__index.c1b31e16.async.js
vendored
Normal file
1
dist/src__pages__config__agreement__index.c1b31e16.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/src__pages__config__banner__edit.19677b43.async.js
vendored
Normal file
1
dist/src__pages__config__banner__edit.19677b43.async.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9532],{35748:function(T,i,e){var s=e(35361),u=e(56929),c=e(50959),v=e(50474),f=e(11527),F=["fieldProps","min","proFieldProps","max"],h=function(l,m){var P=l.fieldProps,C=l.min,r=l.proFieldProps,p=l.max,x=(0,u.Z)(l,F);return(0,f.jsx)(v.Z,(0,s.Z)({valueType:"digit",fieldProps:(0,s.Z)({min:C,max:p},P),ref:m,filedConfig:{defaultProps:{width:"100%"}},proFieldProps:r},x))},n=c.forwardRef(h);i.Z=n},90646:function(T,i,e){e.r(i),e.d(i,{default:function(){return G}});var s=e(90228),u=e.n(s),c=e(87999),v=e.n(c),f=e(48305),F=e.n(f),h=e(50959),n=e(49547),Z=e(35748),l=e(19014),m=e(35361),P=e(56929),C=e(50474),r=e(11527),p=["fieldProps","unCheckedChildren","checkedChildren","proFieldProps"],x=h.forwardRef(function(t,o){var j=t.fieldProps,g=t.unCheckedChildren,d=t.checkedChildren,a=t.proFieldProps,O=(0,P.Z)(t,p);return(0,r.jsx)(C.Z,(0,m.Z)({valueType:"switch",fieldProps:(0,m.Z)({unCheckedChildren:g,checkedChildren:d},j),ref:o,valuePropName:"checked",proFieldProps:a,filedConfig:{valuePropName:"checked",ignoreWidth:!0,customLightMode:!0}},O))}),M=x,y=e(50925),I=e(94675),U=e(3598),W=e(7485),B=e(2733),L=function(o){var j=y.Z.useForm(),g=F()(j,1),d=g[0],a=o.values;(0,h.useEffect)(function(){console.log(a,"values"),d.resetFields(),d.setFieldsValue(a)},[d,o]);var O=(0,W.useIntl)(),K=function(){d.submit()},S=function(){o.onCancel()},$=function(){var E=v()(u()().mark(function A(R){return u()().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:o.onSubmit(R);case 1:case"end":return D.stop()}},A)}));return function(R){return E.apply(this,arguments)}}();return(0,r.jsx)(I.Z,{width:640,title:"\u8F6E\u64AD\u56FE",open:o.open,forceRender:!0,destroyOnClose:!0,onOk:K,onCancel:S,children:(0,r.jsxs)(n.A,{form:d,submitter:!1,layout:"horizontal",onFinish:$,children:[(0,r.jsx)(Z.Z,{name:"id",label:"ID",disabled:!0,hidden:!0}),(0,r.jsx)(n.A.Group,{children:(0,r.jsx)(l.Z,{name:"title",label:"\u6807\u9898",placeholder:"\u8BF7\u8F93\u5165\u6807\u9898"})}),(0,r.jsxs)(n.A.Group,{children:[(0,r.jsx)(n.A.Item,{label:"\u6392\u5E8F",name:"sortOrder",children:(0,r.jsx)(U.Z,{style:{width:200}})}),(0,r.jsx)(l.Z,{name:"jumpUrl",label:"\u8DF3\u8F6C\u5730\u5740",placeholder:"\u8BF7\u8F93\u5165\u8DF3\u8F6C\u5730\u5740"}),(0,r.jsx)(M,{checkedChildren:"\u542F\u7528",unCheckedChildren:"\u7981\u7528",name:"status",label:"\u662F\u5426\u542F\u7528",fieldProps:{defaultChecked:!0}})]}),(0,r.jsx)(n.A.Group,{children:(0,r.jsx)(n.A.Item,{label:"\u56FE\u7247",name:"imageUrl",children:(0,r.jsx)(B.Z,{fileType:"image",defaultValue:a==null?void 0:a.imageUrl,count:1,mode:""})})})]})})},G=L}}]);
|
||||
1
dist/src__pages__config__banner__index.ce487f31.async.js
vendored
Normal file
1
dist/src__pages__config__banner__index.ce487f31.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
10
dist/src__pages__config__config__index.091f1840.async.js
vendored
Normal file
10
dist/src__pages__config__config__index.091f1840.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/src__pages__merchant__edit.5cb6b96d.async.js
vendored
Normal file
1
dist/src__pages__merchant__edit.5cb6b96d.async.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6826],{35748:function(j,l,e){var u=e(35361),d=e(56929),i=e(50959),P=e(50474),c=e(11527),E=["fieldProps","min","proFieldProps","max"],p=function(n,D){var h=n.fieldProps,f=n.min,F=n.proFieldProps,_=n.max,O=(0,d.Z)(n,E);return(0,c.jsx)(P.Z,(0,u.Z)({valueType:"digit",fieldProps:(0,u.Z)({min:f,max:_},h),ref:D,filedConfig:{defaultProps:{width:"100%"}},proFieldProps:F},O))},a=i.forwardRef(p);l.Z=a},63394:function(j,l,e){e.r(l);var u=e(90228),d=e.n(u),i=e(87999),P=e.n(i),c=e(48305),E=e.n(c),p=e(50959),a=e(49547),A=e(35748),n=e(19014),D=e(50925),h=e(94675),f=e(7485),F=e(2733),_=e(11527),O=function(r){var v,C=D.Z.useForm(),x=E()(C,1),o=x[0],t=r.values;(0,p.useEffect)(function(){o.resetFields(),o.setFieldsValue(t)},[o,r]);var W=(0,f.useIntl)(),B=function(){o.submit()},b=function(){r.onCancel()},T=function(){var M=P()(d()().mark(function U(s){var m;return d()().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:m=JSON.parse(JSON.stringify(s)),s.id||(delete m.merchantInfoUpdateParams,m.merchantInfoAddParams=s.merchantInfoUpdateParams),r.onSubmit(m);case 3:case"end":return I.stop()}},U)}));return function(s){return M.apply(this,arguments)}}();return(0,_.jsx)(h.Z,{width:800,title:"\u5546\u6237\u4FE1\u606F",open:r.open,forceRender:!0,destroyOnClose:!0,onOk:B,onCancel:b,children:(0,_.jsxs)(a.A,{form:o,grid:!0,submitter:!1,layout:"horizontal",onFinish:T,children:[(0,_.jsx)(A.Z,{name:"id",label:"ID",disabled:!0,hidden:!0}),(0,_.jsx)(a.A.Group,{}),(0,_.jsxs)(a.A.Group,{children:[(0,_.jsx)(n.Z,{name:["merchantInfoUpdateParams","id"],label:"\u5546\u6237\u540D\u79F0",colProps:{md:12,xl:12},placeholder:"\u8BF7\u8F93\u5165\u5546\u6237\u540D\u79F0",hidden:!0}),(0,_.jsx)(n.Z,{name:["merchantInfoUpdateParams","merchantName"],label:"\u5546\u6237\u540D\u79F0",colProps:{md:12,xl:12},placeholder:"\u8BF7\u8F93\u5165\u5546\u6237\u540D\u79F0"}),(0,_.jsx)(a.A.Item,{label:"\u8425\u4E1A\u6267\u7167",name:["merchantInfoUpdateParams","licenseImage"],children:(0,_.jsx)(F.Z,{fileType:"image",defaultValue:t==null||(v=t.merchantInfoUpdateParams)===null||v===void 0?void 0:v.licenseImage,count:1,mode:""})}),(0,_.jsx)(n.Z,{name:["merchantInfoUpdateParams","orgCode"],label:"\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801",colProps:{md:12,xl:12},placeholder:"\u8BF7\u8F93\u5165\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801"}),(0,_.jsx)(n.Z,{name:["merchantInfoUpdateParams","licenseNo"],label:"\u8425\u4E1A\u6267\u7167\u7F16\u7801",colProps:{md:12,xl:12},placeholder:"\u8BF7\u8F93\u5165\u8425\u4E1A\u6267\u7167\u7F16\u7801"}),(0,_.jsx)(n.Z,{name:["merchantInfoUpdateParams","invoice"],label:"\u5F00\u7968\u516C\u53F8",colProps:{md:12,xl:12},placeholder:"\u8BF7\u8F93\u5165\u5F00\u7968\u516C\u53F8"}),(0,_.jsx)(n.Z,{name:["merchantInfoUpdateParams","headName"],label:"\u8D1F\u8D23\u4EBA\u540D\u79F0",colProps:{md:12,xl:12},placeholder:"\u8BF7\u8F93\u5165\u8D1F\u8D23\u4EBA\u540D\u79F0"}),(0,_.jsx)(n.Z,{name:["merchantInfoUpdateParams","contactPhone"],label:"\u8054\u7CFB\u7535\u8BDD",colProps:{md:12,xl:12},placeholder:"\u8BF7\u8F93\u5165\u8054\u7CFB\u7535\u8BDD"})]})]})})};l.default=O}}]);
|
||||
1
dist/src__pages__merchant__index.47470a40.async.js
vendored
Normal file
1
dist/src__pages__merchant__index.47470a40.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/src__pages__operator__config__edit.4119b7b0.async.js
vendored
Normal file
1
dist/src__pages__operator__config__edit.4119b7b0.async.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[145],{35748:function(B,u,e){var s=e(35361),t=e(56929),i=e(50959),E=e(50474),P=e(11527),D=["fieldProps","min","proFieldProps","max"],c=function(n,p){var O=n.fieldProps,h=n.min,_=n.proFieldProps,M=n.max,F=(0,t.Z)(n,D);return(0,P.jsx)(E.Z,(0,s.Z)({valueType:"digit",fieldProps:(0,s.Z)({min:h,max:M},O),ref:p,filedConfig:{defaultProps:{width:"100%"}},proFieldProps:_},F))},r=i.forwardRef(c);u.Z=r},33719:function(B,u,e){e.r(u);var s=e(90228),t=e.n(s),i=e(87999),E=e.n(i),P=e(48305),D=e.n(P),c=e(50959),r=e(49547),o=e(35748),n=e(19014),p=e(50925),O=e(94675),h=e(7485),_=e(11527),M=function(l){var C=p.Z.useForm(),j=D()(C,1),a=j[0],R=l.values;(0,c.useEffect)(function(){a.resetFields(),a.setFieldsValue(R)},[a,l]);var U=(0,h.useIntl)(),T=function(){a.submit()},b=function(){l.onCancel()},I=function(){var f=E()(t()().mark(function A(d){var m;return t()().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:m=JSON.parse(JSON.stringify(d)),d.id||(delete m.merchantInfoUpdateParams,m.merchantInfoAddParams=d.merchantInfoUpdateParams),l.onSubmit(m);case 3:case"end":return v.stop()}},A)}));return function(d){return f.apply(this,arguments)}}();return(0,_.jsx)(O.Z,{width:800,title:"\u6BD4\u4F8B\u914D\u7F6E",open:l.open,forceRender:!0,destroyOnClose:!0,onOk:T,onCancel:b,children:(0,_.jsxs)(r.A,{form:a,grid:!0,submitter:!1,layout:"horizontal",onFinish:I,children:[(0,_.jsx)(o.Z,{name:"id",label:"ID",disabled:!0,hidden:!0}),(0,_.jsx)(r.A.Group,{children:(0,_.jsx)(n.Z,{name:"name",label:"\u6BD4\u4F8B\u914D\u7F6E\u540D\u79F0",colProps:{md:12,xl:12},placeholder:"\u8BF7\u8F93\u5165\u6BD4\u4F8B\u914D\u7F6E\u540D\u79F0"})}),(0,_.jsxs)(r.A.Group,{children:[(0,_.jsx)(o.Z,{name:"electricityRate",label:"\u7535\u8D39\u5206\u6210\u6BD4\u4F8B",colProps:{md:12,xl:12},placeholder:"\u8BF7\u8F93\u5165\u7535\u8D39\u5206\u6210\u6BD4\u4F8B",rules:[{required:!0,message:"\u8BF7\u8F93\u5165"}]}),(0,_.jsx)(o.Z,{name:"serviceRate",label:"\u670D\u52A1\u8D39\u5206\u6210\u6BD4\u4F8B",colProps:{md:12,xl:12},placeholder:"\u8BF7\u8F93\u5165\u670D\u52A1\u8D39\u5206\u6210\u6BD4\u4F8B",rules:[{required:!0,message:"\u8BF7\u8F93\u5165"}]}),(0,_.jsx)(o.Z,{name:"configType",label:"\u914D\u7F6E\u7C7B\u578B",colProps:{md:12,xl:12},placeholder:"\u8BF7\u8F93\u5165\u914D\u7F6E\u7C7B\u578B"})]})]})})};u.default=M}}]);
|
||||
1
dist/src__pages__operator__config__index.712a5f82.async.js
vendored
Normal file
1
dist/src__pages__operator__config__index.712a5f82.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/src__pages__operator__shop__cardTable.57ffec52.async.js
vendored
Normal file
1
dist/src__pages__operator__shop__cardTable.57ffec52.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/src__pages__operator__shop__edit.56ca5a61.async.js
vendored
Normal file
1
dist/src__pages__operator__shop__edit.56ca5a61.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/src__pages__operator__shop__index.08e547c0.async.js
vendored
Normal file
1
dist/src__pages__operator__shop__index.08e547c0.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/src__pages__order__order__edit.06cf8246.async.js
vendored
Normal file
1
dist/src__pages__order__order__edit.06cf8246.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/src__pages__order__order__index.7c7791b9.async.js
vendored
Normal file
1
dist/src__pages__order__order__index.7c7791b9.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/src__pages__order__order__refund.a0c7e3c8.async.js
vendored
Normal file
1
dist/src__pages__order__order__refund.a0c7e3c8.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/src__pages__order__order__table1.c575fd73.async.js
vendored
Normal file
1
dist/src__pages__order__order__table1.c575fd73.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/src__pages__order__order__table2.f589a058.async.js
vendored
Normal file
1
dist/src__pages__order__order__table2.f589a058.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/src__pages__order__order__table3.f4ffcc23.async.js
vendored
Normal file
1
dist/src__pages__order__order__table3.f4ffcc23.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/src__pages__order__order__table4.f832ec1b.async.js
vendored
Normal file
1
dist/src__pages__order__order__table4.f832ec1b.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/src__pages__payment__invoice__index.8038276a.async.js
vendored
Normal file
1
dist/src__pages__payment__invoice__index.8038276a.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/src__pages__payment__invoice__setStstus.7a5cb33c.async.js
vendored
Normal file
1
dist/src__pages__payment__invoice__setStstus.7a5cb33c.async.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9284],{34927:function(g,P,e){var l=e(35361),t=e(56929),v=e(89558),s=e(47186),u=e(50959),f=e(50756),m=e(50474),h=e(11527),i=["fieldProps","options","radioType","layout","proFieldProps","valueEnum"],D=u.forwardRef(function(a,p){var r=a.fieldProps,o=a.options,E=a.radioType,n=a.layout,c=a.proFieldProps,M=a.valueEnum,T=(0,t.Z)(a,i);return(0,h.jsx)(m.Z,(0,l.Z)((0,l.Z)({valueType:E==="button"?"radioButton":"radio",ref:p,valueEnum:(0,v.h)(M,void 0)},T),{},{fieldProps:(0,l.Z)({options:o,layout:n},r),proFieldProps:c,filedConfig:{customLightMode:!0}}))}),d=u.forwardRef(function(a,p){var r=a.fieldProps,o=a.children;return(0,h.jsx)(s.ZP,(0,l.Z)((0,l.Z)({},r),{},{ref:p,children:o}))}),O=(0,f.G)(d,{valuePropName:"checked",ignoreWidth:!0}),_=O;_.Group=D,_.Button=s.ZP.Button,_.displayName="ProFormComponent",P.Z=_},20902:function(g,P,e){var l=e(35361),t=e(56929),v=e(50959),s=e(50474),u=e(11527),f=["fieldProps","proFieldProps"],m=function(i,D){var d=i.fieldProps,O=i.proFieldProps,_=(0,t.Z)(i,f);return(0,u.jsx)(s.Z,(0,l.Z)({ref:D,valueType:"textarea",fieldProps:d,proFieldProps:O},_))};P.Z=v.forwardRef(m)},91683:function(g,P,e){e.r(P);var l=e(90228),t=e.n(l),v=e(87999),s=e.n(v),u=e(5e4),f=e(19014),m=e(34927),h=e(49547),i=e(20902),D=e(47698),d=e(50959),O=e(78158),_=e(11527);P.default=function(a){var p=a.values,r=a.setModalVisit,o=a.modalVisit,E=a.onFinishOk,n=(0,d.useRef)();return(0,d.useEffect)(function(){var c;(c=n.current)===null||c===void 0||c.setFieldsValue(p)},[p,o]),(0,_.jsx)(_.Fragment,{children:(0,_.jsxs)(u.Y,{formRef:n,width:450,title:"\u53D1\u7968-\u4FEE\u6539\u72B6\u6001",open:o,onFinish:function(){var c=s()(t()().mark(function M(T){return t()().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:(0,O.xt)(T).then(function(A){var j;D.ZP.success("\u4FEE\u6539\u6210\u529F"),(j=n.current)===null||j===void 0||j.resetFields(),r(!1),E(T)});case 1:case"end":return C.stop()}},M)}));return function(M){return c.apply(this,arguments)}}(),onOpenChange:function(){var c=s()(t()().mark(function M(T){var R;return t()().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:r(T),(R=n.current)===null||R===void 0||R.resetFields();case 2:case"end":return A.stop()}},M)}));return function(M){return c.apply(this,arguments)}}(),children:[(0,_.jsx)(f.Z,{label:"ID",name:"id",disabled:!0}),(0,_.jsx)(m.Z.Group,{name:"status",options:[{label:"\u5DF2\u63D0\u4EA4",value:0},{label:"\u5DF2\u5F00\u7968",value:1},{label:"\u53D6\u6D88\u7533\u8BF7",value:-1}],label:"\u72B6\u6001",colProps:{md:12,xl:12}}),(0,_.jsx)(h.A.Group,{children:(0,_.jsx)(i.Z,{name:"description",label:"\u5907\u6CE8",colProps:{md:12,xl:12},placeholder:"\u8BF7\u8F93\u5165\u5907\u6CE8"})})]})})}},78158:function(g,P,e){e.d(P,{S2:function(){return D},iU:function(){return f},l1:function(){return h},rD:function(){return O},xt:function(){return a}});var l=e(90228),t=e.n(l),v=e(87999),s=e.n(v),u=e(7485);function f(r){return m.apply(this,arguments)}function m(){return m=s()(t()().mark(function r(o){return t()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,u.request)("/admin/payment/page",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:o||{}}));case 1:case"end":return n.stop()}},r)})),m.apply(this,arguments)}function h(r){return i.apply(this,arguments)}function i(){return i=s()(t()().mark(function r(o){return t()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,u.request)("/admin/payment/refund/page",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:o||{}}));case 1:case"end":return n.stop()}},r)})),i.apply(this,arguments)}function D(r){return d.apply(this,arguments)}function d(){return d=s()(t()().mark(function r(o){return t()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,u.request)("/admin/invoice/page",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:o||{}}));case 1:case"end":return n.stop()}},r)})),d.apply(this,arguments)}function O(r){return _.apply(this,arguments)}function _(){return _=s()(t()().mark(function r(o){return t()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,u.request)("/admin/invoice/exportExcel",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:o||{},responseType:"blob"}));case 1:case"end":return n.stop()}},r)})),_.apply(this,arguments)}function a(r){return p.apply(this,arguments)}function p(){return p=s()(t()().mark(function r(o){return t()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,u.request)("/admin/invoice/operatingInvoice",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:o||{}}));case 1:case"end":return n.stop()}},r)})),p.apply(this,arguments)}}}]);
|
||||
1
dist/src__pages__payment__pay__index.4fc54a05.async.js
vendored
Normal file
1
dist/src__pages__payment__pay__index.4fc54a05.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/src__pages__payment__refund__index.fa275a78.async.js
vendored
Normal file
1
dist/src__pages__payment__refund__index.fa275a78.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/src__pages__power__card__edit.9437ebe9.async.js
vendored
Normal file
1
dist/src__pages__power__card__edit.9437ebe9.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/src__pages__power__card__index.0e25e49d.async.js
vendored
Normal file
1
dist/src__pages__power__card__index.0e25e49d.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/src__pages__power__gun__edit.3e3cf307.async.js
vendored
Normal file
1
dist/src__pages__power__gun__edit.3e3cf307.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/src__pages__power__gun__index.4c091743.async.js
vendored
Normal file
1
dist/src__pages__power__gun__index.4c091743.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/src__pages__power__pile__edit.f3404341.async.js
vendored
Normal file
1
dist/src__pages__power__pile__edit.f3404341.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/src__pages__power__pile__editUp.a65b1b6e.async.js
vendored
Normal file
1
dist/src__pages__power__pile__editUp.a65b1b6e.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/src__pages__power__pile__index.6c132a31.async.js
vendored
Normal file
1
dist/src__pages__power__pile__index.6c132a31.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/src__pages__power__price__edit.4956c6d4.async.js
vendored
Normal file
1
dist/src__pages__power__price__edit.4956c6d4.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/src__pages__power__price__index.ac00a3e5.async.js
vendored
Normal file
1
dist/src__pages__power__price__index.ac00a3e5.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/src__pages__power__site__$id__create.6e50f460.async.js
vendored
Normal file
1
dist/src__pages__power__site__$id__create.6e50f460.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/src__pages__power__site__$id__update.2327a830.async.js
vendored
Normal file
1
dist/src__pages__power__site__$id__update.2327a830.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/src__pages__power__site__edit.9c135786.async.js
vendored
Normal file
1
dist/src__pages__power__site__edit.9c135786.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/src__pages__power__site__index.c3281394.async.js
vendored
Normal file
1
dist/src__pages__power__site__index.c3281394.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/src__pages__system__log__index.fc6e7c69.async.js
vendored
Normal file
1
dist/src__pages__system__log__index.fc6e7c69.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/src__pages__system__menu__edit.bc36c2fa.async.js
vendored
Normal file
1
dist/src__pages__system__menu__edit.bc36c2fa.async.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8776],{71041:function(o,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"};e.default=a},28842:function(o,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z"}}]},name:"arrow-right",theme:"outlined"};e.default=a},99247:function(o,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;function a(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}},37504:function(o,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;function a(s,h){if(!s)return!1;if(s.contains)return s.contains(h);for(var v=h;v;){if(v===s)return!0;v=v.parentNode}return!1}},87214:function(o,e,a){"use strict";var s=a(7613).default;Object.defineProperty(e,"__esModule",{value:!0}),e.clearContainerCache=N,e.injectCSS=g,e.removeCSS=k,e.updateCSS=R;var h=s(a(99247)),v=s(a(37504)),w="data-rc-order",M="data-rc-priority",C="rc-util-key",f=new Map;function b(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=n.mark;return t?t.startsWith("data-")?t:"data-".concat(t):C}function O(n){if(n.attachTo)return n.attachTo;var t=document.querySelector("head");return t||document.body}function l(n){return n==="queue"?"prependQueue":n?"prepend":"append"}function u(n){return Array.from((f.get(n)||n).children).filter(function(t){return t.tagName==="STYLE"})}function g(n){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(0,h.default)())return null;var r=t.csp,d=t.prepend,c=t.priority,m=c===void 0?0:c,_=l(d),p=_==="prependQueue",i=document.createElement("style");i.setAttribute(w,_),p&&m&&i.setAttribute(M,"".concat(m)),r!=null&&r.nonce&&(i.nonce=r==null?void 0:r.nonce),i.innerHTML=n;var y=O(t),E=y.firstChild;if(d){if(p){var P=u(y).filter(function(A){if(!["prepend","prependQueue"].includes(A.getAttribute(w)))return!1;var D=Number(A.getAttribute(M)||0);return m>=D});if(P.length)return y.insertBefore(i,P[P.length-1].nextSibling),i}y.insertBefore(i,E)}else y.appendChild(i);return i}function S(n){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=O(t);return u(r).find(function(d){return d.getAttribute(b(t))===n})}function k(n){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=S(n,t);if(r){var d=O(t);d.removeChild(r)}}function L(n,t){var r=f.get(n);if(!r||!(0,v.default)(document,r)){var d=g("",t),c=d.parentNode;f.set(n,c),n.removeChild(d)}}function N(){f.clear()}function R(n,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},d=O(r);L(d,r);var c=S(t,r);if(c){var m,_;if((m=r.csp)!==null&&m!==void 0&&m.nonce&&c.nonce!==((_=r.csp)===null||_===void 0?void 0:_.nonce)){var p;c.nonce=(p=r.csp)===null||p===void 0?void 0:p.nonce}return c.innerHTML!==n&&(c.innerHTML=n),c}var i=g(n,r);return i.setAttribute(b(r),t),i}},93878:function(o,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.call=C,e.default=void 0,e.note=w,e.noteOnce=b,e.preMessage=void 0,e.resetWarned=M,e.warning=v,e.warningOnce=f;var a={},s=[],h=e.preMessage=function(u){s.push(u)};function v(l,u){if(!1)var g}function w(l,u){if(!1)var g}function M(){a={}}function C(l,u,g){!u&&!a[g]&&(l(!1,g),a[g]=!0)}function f(l,u){C(v,l,u)}function b(l,u){C(w,l,u)}f.preMessage=h,f.resetWarned=M,f.noteOnce=b;var O=e.default=f},7613:function(o){function e(a){return a&&a.__esModule?a:{default:a}}o.exports=e,o.exports.__esModule=!0,o.exports.default=o.exports}}]);
|
||||
1
dist/src__pages__system__menu__edit.e6c21101.chunk.css
vendored
Normal file
1
dist/src__pages__system__menu__edit.e6c21101.chunk.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.iconPicSearcher___hJg4D{display:inline-block;margin:0 8px}.iconPicSearcher___hJg4D .icon-pic-btn___L4v1S{color:#00000073;cursor:pointer;transition:all .3s}.iconPicSearcher___hJg4D .icon-pic-btn___L4v1S:hover{color:#000000d9}.icon-pic-preview___ilSDh{width:30px;height:30px;margin-top:10px;padding:8px;text-align:center;border:1px solid #d9d9d9;border-radius:4px}.icon-pic-preview___ilSDh>img{max-width:50px;max-height:50px}.icon-pic-search-result___gIGCh{min-height:50px;padding:0 10px}.icon-pic-search-result___gIGCh>.result-tip___LzRmi{padding:10px 0;color:#00000073}.icon-pic-search-result___gIGCh>table{width:100%}.icon-pic-search-result___gIGCh>table .col-icon___BSYZg{width:80px;padding:10px 0}.icon-pic-search-result___gIGCh>table .col-icon___BSYZg>.anticon___qL_hm{font-size:30px}.icon-pic-search-result___gIGCh>table .col-icon___BSYZg>.anticon___qL_hm :hover{color:#40a9ff}ul.anticonsList___HMi_c{margin:2px 0;overflow:hidden;direction:ltr;list-style:none}ul.anticonsList___HMi_c li{position:relative;float:left;width:48px;height:48px;margin:3px 0;padding:2px 0 0;overflow:hidden;color:#555;text-align:center;list-style:none;background-color:inherit;border-radius:4px;cursor:pointer;transition:color .3s ease-in-out,background-color .3s ease-in-out}.rtl___Ezi11 ul.anticonsList___HMi_c li{margin:3px 0;padding:2px 0 0}ul.anticonsList___HMi_c li .anticon___qL_hm{margin:4px 0 2px;font-size:24px;transition:transform .3s ease-in-out;will-change:transform}ul.anticonsList___HMi_c li .anticonClass___Ei9dm{display:block;font-family:Lucida Console,Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;white-space:nowrap;text-align:center;transform:scale(.83)}ul.anticonsList___HMi_c li .anticonClass___Ei9dm .ant-badge___Zv5ig{transition:color .3s ease-in-out}ul.anticonsList___HMi_c li:hover{color:#fff;background-color:#1890ff}ul.anticonsList___HMi_c li:hover .anticon___qL_hm{transform:scale(1.4)}ul.anticonsList___HMi_c li:hover .ant-badge___Zv5ig{color:#fff}ul.anticonsList___HMi_c li.TwoTone___EPyBa:hover{background-color:#8ecafe}ul.anticonsList___HMi_c li.copied___NGd_a:hover{color:#fff3}ul.anticonsList___HMi_c li.copied___NGd_a:after{top:-2px;opacity:1}.copied-code___wW8vD{padding:2px 4px;font-size:12px;background:#f5f5f5;border-radius:2px}.iconPicSearcher{display:inline-block;margin:0 8px}.iconPicSearcher .icon-pic-btn{color:#00000073;cursor:pointer;transition:all .3s}.iconPicSearcher .icon-pic-btn:hover{color:#000000d9}.icon-pic-preview{width:30px;height:30px;margin-top:10px;padding:8px;text-align:center;border:1px solid #d9d9d9;border-radius:4px}.icon-pic-preview>img{max-width:50px;max-height:50px}.icon-pic-search-result{min-height:50px;padding:0 10px}.icon-pic-search-result>.result-tip{padding:10px 0;color:#00000073}.icon-pic-search-result>table{width:100%}.icon-pic-search-result>table .col-icon{width:80px;padding:10px 0}.icon-pic-search-result>table .col-icon>.anticon{font-size:30px}.icon-pic-search-result>table .col-icon>.anticon :hover{color:#40a9ff}ul.anticonsList{margin:2px 0;overflow:hidden;direction:ltr;list-style:none}ul.anticonsList li{position:relative;float:left;width:48px;height:48px;margin:3px 0;padding:2px 0 0;overflow:hidden;color:#555;text-align:center;list-style:none;background-color:inherit;border-radius:4px;cursor:pointer;transition:color .3s ease-in-out,background-color .3s ease-in-out}.rtl ul.anticonsList li{margin:3px 0;padding:2px 0 0}ul.anticonsList li .anticon{margin:4px 0 2px;font-size:24px;transition:transform .3s ease-in-out;will-change:transform}ul.anticonsList li .anticonClass{display:block;font-family:Lucida Console,Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;white-space:nowrap;text-align:center;transform:scale(.83)}ul.anticonsList li .anticonClass .ant-badge{transition:color .3s ease-in-out}ul.anticonsList li:hover{color:#fff;background-color:#1890ff}ul.anticonsList li:hover .anticon{transform:scale(1.4)}ul.anticonsList li:hover .ant-badge{color:#fff}ul.anticonsList li.TwoTone:hover{background-color:#8ecafe}ul.anticonsList li.copied:hover{color:#fff3}ul.anticonsList li.copied:after{top:-2px;opacity:1}.copied-code{padding:2px 4px;font-size:12px;background:#f5f5f5;border-radius:2px}
|
||||
1
dist/src__pages__system__menu__index.7f292e04.async.js
vendored
Normal file
1
dist/src__pages__system__menu__index.7f292e04.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/src__pages__system__menu__index.e6c21101.chunk.css
vendored
Normal file
1
dist/src__pages__system__menu__index.e6c21101.chunk.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.iconPicSearcher___hJg4D{display:inline-block;margin:0 8px}.iconPicSearcher___hJg4D .icon-pic-btn___L4v1S{color:#00000073;cursor:pointer;transition:all .3s}.iconPicSearcher___hJg4D .icon-pic-btn___L4v1S:hover{color:#000000d9}.icon-pic-preview___ilSDh{width:30px;height:30px;margin-top:10px;padding:8px;text-align:center;border:1px solid #d9d9d9;border-radius:4px}.icon-pic-preview___ilSDh>img{max-width:50px;max-height:50px}.icon-pic-search-result___gIGCh{min-height:50px;padding:0 10px}.icon-pic-search-result___gIGCh>.result-tip___LzRmi{padding:10px 0;color:#00000073}.icon-pic-search-result___gIGCh>table{width:100%}.icon-pic-search-result___gIGCh>table .col-icon___BSYZg{width:80px;padding:10px 0}.icon-pic-search-result___gIGCh>table .col-icon___BSYZg>.anticon___qL_hm{font-size:30px}.icon-pic-search-result___gIGCh>table .col-icon___BSYZg>.anticon___qL_hm :hover{color:#40a9ff}ul.anticonsList___HMi_c{margin:2px 0;overflow:hidden;direction:ltr;list-style:none}ul.anticonsList___HMi_c li{position:relative;float:left;width:48px;height:48px;margin:3px 0;padding:2px 0 0;overflow:hidden;color:#555;text-align:center;list-style:none;background-color:inherit;border-radius:4px;cursor:pointer;transition:color .3s ease-in-out,background-color .3s ease-in-out}.rtl___Ezi11 ul.anticonsList___HMi_c li{margin:3px 0;padding:2px 0 0}ul.anticonsList___HMi_c li .anticon___qL_hm{margin:4px 0 2px;font-size:24px;transition:transform .3s ease-in-out;will-change:transform}ul.anticonsList___HMi_c li .anticonClass___Ei9dm{display:block;font-family:Lucida Console,Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;white-space:nowrap;text-align:center;transform:scale(.83)}ul.anticonsList___HMi_c li .anticonClass___Ei9dm .ant-badge___Zv5ig{transition:color .3s ease-in-out}ul.anticonsList___HMi_c li:hover{color:#fff;background-color:#1890ff}ul.anticonsList___HMi_c li:hover .anticon___qL_hm{transform:scale(1.4)}ul.anticonsList___HMi_c li:hover .ant-badge___Zv5ig{color:#fff}ul.anticonsList___HMi_c li.TwoTone___EPyBa:hover{background-color:#8ecafe}ul.anticonsList___HMi_c li.copied___NGd_a:hover{color:#fff3}ul.anticonsList___HMi_c li.copied___NGd_a:after{top:-2px;opacity:1}.copied-code___wW8vD{padding:2px 4px;font-size:12px;background:#f5f5f5;border-radius:2px}.iconPicSearcher{display:inline-block;margin:0 8px}.iconPicSearcher .icon-pic-btn{color:#00000073;cursor:pointer;transition:all .3s}.iconPicSearcher .icon-pic-btn:hover{color:#000000d9}.icon-pic-preview{width:30px;height:30px;margin-top:10px;padding:8px;text-align:center;border:1px solid #d9d9d9;border-radius:4px}.icon-pic-preview>img{max-width:50px;max-height:50px}.icon-pic-search-result{min-height:50px;padding:0 10px}.icon-pic-search-result>.result-tip{padding:10px 0;color:#00000073}.icon-pic-search-result>table{width:100%}.icon-pic-search-result>table .col-icon{width:80px;padding:10px 0}.icon-pic-search-result>table .col-icon>.anticon{font-size:30px}.icon-pic-search-result>table .col-icon>.anticon :hover{color:#40a9ff}ul.anticonsList{margin:2px 0;overflow:hidden;direction:ltr;list-style:none}ul.anticonsList li{position:relative;float:left;width:48px;height:48px;margin:3px 0;padding:2px 0 0;overflow:hidden;color:#555;text-align:center;list-style:none;background-color:inherit;border-radius:4px;cursor:pointer;transition:color .3s ease-in-out,background-color .3s ease-in-out}.rtl ul.anticonsList li{margin:3px 0;padding:2px 0 0}ul.anticonsList li .anticon{margin:4px 0 2px;font-size:24px;transition:transform .3s ease-in-out;will-change:transform}ul.anticonsList li .anticonClass{display:block;font-family:Lucida Console,Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;white-space:nowrap;text-align:center;transform:scale(.83)}ul.anticonsList li .anticonClass .ant-badge{transition:color .3s ease-in-out}ul.anticonsList li:hover{color:#fff;background-color:#1890ff}ul.anticonsList li:hover .anticon{transform:scale(1.4)}ul.anticonsList li:hover .ant-badge{color:#fff}ul.anticonsList li.TwoTone:hover{background-color:#8ecafe}ul.anticonsList li.copied:hover{color:#fff3}ul.anticonsList li.copied:after{top:-2px;opacity:1}.copied-code{padding:2px 4px;font-size:12px;background:#f5f5f5;border-radius:2px}
|
||||
1
dist/src__pages__system__role__edit.64157ed8.async.js
vendored
Normal file
1
dist/src__pages__system__role__edit.64157ed8.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/src__pages__system__role__index.fd7895ba.async.js
vendored
Normal file
1
dist/src__pages__system__role__index.fd7895ba.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/src__pages__system__user__edit.c9e1670b.async.js
vendored
Normal file
1
dist/src__pages__system__user__edit.c9e1670b.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/src__pages__system__user__index.6bd1cc03.async.js
vendored
Normal file
1
dist/src__pages__system__user__index.6bd1cc03.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/src__pages__user__card__cardTable.6d255ec6.async.js
vendored
Normal file
1
dist/src__pages__user__card__cardTable.6d255ec6.async.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[1008],{8303:function(F,v,n){n.r(v);var O=n(90228),_=n.n(O),j=n(87999),i=n.n(j),M=n(26068),u=n.n(M),b=n(67825),E=n.n(b),x=n(35384),P=n(98984),A=n(94675),I=n(50959),T=n(34571),l=n(11527),R=["type","defaultRender","formItemProps","fieldProps"],y=["type","defaultRender","formItemProps","fieldProps"];v.default=function(m){var p=m.values,h=m.setModalVisit,B=m.modalVisit,c=(0,I.useRef)();(0,I.useEffect)(function(){c.current&&c.current.reload()},[p]);var C=[{title:"ID",dataIndex:"id",valueType:"text",search:!1},{title:"\u7528\u6237\u4FE1\u606F",dataIndex:"userId",valueType:"text",search:!1,render:function(t,e){return(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{children:["\u7528\u6237ID\uFF1A",e==null?void 0:e.userId]}),(0,l.jsxs)("div",{children:["\u7528\u6237\u6635\u79F0\uFF1A",e==null?void 0:e.nickName]}),(0,l.jsxs)("div",{children:["\u624B\u673A\u53F7\uFF1A",e==null?void 0:e.phone]})]})}},{title:"\u8BB0\u5F55\u540D\u79F0",dataIndex:"recordName",valueType:"text"},{title:"\u5F53\u524D\u4F59\u989D",dataIndex:"curBalance",valueType:"text",search:!1},{title:"\u53D8\u52A8\u91D1\u989D",dataIndex:"amount",valueType:"text",search:!1},{title:"\u8D60\u9001\u91D1\u989D",dataIndex:"giveAmount",valueType:"text",search:!1},{title:"\u6765\u6E90\u7C7B\u578B",dataIndex:"sourceType",valueType:"text",render:function(t,e){return t==11?"\u7528\u6237\u8D2D\u4E70":t==12?"\u7528\u6237\u9000\u6B3E":t==13?"\u540E\u53F0\u4E0B\u53D1":t==14?"\u540E\u53F0\u9000\u5361":t==21?"\u8BA2\u5355\u652F\u4ED8":t==22?"\u8BA2\u5355\u9000\u6B3E":t},renderFormItem:function(t,e,f){var D=e.type,s=e.defaultRender,r=e.formItemProps,o=e.fieldProps,a=E()(e,R);return(0,l.jsx)(P.Z,u()(u()({},o),{},{allowClear:!0,placeholder:"\u8BF7\u9009\u62E9\u6765\u6E90\u7C7B\u578B",style:{width:"100%"},filterOption:!1,fieldNames:{label:"name",value:"id"},options:[{name:"\u7528\u6237\u8D2D\u4E70",id:11},{name:"\u7528\u6237\u9000\u6B3E",id:12},{name:"\u540E\u53F0\u4E0B\u53D1",id:13},{name:"\u540E\u53F0\u9000\u5361",id:14},{name:"\u8BA2\u5355\u652F\u4ED8",id:21},{name:"\u8BA2\u5355\u9000\u6B3E",id:22}]}))}},{title:"\u573A\u666F",dataIndex:"scene",valueType:"text",render:function(t,e){return t==1?"\u4F59\u989D":t==2?"\u8BA2\u5355":t},renderFormItem:function(t,e,f){var D=e.type,s=e.defaultRender,r=e.formItemProps,o=e.fieldProps,a=E()(e,y);return(0,l.jsx)(P.Z,u()(u()({},o),{},{allowClear:!0,placeholder:"\u8BF7\u9009\u62E9\u573A\u666F",style:{width:"100%"},filterOption:!1,fieldNames:{label:"name",value:"id"},options:[{name:"\u4F59\u989D",id:1},{name:"\u8BA2\u5355",id:2}]}))}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createTime",valueType:"text",search:!1}];return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(A.Z,{width:1200,title:"\u7535\u5361-\u4F59\u989D\u8BB0\u5F55",open:B,onOk:i()(_()().mark(function d(){return _()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:h(!1);case 1:case"end":return e.stop()}},d)})),onCancel:i()(_()().mark(function d(){return _()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:h(!1);case 1:case"end":return e.stop()}},d)})),children:(0,l.jsx)(x.Z,{rowKey:"id",actionRef:c,search:{labelWidth:120,defaultCollapsed:!1},request:function(){var d=i()(_()().mark(function t(e,f,D){var s,r;return _()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return e.userId=p.userId,e.cardId=p.cardId,a.next=4,(0,T.s5)(e);case 4:return s=a.sent,r=s.data,a.abrupt("return",{data:(r==null?void 0:r.records)||[],total:r==null?void 0:r.total});case 7:case"end":return a.stop()}},t)}));return function(t,e,f){return d.apply(this,arguments)}}(),columns:C},"logList")})})}}}]);
|
||||
1
dist/src__pages__user__card__index.0a2d0252.async.js
vendored
Normal file
1
dist/src__pages__user__card__index.0a2d0252.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/src__pages__user__card__userAddCard.87aa7876.async.js
vendored
Normal file
1
dist/src__pages__user__card__userAddCard.87aa7876.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/src__pages__user__login__index.13f5e071.chunk.css
vendored
Normal file
1
dist/src__pages__user__login__index.13f5e071.chunk.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.ant-pro-layout-content{padding:0;padding-block:0!important;padding-inline:0!important;height:100vh!important}
|
||||
1
dist/src__pages__user__login__index.fe0cb6f9.async.js
vendored
Normal file
1
dist/src__pages__user__login__index.fe0cb6f9.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/src__pages__user__login__login.test.f48da20e.async.js
vendored
Normal file
1
dist/src__pages__user__login__login.test.f48da20e.async.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8009],{76793:function(k,E,t){"use strict";t.r(E);var S=t(90228),u=t.n(S),D=t(87999),g=t.n(D),$=t(48305),F=t.n($),v=t(50959),h=t(7485),I=t(9772),K=t(85385),O=t(83098),X=t(89937),z=t(89350),H=t(542),J=t(45443),m=t(11527),G="/",L=!1;function A(a){var r=(0,O.gD)(),e=(0,v.useState)(void 0),s=F()(e,2),l=s[0],i=s[1];if((0,v.useEffect)(function(){var p=function(){var o=g()(u()().mark(function d(){var y,T,P,C,R,M,j,w;return u()().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,(0,X.s)(r);case 2:return y=f.sent,T=y.routes,P=y.routeComponents,f.next=7,r.applyPlugins({key:"patchRoutes",type:h.ApplyPluginsType.event,args:{routes:T,routeComponents:P}});case 7:return C=r.applyPlugins({key:"modifyContextOpts",type:h.ApplyPluginsType.modify,initialValue:{}}),R=C.basename||"/",M=(0,K.f)({type:"memory",basename:R}),j={routes:T,routeComponents:P,pluginManager:r,rootElement:C.rootElement||document.getElementById("root"),publicPath:G,runtimePublicPath:L,history:M,basename:R,components:!0},w=r.applyPlugins({key:"modifyClientRenderOpts",type:h.ApplyPluginsType.modify,initialValue:j}),f.abrupt("return",w);case 13:case"end":return f.stop()}},d)}));return function(){return o.apply(this,arguments)}}();p().then(function(o){if(i(o),a.location){var d;o==null||(d=o.history)===null||d===void 0||d.push(a.location)}a.historyRef&&(a.historyRef.current=o==null?void 0:o.history)})},[]),l===void 0)return(0,m.jsx)("div",{id:"loading"});var n=(0,I.p6)(l);return(0,m.jsx)(v.Fragment,{children:(0,m.jsx)(n,{})})}var c=t(66303),V=t(84898),Y=t(32699),b=t(80209),N="/",U=function(r){var e=(0,Y.merge)({port:7e3,scene:"default"},r),s=e.port,l=e.scene;return new Promise(function(i,n){var p=(0,V.fork)((0,b.join)(N,"./startMock.js"),[],{env:{scene:l,port:String(s)}});p.on("exit",function(o){o!==0&&n(new Error("Mock server exited with code ".concat(o)))}),i({close:function(){p.kill()}})})},B=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:100;return new Promise(function(e){setTimeout(function(){e(!0)},r)})},x;describe("Login Page",function(){beforeAll(g()(u()().mark(function a(){return u()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,U({port:8e3,scene:"login"});case 2:x=e.sent;case 3:case"end":return e.stop()}},a)}))),afterAll(function(){var a;(a=x)===null||a===void 0||a.close()}),it("should show login form",g()(u()().mark(function a(){var r,e,s;return u()().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return e=v.createRef(),s=(0,c.sY)((0,m.jsx)(A,{historyRef:e,location:{pathname:"/user/login"}})),i.next=4,s.findAllByText("Ant Design");case 4:(0,c.TK)(function(){var n;(n=e.current)===null||n===void 0||n.push("/user/login")}),expect((r=s.baseElement)===null||r===void 0||(r=r.querySelector(".ant-pro-form-login-desc"))===null||r===void 0?void 0:r.textContent).toBe("Ant Design is the most influential web design specification in Xihu district"),expect(s.asFragment()).toMatchSnapshot(),s.unmount();case 8:case"end":return i.stop()}},a)}))),it("should login success",g()(u()().mark(function a(){var r,e,s,l;return u()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return r=v.createRef(),e=(0,c.sY)((0,m.jsx)(A,{historyRef:r,location:{pathname:"/user/login"}})),n.next=4,e.findAllByText("Ant Design");case 4:return n.next=6,e.findByPlaceholderText("Username: admin or user");case 6:return s=n.sent,(0,c.TK)(function(){c.BX.change(s,{target:{value:"admin"}})}),n.next=10,e.findByPlaceholderText("Password: ant.design");case 10:return l=n.sent,(0,c.TK)(function(){c.BX.change(l,{target:{value:"ant.design"}})}),n.next=14,e.findByText("Login");case 14:return n.next=16,n.sent.click();case 16:return n.next=18,B(5e3);case 18:return n.next=20,e.findAllByText("Ant Design Pro");case 20:return expect(e.asFragment()).toMatchSnapshot(),n.next=23,B(2e3);case 23:e.unmount();case 24:case"end":return n.stop()}},a)})))})},65660:function(){},84898:function(){}}]);
|
||||
1
dist/src__pages__user__register-result__index.a9f3f094.async.js
vendored
Normal file
1
dist/src__pages__user__register-result__index.a9f3f094.async.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[5106,2727],{27483:function(i,s,u){u.r(s);var a=u(48305),n=u.n(a),l=u(7485),r=u(50159),E=u(84974),P=u(50959),d=u(43329),e=u(11527),o=function(){var m=(0,d.default)(),t=m.styles,c=(0,l.useSearchParams)(),D=n()(c,1),_=D[0],A=(0,e.jsxs)("div",{className:t.actions,children:[(0,e.jsx)("a",{href:"",children:(0,e.jsx)(r.ZP,{size:"large",type:"primary",children:(0,e.jsx)("span",{children:"\u67E5\u770B\u90AE\u7BB1"})})}),(0,e.jsx)(l.Link,{to:"/",children:(0,e.jsx)(r.ZP,{size:"large",children:"\u8FD4\u56DE\u9996\u9875"})})]}),F=(_==null?void 0:_.get("account"))||"AntDesign@example.com";return(0,e.jsx)(E.ZP,{className:t.registerResult,status:"success",title:(0,e.jsx)("div",{className:t.title,children:(0,e.jsxs)("span",{children:["\u4F60\u7684\u8D26\u6237\uFF1A",F," \u6CE8\u518C\u6210\u529F"]})}),subTitle:"\u6FC0\u6D3B\u90AE\u4EF6\u5DF2\u53D1\u9001\u5230\u4F60\u7684\u90AE\u7BB1\u4E2D\uFF0C\u90AE\u4EF6\u6709\u6548\u671F\u4E3A24\u5C0F\u65F6\u3002\u8BF7\u53CA\u65F6\u767B\u5F55\u90AE\u7BB1\uFF0C\u70B9\u51FB\u90AE\u4EF6\u4E2D\u7684\u94FE\u63A5\u6FC0\u6D3B\u5E10\u6237\u3002",extra:A})};s.default=o},43329:function(i,s,u){u.r(s);var a=u(13179),n=(0,a.kc)(function(){return{registerResult:{width:"800px",minHeight:"400px",margin:"auto",padding:"80px",background:"none"},anticon:{fontSize:"64px"},title:{marginTop:"32px",fontSize:"20px",lineHeight:"28px"},actions:{marginTop:"40px","a + a":{marginLeft:"8px"}}}});s.default=n}}]);
|
||||
1
dist/src__pages__user__register-result__style.style.8978797b.async.js
vendored
Normal file
1
dist/src__pages__user__register-result__style.style.8978797b.async.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2727],{43329:function(a,n,t){t.r(n);var e=t(13179),i=(0,e.kc)(function(){return{registerResult:{width:"800px",minHeight:"400px",margin:"auto",padding:"80px",background:"none"},anticon:{fontSize:"64px"},title:{marginTop:"32px",fontSize:"20px",lineHeight:"28px"},actions:{marginTop:"40px","a + a":{marginLeft:"8px"}}}});n.default=i}}]);
|
||||
1
dist/src__pages__user__register___mock.ea66fc46.async.js
vendored
Normal file
1
dist/src__pages__user__register___mock.ea66fc46.async.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[344],{16799:function(n,e,t){t.r(e),e.default={"POST /api/register":function(i,u){u.send({data:{status:"ok",currentAuthority:"user"}})}}}}]);
|
||||
1
dist/src__pages__user__register__index.07ad120f.async.js
vendored
Normal file
1
dist/src__pages__user__register__index.07ad120f.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/src__pages__user__register__service.4540f0d2.async.js
vendored
Normal file
1
dist/src__pages__user__register__service.4540f0d2.async.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[207],{48980:function(i,r,_){_.r(r),_.d(r,{fakeRegister:function(){return d}});var s=_(90228),t=_.n(s),a=_(87999),o=_.n(a),l=_(7485);function d(u){return n.apply(this,arguments)}function n(){return n=o()(t()().mark(function u(m){return t()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.request)("/api/register",{method:"POST",data:m}));case 1:case"end":return e.stop()}},u)})),n.apply(this,arguments)}}}]);
|
||||
1
dist/src__pages__user__register__style.style.cba1b658.async.js
vendored
Normal file
1
dist/src__pages__user__register__style.style.cba1b658.async.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[7015],{84526:function(a,n,r){r.r(n);var t=r(13179),s=(0,t.kc)(function(e){var o=e.token;return{main:{width:"368px",margin:"0 auto",h3:{marginBottom:"20px",fontSize:"16px"}},password:{marginBottom:"24px",".ant-form-item-explain":{display:"none"}},getCaptcha:{display:"block",width:"100%"},footer:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},submit:{width:"50%"},success:{transition:"color 0.3s",color:o.colorSuccess},warning:{transition:"color 0.3s",color:o.colorWarning},error:{transition:"color 0.3s",color:o.colorError},"progress-pass > .progress":{".ant-progress-bg":{backgroundColor:o.colorWarning}}}});n.default=s}}]);
|
||||
1
dist/src__pages__user__user__cardTable.a73abe66.async.js
vendored
Normal file
1
dist/src__pages__user__user__cardTable.a73abe66.async.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8430],{77930:function(F,f,n){n.r(f);var O=n(90228),d=n.n(O),j=n(87999),i=n.n(j),M=n(26068),u=n.n(M),b=n(67825),v=n.n(b),x=n(35384),E=n(98984),A=n(94675),P=n(50959),T=n(34571),l=n(11527),R=["type","defaultRender","formItemProps","fieldProps"],y=["type","defaultRender","formItemProps","fieldProps"];f.default=function(m){var h=m.values,D=m.setModalVisit,B=m.modalVisit,p=(0,P.useRef)();(0,P.useEffect)(function(){p.current&&p.current.reload()},[h]);var C=[{title:"ID",dataIndex:"id",valueType:"text",search:!1},{title:"\u7528\u6237\u4FE1\u606F",dataIndex:"userId",valueType:"text",search:!1,render:function(t,e){return(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{children:["\u7528\u6237ID\uFF1A",e==null?void 0:e.userId]}),(0,l.jsxs)("div",{children:["\u7528\u6237\u6635\u79F0\uFF1A",e==null?void 0:e.nickName]}),(0,l.jsxs)("div",{children:["\u624B\u673A\u53F7\uFF1A",e==null?void 0:e.phone]})]})}},{title:"\u8BB0\u5F55\u540D\u79F0",dataIndex:"recordName",valueType:"text"},{title:"\u5F53\u524D\u4F59\u989D",dataIndex:"curBalance",valueType:"text",search:!1},{title:"\u53D8\u52A8\u91D1\u989D",dataIndex:"amount",valueType:"text",search:!1},{title:"\u8D60\u9001\u91D1\u989D",dataIndex:"giveAmount",valueType:"text",search:!1},{title:"\u6765\u6E90\u7C7B\u578B",dataIndex:"sourceType",valueType:"text",render:function(t,e){return t==11?"\u7528\u6237\u8D2D\u4E70":t==12?"\u7528\u6237\u9000\u6B3E":t==13?"\u540E\u53F0\u4E0B\u53D1":t==14?"\u540E\u53F0\u9000\u5361":t==21?"\u8BA2\u5355\u652F\u4ED8":t==22?"\u8BA2\u5355\u9000\u6B3E":t},renderFormItem:function(t,e,c){var I=e.type,o=e.defaultRender,r=e.formItemProps,s=e.fieldProps,_=v()(e,R);return(0,l.jsx)(E.Z,u()(u()({},s),{},{allowClear:!0,placeholder:"\u8BF7\u9009\u62E9\u6765\u6E90\u7C7B\u578B",style:{width:"100%"},filterOption:!1,fieldNames:{label:"name",value:"id"},options:[{name:"\u7528\u6237\u8D2D\u4E70",id:11},{name:"\u7528\u6237\u9000\u6B3E",id:12},{name:"\u540E\u53F0\u4E0B\u53D1",id:13},{name:"\u540E\u53F0\u9000\u5361",id:14},{name:"\u8BA2\u5355\u652F\u4ED8",id:21},{name:"\u8BA2\u5355\u9000\u6B3E",id:22}]}))}},{title:"\u573A\u666F",dataIndex:"scene",valueType:"text",render:function(t,e){return t==1?"\u4F59\u989D":t==2?"\u8BA2\u5355":t},renderFormItem:function(t,e,c){var I=e.type,o=e.defaultRender,r=e.formItemProps,s=e.fieldProps,_=v()(e,y);return(0,l.jsx)(E.Z,u()(u()({},s),{},{allowClear:!0,placeholder:"\u8BF7\u9009\u62E9\u573A\u666F",style:{width:"100%"},filterOption:!1,fieldNames:{label:"name",value:"id"},options:[{name:"\u4F59\u989D",id:1},{name:"\u8BA2\u5355",id:2}]}))}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createTime",valueType:"text",search:!1}];return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(A.Z,{width:1200,title:"\u7528\u6237-\u4F59\u989D\u8BB0\u5F55",open:B,onOk:i()(d()().mark(function a(){return d()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:D(!1);case 1:case"end":return e.stop()}},a)})),onCancel:i()(d()().mark(function a(){return d()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:D(!1);case 1:case"end":return e.stop()}},a)})),children:(0,l.jsx)(x.Z,{rowKey:"id",actionRef:p,search:{labelWidth:120,defaultCollapsed:!1},request:function(){var a=i()(d()().mark(function t(e,c,I){var o,r;return d()().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return e.userId=h.id,_.next=3,(0,T.eT)(e);case 3:return o=_.sent,r=o.data,_.abrupt("return",{data:(r==null?void 0:r.records)||[],total:r==null?void 0:r.total});case 6:case"end":return _.stop()}},t)}));return function(t,e,c){return a.apply(this,arguments)}}(),columns:C},"logList")})})}}}]);
|
||||
1
dist/src__pages__user__user__index.ae16c7e2.async.js
vendored
Normal file
1
dist/src__pages__user__user__index.ae16c7e2.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user