Compare commits

...

190 Commits

Author SHA1 Message Date
ihzero da449a8d3f 添加稻虾周 2023-05-15 19:06:15 +08:00
ihzero 16b2f82bf3 修改 2023-05-15 16:12:37 +08:00
ihzero aaa92971d5 修改小数点 2023-05-15 13:42:19 +08:00
ihzero f8df64d315 自动播放 2023-05-15 11:05:28 +08:00
ihzero f683498946 控制左边自动播放 2023-05-15 11:01:50 +08:00
ihzero 2aad2576cb 隐藏饼图全部 2023-03-24 13:40:30 +08:00
ihzero f9f58d2907 修改 2023-03-24 13:25:16 +08:00
ihzero 15a7b984c6 修改bug 2023-03-23 17:52:11 +08:00
ihzero 7560bc4996 打包 2023-03-23 16:56:10 +08:00
ihzero 5024f9880f 打包 2023-03-23 16:52:19 +08:00
ihzero 65c727efb9 修改基地参数 2023-03-23 16:47:41 +08:00
ihzero 51c455620a 修改产量传参 2023-03-22 19:35:16 +08:00
ihzero d077d59f70 修改 2023-03-20 14:42:11 +08:00
ihzero 9444fafad6 修改监控 2023-03-20 14:36:39 +08:00
ihzero 4d18ab9ca0 打包 2023-03-07 20:48:29 +08:00
ihzero c556a48e43 修改 2023-03-07 20:42:56 +08:00
ihzero 3ce3bb5847 修改 2023-03-03 15:19:55 +08:00
ihzero 5b58f7fcc3 打包 2023-03-03 13:43:23 +08:00
ihzero 2cc05f16f3 监控自动切换 2023-03-03 13:40:03 +08:00
ihzero 09d76e302c 修改提示 2023-03-02 17:52:49 +08:00
ihzero 8b575af978 修改 2023-03-02 17:46:08 +08:00
ihzero 80277ba681 修改 2023-02-09 11:38:29 +08:00
ihzero 10273b9aff 城镇数据 2023-02-09 01:03:53 +08:00
ihzero d22d28b49f 城镇数据 2023-02-08 17:51:14 +08:00
ihzero 8ba4477d76 修改监控不更新 2023-02-03 17:07:09 +08:00
ihzero 0f32a4fa57 打包 2023-02-03 16:22:22 +08:00
ihzero e3f9d87416 修改 2023-02-03 16:18:51 +08:00
ihzero 7cd857619d 打包 2023-02-03 14:50:05 +08:00
ihzero 295fc2c300 修改历史数据 2023-02-03 14:33:59 +08:00
ihzero df275bc118 修改 2023-01-05 10:51:45 +08:00
ihzero 9ff24ede52 打包 2023-01-04 16:40:32 +08:00
ihzero 25d9e60dc5 修改大屏监控显示数量 2023-01-04 16:35:02 +08:00
ihzero 08327912e8 修打包 2022-12-15 10:53:18 +08:00
ihzero 4705f47087 基地监控 2022-12-15 10:33:05 +08:00
ihzero d237bde3b4 打包 2022-12-09 17:22:35 +08:00
ihzero a44195517d 修改监控 2022-12-09 17:16:20 +08:00
ihzero 85bfdd9cea 打保 2022-12-09 15:30:47 +08:00
ihzero e213412d8a 修改地址 2022-12-09 15:10:59 +08:00
ihzero 8446acd3e6 修改弹窗位置 2022-12-08 15:57:51 +08:00
ihzero f38b00f8a2 修改 2022-12-08 14:45:39 +08:00
ihzero 059dd10783 打包 2022-12-08 14:26:46 +08:00
ihzero a522976fd0 打包 2022-12-08 14:22:41 +08:00
ihzero 87f77ec5a1 修改jk 2022-12-08 14:16:08 +08:00
ihzero fb9c4a6020 修修改监控 2022-12-08 13:32:57 +08:00
ihzero 8aa68903c3 修改 2022-12-08 11:53:48 +08:00
ihzero 53e283f483 修改 2022-12-01 14:28:39 +08:00
ihzero 2c301cc8bc 监控推荐 2022-11-30 19:17:19 +08:00
ihzero 20790e779c 监控数量 2022-11-30 17:26:16 +08:00
ihzero 69939fcc3e 修改监控 2022-11-28 15:40:37 +08:00
ihzero 38ddfadfc9 默认监控点 2022-11-28 15:20:53 +08:00
ihzero 746a09e5c1 打包 2022-11-25 11:38:10 +08:00
ihzero dfe4d0a0b9 修改监控默认值 2022-11-25 11:35:34 +08:00
ihzero 2ff3005cf0 打包 2022-11-24 16:05:15 +08:00
ihzero d1748bfe33 样式 2022-11-24 16:02:58 +08:00
ihzero 6ffdd3b29d 修改降雨量 2022-11-24 13:38:35 +08:00
ihzero 3694c427f7 打包 2022-11-23 18:46:36 +08:00
ihzero 600f18fae1 Merge branch 'temp' of https://gitea.peidikeji.cn/zhouhui/lcny-vue3-antd-admin into temp 2022-11-23 18:43:20 +08:00
ihzero 591a49805c 修改 2022-11-23 18:43:09 +08:00
30830569@qq.com b916c28d37 打包 2022-11-23 17:18:07 +08:00
30830569@qq.com e420e79354 打包 2022-11-23 16:02:38 +08:00
30830569@qq.com 459a90cc95 打包 2022-11-23 14:44:27 +08:00
30830569@qq.com fcbfd57466 Merge branch 'temp' of https://gitea.peidikeji.cn/zhouhui/lcny-vue3-antd-admin into temp 2022-11-23 14:42:00 +08:00
30830569@qq.com 0692292549 修改地图选择 2022-11-23 14:41:45 +08:00
ihzero 13f58ed486 地图修改 2022-11-23 13:24:44 +08:00
ihzero 13ec879c1e 修改地图 2022-11-23 13:19:59 +08:00
30830569@qq.com 20507d4d2e 打包 2022-11-23 10:56:16 +08:00
30830569@qq.com 21dac96d28 打包 2022-11-22 10:42:21 +08:00
30830569@qq.com 233eaaca12 Merge branch 'temp' of https://gitea.peidikeji.cn/zhouhui/lcny-vue3-antd-admin into temp 2022-11-22 10:39:43 +08:00
30830569@qq.com 34bb3886a8 农作物添加联动 2022-11-22 10:39:12 +08:00
ihzero 6ce5450d47 打包 2022-11-21 18:56:15 +08:00
ihzero 0ce833d591 Merge branch 'temp' of https://gitea.peidikeji.cn/zhouhui/lcny-vue3-antd-admin into temp 2022-11-21 18:53:20 +08:00
ihzero 6a8af57565 修改小屏 2022-11-21 18:53:15 +08:00
30830569@qq.com f14d499939 打包 2022-11-21 17:14:40 +08:00
30830569@qq.com d275cd8238 打包 2022-11-21 16:18:43 +08:00
30830569@qq.com 9a340e0819 Merge branch 'temp' of https://gitea.peidikeji.cn/zhouhui/lcny-vue3-antd-admin into temp 2022-11-21 16:15:46 +08:00
30830569@qq.com 51ad8e799f 修改bug 2022-11-21 16:14:54 +08:00
ihzero d408d1a397 打包 2022-11-21 16:06:16 +08:00
ihzero 778755616e 修改大屏 2022-11-21 16:03:23 +08:00
ihzero a42d078825 打包 2022-11-18 17:18:29 +08:00
ihzero c2df54f54d 修改预警 2022-11-18 17:06:05 +08:00
ihzero 37abb9822c 打包 2022-11-17 16:48:29 +08:00
ihzero 2f41098d44 Merge branch 'temp' of https://gitea.peidikeji.cn/zhouhui/lcny-vue3-antd-admin into temp 2022-11-17 16:40:00 +08:00
ihzero e55f36133d 修改 2022-11-17 16:39:45 +08:00
30830569@qq.com 61698fc0ca 打包 2022-11-17 10:32:48 +08:00
ihzero 50df3f3e1c 修改 2022-11-16 20:44:05 +08:00
ihzero 6be280c6e1 修改 2022-11-16 20:42:41 +08:00
30830569@qq.com f22aed3793 修改需求 2022-11-16 17:34:12 +08:00
30830569@qq.com 77da2278c0 修改需求 2022-11-16 17:33:42 +08:00
ihzero 94ab292232 修改大屏 2022-11-16 15:02:38 +08:00
ihzero 612fde7a01 Merge branch 'temp' of https://gitea.peidikeji.cn/zhouhui/lcny-vue3-antd-admin into temp 2022-11-16 14:48:38 +08:00
ihzero 0ce97527b7 修改大屏 2022-11-16 14:48:30 +08:00
30830569@qq.com 0c1b5119d8 打包,隐藏图标 2022-11-16 10:00:08 +08:00
30830569@qq.com 700cba3a26 隐藏图标 2022-11-16 09:57:27 +08:00
ihzero db4c346bdf Merge branch 'temp' of https://gitea.peidikeji.cn/zhouhui/lcny-vue3-antd-admin into temp 2022-11-15 17:59:32 +08:00
ihzero 2827fcc182 外链接编辑 2022-11-15 17:59:27 +08:00
30830569@qq.com 9fae98d981 添加需求,调整样式 2022-11-15 15:55:46 +08:00
30830569@qq.com 5feae67e17 修改农作物产量----基地需求 2022-11-15 09:48:54 +08:00
ihzero 5b11df84cd Merge branch 'temp' of https://gitea.peidikeji.cn/zhouhui/lcny-vue3-antd-admin into temp 2022-11-14 18:32:32 +08:00
ihzero 7de096680e 打包 2022-11-14 18:32:21 +08:00
ihzero 1fda352e89 监控 2022-11-14 18:28:39 +08:00
30830569@qq.com 48f213b2a7 修改农作物---城镇需求 2022-11-14 18:20:31 +08:00
ihzero 74f0ea9270 修改 2022-11-14 15:05:02 +08:00
ihzero 88971f7c42 修改大屏 2022-11-14 10:13:48 +08:00
ihzero 9f974c8976 打包 2022-11-12 14:10:52 +08:00
ihzero 2648aadd04 修改 2022-11-12 14:08:12 +08:00
ihzero 2bd2836f07 修改 2022-11-11 22:07:44 +08:00
ihzero 164722ed2d Merge branch 'temp' of https://gitea.peidikeji.cn/zhouhui/lcny-vue3-antd-admin into temp 2022-11-11 22:03:12 +08:00
ihzero 78d380d29a 修改 2022-11-11 22:03:03 +08:00
H 538ab49bed 提交 2022-11-11 16:45:11 +08:00
H 777cca7944 解决冲突 2022-11-11 15:35:42 +08:00
H c2b1e0e861 提交 2022-11-11 15:28:29 +08:00
H 797449b43f 提交 2022-11-11 15:22:59 +08:00
ihzero d11406d741 修改文件 2022-11-11 15:19:09 +08:00
ihzero 8debae9132 还原配置文件 2022-11-11 14:50:33 +08:00
ihzero 2060c11d8c 移除依赖 2022-11-11 14:21:17 +08:00
ihzero 8b9f107b82 报错 2022-11-11 14:20:10 +08:00
H 8c35186517 解决冲突 2022-11-11 14:19:14 +08:00
H 6058614245 提交 2022-11-11 14:18:13 +08:00
ihzero 758568e610 修改报错 2022-11-11 14:14:52 +08:00
ihzero 07473dfbfd 修改样式 2022-11-11 14:06:16 +08:00
H 95be79f0f6 提交 2022-11-11 14:04:34 +08:00
H e6008a14ec 打包 2022-11-11 13:31:53 +08:00
ihzero bff5b61500 Merge branch 'temp' of https://gitea.peidikeji.cn/zhouhui/lcny-vue3-antd-admin into temp 2022-11-11 13:20:24 +08:00
ihzero ec9e19557a 登录 2022-11-11 13:19:59 +08:00
ihzero bbf7b663e4 修改 2022-11-11 13:08:06 +08:00
H 541b5dad53 更换图标 2022-11-11 13:05:35 +08:00
H 1f61363e60 提交 2022-11-11 11:41:37 +08:00
H ffb6b24162 修改登录界面 2022-11-11 10:46:50 +08:00
H a87d4290bf 修改登录界面 2022-11-11 10:42:13 +08:00
ihzero e61eb546e7 Merge branch 'temp' of https://gitea.peidikeji.cn/zhouhui/lcny-vue3-antd-admin into temp 2022-11-10 17:50:43 +08:00
ihzero 5dccf7413c 修改 2022-11-10 17:50:32 +08:00
H 82c08525f7 提交 2022-11-10 17:46:48 +08:00
H bc19de75f7 解决冲突 2022-11-10 17:41:20 +08:00
H af4881a149 提交 2022-11-10 17:38:17 +08:00
ihzero 4f5c6432b1 打包 2022-11-10 16:44:09 +08:00
ihzero 58bf5ee49a Merge branch 'temp' of https://gitea.peidikeji.cn/zhouhui/lcny-vue3-antd-admin into temp 2022-11-10 16:32:04 +08:00
ihzero 3e7dbd90c0 修改 2022-11-10 16:31:56 +08:00
H 9d827c537f 提交 2022-11-09 17:52:38 +08:00
H 1936ac4f9d 提交 2022-11-09 17:50:58 +08:00
ihzero 0bfaa3f9b5 打包 2022-11-09 17:33:18 +08:00
ihzero 27eafd96f1 修改定时器 2022-11-09 17:30:07 +08:00
ihzero cb390d3d6e 打包 2022-11-09 15:52:23 +08:00
ihzero 3f50bcef36 打包 2022-11-09 15:24:16 +08:00
ihzero f7dd0fd331 修改大屏 2022-11-09 15:21:01 +08:00
ihzero a7a046a71b 冲突 2022-11-09 09:35:25 +08:00
ihzero b028d43582 修改样式 2022-11-08 18:45:50 +08:00
ihzero 96b81c0a5e 修改样式 2022-11-08 18:45:20 +08:00
H 3938cb121a 提交 2022-11-08 17:53:15 +08:00
ihzero 8858443f2e 修改 2022-11-07 18:04:04 +08:00
ihzero f8d35946cb Merge branch 'temp' of https://gitea.peidikeji.cn/zhouhui/lcny-vue3-antd-admin into temp 2022-11-07 18:03:51 +08:00
ihzero 47e700d274 打包 2022-11-07 18:03:36 +08:00
H b10fac211b Merge branch 'temp' of https://gitea.peidikeji.cn/zhouhui/lcny-vue3-antd-admin into temp 2022-11-07 17:54:33 +08:00
H 308bba2964 提交 2022-11-07 17:54:18 +08:00
ihzero 4b77a4e0ee 编译 2022-11-07 16:32:58 +08:00
ihzero 4ae4e0f410 jc 2022-11-07 16:30:06 +08:00
ihzero 7fad3fc63f 打包 2022-11-07 13:39:52 +08:00
ihzero 5162630acc 修改 2022-11-07 13:36:02 +08:00
ihzero 1bee2f93d1 打包 2022-11-07 10:17:28 +08:00
ihzero 8b56ab324d 修改 2022-11-07 10:14:29 +08:00
H d72741c8bf Merge branch 'temp' of https://gitea.peidikeji.cn/zhouhui/lcny-vue3-antd-admin into temp 2022-11-07 09:37:15 +08:00
H b3d711de7d 提交 2022-11-07 09:37:09 +08:00
ihzero 357bf6d3b6 修改 2022-11-04 20:18:45 +08:00
ihzero 7a59bd0a23 修改 2022-11-04 17:15:25 +08:00
ihzero facab4b391 修改 2022-11-04 17:09:40 +08:00
ihzero ed897d063c 修改 2022-11-04 16:52:00 +08:00
ihzero 282a5f38e8 Merge branch 'temp' of https://gitea.peidikeji.cn/zhouhui/lcny-vue3-antd-admin into temp 2022-11-03 17:58:54 +08:00
ihzero d5b02989e4 修改 2022-11-03 17:58:38 +08:00
H 33244082b5 提交 2022-11-03 17:54:20 +08:00
H d92ca22832 Merge branch 'temp' of https://gitea.peidikeji.cn/zhouhui/lcny-vue3-antd-admin into temp 2022-11-03 17:45:46 +08:00
H 320ea1724d 对接接口,写页面 2022-11-03 17:45:28 +08:00
ihzero 1c5ad744c0 Merge branch 'temp' of https://gitea.peidikeji.cn/zhouhui/lcny-vue3-antd-admin into temp 2022-11-03 09:57:11 +08:00
ihzero ac3caee8ee 看板 2022-11-03 09:57:01 +08:00
H e18166f91b Merge branch 'temp' of https://gitea.peidikeji.cn/zhouhui/lcny-vue3-antd-admin into temp 2022-11-02 17:52:06 +08:00
H 155e54d95f 对接接口,写页面 2022-11-02 17:51:41 +08:00
ihzero fbf504e87f 大屏 2022-11-02 10:50:15 +08:00
H 13a59790c1 Merge branch 'temp' of https://gitea.peidikeji.cn/zhouhui/lcny-vue3-antd-admin into temp 2022-11-02 09:31:08 +08:00
H b897bb1dab 对接角色管理接口 2022-11-02 09:30:55 +08:00
ihzero 9747b75a57 修改 2022-11-01 10:17:02 +08:00
ihzero e23d2a6fbc 修改 2022-10-28 17:56:50 +08:00
ihzero 3fbe2b253c 修改错误 2022-10-27 10:33:48 +08:00
ihzero 3a56901da2 设置时间 2022-10-27 10:22:32 +08:00
ihzero 2ace6eef28 修改 2022-10-26 17:36:43 +08:00
ihzero cb6aa95fbb 修改 2022-10-26 17:26:35 +08:00
ihzero fce13d6189 修改 2022-10-26 16:03:40 +08:00
ihzero f569dfe3e8 修改 2022-10-25 17:51:15 +08:00
ihzero 1704460939 修改 2022-10-24 17:24:41 +08:00
ihzero 45bda6ed72 修改 2022-10-21 17:53:47 +08:00
ihzero 8aaaa449d6 3 2022-10-21 11:51:29 +08:00
ihzero dbdc655406 ant3 2022-10-21 11:51:11 +08:00
ihzero 1f265d6b85 修改 2022-10-20 14:53:47 +08:00
832 changed files with 101657 additions and 17302 deletions

2
.env
View File

@ -2,7 +2,7 @@
VITE_PORT = 3100
# spa-title
VITE_GLOB_APP_TITLE = Vben Admin
VITE_GLOB_APP_TITLE = 隆昌农业大数据监控平台
# spa shortname
VITE_GLOB_APP_SHORT_NAME = vue_vben_admin

View File

@ -6,7 +6,7 @@ VITE_PUBLIC_PATH = /
# Cross-domain proxy, you can configure multiple
# Please note that no line breaks
VITE_PROXY = [["/api","http://lcny-api.peidikeji.cn"]]
VITE_PROXY = [["/api","http://36.133.205.221:81"],["/upload","http://36.133.205.221:81/api/web/upload"]]
# Delete console
VITE_DROP_CONSOLE = false
@ -15,7 +15,7 @@ VITE_DROP_CONSOLE = false
VITE_GLOB_API_URL=/api
# File upload address optional
VITE_GLOB_UPLOAD_URL=/api
VITE_GLOB_UPLOAD_URL=/upload
# Interface prefix
VITE_GLOB_API_URL_PREFIX=

View File

@ -16,7 +16,7 @@ VITE_BUILD_COMPRESS = 'none'
VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE = false
# Basic interface address SPA
VITE_GLOB_API_URL=/basic-api
VITE_GLOB_API_URL= http://36.133.205.221:81
# File upload address optional
# It can be forwarded by nginx or write the actual address directly

View File

@ -1,6 +1,4 @@
// @ts-check
const { defineConfig } = require('eslint-define-config');
module.exports = defineConfig({
module.exports = {
root: true,
env: {
browser: true,
@ -20,11 +18,10 @@ module.exports = defineConfig({
extends: [
'plugin:vue/vue3-recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
'plugin:prettier/recommended',
'plugin:jest/recommended',
],
rules: {
'vue/no-v-html': 'off',
'vue/script-setup-uses-vars': 'error',
'@typescript-eslint/ban-ts-ignore': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
@ -55,8 +52,6 @@ module.exports = defineConfig({
'space-before-function-paren': 'off',
'vue/attributes-order': 'off',
'vue/v-on-event-hyphenation': 'off',
'vue/multi-word-component-names': 'off',
'vue/one-component-per-file': 'off',
'vue/html-closing-bracket-newline': 'off',
'vue/max-attributes-per-line': 'off',
@ -64,6 +59,7 @@ module.exports = defineConfig({
'vue/singleline-html-element-content-newline': 'off',
'vue/attribute-hyphenation': 'off',
'vue/require-default-prop': 'off',
'vue/require-explicit-emits': 'off',
'vue/html-self-closing': [
'error',
{
@ -76,5 +72,6 @@ module.exports = defineConfig({
math: 'always',
},
],
'vue/multi-word-component-names': 'off',
},
});
}

6
.gitignore vendored
View File

@ -1,6 +1,6 @@
node_modules
.DS_Store
dist
# dist
.npmrc
.cache
@ -27,3 +27,7 @@ pnpm-debug.log*
*.njsproj
*.sln
*.sw?
package-lock.json
pnpm-lock.yaml

View File

@ -2,5 +2,5 @@ ports:
- port: 3344
onOpen: open-preview
tasks:
- init: yarn
command: yarn dev
- init: pnpm install
command: pnpm run dev

View File

@ -1,6 +1,6 @@
{
"recommendations": [
"octref.vetur",
"vue.volar",
"dbaeumer.vscode-eslint",
"stylelint.vscode-stylelint",
"esbenp.prettier-vscode",

23
.vscode/settings.json vendored
View File

@ -1,16 +1,10 @@
{
"typescript.tsdk": "./node_modules/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true,
"volar.tsPlugin": true,
"volar.tsPluginStatus": false,
//===========================================
//============= Editor ======================
//===========================================
"npm.packageManager": "pnpm",
"editor.tabSize": 2,
"editor.defaultFormatter": "esbenp.prettier-vscode",
//===========================================
//============= files =======================
//===========================================
"files.eol": "\n",
"search.exclude": {
"**/node_modules": true,
@ -61,7 +55,7 @@
"**/yarn.lock": true
},
"stylelint.enable": true,
"stylelint.packageManager": "yarn",
"stylelint.validate": ["css", "less", "postcss", "scss", "vue", "sass"],
"path-intellisense.mappings": {
"/@/": "${workspaceRoot}/src"
},
@ -94,7 +88,8 @@
},
"[vue]": {
"editor.codeActionsOnSave": {
"source.fixAll.eslint": false
"source.fixAll.eslint": true,
"source.fixAll.stylelint": true
}
},
"i18n-ally.localesPaths": ["src/locales/lang"],
@ -114,7 +109,6 @@
"esnext",
"antv",
"tinymce",
"qrcode",
"sider",
"pinia",
"sider",
@ -137,6 +131,11 @@
"lintstagedrc",
"brotli",
"tailwindcss",
"sider"
]
"sider",
"pnpm",
"antd"
],
"vetur.format.scriptInitialIndent": true,
"vetur.format.styleInitialIndent": true,
"vetur.validation.script": false
}

View File

@ -1,48 +0,0 @@
# test directories
__tests__
test
tests
powered-test
# asset directories
docs
doc
website
images
assets
# examples
example
examples
# code coverage directories
coverage
.nyc_output
# build scripts
Makefile
Gulpfile.js
Gruntfile.js
# configs
appveyor.yml
circle.yml
codeship-services.yml
codeship-steps.yml
wercker.yml
.tern-project
.gitattributes
.editorconfig
.*ignore
.eslintrc
.jshintrc
.flowconfig
.documentup.json
.yarn-metadata.json
.travis.yml
# misc
*.md
!istanbul-reports/lib/html/assets
!istanbul-api/node_modules/istanbul-reports/lib/html/assets

1
.yarnrc 100644
View File

@ -0,0 +1 @@
network-timeout 600000

View File

102
README.md
View File

@ -1 +1,101 @@
## 隆昌农业
<div align="center"> <a href="https://github.com/anncwb/vue-vben-admin"> <img alt="VbenAdmin Logo" width="200" height="200" src="https://anncwb.github.io/anncwb/images/logo.png"> </a> <br> <br>
[![license](https://img.shields.io/github/license/anncwb/vue-vben-admin.svg)](LICENSE)
<h1>Vue Admin </h1>
</div>
## 简介
精简 Vue Admin 。
## 特性
- **最新技术栈**:使用 Vue3/vite2 等前端前沿技术开发
- **TypeScript**: 应用程序级 JavaScript 的语言
- **主题**:可配置的主题
- **国际化**:内置完善的国际化方案
- **Mock 数据** 内置 Mock 数据方案
- **权限** 内置完善的动态路由权限生成方案
- **组件** 二次封装了多个常用的组件
## 预览
- [vue-vben-admin](https://vvbin.cn/next/) - 完整版中文站点
- [vue-vben-admin-gh-pages](https://anncwb.github.io/vue-vben-admin/) - 完整版 github 站点
- [vben-admin-thin-next](https://vvbin.cn/thin/next/) - 简化版中文站点
- [vben-admin-thin-gh-pages](https://anncwb.github.io/vben-admin-thin-next/) - 简化版 github 站点
## 准备
- [node](http://nodejs.org/) 和 [git](https://git-scm.com/) -项目开发环境
- [Vite](https://vitejs.dev/) - 熟悉 vite 特性
- [Vue3](https://v3.vuejs.org/) - 熟悉 Vue 基础语法
- [TypeScript](https://www.typescriptlang.org/) - 熟悉`TypeScript`基本语法
- [Es6+](http://es6.ruanyifeng.com/) - 熟悉 es6 基本语法
- [Vue-Router-Next](https://next.router.vuejs.org/) - 熟悉 vue-router 基本使用
- [Ant-Design-Vue](https://2x.antdv.com/docs/vue/introduce-cn/) - ui 基本使用
- [Mock.js](https://github.com/nuysoft/Mock) - mockjs 基本语法
## 安装使用
- 获取项目代码
```bash
git clone https://github.com/anncwb/vue-vben-admin.git
```
- 安装依赖
```bash
cd vue-vben-admin
pnpm install
```
- 运行
```bash
pnpm serve
```
- 打包
```bash
pnpm build
```
## Git 贡献提交规范
- 参考 [vue](https://github.com/vuejs/vue/blob/dev/.github/COMMIT_CONVENTION.md) 规范 ([Angular](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-angular))
- `feat` 增加新功能
- `fix` 修复问题/BUG
- `style` 代码风格相关无影响运行结果的
- `perf` 优化/性能提升
- `refactor` 重构
- `revert` 撤销修改
- `test` 测试相关
- `docs` 文档/注释
- `chore` 依赖更新/脚手架配置修改等
- `workflow` 工作流改进
- `ci` 持续集成
- `types` 类型定义文件更改
- `wip` 开发中
## 相关仓库
如果这些插件对你有帮助,可以给一个 star 支持下
- [vite-plugin-mock](https://github.com/anncwb/vite-plugin-mock) - 用于本地及开发环境数据 mock
- [vite-plugin-html](https://github.com/anncwb/vite-plugin-html) - 用于 html 模版转换及压缩
- [vite-plugin-style-import](https://github.com/anncwb/vite-plugin-style-import) - 用于组件库样式按需引入
- [vite-plugin-theme](https://github.com/anncwb/vite-plugin-theme) - 用于在线切换主题色等颜色相关配置
- [vite-plugin-imagemin](https://github.com/anncwb/vite-plugin-imagemin) - 用于打包压缩图片资源
- [vite-plugin-compression](https://github.com/anncwb/vite-plugin-compression) - 用于打包输出.gz|.brotil 文件
- [vite-plugin-svg-icons](https://github.com/anncwb/vite-plugin-svg-icons) - 用于快速生成 svg 雪碧图
## License
[MIT © Vben-2020](./LICENSE)

View File

@ -1,33 +1,33 @@
import { generate } from '@ant-design/colors';
import { generate } from '@ant-design/colors'
export const primaryColor = '#4ba06c';
export const primaryColor = '#0960bd'
export const darkMode = 'light';
export const darkMode = 'light'
type Fn = (...arg: any) => any;
type Fn = (...arg: any) => any
type GenerateTheme = 'default' | 'dark';
type GenerateTheme = 'default' | 'dark'
export interface GenerateColorsParams {
mixLighten: Fn;
mixDarken: Fn;
tinycolor: any;
color?: string;
mixLighten: Fn
mixDarken: Fn
tinycolor: any
color?: string
}
export function generateAntColors(color: string, theme: GenerateTheme = 'default') {
return generate(color, {
theme,
});
})
}
export function getThemeColors(color?: string) {
const tc = color || primaryColor;
const lightColors = generateAntColors(tc);
const primary = lightColors[5];
const modeColors = generateAntColors(primary, 'dark');
const tc = color || primaryColor
const lightColors = generateAntColors(tc)
const primary = lightColors[5]
const modeColors = generateAntColors(primary, 'dark')
return [...lightColors, ...modeColors];
return [...lightColors, ...modeColors]
}
export function generateColors({
@ -36,38 +36,38 @@ export function generateColors({
mixDarken,
tinycolor,
}: GenerateColorsParams) {
const arr = new Array(19).fill(0);
const arr = new Array(19).fill(0)
const lightens = arr.map((_t, i) => {
return mixLighten(color, i / 5);
});
return mixLighten(color, i / 5)
})
const darkens = arr.map((_t, i) => {
return mixDarken(color, i / 5);
});
return mixDarken(color, i / 5)
})
const alphaColors = arr.map((_t, i) => {
return tinycolor(color)
.setAlpha(i / 20)
.toRgbString();
});
.toRgbString()
})
const shortAlphaColors = alphaColors.map((item) => item.replace(/\s/g, '').replace(/0\./g, '.'));
const shortAlphaColors = alphaColors.map((item) => item.replace(/\s/g, '').replace(/0\./g, '.'))
const tinycolorLightens = arr
.map((_t, i) => {
return tinycolor(color)
.lighten(i * 5)
.toHexString();
.toHexString()
})
.filter((item) => item !== '#ffffff');
.filter((item) => item !== '#ffffff')
const tinycolorDarkens = arr
.map((_t, i) => {
return tinycolor(color)
.darken(i * 5)
.toHexString();
.toHexString()
})
.filter((item) => item !== '#000000');
.filter((item) => item !== '#000000')
return [
...lightens,
...darkens,
@ -75,5 +75,5 @@ export function generateColors({
...shortAlphaColors,
...tinycolorDarkens,
...tinycolorLightens,
].filter((item) => !item.includes('-'));
].filter((item) => !item.includes('-'))
}

View File

@ -1,20 +1,20 @@
import path from 'path';
import fs from 'fs-extra';
import inquirer from 'inquirer';
import chalk from 'chalk';
import pkg from '../../../package.json';
import path from 'path'
import fs from 'fs-extra'
import inquirer from 'inquirer'
import colors from 'picocolors'
import pkg from '../../../package.json'
async function generateIcon() {
const dir = path.resolve(process.cwd(), 'node_modules/@iconify/json');
const dir = path.resolve(process.cwd(), 'node_modules/@iconify/json')
const raw = await fs.readJSON(path.join(dir, 'collections.json'));
const raw = await fs.readJSON(path.join(dir, 'collections.json'))
const collections = Object.entries(raw).map(([id, v]) => ({
...(v as any),
id,
}));
}))
const choices = collections.map((item) => ({ key: item.id, value: item.id, name: item.name }));
const choices = collections.map((item) => ({ key: item.id, value: item.id, name: item.name }))
inquirer
.prompt([
@ -41,32 +41,32 @@ async function generateIcon() {
},
])
.then(async (answers) => {
const { iconSet, output, useType } = answers;
const outputDir = path.resolve(process.cwd(), output);
fs.ensureDir(outputDir);
const genCollections = collections.filter((item) => [iconSet].includes(item.id));
const prefixSet: string[] = [];
const { iconSet, output, useType } = answers
const outputDir = path.resolve(process.cwd(), output)
fs.ensureDir(outputDir)
const genCollections = collections.filter((item) => [iconSet].includes(item.id))
const prefixSet: string[] = []
for (const info of genCollections) {
const data = await fs.readJSON(path.join(dir, 'json', `${info.id}.json`));
const data = await fs.readJSON(path.join(dir, 'json', `${info.id}.json`))
if (data) {
const { prefix } = data;
const isLocal = useType === 'local';
const { prefix } = data
const isLocal = useType === 'local'
const icons = Object.keys(data.icons).map(
(item) => `${isLocal ? prefix + ':' : ''}${item}`,
);
)
await fs.writeFileSync(
path.join(output, `icons.data.ts`),
`export default ${isLocal ? JSON.stringify(icons) : JSON.stringify({ prefix, icons })}`,
);
prefixSet.push(prefix);
)
prefixSet.push(prefix)
}
}
fs.emptyDir(path.join(process.cwd(), 'node_modules/.vite'));
fs.emptyDir(path.join(process.cwd(), 'node_modules/.vite'))
console.log(
`${chalk.cyan(`[${pkg.name}]`)}` + ' - Icon generated successfully:' + `[${prefixSet}]`,
);
});
`${colors.cyan(`[${pkg.name}]`)}` + ' - Icon generated successfully:' + `[${prefixSet}]`,
)
})
}
generateIcon();
generateIcon()

View File

@ -1,45 +1,47 @@
/**
* Generate additional configuration files when used for packaging. The file can be configured with some global variables, so that it can be changed directly externally without repackaging
*/
import { GLOB_CONFIG_FILE_NAME, OUTPUT_DIR } from '../constant';
import fs, { writeFileSync } from 'fs-extra';
import chalk from 'chalk';
import { GLOB_CONFIG_FILE_NAME, OUTPUT_DIR } from '../constant'
import fs, { writeFileSync } from 'fs-extra'
import colors from 'picocolors'
import { getEnvConfig, getRootPath } from '../utils';
import { getConfigFileName } from '../getConfigFileName';
import { getEnvConfig, getRootPath } from '../utils'
import { getConfigFileName } from '../getConfigFileName'
import pkg from '../../package.json';
import pkg from '../../package.json'
interface CreateConfigParams {
configName: string;
config: any;
configFileName?: string;
configName: string
config: any
configFileName?: string
}
function createConfig(params: CreateConfigParams) {
const { configName, config, configFileName } = params;
const { configName, config, configFileName } = params
try {
const windowConf = `window.${configName}`;
const windowConf = `window.${configName}`
// Ensure that the variable will not be modified
const configStr = `${windowConf}=${JSON.stringify(config)};
let configStr = `${windowConf}=${JSON.stringify(config)};`
configStr += `
Object.freeze(${windowConf});
Object.defineProperty(window, "${configName}", {
configurable: false,
writable: false,
});
`.replace(/\s/g, '');
fs.mkdirp(getRootPath(OUTPUT_DIR));
writeFileSync(getRootPath(`${OUTPUT_DIR}/${configFileName}`), configStr);
`.replace(/\s/g, '')
console.log(chalk.cyan(`✨ [${pkg.name}]`) + ` - configuration file is build successfully:`);
console.log(chalk.gray(OUTPUT_DIR + '/' + chalk.green(configFileName)) + '\n');
fs.mkdirp(getRootPath(OUTPUT_DIR))
writeFileSync(getRootPath(`${OUTPUT_DIR}/${configFileName}`), configStr)
console.log(colors.cyan(`✨ [${pkg.name}]`) + ` - configuration file is build successfully:`)
console.log(colors.gray(OUTPUT_DIR + '/' + colors.green(configFileName)) + '\n')
} catch (error) {
console.log(chalk.red('configuration file configuration file failed to package:\n' + error));
console.log(colors.red('configuration file configuration file failed to package:\n' + error))
}
}
export function runBuildConfig() {
const config = getEnvConfig();
const configFileName = getConfigFileName(config);
createConfig({ config, configName: configFileName, configFileName: GLOB_CONFIG_FILE_NAME });
const config = getEnvConfig()
const configFileName = getConfigFileName(config)
createConfig({ config, configName: configFileName, configFileName: GLOB_CONFIG_FILE_NAME })
}

View File

@ -1,23 +1,23 @@
// #!/usr/bin/env node
import { runBuildConfig } from './buildConf';
import chalk from 'chalk';
import { runBuildConfig } from './buildConf'
import colors from 'picocolors'
import pkg from '../../package.json';
import pkg from '../../package.json'
export const runBuild = async () => {
try {
const argvList = process.argv.splice(2);
const argvList = process.argv.splice(2)
// Generate configuration file
if (!argvList.includes('disabled-config')) {
runBuildConfig();
runBuildConfig()
}
console.log(`${chalk.cyan(`[${pkg.name}]`)}` + ' - build successfully!');
console.log(`${colors.cyan(`[${pkg.name}]`)}` + ' - build successfully!')
} catch (error) {
console.log(chalk.red('vite build error:\n' + error));
process.exit(1);
console.log(colors.red('vite build error:\n' + error))
process.exit(1)
}
};
runBuild();
}
runBuild()

View File

@ -1,21 +0,0 @@
// TODO
import type { GetManualChunk } from 'rollup';
//
const vendorLibs: { match: string[]; output: string }[] = [
// {
// match: ['xlsx'],
// output: 'xlsx',
// },
];
// @ts-ignore
export const configManualChunk: GetManualChunk = (id: string) => {
if (/[\\/]node_modules[\\/]/.test(id)) {
const matchItem = vendorLibs.find((item) => {
const reg = new RegExp(`[\\/]node_modules[\\/]_?(${item.match.join('|')})(.*)`, 'ig');
return reg.test(id);
});
return matchItem ? matchItem.output : null;
}
};

View File

@ -2,16 +2,16 @@
* Used to package and output gzip. Note that this does not work properly in Vite, the specific reason is still being investigated
* https://github.com/anncwb/vite-plugin-compression
*/
import type { Plugin } from 'vite';
import compressPlugin from 'vite-plugin-compression';
import type { PluginOption } from 'vite'
import compressPlugin from 'vite-plugin-compression'
export function configCompressPlugin(
compress: 'gzip' | 'brotli' | 'none',
deleteOriginFile = false,
): Plugin | Plugin[] {
const compressList = compress.split(',');
): PluginOption | PluginOption[] {
const compressList = compress.split(',')
const plugins: Plugin[] = [];
const plugins: PluginOption[] = []
if (compressList.includes('gzip')) {
plugins.push(
@ -19,7 +19,7 @@ export function configCompressPlugin(
ext: '.gz',
deleteOriginFile,
}),
);
)
}
if (compressList.includes('brotli')) {
@ -29,7 +29,7 @@ export function configCompressPlugin(
algorithm: 'brotliCompress',
deleteOriginFile,
}),
);
)
}
return plugins;
return plugins
}

View File

@ -1,25 +0,0 @@
import type { Plugin } from 'vite';
/**
* TODO
* Temporarily solve the Vite circular dependency problem, and wait for a better solution to fix it later. I don't know what problems this writing will bring.
* @returns
*/
export function configHmrPlugin(): Plugin {
return {
name: 'singleHMR',
handleHotUpdate({ modules, file }) {
if (file.match(/xml$/)) return [];
modules.forEach((m) => {
if (!m.url.match(/\.(css|less)/)) {
m.importedModules = new Set();
m.importers = new Set();
}
});
return modules;
},
};
}

View File

@ -2,21 +2,21 @@
* Plugin to minimize and use ejs template syntax in index.html.
* https://github.com/anncwb/vite-plugin-html
*/
import type { Plugin } from 'vite';
import html from 'vite-plugin-html';
import pkg from '../../../package.json';
import { GLOB_CONFIG_FILE_NAME } from '../../constant';
import type { PluginOption } from 'vite'
import { createHtmlPlugin } from 'vite-plugin-html'
import pkg from '../../../package.json'
import { GLOB_CONFIG_FILE_NAME } from '../../constant'
export function configHtmlPlugin(env: ViteEnv, isBuild: boolean) {
const { VITE_GLOB_APP_TITLE, VITE_PUBLIC_PATH } = env;
const { VITE_GLOB_APP_TITLE, VITE_PUBLIC_PATH } = env
const path = VITE_PUBLIC_PATH.endsWith('/') ? VITE_PUBLIC_PATH : `${VITE_PUBLIC_PATH}/`;
const path = VITE_PUBLIC_PATH.endsWith('/') ? VITE_PUBLIC_PATH : `${VITE_PUBLIC_PATH}/`
const getAppConfigSrc = () => {
return `${path || '/'}${GLOB_CONFIG_FILE_NAME}?v=${pkg.version}-${new Date().getTime()}`;
};
return `${path || '/'}${GLOB_CONFIG_FILE_NAME}?v=${pkg.version}-${new Date().getTime()}`
}
const htmlPlugin: Plugin[] = html({
const htmlPlugin: PluginOption[] = createHtmlPlugin({
minify: isBuild,
inject: {
// Inject data into ejs template
@ -35,6 +35,6 @@ export function configHtmlPlugin(env: ViteEnv, isBuild: boolean) {
]
: [],
},
});
return htmlPlugin;
})
return htmlPlugin
}

View File

@ -1,20 +1,20 @@
import type { Plugin } from 'vite';
import vue from '@vitejs/plugin-vue';
import vueJsx from '@vitejs/plugin-vue-jsx';
import legacy from '@vitejs/plugin-legacy';
import purgeIcons from 'vite-plugin-purge-icons';
import windiCSS from 'vite-plugin-windicss';
import vueSetupExtend from 'vite-plugin-vue-setup-extend';
import { configHtmlPlugin } from './html';
import { configPwaConfig } from './pwa';
import { configMockPlugin } from './mock';
import { configCompressPlugin } from './compress';
import { configStyleImportPlugin } from './styleImport';
import { configVisualizerConfig } from './visualizer';
import { configThemePlugin } from './theme';
import { configImageminPlugin } from './imagemin';
import { configSvgIconsPlugin } from './svgSprite';
import { configHmrPlugin } from './hmr';
import { PluginOption } from 'vite'
import vue from '@vitejs/plugin-vue'
import vueJsx from '@vitejs/plugin-vue-jsx'
import legacy from '@vitejs/plugin-legacy'
import purgeIcons from 'vite-plugin-purge-icons'
import windiCSS from 'vite-plugin-windicss'
import VitePluginCertificate from 'vite-plugin-mkcert'
//import vueSetupExtend from 'vite-plugin-vue-setup-extend';
import { configHtmlPlugin } from './html'
import { configPwaConfig } from './pwa'
import { configMockPlugin } from './mock'
import { configCompressPlugin } from './compress'
import { configStyleImportPlugin } from './styleImport'
import { configVisualizerConfig } from './visualizer'
import { configThemePlugin } from './theme'
import { configImageminPlugin } from './imagemin'
import { configSvgIconsPlugin } from './svgSprite'
export function createVitePlugins(viteEnv: ViteEnv, isBuild: boolean) {
const {
@ -23,60 +23,60 @@ export function createVitePlugins(viteEnv: ViteEnv, isBuild: boolean) {
VITE_LEGACY,
VITE_BUILD_COMPRESS,
VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE,
} = viteEnv;
} = viteEnv
const vitePlugins: (Plugin | Plugin[])[] = [
const vitePlugins: (PluginOption | PluginOption[])[] = [
// have to
vue(),
// have to
vueJsx(),
// support name
vueSetupExtend(),
];
//vueSetupExtend(),
VitePluginCertificate({
source: 'coding',
}),
]
// vite-plugin-windicss
vitePlugins.push(windiCSS());
// TODO
!isBuild && vitePlugins.push(configHmrPlugin());
vitePlugins.push(windiCSS())
// @vitejs/plugin-legacy
VITE_LEGACY && isBuild && vitePlugins.push(legacy());
VITE_LEGACY && isBuild && vitePlugins.push(legacy())
// vite-plugin-html
vitePlugins.push(configHtmlPlugin(viteEnv, isBuild));
vitePlugins.push(configHtmlPlugin(viteEnv, isBuild))
// vite-plugin-svg-icons
vitePlugins.push(configSvgIconsPlugin(isBuild));
vitePlugins.push(configSvgIconsPlugin(isBuild))
// vite-plugin-mock
VITE_USE_MOCK && vitePlugins.push(configMockPlugin(isBuild));
VITE_USE_MOCK && vitePlugins.push(configMockPlugin(isBuild))
// vite-plugin-purge-icons
vitePlugins.push(purgeIcons());
vitePlugins.push(purgeIcons())
// vite-plugin-style-import
vitePlugins.push(configStyleImportPlugin(isBuild));
vitePlugins.push(configStyleImportPlugin(isBuild))
// rollup-plugin-visualizer
vitePlugins.push(configVisualizerConfig());
vitePlugins.push(configVisualizerConfig())
//vite-plugin-theme
vitePlugins.push(configThemePlugin(isBuild));
// vite-plugin-theme
vitePlugins.push(configThemePlugin(isBuild))
// The following plugins only work in the production environment
if (isBuild) {
//vite-plugin-imagemin
VITE_USE_IMAGEMIN && vitePlugins.push(configImageminPlugin());
// vite-plugin-imagemin
VITE_USE_IMAGEMIN && vitePlugins.push(configImageminPlugin())
// rollup-plugin-gzip
vitePlugins.push(
configCompressPlugin(VITE_BUILD_COMPRESS, VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE),
);
)
// vite-plugin-pwa
vitePlugins.push(configPwaConfig(viteEnv));
vitePlugins.push(configPwaConfig(viteEnv))
}
return vitePlugins;
return vitePlugins
}

View File

@ -2,13 +2,13 @@
* Introduces component library styles on demand.
* https://github.com/anncwb/vite-plugin-style-import
*/
import styleImport from 'vite-plugin-style-import';
import { createStyleImportPlugin } from 'vite-plugin-style-import'
export function configStyleImportPlugin(isBuild: boolean) {
if (!isBuild) {
return [];
export function configStyleImportPlugin(_isBuild: boolean) {
if (!_isBuild) {
return []
}
const styleImportPlugin = styleImport({
const styleImportPlugin = createStyleImportPlugin({
libs: [
{
libraryName: 'ant-design-vue',
@ -19,6 +19,7 @@ export function configStyleImportPlugin(isBuild: boolean) {
'anchor-link',
'sub-menu',
'menu-item',
'menu-divider',
'menu-item-group',
'breadcrumb-item',
'breadcrumb-separator',
@ -44,7 +45,7 @@ export function configStyleImportPlugin(isBuild: boolean) {
'skeleton-paragraph',
'skeleton-image',
'skeleton-button',
];
]
// 这里是需要额外引入样式的子组件列表
// 单独引入子组件时需引入组件样式,否则会在打包后导致子组件样式丢失
const replaceList = {
@ -63,16 +64,18 @@ export function configStyleImportPlugin(isBuild: boolean) {
'layout-footer': 'layout',
'layout-header': 'layout',
'month-picker': 'date-picker',
};
'range-picker': 'date-picker',
'image-preview-group': 'image',
}
return ignoreList.includes(name)
? ''
: replaceList.hasOwnProperty(name)
? `ant-design-vue/es/${replaceList[name]}/style/index`
: `ant-design-vue/es/${name}/style/index`;
: `ant-design-vue/es/${name}/style/index`
},
},
],
});
return styleImportPlugin;
})
return styleImportPlugin
}

View File

@ -3,15 +3,15 @@
* https://github.com/anncwb/vite-plugin-svg-icons
*/
import SvgIconsPlugin from 'vite-plugin-svg-icons';
import path from 'path';
import { createSvgIconsPlugin } from 'vite-plugin-svg-icons'
import path from 'path'
export function configSvgIconsPlugin(isBuild: boolean) {
const svgIconsPlugin = SvgIconsPlugin({
const svgIconsPlugin = createSvgIconsPlugin({
iconDirs: [path.resolve(process.cwd(), 'src/assets/icons')],
svgoOptions: isBuild,
// default
symbolId: 'icon-[dir]-[name]',
});
return svgIconsPlugin;
})
return svgIconsPlugin
}

View File

@ -2,46 +2,46 @@
* Vite plugin for website theme color switching
* https://github.com/anncwb/vite-plugin-theme
*/
import type { Plugin } from 'vite';
import path from 'path';
import type { PluginOption } from 'vite'
import path from 'path'
import {
viteThemePlugin,
antdDarkThemePlugin,
mixLighten,
mixDarken,
tinycolor,
} from 'vite-plugin-theme';
import { getThemeColors, generateColors } from '../../config/themeConfig';
import { generateModifyVars } from '../../generate/generateModifyVars';
} from 'vite-plugin-theme'
import { getThemeColors, generateColors } from '../../config/themeConfig'
import { generateModifyVars } from '../../generate/generateModifyVars'
export function configThemePlugin(isBuild: boolean): Plugin[] {
export function configThemePlugin(isBuild: boolean): PluginOption[] {
const colors = generateColors({
mixDarken,
mixLighten,
tinycolor,
});
})
const plugin = [
viteThemePlugin({
resolveSelector: (s) => {
s = s.trim();
s = s.trim()
switch (s) {
case '.ant-steps-item-process .ant-steps-item-icon > .ant-steps-icon':
return '.ant-steps-item-icon > .ant-steps-icon';
return '.ant-steps-item-icon > .ant-steps-icon'
case '.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled)':
case '.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover':
case '.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):active':
return s;
return s
case '.ant-steps-item-icon > .ant-steps-icon':
return s;
return s
case '.ant-select-item-option-selected:not(.ant-select-item-option-disabled)':
return s;
return s
default:
if (s.indexOf('.ant-btn') >= -1) {
// 按钮被重新定制过需要过滤掉class防止覆盖
return s;
return s
}
}
return s.startsWith('[data-theme') ? s : `[data-theme] ${s}`;
return s.startsWith('[data-theme') ? s : `[data-theme] ${s}`
},
colorVariables: [...getThemeColors(), ...colors],
}),
@ -83,7 +83,7 @@ export function configThemePlugin(isBuild: boolean): Plugin[] {
'alert-error-icon-color': '#a61d24',
},
}),
];
]
return plugin as unknown as Plugin[];
return plugin as unknown as PluginOption[]
}

View File

@ -1,3 +1,23 @@
const fs = require('fs')
const path = require('path')
const { execSync } = require('child_process')
const scopes = fs
.readdirSync(path.resolve(__dirname, 'src'), { withFileTypes: true })
.filter((dirent) => dirent.isDirectory())
.map((dirent) => dirent.name.replace(/s$/, ''))
// precomputed scope
const scopeComplete = execSync('git status --porcelain || true')
.toString()
.trim()
.split('\n')
.find((r) => ~r.indexOf('M src'))
?.replace(/(\/)/g, '%%')
?.match(/src%%((\w|-)*)/)?.[1]
?.replace(/s$/, '')
/** @type {import('cz-git').UserConfig} */
module.exports = {
ignores: [(commit) => commit.includes('init')],
extends: ['@commitlint/config-conventional'],
@ -30,4 +50,58 @@ module.exports = {
],
],
},
};
prompt: {
/** @use `yarn commit :f` */
alias: {
f: 'docs: fix typos',
r: 'docs: update README',
s: 'style: update code format',
b: 'build: bump dependencies',
c: 'chore: update config',
},
customScopesAlign: !scopeComplete ? 'top' : 'bottom',
defaultScope: scopeComplete,
scopes: [...scopes, 'mock'],
allowEmptyIssuePrefixs: false,
allowCustomIssuePrefixs: false,
// English
typesAppend: [
{ value: 'wip', name: 'wip: work in process' },
{ value: 'workflow', name: 'workflow: workflow improvements' },
{ value: 'types', name: 'types: type definition file changes' },
],
// 中英文对照版
// messages: {
// type: '选择你要提交的类型 :',
// scope: '选择一个提交范围 (可选):',
// customScope: '请输入自定义的提交范围 :',
// subject: '填写简短精炼的变更描述 :\n',
// body: '填写更加详细的变更描述 (可选)。使用 "|" 换行 :\n',
// breaking: '列举非兼容性重大的变更 (可选)。使用 "|" 换行 :\n',
// footerPrefixsSelect: '选择关联issue前缀 (可选):',
// customFooterPrefixs: '输入自定义issue前缀 :',
// footer: '列举关联issue (可选) 例如: #31, #I3244 :\n',
// confirmCommit: '是否提交或修改commit ?',
// },
// types: [
// { value: 'feat', name: 'feat: 新增功能' },
// { value: 'fix', name: 'fix: 修复缺陷' },
// { value: 'docs', name: 'docs: 文档变更' },
// { value: 'style', name: 'style: 代码格式' },
// { value: 'refactor', name: 'refactor: 代码重构' },
// { value: 'perf', name: 'perf: 性能优化' },
// { value: 'test', name: 'test: 添加疏漏测试或已有测试改动' },
// { value: 'build', name: 'build: 构建流程、外部依赖变更 (如升级 npm 包、修改打包配置等)' },
// { value: 'ci', name: 'ci: 修改 CI 配置、脚本' },
// { value: 'revert', name: 'revert: 回滚 commit' },
// { value: 'chore', name: 'chore: 对构建过程或辅助工具和库的更改 (不影响源文件、测试用例)' },
// { value: 'wip', name: 'wip: 正在开发中' },
// { value: 'workflow', name: 'workflow: 工作流程改进' },
// { value: 'types', name: 'types: 类型定义文件修改' },
// ],
// emptyScopesAlias: 'empty: 不填写',
// customScopesAlias: 'custom: 自定义',
},
}

1
dist/_app.config.js vendored 100644
View File

@ -0,0 +1 @@
window.__PRODUCTION__VUE_VBEN_ADMIN__CONF__={"VITE_GLOB_APP_TITLE":"隆昌农业大数据监控平台","VITE_GLOB_APP_SHORT_NAME":"vue_vben_admin","VITE_GLOB_API_URL":"http://36.133.205.221:81","VITE_GLOB_UPLOAD_URL":"/upload","VITE_GLOB_API_URL_PREFIX":""};Object.freeze(window.__PRODUCTION__VUE_VBEN_ADMIN__CONF__);Object.defineProperty(window,"__PRODUCTION__VUE_VBEN_ADMIN__CONF__",{configurable:false,writable:false,});

View File

@ -0,0 +1 @@
var D=Object.defineProperty,b=Object.defineProperties;var R=Object.getOwnPropertyDescriptors;var w=Object.getOwnPropertySymbols;var U=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable;var g=(e,o,r)=>o in e?D(e,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[o]=r,_=(e,o)=>{for(var r in o||(o={}))U.call(o,r)&&g(e,r,o[r]);if(w)for(var r of w(o))k.call(o,r)&&g(e,r,o[r]);return e},F=(e,o)=>b(e,R(o));var d=(e,o,r)=>new Promise((c,n)=>{var l=i=>{try{p(r.next(i))}catch(a){n(a)}},u=i=>{try{p(r.throw(i))}catch(a){n(a)}},p=i=>i.done?c(i.value):Promise.resolve(i.value).then(l,u);p((r=r.apply(e,o)).next())});import{u as x,B as y}from"./useForm.34cdb88b.js";import{a as C}from"./account.data.328a970c.js";import{a as L,B as P}from"./index.1560549a.js";import{a as S,r as j,f as v,o as A,j as I,x as V,p as E,k as m,aB as G,fQ as N,fR as O,fS as Q}from"./index.eec7c138.js";import"./index.d17e923e.js";import"./index.a2241d89.js";import"./_baseIteratee.8e9620dd.js";import"./get.2199c57c.js";import"./useSize.507b40b9.js";import"./index.638bb3e3.js";import"./index.a6c33135.js";import"./Checkbox.51b3985f.js";import"./index.df77d9c7.js";import"./index.d67f577b.js";import"./index.693b4f1e.js";import"./index.b6156dbd.js";import"./index.38799a86.js";import"./index.af861c3a.js";import"./eagerComputed.bdd88bed.js";import"./transButton.58d6bbc4.js";import"./index.f28bde88.js";import"./useWindowSizeFn.0f608d47.js";import"./FullscreenOutlined.05779bfe.js";import"./useRefs.77e50e1b.js";import"./_baseEach.f9812519.js";import"./download.e8f65dad.js";import"./index.fd07537f.js";import"./dateUtil.160b2c2f.js";import"./uniqBy.4b5d9352.js";import"./index.abfdfeab.js";import"./ArrowLeftOutlined.489857b7.js";const Br=S({__name:"AccountDrawer",emits:["success","register"],setup(e,{emit:o}){const r=j(!1),c=v(()=>r.value?"\u7F16\u8F91\u8D26\u53F7":"\u65B0\u589E\u8D26\u53F7"),[n,{resetFields:l,setFieldsValue:u,validate:p}]=x({labelWidth:90,baseColProps:{span:24},schemas:C,showActionButtonGroup:!1}),[i,{setDrawerProps:a,closeDrawer:h}]=L(t=>d(this,null,function*(){if(l(),a({confirmLoading:!1}),r.value=t==null?void 0:t.isUpdate,m(r)){const s=yield N(t.id);yield u(F(_({},s),{role_id:s==null?void 0:s.roles.map(f=>f.id),base_ids:s==null?void 0:s.bases.map(f=>f.id)}))}})),B=()=>d(this,null,function*(){try{const t=yield p();a({confirmLoading:!0}),t.id?(t.role_id=t==null?void 0:t.role_id.join(),yield O(t.id,t)):yield Q(t),h(),o("success")}finally{a({confirmLoading:!1})}});return(t,s)=>(A(),I(m(P),G(t.$attrs,{onRegister:m(i),showFooter:"",title:m(c),width:"500px",onOk:B}),{default:V(()=>[E(m(y),{onRegister:m(n)},null,8,["onRegister"])]),_:1},16,["onRegister","title"]))}});export{Br as default};

View File

@ -0,0 +1 @@
var p=(s,i,o)=>new Promise((n,a)=>{var c=t=>{try{r(o.next(t))}catch(l){a(l)}},e=t=>{try{r(o.throw(t))}catch(l){a(l)}},r=t=>t.done?n(t.value):Promise.resolve(t.value).then(c,e);r((o=o.apply(s,i)).next())});import x from"./Box.6e1a6928.js";import{u as d}from"./useECharts.7b7a31e5.js";import{k as h}from"./other.770da20f.js";import{u as m}from"./visualization.0b352701.js";import{c as u}from"./colors.69d1b0cd.js";import{J as g,a as y,s as v,r as b,bp as w,H as B,aA as S,o as C,j as D,x as A,i as _}from"./index.eec7c138.js";const E=y({components:{Box:x},setup(){const s=v({x_axis:[],series:[]}),i=b(null),o=m(),{setOptions:n}=d(i);function a(){return p(this,null,function*(){const e=yield h({year:o.getYear});s.x_axis=e.x_axis,s.series=e.series,c()})}const c=()=>{const e={legendData:[],series:[]};s.series.forEach(({name:r,data:t},l)=>{const f=u[l%u.length];e.legendData.push(r),e.series.push({name:r,data:t,type:"line",symbol:"none",itemStyle:{color:f.itemColor},areaStyle:{color:f.areaColor}})}),n({grid:{left:"2%",right:"2%",top:"10%",bottom:"2%",containLabel:!0},legend:{data:e.legendData,top:"0%",right:"0",textStyle:{color:"#ffffff"}},tooltip:{trigger:"axis",axisPointer:{lineStyle:{width:1,color:"#019680"}}},xAxis:{type:"category",data:s.x_axis,axisTick:{show:!1},axisLine:{show:!1},axisLabel:{color:"#fff"}},yAxis:[{type:"value",axisTick:{show:!1},splitLine:{lineStyle:{type:"solid",color:"#8EEEFF",opacity:.3}},axisLabel:{color:"#fff"}}],series:e.series})};return w(()=>{a()}),B(()=>o.getYear,()=>a()),{chartRef:i}}}),L={class:"h-full flex flex-col"},k={class:"flex-1",ref:"chartRef"};function $(s,i,o,n,a,c){const e=S("Box");return C(),D(e,{title:"\u7A3B\u867E\u6D41\u5411"},{default:A(()=>[_("div",L,[_("div",k,null,512)])]),_:1})}var Y=g(E,[["render",$],["__scopeId","data-v-2b2f8746"]]);export{Y as default};

View File

@ -0,0 +1 @@
.active[data-v-2b2f8746]{font-weight:700;font-size:15px;line-height:1;--tw-text-opacity: 1;color:rgba(118,233,240,var(--tw-text-opacity))}

View File

@ -0,0 +1 @@
import{a as f,f as p,cG as s,r as u,H as h,o as y,j as x,x as r,i as o,bm as g,k as Y}from"./index.eec7c138.js";import{C as b}from"./index.b568925b.js";import"./index.a2ec4afe.js";import"./index.a2241d89.js";import{u as w}from"./useECharts.7b7a31e5.js";import"./index.ba75b5cb.js";import"./index.fd07537f.js";import"./useRefs.77e50e1b.js";import"./PlusOutlined.073ab670.js";const k=o("div",{class:"flex items-end"},[o("div",{class:"text-18px font-extrabold"},"\u7A7A\u6C14\u6E7F\u5EA6"),o("div",{class:"ml-8px text-14px"},"%RH")],-1),O=f({__name:"AirHumidity",props:{loading:Boolean,width:{type:String,default:"100%"},height:{type:String,default:"300px"},data:{type:Object,default:()=>{}},company:{type:String,default:""},time:{type:Object,default:()=>{}}},setup(i){const e=i,n=p(()=>{var t,a;if(e.time){const d=s((t=e.time)==null?void 0:t[0]).format("YYYY-MM-DD"),c=s((a=e.time)==null?void 0:a[1]).format("YYYY-MM-DD");if(d===c)return"HH:mm"}return e.company==="day"?"HH:mm":"YYYY-MM-DD"}),l=u(null),{setOptions:m}=w(l);return h(()=>e.data,t=>{t&&m({tooltip:{trigger:"axis",axisPointer:{lineStyle:{width:1,color:"#019680"}}},xAxis:{type:"category",data:Object.keys(t).map(a=>s(a).format(n.value)),axisTick:{show:!1},axisLine:{show:!1}},yAxis:[{type:"value",axisTick:{show:!1},splitLine:{lineStyle:{type:"dashed"}}}],grid:{left:"2%",right:"4%",top:"2 %",bottom:0,containLabel:!0},series:[{smooth:!0,data:Object.values(t),type:"line",itemStyle:{color:"#5ab1ef"}}]})},{immediate:!0}),(t,a)=>(y(),x(Y(b),{loading:i.loading},{title:r(()=>[k]),extra:r(()=>[]),default:r(()=>[o("div",{ref_key:"chartRef",ref:l,style:g({width:i.width,height:i.height})},null,4)]),_:1},8,["loading"]))}});export{O as default};

View File

@ -0,0 +1 @@
import{a as d,f as p,cG as r,r as u,H as h,o as y,j as x,x as s,i as o,bm as g,k as Y}from"./index.eec7c138.js";import{C as b}from"./index.b568925b.js";import"./index.a2ec4afe.js";import"./index.a2241d89.js";import{u as w,e as S}from"./useECharts.7b7a31e5.js";import"./index.ba75b5cb.js";import"./index.fd07537f.js";import"./useRefs.77e50e1b.js";import"./PlusOutlined.073ab670.js";const k=o("div",{class:"flex items-end"},[o("div",{class:"text-18px font-extrabold"},"\u7A7A\u6C14\u6E29\u5EA6"),o("div",{class:"ml-8px text-14px"},"\u2103")],-1),B=d({__name:"AirTemperature",props:{loading:Boolean,width:{type:String,default:"100%"},height:{type:String,default:"300px"},data:{type:Object,default:()=>{}},company:{type:String,default:""},time:{type:Object,default:()=>{}}},setup(i){const e=i,n=p(()=>{var t,a;if(e.time){const f=r((t=e.time)==null?void 0:t[0]).format("YYYY-MM-DD"),c=r((a=e.time)==null?void 0:a[1]).format("YYYY-MM-DD");if(f===c)return"HH:mm"}return e.company==="day"?"HH:mm":"YYYY-MM-DD"}),l=u(null),{setOptions:m}=w(l);return h(()=>e.data,t=>{t&&m({tooltip:{trigger:"axis",axisPointer:{lineStyle:{width:1,color:"#019680"}}},xAxis:{type:"category",data:Object.keys(t).map(a=>r(a).format(n.value)),axisTick:{show:!1},axisLine:{show:!1}},yAxis:[{type:"value",axisTick:{show:!1},splitLine:{lineStyle:{type:"dashed"}}}],grid:{left:"2%",right:"4%",top:"2 %",bottom:0,containLabel:!0},series:[{smooth:!0,data:Object.values(t),type:"line",areaStyle:{color:new S.graphic.LinearGradient(0,0,0,1,[{offset:0,color:"#d7f3f2"},{offset:1,color:"#ebf9f9"}])},itemStyle:{color:"#5ab1ef"}}]})},{immediate:!0}),(t,a)=>(y(),x(Y(b),{loading:i.loading},{title:s(()=>[k]),extra:s(()=>[]),default:s(()=>[o("div",{ref_key:"chartRef",ref:l,style:g({width:i.width,height:i.height})},null,4)]),_:1},8,["loading"]))}});export{B as default};

View File

@ -0,0 +1 @@
import{p as i,aX as l}from"./index.eec7c138.js";var f={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"},u=f;function c(r){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?Object(arguments[t]):{},n=Object.keys(e);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(e).filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),n.forEach(function(a){d(r,a,e[a])})}return r}function d(r,t,e){return t in r?Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[t]=e,r}var o=function(t,e){var n=c({},t,e.attrs);return i(l,c({},n,{icon:u}),null)};o.displayName="ArrowLeftOutlined";o.inheritAttrs=!1;var O=o;export{O as A};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
[data-v-0a668248] .ant-picker{width:100%}

View File

@ -0,0 +1 @@
var m=(e,u,o)=>new Promise((n,l)=>{var i=t=>{try{f(o.next(t))}catch(a){l(a)}},c=t=>{try{f(o.throw(t))}catch(a){l(a)}},f=t=>t.done?n(t.value):Promise.resolve(t.value).then(i,c);f((o=o.apply(e,u)).next())});import{w as _}from"./other.770da20f.js";import{u as B}from"./useECharts.7b7a31e5.js";import w from"./Box.6e1a6928.js";import{a as C,g4 as h,r as k,s as D,bp as S,J as $,k as j,aA as v,o as L,j as O,x as E,i as x,aB as I}from"./index.eec7c138.js";import{a as N,c as A}from"./colors.69d1b0cd.js";import{u as P}from"./visualization.0b352701.js";const z=C({components:{Box:w},props:{data:{type:Object},index:{type:Number},baseId:{type:[String,Number]}},setup(e){e.baseId;const u=P(),o=h(()=>e.data),n=k(null),{setOptions:l}=B(n),i=D({list:[]});function c(){return m(this,null,function*(){const{id:t}=j(e.data);if(!t)return;const a=yield _({crop_id:t,year:u.getYear,base_id:e.baseId}),p=[];for(const d in a)if(Object.prototype.hasOwnProperty.call(a,d)){const s=a[d];p.push({name:`${s.name}(${s.unit})`,list:Object.keys(s.list).map(r=>s.list[r]),axis:Object.keys(s.list).map(r=>r)})}i.list=p,f()})}h(()=>!!e.baseId);function f(){var s;const t={legendData:[],series:[]},a=Number(e.index)%2,p=a==1?N:A,d=a==1?"bar":"line";i.list.forEach(({name:r,list:y},b)=>{const g=p[b%p.length];t.legendData.push(r),t.series.push({name:r,data:y,type:d,itemStyle:{color:g.itemColor}})}),l({grid:{left:"2%",right:"2%",top:"30px",bottom:"2%",containLabel:!0},legend:{show:!0,data:t.legendData,top:"0%",right:"0",textStyle:{color:"#ffffff"}},tooltip:{trigger:"axis",axisPointer:{lineStyle:{width:1,color:"#019680"}}},xAxis:{type:"category",data:(s=i.list[0])==null?void 0:s.axis,boundaryGap:d!="line",axisTick:{show:!1},axisLine:{show:!1},axisLabel:{color:"#fff"}},yAxis:[{type:"value",axisTick:{show:!1},splitLine:{lineStyle:{type:"solid",color:"#8EEEFF",opacity:.3}},axisLabel:{color:"#fff"}}],series:t.series})}return S(()=>{c()}),{propsData:o,chartRef:n}}}),F={class:"h-full flex flex-col w-full"},R={class:"flex-1",ref:"chartRef"};function T(e,u,o,n,l,i){const c=v("Box");return L(),O(c,I({title:e.propsData.name},e.$attrs),{default:E(()=>[x("div",F,[x("div",R,null,512)])]),_:1},16,["title"])}var H=$(z,[["render",T]]);export{H as default};

1
dist/assets/Box.6e1a6928.js vendored 100644

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
.vben-layout-breadcrumb{display:flex;padding:0 8px;align-items:center}.vben-layout-breadcrumb .ant-breadcrumb-link .anticon{margin-right:4px;margin-bottom:2px}.vben-layout-breadcrumb--light .ant-breadcrumb-link{color:#999}.vben-layout-breadcrumb--light .ant-breadcrumb-link a{color:#000000a6}.vben-layout-breadcrumb--light .ant-breadcrumb-link a:hover{color:#0960bd}.vben-layout-breadcrumb--light .ant-breadcrumb-separator{color:#999}.vben-layout-breadcrumb--dark .ant-breadcrumb-link{color:#fff9}.vben-layout-breadcrumb--dark .ant-breadcrumb-link a{color:#fffc}.vben-layout-breadcrumb--dark .ant-breadcrumb-link a:hover{color:#fff}.vben-layout-breadcrumb--dark .ant-breadcrumb-separator,.vben-layout-breadcrumb--dark .anticon{color:#fffc}

View File

@ -0,0 +1 @@
var T=Object.defineProperty,V=Object.defineProperties;var L=Object.getOwnPropertyDescriptors;var R=Object.getOwnPropertySymbols;var O=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable;var E=(e,t,r)=>t in e?T(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,k=(e,t)=>{for(var r in t||(t={}))O.call(t,r)&&E(e,r,t[r]);if(R)for(var r of R(t))j.call(t,r)&&E(e,r,t[r]);return e},y=(e,t)=>V(e,L(t));var M=(e,t,r)=>new Promise((h,d)=>{var b=l=>{try{f(r.next(l))}catch(c){d(c)}},p=l=>{try{f(r.throw(l))}catch(c){d(c)}},f=l=>l.done?h(l.value):Promise.resolve(l.value).then(b,p);f((r=r.apply(e,t)).next())});import{J as z,a as G,b6 as H,aK as J,r as K,bd as Z,b as q,bC as x,aZ as F,c as Q,ac as U,bf as W,by as X,bb as Y,fH as ee,aA as B,o as g,h as P,p as te,x as A,j as w,l as ne,t as S,y as ae,n as re,E as se}from"./index.eec7c138.js";import{B as D}from"./index.e65225a1.js";const oe=G({name:"LayoutBreadcrumb",components:{Icon:H,[D.name]:D},props:{theme:J.oneOf(["dark","light"])},setup(){const e=K([]),{currentRoute:t}=Z(),{prefixCls:r}=q("layout-breadcrumb"),{getShowBreadCrumbIcon:h}=x(),d=F(),{t:b}=Q();U(()=>M(this,null,function*(){var C,I,$;if(t.value.name===W)return;const s=yield X(),n=t.value.matched,a=n==null?void 0:n[n.length-1];let o=t.value.path;a&&((C=a==null?void 0:a.meta)==null?void 0:C.currentActiveMenu)&&(o=a.meta.currentActiveMenu);const u=Y(s,o),m=s.filter(N=>N.path===u[0]),i=p(m,u);if(!i||i.length===0)return;const _=f(i);(I=t.value.meta)!=null&&I.currentActiveMenu&&_.push(y(k({},t.value),{name:(($=t.value.meta)==null?void 0:$.title)||t.value.name})),e.value=_}));function p(s,n){const a=[];return s.forEach(o=>{var u,m;n.includes(o.path)&&a.push(y(k({},o),{name:((u=o.meta)==null?void 0:u.title)||o.name})),(m=o.children)!=null&&m.length&&a.push(...p(o.children,n))}),a}function f(s){return ee(s,n=>{const{meta:a,name:o}=n;if(!a)return!!o;const{title:u,hideBreadcrumb:m,hideMenu:i}=a;return!(!u||m||i)}).filter(n=>{var a;return!((a=n.meta)!=null&&a.hideBreadcrumb)})}function l(s,n,a){a==null||a.preventDefault();const{children:o,redirect:u,meta:m}=s;if((o==null?void 0:o.length)&&!u){a==null||a.stopPropagation();return}if(!(m!=null&&m.carryParam))if(u&&se(u))d(u);else{let i="";n.length===1?i=n[0]:i=`${n.slice(1).pop()||""}`,i=/^\//.test(i)?i:`/${i}`,d(i)}}function c(s,n){return s.indexOf(n)!==s.length-1}function v(s){var n;return s.icon||((n=s.meta)==null?void 0:n.icon)}return{routes:e,t:b,prefixCls:r,getIcon:v,getShowBreadCrumbIcon:h,handleClick:l,hasRedirect:c}}}),ce={key:1};function ie(e,t,r,h,d,b){const p=B("Icon"),f=B("router-link"),l=B("a-breadcrumb");return g(),P("div",{class:re([e.prefixCls,`${e.prefixCls}--${e.theme}`])},[te(l,{routes:e.routes},{itemRender:A(({route:c,routes:v,paths:s})=>[e.getShowBreadCrumbIcon&&e.getIcon(c)?(g(),w(p,{key:0,icon:e.getIcon(c)},null,8,["icon"])):ne("",!0),e.hasRedirect(v,c)?(g(),w(f,{key:2,to:"",onClick:n=>e.handleClick(c,s,n)},{default:A(()=>[ae(S(e.t(c.name||c.meta.title)),1)]),_:2},1032,["onClick"])):(g(),P("span",ce,S(e.t(c.name||c.meta.title)),1))]),_:1},8,["routes"])],2)}var fe=z(oe,[["render",ie]]);export{fe as default};

1
dist/assets/CChart.2733649c.js vendored 100644
View File

@ -0,0 +1 @@
var I=Object.defineProperty,K=Object.defineProperties;var L=Object.getOwnPropertyDescriptors;var C=Object.getOwnPropertySymbols;var O=Object.prototype.hasOwnProperty,F=Object.prototype.propertyIsEnumerable;var E=(t,e,a)=>e in t?I(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,w=(t,e)=>{for(var a in e||(e={}))O.call(e,a)&&E(t,a,e[a]);if(C)for(var a of C(e))F.call(e,a)&&E(t,a,e[a]);return t},S=(t,e)=>K(t,L(e));var _=(t,e,a)=>new Promise((b,c)=>{var u=o=>{try{r(a.next(o))}catch(i){c(i)}},n=o=>{try{r(a.throw(o))}catch(i){c(i)}},r=o=>o.done?b(o.value):Promise.resolve(o.value).then(u,n);r((a=a.apply(t,e)).next())});import{J as $,a as z,r as h,s as N,f as g,bp as P,bc as R,aA as k,o as v,h as B,i as D,p as V,x as Y,F as G,aD as J,j as M}from"./index.eec7c138.js";import{T as Q,a as U}from"./index.a2ec4afe.js";import{w as q,x as H}from"./other.770da20f.js";import{u as W}from"./useECharts.7b7a31e5.js";import{u as X}from"./visualization.0b352701.js";import{a as Z}from"./colors.69d1b0cd.js";import"./useRefs.77e50e1b.js";import"./PlusOutlined.073ab670.js";const tt=[{name:"\u519C\u4E1A",id:2},{name:"\u6E14\u4E1A",id:3},{name:"\u755C\u7267\u4E1A",id:4},{name:"\u6797\u4E1A",id:5},{name:"\u5176\u4ED6",id:6}],et=z({components:{Tabs:Q,TabPane:U},props:{visible:{type:Boolean},parentId:{type:[String,Number]},name:{type:[String]}},setup(t){const e=h(null),{setOptions:a}=W(e),b=h("top"),c=h(0),u=X(),n=N({tabs:[],list:[]}),r=g(()=>t.name),o=g(()=>n.tabs[c.value]),i=g(()=>{var s;return(s=tt.find(l=>l.name==t.name))==null?void 0:s.id}),A=()=>{const{is_end:s}=o.value;x()};function x(){return _(this,null,function*(){var d,f;const s=yield q({year:u.getYear,base_id:u.getAddresId,category_id:i.value,crop_id:(f=(d=o.value)==null?void 0:d.id)!=null?f:null}),l=[];for(const y in s)if(Object.prototype.hasOwnProperty.call(s,y)){const p=s[y];l.push({name:p.name,list:Object.keys(p.list).map(m=>p.list[m]),axis:Object.keys(p.list).map(m=>m)})}n.list=l,T()})}function T(){var d;const s={legendData:[],series:[]},l=Z;n.list.forEach(({name:f,list:y},p)=>{const m=l[p%l.length];s.legendData.push(f),s.series.push({name:f,data:y,type:"bar",itemStyle:{color:m.itemColor}})}),a({grid:{left:"2%",right:"2%",top:"10%",bottom:"2%",containLabel:!0},legend:{show:!1,data:s.legendData,top:"0%",right:"0",textStyle:{color:"#ffffff"}},tooltip:{trigger:"axis",axisPointer:{lineStyle:{width:1,color:"#019680"}}},xAxis:{type:"category",data:(d=n.list[0])==null?void 0:d.axis,axisTick:{show:!1},axisLine:{show:!1},axisLabel:{color:"#fff"}},yAxis:[{type:"value",axisTick:{show:!1},splitLine:{lineStyle:{type:"solid",color:"#8EEEFF",opacity:.3}},axisLabel:{color:"#fff"}}],series:s.series})}function j(){return _(this,null,function*(){const s=yield H({parent_id:t.parentId,crop_type:1,category_id:i.value,type:"top"});n.tabs=[{name:"\u5168\u90E8",id:null}].concat(s),x()})}return P(()=>{j()}),S(w({title:r},R(n)),{chartRef:e,mode:b,tabChange:A,activeKey:c})}}),at={class:"h-full flex flex-col w-full"},st={class:"px-10px"},ot={class:"h-400px w-full",ref:"chartRef"};function nt(t,e,a,b,c,u){const n=k("tab-pane"),r=k("tabs");return v(),B("div",at,[D("div",st,[V(r,{size:"small",class:"mytabs",activeKey:t.activeKey,"onUpdate:activeKey":e[0]||(e[0]=o=>t.activeKey=o),"tab-position":t.mode,tabBarGutter:10,tabBarStyle:{color:"#fff",margin:0},onChange:t.tabChange},{default:Y(()=>[(v(!0),B(G,null,J(t.tabs,(o,i)=>(v(),M(n,{key:i,tab:o.name},null,8,["tab"]))),128))]),_:1},8,["activeKey","tab-position","onChange"])]),D("div",ot,null,512)])}var bt=$(et,[["render",nt],["__scopeId","data-v-fbc3b660"]]);export{bt as default};

View File

@ -0,0 +1 @@
[data-v-fbc3b660] .mytabs .ant-tabs-ink-bar{display:none}[data-v-fbc3b660] .mytabs .ant-tabs-tab:hover,[data-v-fbc3b660] .mytabs .ant-tabs-tab-active .ant-tabs-tab-btn{color:#76e9f0}[data-v-fbc3b660] .mytabs .ant-tabs-nav:before{display:none}

View File

@ -0,0 +1 @@
[data-v-0767713e] .mytabs .ant-tabs-ink-bar{display:none}[data-v-0767713e] .mytabs .ant-tabs-tab:hover,[data-v-0767713e] .mytabs .ant-tabs-tab-active .ant-tabs-tab-btn{color:#76e9f0}[data-v-0767713e] .mytabs .ant-tabs-nav:before{display:none}

1
dist/assets/CModal.f4d6c2f8.js vendored 100644

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
var x=Object.defineProperty,C=Object.defineProperties;var b=Object.getOwnPropertyDescriptors;var l=Object.getOwnPropertySymbols;var y=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable;var p=(e,t,o)=>t in e?x(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,s=(e,t)=>{for(var o in t||(t={}))y.call(t,o)&&p(e,o,t[o]);if(l)for(var o of l(t))B.call(t,o)&&p(e,o,t[o]);return e},d=(e,t)=>C(e,b(t));import{J as S,a as E,el as m,r as I,f as _,k as u,ac as V,aA as f,o as w,h as k,p as g,x as h,i as a,t as D,aF as $,aG as M,aB as N,eC as P,eD as A}from"./index.eec7c138.js";import F from"./CChart.2733649c.js";import{_ as q}from"./model-close-icon.706a0490.js";import"./index.a2ec4afe.js";import"./useRefs.77e50e1b.js";import"./PlusOutlined.073ab670.js";import"./other.770da20f.js";import"./useECharts.7b7a31e5.js";import"./visualization.0b352701.js";import"./colors.69d1b0cd.js";const z=E({components:{[m.name]:m,CChart:F},props:{visible:{type:Boolean},parentId:{type:[String,Number]},name:{type:[String]}},setup(e,{attrs:t}){const o=I(!1),r=_(()=>e.name),n=_(()=>d(s(s({},t),u(e)),{visible:u(o)})),i=()=>document.body.querySelector(".cmodal");return V(()=>{o.value=!!e.visible}),{title:r,getContainer:i,getBindValue:n}}}),G=e=>(P("data-v-78a3aeec"),e=e(),A(),e),J={class:"cmodal"},O=G(()=>a("img",{class:"w-22px h-22px inline text-0",src:q,alt:"",srcset:""},null,-1)),R={class:"relative -mt-6px h-30px flex items-center"},j={class:"absolute top-0 left-40px right-40px bg-clip-text text-transparent bg-gradient-to-t from-[#76E9F0] to-[#A7E6EE] text-24px text-center"},H={class:"bg-[#1D2D35] mt-14px p-10px"};function K(e,t,o,r,n,i){const c=f("CChart"),v=f("a-modal");return w(),k("div",J,[g(v,N(e.getBindValue,{bodyStyle:{background:"#233741",color:"#fff"},width:800,getContainer:e.getContainer,destroyOnClose:""}),{closeIcon:h(()=>[O]),default:h(()=>[a("div",null,[a("div",R,[a("div",j,D(e.title),1)]),a("div",H,[g(c,$(M(e.getBindValue)),null,16)])])]),_:1},16,["getContainer"])])}var ae=S(z,[["render",K],["__scopeId","data-v-78a3aeec"]]);export{ae as default};

View File

@ -0,0 +1 @@
[data-v-78a3aeec] .mytabs .ant-tabs-ink-bar{display:none}[data-v-78a3aeec] .mytabs .ant-tabs-tab:hover,[data-v-78a3aeec] .mytabs .ant-tabs-tab-active .ant-tabs-tab-btn{color:#76e9f0}[data-v-78a3aeec] .mytabs .ant-tabs-nav:before{display:none}

1
dist/assets/CO2.5c5df1f2.js vendored 100644
View File

@ -0,0 +1 @@
import{a as f,f as p,cG as s,r as u,H as h,o as y,j as x,x as r,i as o,bm as g,k as Y}from"./index.eec7c138.js";import{C as b}from"./index.b568925b.js";import"./index.a2ec4afe.js";import"./index.a2241d89.js";import{u as w}from"./useECharts.7b7a31e5.js";import"./index.ba75b5cb.js";import"./index.fd07537f.js";import"./useRefs.77e50e1b.js";import"./PlusOutlined.073ab670.js";const k=o("div",{class:"flex items-end"},[o("div",{class:"text-18px font-extrabold"},"CO2"),o("div",{class:"ml-8px text-14px"},"ppm")],-1),B=f({__name:"CO2",props:{loading:Boolean,width:{type:String,default:"100%"},height:{type:String,default:"300px"},data:{type:Object,default:()=>{}},company:{type:String,default:""},time:{type:Object,default:()=>{}}},setup(i){const e=i,n=p(()=>{var t,a;if(e.time){const d=s((t=e.time)==null?void 0:t[0]).format("YYYY-MM-DD"),c=s((a=e.time)==null?void 0:a[1]).format("YYYY-MM-DD");if(d===c)return"HH:mm"}return e.company==="day"?"HH:mm":"YYYY-MM-DD"}),l=u(null),{setOptions:m}=w(l);return h(()=>e.data,t=>{t&&m({tooltip:{trigger:"axis",axisPointer:{lineStyle:{width:1,color:"#019680"}}},xAxis:{type:"category",data:Object.keys(t).map(a=>s(a).format(n.value)),axisTick:{show:!1},axisLine:{show:!1}},yAxis:[{type:"value",axisTick:{show:!1},splitLine:{lineStyle:{type:"dashed"}}}],grid:{left:"2%",right:"4%",top:"2 %",bottom:0,containLabel:!0},series:[{data:Object.values(t),type:"bar",itemStyle:{color:"#5ab1ef"}}]})},{immediate:!0}),(t,a)=>(y(),x(Y(b),{loading:i.loading},{title:r(()=>[k]),extra:r(()=>[]),default:r(()=>[o("div",{ref_key:"chartRef",ref:l,style:g({width:i.width,height:i.height})},null,4)]),_:1},8,["loading"]))}});export{B as default};

1
dist/assets/CZNYCY.1bdd5ff2.js vendored 100644
View File

@ -0,0 +1 @@
var d=(n,t,r)=>new Promise((e,o)=>{var i=a=>{try{u(r.next(a))}catch(c){o(c)}},s=a=>{try{u(r.throw(a))}catch(c){o(c)}},u=a=>a.done?e(a.value):Promise.resolve(a.value).then(i,s);u((r=r.apply(n,t)).next())});import{o as b}from"./other.770da20f.js";import{u as y}from"./useECharts.7b7a31e5.js";import{u as w}from"./visualization.0b352701.js";import{u as _}from"./useVContext.90866f64.js";import{W as E,g6 as g,fr as p,aW as C,aU as A,aV as L,fs as B,en as k,eh as F,r as Y,a as $,s as z,f as M,H as O,G as V,J as v,o as H,h as P,i as l,bm as T}from"./index.eec7c138.js";import{b as W}from"./_baseIteratee.8e9620dd.js";import{b as G}from"./_baseEach.f9812519.js";import{i as h}from"./_isIterateeCall.13b42414.js";import"./get.2199c57c.js";function U(n,t){var r=-1,e=E(n)?Array(n.length):[];return G(n,function(o,i,s){e[++r]=t(o,i,s)}),e}function j(n,t){var r=n.length;for(n.sort(t);r--;)n[r]=n[r].value;return n}function J(n,t){if(n!==t){var r=n!==void 0,e=n===null,o=n===n,i=g(n),s=t!==void 0,u=t===null,a=t===t,c=g(t);if(!u&&!c&&!i&&n>t||i&&s&&a&&!u&&!c||e&&s&&a||!r&&a||!o)return 1;if(!e&&!i&&!c&&n<t||c&&r&&o&&!e&&!i||u&&r&&o||!s&&o||!a)return-1}return 0}function Z(n,t,r){for(var e=-1,o=n.criteria,i=t.criteria,s=o.length,u=r.length;++e<s;){var a=J(o[e],i[e]);if(a){if(e>=u)return a;var c=r[e];return a*(c=="desc"?-1:1)}}return n.index-t.index}function q(n,t,r){t.length?t=p(t,function(i){return C(i)?function(s){return A(s,i.length===1?i[0]:i)}:i}):t=[L];var e=-1;t=p(t,B(W));var o=U(n,function(i,s,u){var a=p(t,function(c){return c(i)});return{criteria:a,index:++e,value:i}});return j(o,function(i,s){return Z(i,s,r)})}var K=k(function(n,t){if(n==null)return[];var r=t.length;return r>1&&h(n,t[0],t[1])?t=[]:r>2&&h(t[0],t[1],t[2])&&(t=[t[0]]),q(n,F(t,1),[])}),N=K;const x=w(),m=Y(null),Q=$({setup(){const{rootEmitter:n}=_(),{setOptions:t}=y(m),r=z({list:[]}),e=M(()=>r.list.length*34+r.list.length*12);function o(){var s,u,a,c;t({legend:{show:!1},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},xAxis:{type:"value",axisTick:{show:!1},axisLabel:{show:!1},axisLine:{show:!1},axisPointer:{show:!1},splitLine:{show:!1}},yAxis:{type:"category",data:(u=(s=r.list)==null?void 0:s.map(f=>f.y))!=null?u:[],axisLabel:{color:"#fff"},axisTick:{show:!1},axisLine:{show:!1},splitLine:{show:!1}},series:[{type:"bar",data:(c=(a=r.list)==null?void 0:a.map(f=>f.value))!=null?c:[],label:{show:!0,position:"inside",color:"#fff"},itemStyle:{color:"rgba(117, 232, 238, 0.5)"},barWidth:34}],grid:{left:"2%",right:"2%",top:"0%",bottom:"2%",containLabel:!0}})}function i(){return d(this,null,function*(){const{list:s}=yield b({year:x.getYear,category_id:null}),u=[];for(const a in s)Object.prototype.hasOwnProperty.call(s,a)&&u.push({value:(Number(s[a])/1e4).toFixed(2),y:a});r.list=N(u,a=>Number(a.value)),o()})}return O(()=>x.getYear,()=>{i()}),V(()=>{i(),n.on("interval:auto",()=>{i()})}),{chartHeight:e,chartRef:m}}}),S={class:"w-314px flex h-full flex-col"},X=l("div",{class:"font-pmzd text-18px h-60px leading-60px text-center bg-clip-text text-transparent bg-gradient-to-t from-[#76E9F0] to-[#A7E6EE]"},"\u57CE\u9547\u519C\u4E1A\u4EA7\u4E1A\u60C5\u51B5",-1),D=l("div",{class:"text-right text-11px leading-17px text-white mr-42px"}," \u5355\u4F4D\uFF1A\u4E07 ",-1);function R(n,t,r,e,o,i){return H(),P("div",S,[X,D,l("div",{style:T({height:n.chartHeight+"px"}),class:"mt-20px min-h-200px",ref:"chartRef"},null,4)])}var ct=v(Q,[["render",R]]);export{ct as default};

View File

@ -0,0 +1 @@
import{p as o,aX as f}from"./index.eec7c138.js";var p={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},O=p;function l(r){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?Object(arguments[t]):{},n=Object.keys(e);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(e).filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),n.forEach(function(a){d(r,a,e[a])})}return r}function d(r,t,e){return t in r?Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[t]=e,r}var i=function(t,e){var n=l({},t,e.attrs);return o(f,l({},n,{icon:O}),null)};i.displayName="CaretDownOutlined";i.inheritAttrs=!1;var v=i,s={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},b=s;function c(r){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?Object(arguments[t]):{},n=Object.keys(e);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(e).filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),n.forEach(function(a){g(r,a,e[a])})}return r}function g(r,t,e){return t in r?Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[t]=e,r}var u=function(t,e){var n=c({},t,e.attrs);return o(f,c({},n,{icon:b}),null)};u.displayName="CaretUpOutlined";u.inheritAttrs=!1;var h=u;export{h as C,v as a};

View File

@ -0,0 +1 @@
var N=Object.defineProperty,V=Object.defineProperties;var $=Object.getOwnPropertyDescriptors;var I=Object.getOwnPropertySymbols;var G=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable;var M=(o,r,e)=>r in o?N(o,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[r]=e,w=(o,r)=>{for(var e in r||(r={}))G.call(r,e)&&M(o,e,r[e]);if(I)for(var e of I(r))S.call(r,e)&&M(o,e,r[e]);return o},D=(o,r)=>V(o,$(r));var Y=(o,r,e)=>new Promise((b,y)=>{var B=u=>{try{g(e.next(u))}catch(F){y(F)}},C=u=>{try{g(e.throw(u))}catch(F){y(F)}},g=u=>u.done?b(u.value):Promise.resolve(u.value).then(B,C);g((e=e.apply(o,r)).next())});import{u as J,B as W}from"./useForm.34cdb88b.js";import{P as z,b as H}from"./city.data.93a3d8e6.js";import{a as K,B as Q}from"./index.1560549a.js";import{a as T,r as X,o as c,j as k,x as d,p,k as s,h as _,F as U,aD as P,I as Z,i as R,aB as ee,br as ae,cF as re,cG as j,cJ as se}from"./index.eec7c138.js";import"./index.a2241d89.js";import{D as te}from"./index.d67f577b.js";import"./index.693b4f1e.js";import{I as oe}from"./index.b6156dbd.js";import{c as E}from"./concat.67f5f429.js";import{a as x}from"./index.d17e923e.js";import{R as le,C as O}from"./index.fd07537f.js";import{M as ue}from"./MinusCircleOutlined.11560f70.js";import"./index.638bb3e3.js";import"./index.a6c33135.js";import"./Checkbox.51b3985f.js";import"./index.df77d9c7.js";import"./index.38799a86.js";import"./index.af861c3a.js";import"./get.2199c57c.js";import"./eagerComputed.bdd88bed.js";import"./transButton.58d6bbc4.js";import"./index.f28bde88.js";import"./useWindowSizeFn.0f608d47.js";import"./FullscreenOutlined.05779bfe.js";import"./useRefs.77e50e1b.js";import"./_baseEach.f9812519.js";import"./_baseIteratee.8e9620dd.js";import"./download.e8f65dad.js";import"./dateUtil.160b2c2f.js";import"./uniqBy.4b5d9352.js";import"./index.abfdfeab.js";import"./ArrowLeftOutlined.489857b7.js";import"./useSize.507b40b9.js";const ne={class:"flex items-center"},ie={class:"w-9/10"},Se=T({__name:"CensusDrawer",emits:["success","register"],setup(o,{emit:r}){const e=X(!1),[b,{resetFields:y,setFieldsValue:B,validate:C}]=J({labelWidth:20,baseColProps:{span:24},schemas:H,showActionButtonGroup:!1}),[g,{setDrawerProps:u,closeDrawer:F}]=K(l=>Y(this,null,function*(){if(y(),u({confirmLoading:!1}),e.value=l==null?void 0:l.isUpdate,s(e)){const i=l.data.reduce((n,t)=>{const a={name:t.name,slug:t.slug,unit:t.unit};if(ae(t.value)||re(t.value)){const f=[];Object.keys(t.value).length===0&&f.push({value:"",year:null});for(const m in t.value)f.push({value:t.value[m],year:j(m+"","YYYY")});return E(n,D(w({},a),{isMore:!0,value:f}))}return E(n,D(w({},a),{isMore:!1,value:t.value}))},[]);B({data:i})}})),q=()=>Y(this,null,function*(){try{const{data:l}=yield C(),i={};l.forEach(n=>{if(n.isMore){const t={};n.value.forEach(a=>{a.year&&(t[j(a.year).get("year")]=a.value)}),i[n.slug]=t}else i[n.slug]=n.value}),yield se(i),F(),r("success")}finally{u({confirmLoading:!1})}}),A=l=>{l.value.push({value:"",year:""})},L=(l,i)=>{l.value.splice(i,1)};return(l,i)=>(c(),k(s(Q),ee(l.$attrs,{onRegister:s(g),showFooter:"",title:"\u7F16\u8F91\u7EDF\u8BA1",width:"600px",onOk:q}),{default:d(()=>[p(s(W),{onRegister:s(b)},{data:d(({model:n,field:t})=>[(c(!0),_(U,null,P(n[t],(a,f)=>(c(),_(U,{key:f},[a.isMore?(c(!0),_(U,{key:1},P(a.value,(m,v)=>(c(),_("div",{key:v},[p(s(le),null,{default:d(()=>[p(s(O),{span:15},{default:d(()=>[p(s(x),{labelCol:{span:13},label:v==0?a.name:" ",name:["data",v,"value"],rules:{required:!1,message:"\u8BF7\u8F93\u5165",trigger:"change"}},{default:d(()=>[p(s(te),{format:"YYYY",valueFormat:"YYYY",value:m.year,"onUpdate:value":h=>m.year=h,picker:"year"},null,8,["value","onUpdate:value"])]),_:2},1032,["label","name"])]),_:2},1024),p(s(O),{span:9},{default:d(()=>[p(s(x),{labelCol:{span:2},name:["data",v,"value"],label:" ",rules:{required:!1,message:"\u8BF7\u8F93\u5165",trigger:"change"}},{default:d(()=>[R("div",ne,[R("div",ie,[p(s(oe),{class:"!mr-10px",value:m.value,"onUpdate:value":h=>m.value=h,placeholder:"\u8BF7\u8F93\u5165","addon-after":a.unit},null,8,["value","onUpdate:value","addon-after"])]),v===0?(c(),k(s(z),{key:0,class:"cursor-pointer",onClick:h=>A(a)},null,8,["onClick"])):(c(),k(s(ue),{key:1,class:"cursor-pointer",onClick:h=>L(a,v)},null,8,["onClick"]))])]),_:2},1032,["name"])]),_:2},1024)]),_:2},1024)]))),128)):(c(),k(s(x),{key:0,labelCol:{span:8},label:a.name,name:["data",f,"value"],rules:{required:!0,message:"\u8BF7\u8F93\u5165",trigger:"change"}},{default:d(()=>[p(s(Z),{value:a.value,"onUpdate:value":m=>a.value=m,suffix:a.unit,placeholder:"\u8BF7\u8F93\u5165"},null,8,["value","onUpdate:value","suffix"])]),_:2},1032,["label","name"]))],64))),128))]),_:1},8,["onRegister"])]),_:1},16,["onRegister"]))}});export{Se as default};

1
dist/assets/Chart.20daf471.js vendored 100644
View File

@ -0,0 +1 @@
import{a as l,r as n,H as u,o as d,j as m,x as o,y as p,i as c,bm as h,k as f}from"./index.eec7c138.js";import{C as g}from"./index.b568925b.js";import"./index.a2ec4afe.js";import"./index.a2241d89.js";import{u as y}from"./useECharts.7b7a31e5.js";import"./index.ba75b5cb.js";import"./index.fd07537f.js";import"./useRefs.77e50e1b.js";import"./PlusOutlined.073ab670.js";const D=l({__name:"Chart",props:{loading:Boolean,width:{type:String,default:"100%"},height:{type:String,default:"300px"}},setup(t){const e=t,a=n(null),{setOptions:r}=y(a);return u(()=>e.loading,()=>{e.loading||r({tooltip:{trigger:"axis",axisPointer:{lineStyle:{width:1,color:"#019680"}}},xAxis:{type:"category",data:[...new Array(18)].map((s,i)=>`${i+6}:00`),axisTick:{show:!1},axisLine:{show:!1}},yAxis:[{type:"value",axisTick:{show:!1},splitLine:{lineStyle:{type:"dashed"}}}],grid:{left:"1%",right:"1%",top:"2 %",bottom:0,containLabel:!0},series:[{data:[11,22,40,18,3,55,66,33,14,30,66,44,22,11,40,20,50,33,22,11],type:"bar",itemStyle:{color:"#5ab1ef"}}]})},{immediate:!0}),(s,i)=>(d(),m(f(g),{loading:t.loading,title:"\u519C\u4E1A\u4EA7\u4E1A\u7ED3\u6784"},{extra:o(()=>[p("\u666E\u6DA6\u9547\u6854\u535A\u56ED-")]),default:o(()=>[c("div",{ref_key:"chartRef",ref:a,style:h({width:t.width,height:t.height})},null,4)]),_:1},8,["loading"]))}});export{D as default};

1
dist/assets/Chart.a18b1119.js vendored 100644

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
import{a as E,aq as $,r as f,H,aJ as J,_ as c,a2 as M,V as g,p as v,ai as T}from"./index.eec7c138.js";var W=["prefixCls","name","id","type","disabled","readonly","tabindex","autofocus","value","required"],z={prefixCls:String,name:String,id:String,type:String,defaultChecked:{type:[Boolean,Number],default:void 0},checked:{type:[Boolean,Number],default:void 0},disabled:Boolean,tabindex:{type:[Number,String]},readonly:Boolean,autofocus:Boolean,value:T.any,required:Boolean},L=E({compatConfig:{MODE:3},name:"Checkbox",inheritAttrs:!1,props:$(z,{prefixCls:"rc-checkbox",type:"checkbox",defaultChecked:!1}),emits:["click","change"],setup:function(a,d){var t=d.attrs,h=d.emit,m=d.expose,o=f(a.checked===void 0?a.defaultChecked:a.checked),i=f();H(function(){return a.checked},function(){o.value=a.checked}),m({focus:function(){var e;(e=i.value)===null||e===void 0||e.focus()},blur:function(){var e;(e=i.value)===null||e===void 0||e.blur()}});var l=f(),x=function(e){if(!a.disabled){a.checked===void 0&&(o.value=e.target.checked),e.shiftKey=l.value;var r={target:c(c({},a),{},{checked:e.target.checked}),stopPropagation:function(){e.stopPropagation()},preventDefault:function(){e.preventDefault()},nativeEvent:e};a.checked!==void 0&&(i.value.checked=!!a.checked),h("change",r),l.value=!1}},C=function(e){h("click",e),l.value=e.shiftKey};return function(){var n,e=a.prefixCls,r=a.name,s=a.id,p=a.type,b=a.disabled,K=a.readonly,P=a.tabindex,B=a.autofocus,S=a.value,N=a.required,q=J(a,W),_=t.class,D=t.onFocus,j=t.onBlur,w=t.onKeydown,V=t.onKeypress,A=t.onKeyup,y=c(c({},q),t),F=Object.keys(y).reduce(function(k,u){return(u.substr(0,5)==="aria-"||u.substr(0,5)==="data-"||u==="role")&&(k[u]=y[u]),k},{}),O=M(e,_,(n={},g(n,"".concat(e,"-checked"),o.value),g(n,"".concat(e,"-disabled"),b),n)),R=c(c({name:r,id:s,type:p,readonly:K,disabled:b,tabindex:P,class:"".concat(e,"-input"),checked:!!o.value,autofocus:B,value:S},F),{},{onChange:x,onClick:C,onFocus:D,onBlur:j,onKeydown:w,onKeypress:V,onKeyup:A,required:N});return v("span",{class:O},[v("input",c({ref:i},R),null),v("span",{class:"".concat(e,"-inner")},null)])}}});export{L as V};

View File

@ -0,0 +1 @@
.container-box[data-v-14743d47]{position:absolute;top:38%;left:0;width:100%;height:50%;perspective:800px;perspective-origin:50% -50%;clear:both;z-index:1}.main[data-v-14743d47]{position:absolute;top:5%;left:35%;transform-style:preserve-3d;z-index:2;transform-origin:100px 0px -200px;height:100px;width:200px;transition:transform .5s ease-in-out 0s}.main .frame[data-v-14743d47]{height:100px;width:200px;background:#28f2e660;position:absolute;background-size:100% 100%}.main .figure[data-v-14743d47],.main .total-item[data-v-14743d47]{text-align:center;overflow:auto}.circle-container[data-v-14743d47]{z-index:1;position:absolute;top:5%;left:38%;transform-style:preserve-3d}.circle-container .big-circle[data-v-14743d47],.circle-container .small-circle[data-v-14743d47]{background-position:50%;background-size:100% 100%;border-radius:50%}.circle-container .big-circle[data-v-14743d47]{width:1200px;height:1200px;top:-550px;left:-510px;background-image:url(/assets/img03.4a081247.png);transform:rotateX(90deg) translateZ(-70px);position:absolute;background-repeat:no-repeat;animation:20s linear 0s infinite normal none running rotateCircle-14743d47}.circle-container .small-circle[data-v-14743d47]{width:600px;height:600px;top:-250px;left:-200px;background-image:url(/assets/img02.72f5f653.png);background-repeat:no-repeat;position:absolute;transform:rotateX(90deg) translateZ(0);animation:20s linear 0s infinite normal none running rotateSmallCircle-14743d47}.static-container .all-lights1[data-v-14743d47],.static-container .all-lights2[data-v-14743d47]{background-repeat:no-repeat;background-position:50%;position:absolute;background-size:100%;transform:rotateX(50deg)}.static-container .all-lights1[data-v-14743d47]{width:200px;height:200px;left:50%;transform:translate(-50%);top:-110px;background-image:url(/assets/img01.a77223a9.png);z-index:20}.static-container .all-lights2[data-v-14743d47]{width:133.333px;height:133.333px;left:50%;transform:translate(-50%);top:-90px;background-image:url(/assets/img04.cf6e7385.png);z-index:20}.static-container .earth[data-v-14743d47],.static-container .steps[data-v-14743d47]{background-repeat:no-repeat;background-position:50%;position:absolute;background-size:100%}.static-container .earth[data-v-14743d47]{background-image:url(/assets/img05.4e9e4e1d.png);z-index:19;width:160px;height:160px;left:50%;transform:translate(-50%);top:-100px}@keyframes rotateCircle-14743d47{0%{transform:rotateY(0) rotateX(90deg) translateZ(-70px)}to{transform:rotateY(1turn) rotateX(90deg) translateZ(-70px)}}@keyframes rotateSmallCircle-14743d47{0%{transform:rotateY(0) rotateX(90deg) translateZ(0)}to{transform:rotateY(-1turn) rotateX(90deg) translateZ(0)}}

1
dist/assets/Circle.abe2c14b.js vendored 100644
View File

@ -0,0 +1 @@
import{a as h,r as y,f as i,J as g,k as n,g9 as $,o as c,h as o,i as e,bm as p,F as k,aD as A,t as m,ga as I}from"./index.eec7c138.js";const b=h({props:{axis:{type:Array,default:()=>[]},data:{type:Array,default:()=>[]}},setup(a){const s=y(0),v=i(()=>n(a.axis)),u=i(()=>n(a.data)),_=i(()=>n(a.data).reduce((t,f)=>(t.push({name:f.name,value:f.data.reduce((x,r)=>$(x,r!=null?r:0),0)}),t),[]));let l=null;function d(){s.value=0,l&&clearInterval(l),l=setInterval(()=>{s.value+=1},3e3)}return d(),{list:_,count:s,pAxis:v,pDxis:u}}}),B={class:"relative w-full h-full",style:{zoom:"0.55"}},C={class:"container-box"},D={class:"text-white px-10px h-full flex flex-col items-center justify-center"},S={class:"text-18px"},Z={class:"text-40px mt-10px"},w=I('<div class="circle-container" style="transform:translateZ(-200px);" data-v-14743d47><div class="big-circle" data-v-14743d47></div><div class="small-circle" data-v-14743d47></div></div><div class="static-container" data-v-14743d47><div class="all-lights1" data-v-14743d47></div><div class="all-lights2" data-v-14743d47></div><div class="earth" data-v-14743d47></div></div>',2);function z(a,s,v,u,_,l){return c(),o("div",B,[e("div",C,[e("div",{class:"main",style:p(`transform: rotateY(-${a.count*360/3}deg) translateZ(-200px)`)},[(c(!0),o(k,null,A(a.list,(d,t)=>(c(),o("div",{class:"figure frame",style:p(`transform: rotateY(${t*360/3}deg) translateZ(400px)`),key:t},[e("div",D,[e("div",S,m(d.name),1),e("div",Z,m(d.value),1)])],4))),128))],4),w])])}var N=g(b,[["render",z],["__scopeId","data-v-14743d47"]]);export{N as default};

View File

@ -0,0 +1 @@
import{p as i,aX as l}from"./index.eec7c138.js";var u={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},p=u;function o(r){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?Object(arguments[t]):{},n=Object.keys(e);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(e).filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),n.forEach(function(a){f(r,a,e[a])})}return r}function f(r,t,e){return t in r?Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[t]=e,r}var c=function(t,e){var n=o({},t,e.attrs);return i(l,o({},n,{icon:p}),null)};c.displayName="CopyOutlined";c.inheritAttrs=!1;var d=c;export{d as C};

View File

@ -0,0 +1 @@
import{o as s,h as o,i as t,p as c,k as n,cE as l,t as a}from"./index.eec7c138.js";const d={class:"pl-10px mb-10px"},i={class:"flex items-center"},p={class:"text-[#828fa2] text-14px ml-4px"},r={class:"mt-6px"},x={class:"text-28px font-bold"},_={class:"ml-4px text-14px"},h={__name:"CountItem",props:{loading:Boolean,data:{type:Object,default:()=>{}}},setup(e){return(m,u)=>(s(),o("div",d,[t("div",i,[c(n(l),{name:"city",size:16,color:"transparent"}),t("div",p,a(e.data.name),1)]),t("div",r,[t("span",x,a(e.data.value),1),t("span",_,a(e.data.unit),1)])]))}};export{h as default};

1
dist/assets/DXCY.c7c12d0e.js vendored 100644
View File

@ -0,0 +1 @@
var R=Object.defineProperty,V=Object.defineProperties;var F=Object.getOwnPropertyDescriptors;var I=Object.getOwnPropertySymbols;var M=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable;var b=(t,e,a)=>e in t?R(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,D=(t,e)=>{for(var a in e||(e={}))M.call(e,a)&&b(t,a,e[a]);if(I)for(var a of I(e))P.call(e,a)&&b(t,a,e[a]);return t},A=(t,e)=>V(t,F(e));var w=(t,e,a)=>new Promise((x,d)=>{var u=o=>{try{n(a.next(o))}catch(l){d(l)}},h=o=>{try{n(a.throw(o))}catch(l){d(l)}},n=o=>o.done?x(o.value):Promise.resolve(o.value).then(u,h);n((a=a.apply(t,e)).next())});import{a as X,s as z,r as E,bp as G,G as O,af as U,H as S,bc as H,J,aA as B,o as Z,j as q,x as k,i as _,w as L,v as T,p as K}from"./index.eec7c138.js";import Q from"./Box.6e1a6928.js";import{u as W}from"./useECharts.7b7a31e5.js";import{i as ee}from"./other.770da20f.js";import{u as te}from"./visualization.0b352701.js";import{c as Y}from"./colors.69d1b0cd.js";import ae from"./Circle.abe2c14b.js";import{u as se}from"./useVContext.90866f64.js";const oe=X({components:{Box:Q,Circle:ae},setup(){const{rootEmitter:t}=se(),e=z({x_axis:[],series:[]}),a=E(!0);function x(){a.value=!a.value}const d=E(null),u=te(),{setOptions:h,getInstance:n}=W(d);function o(s=!0){return w(this,null,function*(){const i=yield ee({year:u.getYear});e.x_axis=i.x_axis,e.series=i.series,s?$():j()})}let l=[];function v(){const s={legendData:[],series:[]};return e.series.forEach(({name:i,data:c},p)=>{const f=Y[p%Y.length];s.legendData.push(i+""),s.series.push({name:i,data:c,type:"line",smooth:!1,itemStyle:{color:f.itemColor},areaStyle:{color:f.areaColor}})}),l=s.legendData,s}const $=()=>{const s=v();h({grid:{left:"2%",right:"20px",top:"10%",bottom:"2%",containLabel:!0},legend:{data:s.legendData,top:"0%",right:"0",textStyle:{color:"#ffffff"}},tooltip:{trigger:"axis",axisPointer:{lineStyle:{width:1,color:"#019680"}}},xAxis:{type:"category",data:e.x_axis,boundaryGap:!1,axisTick:{show:!1},axisLine:{show:!1},axisLabel:{color:"#fff"}},yAxis:[{type:"value",axisTick:{show:!1},splitLine:{lineStyle:{type:"solid",color:"#8EEEFF",opacity:.3}},axisLabel:{color:"#fff"}}],series:s.series}),u.getPlay&&y()};let r=null;function y(){let s=0;const i=3e3;r&&clearInterval(r);let c=0,p=0;const f=2;r=setInterval(()=>{var m;c=s%4,p=s%(4*f),(m=n())==null||m.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:c}),p+1>=4*f&&(r&&clearInterval(r),setTimeout(()=>{var g;(g=n())==null||g.dispatchAction({type:"hideTip"})},i),o(!1)),s++},i)}function j(){const s=v();let i=0,c=0;const p=3e3;r&&clearInterval(r),r=setInterval(()=>{var f,m;c=i%l.length,c==0&&l.forEach((g,N)=>{var C;(C=n())==null||C.dispatchAction({type:"legendUnSelect",name:l[N]})}),(f=n())==null||f.setOption({series:[s.series[c]]}),(m=n())==null||m.dispatchAction({type:"legendSelect",name:l[c]}),c==l.length-1&&(r&&clearInterval(r),setTimeout(()=>{y()},p)),i++},p)}return G(()=>{o(),t.on("interval:auto",()=>{})}),O(()=>{var s,i;(i=(s=n())==null?void 0:s.getZr())==null||i.on("click",()=>{t.emit("leftModel:click","DXCY")})}),U(()=>{r&&clearInterval(r)}),S(()=>u.getYear,()=>o()),S(()=>u.getPlay,()=>{r&&clearInterval(r),o()}),A(D({isChart:a,changeChart:x},H(e)),{chartRef:d})}}),re={class:"h-full flex flex-col"},ie={class:"flex-1",ref:"chartRef"};function ne(t,e,a,x,d,u){const h=B("Circle"),n=B("Box");return Z(),q(n,{title:"\u7A3B\u867E\u4EA7\u4E1A"},{right:k(()=>[_("div",{class:"text-[#76E9F0] text-13px cursor-pointer",onClick:e[0]||(e[0]=(...o)=>t.changeChart&&t.changeChart(...o))},"\u5207\u6362")]),default:k(()=>[_("div",re,[L(_("div",ie,null,512),[[T,t.isChart]]),L(K(h,{class:"flex-1",axis:t.x_axis,data:t.series},null,8,["axis","data"]),[[T,!t.isChart]])])]),_:1})}var ge=J(oe,[["render",ne],["__scopeId","data-v-69ddabd2"]]);export{ge as default};

1
dist/assets/DXCY.c9619c76.css vendored 100644
View File

@ -0,0 +1 @@
.active[data-v-69ddabd2]{font-weight:700;font-size:15px;line-height:1;--tw-text-opacity: 1;color:rgba(118,233,240,var(--tw-text-opacity))}

1
dist/assets/DXJG.3f7e5295.js vendored 100644
View File

@ -0,0 +1 @@
var C=(u,h,i)=>new Promise((l,c)=>{var p=a=>{try{m(i.next(a))}catch(s){c(s)}},d=a=>{try{m(i.throw(a))}catch(s){c(s)}},m=a=>a.done?l(a.value):Promise.resolve(a.value).then(p,d);m((i=i.apply(u,h)).next())});import L from"./Box.6e1a6928.js";import{u as F}from"./useECharts.7b7a31e5.js";import{h as k}from"./other.770da20f.js";import{c as D}from"./colors.69d1b0cd.js";import{u as $}from"./visualization.0b352701.js";import{u as j}from"./useVContext.90866f64.js";import{a as P,s as A,r as E,bp as G,af as J,H as S,J as N,aA as R,o as V,j as z,x as O,i as B}from"./index.eec7c138.js";const U=P({components:{Box:L},setup(){const u=$(),{rootEmitter:h}=j(),i=A([{key:"0",value:"\u5168\u90E8"},{key:"1",value:"\u9C7C"},{key:"2",value:"\u867E"}]),l=A({x_axis:[],series:[]}),c=E("0"),p=E(null),d=e=>{c.value!=e&&(c.value=e,y())},{setOptions:m,getInstance:a}=F(p);let s=[];function v(){const e={legendData:[],series:[]};return l.series.forEach(({name:o,data:r},f)=>{const n=D[f%D.length];e.legendData.push(o+""),e.series.push({name:o,data:r,type:"line",smooth:!1,itemStyle:{color:n.itemColor},areaStyle:{color:n.areaColor}})}),s=e.legendData,e}const y=()=>{const e=v();m({grid:{left:"2%",right:"20px",top:"10%",bottom:"2%",containLabel:!0},legend:{data:e.legendData,top:"0%",right:"0",textStyle:{color:"#ffffff"}},tooltip:{trigger:"axis",axisPointer:{lineStyle:{width:1,color:"#019680"}}},xAxis:{type:"category",data:l.x_axis,boundaryGap:!1,axisTick:{show:!1},axisLine:{show:!1},axisLabel:{color:"#fff"}},yAxis:[{type:"value",axisTick:{show:!1},nameTextStyle:{color:"#fff"},splitLine:{lineStyle:{type:"solid",color:"#8EEEFF",opacity:.3}},axisLabel:{color:"#fff",formatter:o=>o}}],series:e.series,animationDuration:2e3}),u.getPlay&&b()};let t=null;function b(){let e=0;const o=3e3;t&&clearInterval(t);let r=0,f=0;const n=2;t=setInterval(()=>{var x;r=e%4,f=e%(4*n),(x=a())==null||x.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:r}),f+1>=4*n&&(t&&clearInterval(t),setTimeout(()=>{var g;(g=a())==null||g.dispatchAction({type:"hideTip"})},o),_(!1)),e++},o)}function T(){const e=v();let o=0,r=0;const f=3e3;t&&clearInterval(t),t=setInterval(()=>{var n,x;r=o%s.length,r==0&&s.forEach((g,w)=>{var I;(I=a())==null||I.dispatchAction({type:"legendUnSelect",name:s[w]})}),(n=a())==null||n.setOption({series:[e.series[r]]}),(x=a())==null||x.dispatchAction({type:"legendSelect",name:s[r]}),r==s.length-1&&(t&&clearInterval(t),setTimeout(()=>{b()},f)),o++},f)}function _(e=!0){return C(this,null,function*(){const o=yield k();l.x_axis=o.x_axis,l.series=o.series,e?y():T()})}return G(()=>{_(),h.on("interval:auto",()=>{})}),J(()=>{t&&clearInterval(t)}),S(()=>u.getYear,()=>_()),S(()=>u.getPlay,()=>{t&&clearInterval(t),_()}),{tabList:i,currentTab:c,chartRef:p,changeTab:d}}}),X={class:"h-full flex flex-col"},H={class:"flex-1",ref:"chartRef"};function M(u,h,i,l,c,p){const d=R("Box");return V(),z(d,{title:"\u7A3B\u867E\u4EF7\u683C\uFF08\u5143/\u65A4\uFF09"},{default:O(()=>[B("div",X,[B("div",H,null,512)])]),_:1})}var ae=N(U,[["render",M],["__scopeId","data-v-45f2ec7b"]]);export{ae as default};

1
dist/assets/DXJG.87c6972e.css vendored 100644
View File

@ -0,0 +1 @@
.active[data-v-45f2ec7b]{font-weight:700;font-size:15px;line-height:1;--tw-text-opacity: 1;color:rgba(118,233,240,var(--tw-text-opacity))}

1
dist/assets/DXLX.2f60ee51.css vendored 100644
View File

@ -0,0 +1 @@
.active[data-v-944ed840]{font-weight:700;font-size:15px;line-height:1;--tw-text-opacity: 1;color:rgba(118,233,240,var(--tw-text-opacity))}

1
dist/assets/DXLX.f353062c.js vendored 100644
View File

@ -0,0 +1 @@
var v=(d,f,i)=>new Promise((u,m)=>{var n=s=>{try{o(i.next(s))}catch(x){m(x)}},l=s=>{try{o(i.throw(s))}catch(x){m(x)}},o=s=>s.done?u(s.value):Promise.resolve(s.value).then(n,l);o((i=i.apply(d,f)).next())});import S from"./Box.6e1a6928.js";import{u as w}from"./useECharts.7b7a31e5.js";import{k as B}from"./other.770da20f.js";import{u as C}from"./visualization.0b352701.js";import{c as I}from"./colors.69d1b0cd.js";import{u as k}from"./useVContext.90866f64.js";import{a as E,s as F,r as T,bp as X,G as $,af as j,H as D,J as M,aA as N,o as P,j as R,x as V,i as b}from"./index.eec7c138.js";const z=E({components:{Box:S},setup(){const{rootEmitter:d}=k(),f=F({x_axis:[],series:[]}),i=T(null),u=C(),{setOptions:m,getInstance:n}=w(i);function l(e=!0){return v(this,null,function*(){const a=yield B({year:u.getYear});f.x_axis=a.x_axis,f.series=a.series,e?x():A()})}let o=[];function s(){const e={legendData:[],series:[]};return f.series.forEach(({name:a,data:r},p)=>{const c=I[p%I.length];e.legendData.push(a+""),e.series.push({name:a,data:r,type:"line",smooth:!1,stack:"Total",itemStyle:{color:c.itemColor},areaStyle:{color:c.areaColor}})}),o=e.legendData,e}const x=()=>{const e=s();m({grid:{left:"2%",right:"20px",top:"10%",bottom:"2%",containLabel:!0},legend:{data:e.legendData,top:"0%",right:"0",textStyle:{color:"#ffffff"}},tooltip:{trigger:"axis",axisPointer:{lineStyle:{width:1,color:"#019680"}}},xAxis:{type:"category",data:f.x_axis,boundaryGap:!1,axisTick:{show:!1},axisLine:{show:!1},axisLabel:{color:"#fff"}},yAxis:[{type:"value",axisTick:{show:!1},splitLine:{lineStyle:{type:"solid",color:"#8EEEFF",opacity:.3}},axisLabel:{color:"#fff"}}],series:e.series,animationDuration:2e3}),u.getPlay&&g()};let t=null;function g(){let e=0;const a=3e3;t&&clearInterval(t);let r=0,p=0;const c=2;t=setInterval(()=>{var h;r=e%4,p=e%(4*c),(h=n())==null||h.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:r}),p+1>=4*c&&(t&&clearInterval(t),setTimeout(()=>{var _;(_=n())==null||_.dispatchAction({type:"hideTip"})},a),l(!1)),e++},a)}function A(){const e=s();let a=0,r=0;const p=3e3;t&&clearInterval(t),t=setInterval(()=>{var c,h;r=a%o.length,r==0&&o.forEach((_,L)=>{var y;(y=n())==null||y.dispatchAction({type:"legendUnSelect",name:o[L]})}),(c=n())==null||c.setOption({series:[e.series[r]]}),(h=n())==null||h.dispatchAction({type:"legendSelect",name:o[r]}),r==o.length-1&&(t&&clearInterval(t),setTimeout(()=>{g()},p)),a++},p)}return X(()=>{l(),d.on("interval:auto",()=>{})}),$(()=>{var e,a;(a=(e=n())==null?void 0:e.getZr())==null||a.on("click",()=>{d.emit("leftModel:click","DXLX")})}),j(()=>{t&&clearInterval(t)}),D(()=>u.getYear,()=>l()),D(()=>u.getPlay,()=>{t&&clearInterval(t),l()}),{chartRef:i}}}),G={class:"h-full flex flex-col"},O={class:"flex-1",ref:"chartRef"};function U(d,f,i,u,m,n){const l=N("Box");return P(),R(l,{title:"\u7A3B\u867E\u6D41\u5411\uFF08\u5428\uFF09"},{default:V(()=>[b("div",G,[b("div",O,null,512)])]),_:1})}var ee=M(z,[["render",U],["__scopeId","data-v-944ed840"]]);export{ee as default};

1
dist/assets/DZWZ.b27d12b0.css vendored 100644
View File

@ -0,0 +1 @@
.active[data-v-2f54b155]{font-weight:700;font-size:15px;line-height:1;--tw-text-opacity: 1;color:rgba(118,233,240,var(--tw-text-opacity))}

1
dist/assets/DZWZ.c404856c.js vendored 100644
View File

@ -0,0 +1 @@
var T=(u,v,n)=>new Promise((d,p)=>{var _=s=>{try{i(n.next(s))}catch(f){p(f)}},y=s=>{try{i(n.throw(s))}catch(f){p(f)}},i=s=>s.done?d(s.value):Promise.resolve(s.value).then(_,y);i((n=n.apply(u,v)).next())});import N from"./Box.6e1a6928.js";import{u as Z}from"./useECharts.7b7a31e5.js";import{j}from"./other.770da20f.js";import{u as P}from"./visualization.0b352701.js";import{a as w}from"./colors.69d1b0cd.js";import{u as M}from"./useVContext.90866f64.js";import{a as z,s as C,r as B,H as S,G as V,bp as W,af as G,J as O,aA as R,o as k,j as U,x as Y,i as b,h as A,F as H,aD as J,n as q,t as K}from"./index.eec7c138.js";import{a as Q}from"./add.aca6e96d.js";const X=z({components:{Box:N},setup(){const{rootEmitter:u}=M(),v=C([{key:"1",value:"\u9972\u6599"},{key:"2",value:"\u80A5\u6599"}]),n=C({x_axis:[],series:[]}),d=B("1"),p=P(),_=B(null),y=e=>{d.value!=e&&(d.value=e,f())},{setOptions:i,getInstance:s}=Z(_);function f(e=!0){return T(this,null,function*(){const t=yield j({year:p.getYear,type:d.value});n.x_axis=t.x_axis,n.series=t.series,e?$():E()})}let h=[];function I(){const e={legendData:[],series:[]};return n.series.forEach(({name:t,data:r,diffs:l},a)=>{const c=w[a%w.length];e.legendData.push(t),e.series.push({name:"Placeholder",type:"bar",barGap:0,stack:"Total"+a,itemStyle:{borderColor:"transparent",color:"transparent"},data:r}),e.series.push({name:t,type:"bar",stack:"Total"+a,itemStyle:{color:c.itemColor1},label:{show:!1,position:"inside",color:"#fff"},data:l})}),h=e.legendData,e}const $=()=>{const e=I();i({grid:{left:"2%",right:"2%",top:"50px",bottom:"2%",containLabel:!0},legend:{show:!0,data:e.legendData,textStyle:{color:"#ffffff"}},tooltip:{trigger:"axis",axisPointer:{lineStyle:{width:1,color:"#019680"}},formatter:function(t){var l;let r=((l=t[0])==null?void 0:l.name)+"<br/>";return t.forEach(a=>{var c,x;if(a.seriesName!="Placeholder"){const g=n.series.find(m=>m.name==a.seriesName);if(g){const m=(c=g.data[a.dataIndex])!=null?c:0,L=(x=g.diffs[a.dataIndex])!=null?x:0,F=Q(Number(m),Number(L));r+=`${a.marker}<span style="width:50px;display: inline-block;">${a.seriesName}</span> ${m}-${F}<br>`}}}),r}},xAxis:{type:"category",data:n.x_axis,axisTick:{show:!1},axisLine:{show:!1},axisLabel:{color:"#fff"}},yAxis:[{position:"left",alignTicks:!0,nameTextStyle:{color:"#fff"},type:"value",axisTick:{show:!1},splitLine:{lineStyle:{type:"solid",color:"#8EEEFF",opacity:.3}},axisLabel:{color:"#fff"}}],series:e.series}),p.getPlay&&D()};let o=null;function D(){let e=0;const t=3e3;o&&clearInterval(o);let r=0,l=0;const a=2;o=setInterval(()=>{var c;r=e%4,l=e%(4*a),(c=s())==null||c.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:r}),l+1>=4*a&&(o&&clearInterval(o),setTimeout(()=>{var x;(x=s())==null||x.dispatchAction({type:"hideTip"})},t),f(!1)),e++},t)}function E(){const e=I();let t=0,r=0;const l=3e3;o&&clearInterval(o),o=setInterval(()=>{var a,c;r=t%h.length,r==0&&h.forEach((x,g)=>{var m;(m=s())==null||m.dispatchAction({type:"legendUnSelect",name:h[g]})}),(a=s())==null||a.setOption({series:[e.series[r]]}),(c=s())==null||c.dispatchAction({type:"legendSelect",name:h[r]}),r==h.length-1&&(o&&clearInterval(o),setTimeout(()=>{D()},l)),t++},l)}return S(()=>p.getYear,()=>{f()}),S(()=>p.getPlay,()=>{o&&clearInterval(o),f()}),V(()=>{var e,t;(t=(e=s())==null?void 0:e.getZr())==null||t.on("click",()=>{u.emit("leftModel:click","DZWZ")})}),W(()=>{f(),u.on("interval:auto",()=>{})}),G(()=>{o&&clearInterval(o)}),{tabList:v,currentTab:d,chartRef:_,changeTab:y}}}),ee={class:"h-full flex flex-col"},te={class:"py-10px"},ae={class:"flex items-center justify-center m-0"},se=["onClick"],oe={class:"flex-1",ref:"chartRef"};function re(u,v,n,d,p,_){const y=R("Box");return k(),U(y,{title:"\u5927\u5B97\u7269\u8D44\uFF08\u5143/\u5428\uFF09"},{default:Y(()=>[b("div",ee,[b("div",te,[b("ul",ae,[(k(!0),A(H,null,J(u.tabList,i=>(k(),A("li",{class:q(["mx-11px text-white text-12px cursor-pointer",{active:u.currentTab==i.key}]),onClick:s=>u.changeTab(i.key),key:i.key},K(i.value),11,se))),128))])]),b("div",oe,null,512)])]),_:1})}var he=O(X,[["render",re],["__scopeId","data-v-2f54b155"]]);export{he as default};

1
dist/assets/Data.6e6643a1.js vendored 100644
View File

@ -0,0 +1 @@
import{J as f,r as l,aA as r,o as x,j as _,x as n,p as i,y as g,i as p}from"./index.eec7c138.js";import{C as F}from"./index.b568925b.js";import"./index.a2ec4afe.js";import"./index.a2241d89.js";import{D as b}from"./index.d67f577b.js";import"./index.693b4f1e.js";import{B as Y,u as v}from"./useTable.b36951c7.js";import"./useForm.34cdb88b.js";import"./index.ba75b5cb.js";import"./index.fd07537f.js";import"./useRefs.77e50e1b.js";import"./PlusOutlined.073ab670.js";import"./index.a6c33135.js";import"./Checkbox.51b3985f.js";import"./index.df77d9c7.js";import"./index.f12e3412.js";import"./index.e65225a1.js";import"./index.9e8a4fb3.js";import"./useSize.507b40b9.js";import"./eagerComputed.bdd88bed.js";import"./onMountedOrActivated.7625e8c2.js";import"./useWindowSizeFn.0f608d47.js";import"./useContentViewHeight.17fa274c.js";import"./ArrowLeftOutlined.489857b7.js";import"./transButton.58d6bbc4.js";import"./index.b6156dbd.js";import"./index.38799a86.js";import"./dateUtil.160b2c2f.js";import"./_baseMerge.b7a01dc2.js";import"./_isIterateeCall.13b42414.js";import"./_baseEach.f9812519.js";import"./get.2199c57c.js";import"./index.f28bde88.js";import"./FullscreenOutlined.05779bfe.js";import"./index.638bb3e3.js";import"./sortable.esm.2632adaa.js";import"./RedoOutlined.4acab324.js";import"./fromPairs.84aabb58.js";import"./CaretUpOutlined.40084cc6.js";import"./scrollTo.b4be90fb.js";import"./index.551508dc.js";import"./index.d17e923e.js";import"./_baseIteratee.8e9620dd.js";import"./index.af861c3a.js";import"./download.e8f65dad.js";import"./uniqBy.4b5d9352.js";const B=[{title:"\u4EA7\u4E1A",dataIndex:"roleName"},{title:"\u5360\u6BD4",dataIndex:"roleValue"},{title:"\u65F6\u95F4",dataIndex:"orderNo"},{title:"\u4EA7\u503C\uFF08\uFFE5\uFF09",dataIndex:"createTime"}],y={components:{BasicTable:Y,Card:F,DatePicker:b},setup(){const a=l(!1),t=l(),[m,{reload:e}]=v({columns:B,useSearchForm:!1,showTableSetting:!1,bordered:!0,showIndexColumn:!1,actionColumn:{width:80,title:"\u64CD\u4F5C",dataIndex:"action",slots:{customRender:"action"},fixed:void 0}});return{yearValue:t,yearShow:a,handleOpenChange:o=>{a.value=o},handlePanelChange:o=>{a.value=!1,t.value=o,o.format("YYYY")},registerTable:m}}},T=p("div",{class:"py-5 text-base px-6px"},[p("span",null,"\u603B\u8BA1\u4EA7\u503C\uFF1A"),p("span",{class:"text-[#5564d7]"},"\uFFE50")],-1);function P(a,t,m,e,s,u){const o=r("DatePicker"),d=r("a-button"),c=r("BasicTable"),h=r("Card");return x(),_(h,{bodyStyle:{padding:"0 10px"}},{title:n(()=>[i(o,{mode:"year",value:e.yearValue,"onUpdate:value":t[0]||(t[0]=C=>e.yearValue=C),format:"YYYY",open:e.yearShow,onOpenChange:e.handleOpenChange,onPanelChange:e.handlePanelChange,valueFormat:"YYYY"},null,8,["value","open","onOpenChange","onPanelChange"])]),extra:n(()=>[i(d,{size:"small"},{default:n(()=>[g("\u65B0\u589E")]),_:1})]),default:n(()=>[T,i(c,{onRegister:e.registerTable},null,8,["onRegister"])]),_:1})}var Fe=f(y,[["render",P]]);export{Fe as default};

View File

@ -0,0 +1 @@
import{B as s}from"./index.f28bde88.js";import{u as i,D as n}from"./index.ab9b7202.js";import{a as c,c as m,o as p,j as l,x as u,p as f,k as t,aB as d}from"./index.eec7c138.js";import{getDescSchema as g}from"./data.e11cdc41.js";import"./useWindowSizeFn.0f608d47.js";import"./FullscreenOutlined.05779bfe.js";import"./get.2199c57c.js";import"./index.693b4f1e.js";import"./exceptionEnum.1496ab9e.js";const C=c({__name:"DetailModal",props:{info:{type:Object,default:null}},setup(e){const{t:o}=m(),[a]=i({column:2,schema:g()});return(r,D)=>(p(),l(t(s),d({width:800,title:t(o)("sys.errorLog.tableActionDesc")},r.$attrs),{default:u(()=>[f(t(n),{data:e.info,onRegister:t(a)},null,8,["data","onRegister"])]),_:1},16,["title"]))}});export{C as default};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
import{J as i,a as u,b7 as l,b6 as d,aK as s,f as _,aA as a,o as f,j as I,x as y,i as r,p as k,t as x,ax as M}from"./index.eec7c138.js";const g=u({name:"DropdownMenuItem",components:{MenuItem:l.Item,Icon:d},props:{key:s.string,text:s.string,icon:s.string},setup(e){const n=M();return{itemKey:_(()=>{var t,o;return e.key||((o=(t=n==null?void 0:n.vnode)==null?void 0:t.props)==null?void 0:o.key)})}}}),C={class:"flex items-center"};function K(e,n,c,t,o,$){const p=a("Icon"),m=a("MenuItem");return f(),I(m,{key:e.itemKey},{default:y(()=>[r("span",C,[k(p,{icon:e.icon,class:"mr-1"},null,8,["icon"]),r("span",null,x(e.text),1)])]),_:1})}var v=i(g,[["render",K]]);export{v as default};

View File

@ -0,0 +1 @@
import{a as l,aA as u,o as d,j as _,x as t,p as e,y as r,k as a,t as s,i as f,b6 as I,aB as y}from"./index.eec7c138.js";import{C as L}from"./index.b568925b.js";import"./index.a2ec4afe.js";import"./index.a2241d89.js";import{L as n}from"./index.d9f1f7de.js";import{d as x}from"./data.8ddc77c3.js";import"./index.ba75b5cb.js";import"./index.fd07537f.js";import"./useRefs.77e50e1b.js";import"./PlusOutlined.073ab670.js";import"./eagerComputed.bdd88bed.js";const B=["innerHTML"],H=l({__name:"DynamicInfo",setup(C){const i=n.Item,m=n.Item.Meta;return(p,h)=>{const c=u("a-button");return d(),_(a(L),y({title:"\u6700\u65B0\u52A8\u6001"},p.$attrs),{extra:t(()=>[e(c,{type:"link",size:"small"},{default:t(()=>[r("\u66F4\u591A")]),_:1})]),default:t(()=>[e(a(n),{"item-layout":"horizontal","data-source":a(x)},{renderItem:t(({item:o})=>[e(a(i),null,{default:t(()=>[e(a(m),null,{description:t(()=>[r(s(o.date),1)]),title:t(()=>[r(s(o.name)+" ",1),f("span",{innerHTML:o.desc},null,8,B)]),avatar:t(()=>[e(a(I),{icon:o.avatar,size:30},null,8,["icon"])]),_:2},1024)]),_:2},1024)]),_:1},8,["data-source"])]),_:1},16)}}});export{H as default};

View File

@ -0,0 +1 @@
import{a as s,o,h as n,p as c,k as d,cE as l,i as e,t as a}from"./index.eec7c138.js";const i={class:"border border-solid border-[#f0f0f0] inline-block w-286px rounded-8px p-20px flex"},r={class:"ml-16px"},p={class:"text-14px text-[#828fa2]"},x={class:"mt-4px"},m={class:"text-36px font-medium"},_=e("span",{class:"text-14px ml-10px"},"\u4E2A",-1),v=s({__name:"EarlyWarningItem",props:{loading:Boolean,data:{type:Object,default:()=>{}}},setup(t){return(f,u)=>(o(),n("div",i,[c(d(l),{name:t.data.icon,size:40,color:"transparent"},null,8,["name"]),e("div",r,[e("div",p,a(t.data.title),1),e("div",x,[e("span",m,a(t.data.value),1),_])])]))}});export{v as default};

View File

@ -0,0 +1 @@
import{a as s,o,h as n,p as c,k as d,cE as l,i as e,t as a}from"./index.eec7c138.js";const i={class:"border border-solid border-[#f0f0f0] inline-block w-286px rounded-8px p-20px flex"},r={class:"ml-16px"},p={class:"text-14px text-[#828fa2]"},x={class:"mt-4px"},m={class:"text-36px font-medium"},_=e("span",{class:"text-14px ml-10px"},"\u4E2A",-1),v=s({__name:"EarlyWarningItem",props:{loading:Boolean,data:{type:Object,default:()=>{}}},setup(t){return(f,u)=>(o(),n("div",i,[c(d(l),{name:t.data.icon,size:40,color:"transparent"},null,8,["name"]),e("div",r,[e("div",p,a(t.data.title),1),e("div",x,[e("span",m,a(t.data.value),1),_])])]))}});export{v as default};

View File

@ -0,0 +1 @@
import{J as l,a as m,b6 as d,bk as f,c as _,bd as g,f as E,aA as e,o as C,j as L,x as a,p as c,a$ as h}from"./index.eec7c138.js";import{B}from"./index.551508dc.js";import{u as b}from"./errorLog.3b3881c8.js";import"./dateUtil.160b2c2f.js";import"./exceptionEnum.1496ab9e.js";const k=m({name:"ErrorAction",components:{Icon:d,Tooltip:f,Badge:B},setup(){const{t:o}=_(),{push:n}=g(),t=b(),r=E(()=>t.getErrorLogListCount);function s(){n(h.ERROR_LOG_PAGE).then(()=>{t.setErrorLogListCount(0)})}return{t:o,getCount:r,handleToErrorList:s}}});function T(o,n,t,r,s,$){const u=e("Icon"),i=e("Badge"),p=e("Tooltip");return C(),L(p,{title:o.t("layout.header.tooltipErrorLog"),placement:"bottom",mouseEnterDelay:.5,onClick:o.handleToErrorList},{default:a(()=>[c(i,{count:o.getCount,offset:[0,10],overflowCount:99},{default:a(()=>[c(u,{icon:"ion:bug-outline"})]),_:1},8,["count"])]),_:1},8,["title","mouseEnterDelay","onClick"])}var w=l(k,[["render",T]]);export{w as default};

View File

@ -0,0 +1 @@
.ant-result{padding:48px 32px}.ant-result-success .ant-result-icon>.anticon{color:#55d187}.ant-result-error .ant-result-icon>.anticon{color:#ed6f6f}.ant-result-info .ant-result-icon>.anticon{color:#0960bd}.ant-result-warning .ant-result-icon>.anticon{color:#efbd47}.ant-result-image{width:250px;height:295px;margin:auto}.ant-result-icon{margin-bottom:24px;text-align:center}.ant-result-icon>.anticon{font-size:72px}.ant-result-title{color:#000000d9;font-size:24px;line-height:1.8;text-align:center}.ant-result-subtitle{color:#00000073;font-size:14px;line-height:1.6;text-align:center}.ant-result-extra{margin:24px 0 0;text-align:center}.ant-result-extra>*{margin-right:8px}.ant-result-extra>*:last-child{margin-right:0}.ant-result-content{margin-top:24px;padding:24px 40px;background-color:#fafafa}.ant-result-rtl{direction:rtl}.ant-result-rtl .ant-result-extra>*{margin-right:0;margin-left:8px}.ant-result-rtl .ant-result-extra>*:last-child{margin-left:0}.vben-app-exception-page{display:flex;align-items:center;flex-direction:column}.vben-app-exception-page .ant-result-icon img{max-width:400px;max-height:300px}

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
.active[data-v-645ad384]{font-weight:700;font-size:15px;line-height:1;--tw-text-opacity: 1;color:rgba(118,233,240,var(--tw-text-opacity))}

View File

@ -0,0 +1 @@
var u=(l,s,t)=>new Promise((r,i)=>{var c=e=>{try{n(t.next(e))}catch(a){i(a)}},o=e=>{try{n(t.throw(e))}catch(a){i(a)}},n=e=>e.done?r(e.value):Promise.resolve(e.value).then(c,o);n((t=t.apply(l,s)).next())});import y from"./Box.6e1a6928.js";import{u as g}from"./useECharts.7b7a31e5.js";import{h as v}from"./other.770da20f.js";import{c as p}from"./colors.69d1b0cd.js";import{J as b,a as C,s as _,r as x,bp as E,aA as B,o as L,j as k,x as w,i as d}from"./index.eec7c138.js";const D=C({components:{Box:y},setup(){const l=_([{key:"0",value:"\u5168\u90E8"},{key:"1",value:"\u9C7C"},{key:"2",value:"\u867E"}]),s=_({x_axis:[],series:[]}),t=x("0"),r=x(null),i=e=>{t.value!=e&&(t.value=e,o())},{setOptions:c}=g(r),o=()=>{const e={legendData:[],series:[]};s.series.forEach(({name:a,data:h},m)=>{const f=p[m%p.length];e.legendData.push(a+""),e.series.push({name:a,data:h,type:"line",symbol:"none",itemStyle:{color:f.itemColor},areaStyle:{color:f.areaColor}})}),c({grid:{left:"2%",right:"2%",top:"10%",bottom:"2%",containLabel:!0},legend:{data:e.legendData,top:"0%",right:"0",textStyle:{color:"#ffffff"}},tooltip:{trigger:"axis",axisPointer:{lineStyle:{width:1,color:"#019680"}}},xAxis:{type:"category",data:s.x_axis,axisTick:{show:!1},axisLine:{show:!1},axisLabel:{color:"#fff"}},yAxis:[{type:"value",axisTick:{show:!1},splitLine:{lineStyle:{type:"solid",color:"#8EEEFF",opacity:.3}},axisLabel:{color:"#fff"}}],series:e.series})};function n(){return u(this,null,function*(){const e=yield v();s.x_axis=e.x_axis,s.series=e.series,o()})}return E(()=>{n()}),{tabList:l,currentTab:t,chartRef:r,changeTab:i}}}),S={class:"h-full flex flex-col"},F={class:"flex-1",ref:"chartRef"};function $(l,s,t,r,i,c){const o=B("Box");return L(),k(o,{title:"\u7A3B\u867E\u4EF7\u683C"},{default:w(()=>[d("div",S,[d("div",F,null,512)])]),_:1})}var J=b(D,[["render",$],["__scopeId","data-v-645ad384"]]);export{J as default};

View File

@ -0,0 +1 @@
[data-v-1d96fa4e] .ant-picker{width:100%}

View File

@ -0,0 +1 @@
var p=(r,u,t)=>new Promise((c,n)=>{var d=a=>{try{l(t.next(a))}catch(o){n(o)}},i=a=>{try{l(t.throw(a))}catch(o){n(o)}},l=a=>a.done?c(a.value):Promise.resolve(a.value).then(d,i);l((t=t.apply(r,u)).next())});import{J as E,a as w,r as F,f as _,o as b,j as D,x as g,p as y,k as s,aB as v,cG as m,f3 as C,f4 as A}from"./index.eec7c138.js";import{u as h,B as x}from"./useForm.34cdb88b.js";import{a as I,B as P}from"./index.1560549a.js";const O=[{title:"\u5E74\u4EFD",dataIndex:"year",customRender:({text:r})=>r+"\u5E74"},{title:"\u5B63\u5EA6",dataIndex:"quarter"},{title:"\u5730\u533A",dataIndex:"area"},{title:"\u9500\u91CF",dataIndex:"sales",customRender:({record:{sales:r,unit:u}})=>r+u},{title:"\u521B\u5EFA\u4EBA",dataIndex:"name",customRender:({record:{created_by:r}})=>r.name},{width:180,title:"\u64CD\u4F5C",dataIndex:"action",align:"center",fixed:void 0}],G=[{field:"year",label:"\u5E74\u4EFD",component:"DatePicker",componentProps:{picker:"year",mode:"year"},colProps:{span:8}},{field:"quarter",label:"\u5B63\u5EA6",component:"Select",componentProps:{options:[{label:"\u7B2C\u4E00\u5B63\u5EA6",value:"1"},{label:"\u7B2C\u4E8C\u5B63\u5EA6",value:"2"},{label:"\u7B2C\u4E09\u5B63\u5EA6",value:"3"},{label:"\u7B2C\u56DB\u5B63\u5EA6",value:"4"}]},colProps:{span:8}}],S=[{field:"id",label:"ID",required:!1,dynamicDisabled:!0,component:"Input",ifShow:({values:r})=>!!r.id},{field:"year",label:"\u5E74\u4EFD",component:"DatePicker",required:!0,componentProps:{picker:"year",mode:"year"}},{field:"quarter",label:"\u5B63\u5EA6",component:"Select",required:!0,componentProps:{options:[{label:"\u7B2C\u4E00\u5B63\u5EA6",value:"1"},{label:"\u7B2C\u4E8C\u5B63\u5EA6",value:"2"},{label:"\u7B2C\u4E09\u5B63\u5EA6",value:"3"},{label:"\u7B2C\u56DB\u5B63\u5EA6",value:"4"}]}},{field:"area",label:"\u5730\u533A",required:!0,component:"Input"},{field:"sales",label:"\u9500\u91CF",required:!0,component:"InputNumber",componentProps:{formatter:r=>{let u=/^(-)*(\d+)\.(\d\d).*$/;return`${r}`.replace(/\B(?=(\d{3})+(?!\d))/g,"").replace(u,"$1$2.$3")}}},{field:"unit",label:"\u5355\u4F4D",required:!0,component:"Input"}];const q=w({__name:"FlowsDrawer",emits:["success","register"],setup(r,{emit:u}){const t=F(!1),c=_(()=>t.value?"\u7F16\u8F91\u6D41\u5411":"\u65B0\u589E\u6D41\u5411"),[n,{resetFields:d,setFieldsValue:i,validate:l}]=h({labelWidth:120,baseColProps:{span:24},schemas:S,showActionButtonGroup:!1}),[a,{setDrawerProps:o,closeDrawer:f}]=I(e=>p(this,null,function*(){d(),o({confirmLoading:!1}),t.value=e==null?void 0:e.isUpdate,s(t)?yield i({id:e.id,quarter:e.quarter.toString(),year:m(e.year.toString()),area:e.area,sales:e.sales,unit:e.unit}):i({unit:"\u5428"})})),B=()=>p(this,null,function*(){try{const e=yield l();e.year=m(e.year.toString()).format("YYYY"),o({confirmLoading:!0}),e.id?yield C(e.id,e):yield A(e),f(),u("success")}finally{o({confirmLoading:!1})}});return(e,R)=>(b(),D(s(P),v(e.$attrs,{onRegister:s(a),showFooter:"",title:s(c),width:"500px",onOk:B}),{default:g(()=>[y(s(x),{onRegister:s(n)},null,8,["onRegister"])]),_:1},16,["onRegister","title"]))}});var k=E(q,[["__scopeId","data-v-1d96fa4e"]]),N=Object.freeze(Object.defineProperty({__proto__:null,default:k},Symbol.toStringTag,{value:"Module"}));export{k as F,N as a,O as c,G as s};

1
dist/assets/Footer.5efa0236.js vendored 100644
View File

@ -0,0 +1 @@
var I=Object.defineProperty,P=Object.defineProperties;var S=Object.getOwnPropertyDescriptors;var L=Object.getOwnPropertySymbols;var T=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable;var M=(o,t,e)=>t in o?I(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,j=(o,t)=>{for(var e in t||(t={}))T.call(t,e)&&M(o,e,t[e]);if(L)for(var e of L(t))$.call(t,e)&&M(o,e,t[e]);return o},B=(o,t)=>P(o,S(t));var g=(o,t,e)=>new Promise((y,v)=>{var x=s=>{try{n(e.next(s))}catch(p){v(p)}},_=s=>{try{n(e.throw(s))}catch(p){v(p)}},n=s=>s.done?y(s.value):Promise.resolve(s.value).then(x,_);n((e=e.apply(o,t)).next())});import{J as z,r as h,bp as A,o as a,h as i,i as c,F as k,aD as b,t as w,p as C,x as F,k as N,cE as J,bo as R,l as V}from"./index.eec7c138.js";import{l as H}from"./other.770da20f.js";import U from"./LinkModal.db879c6e.js";import{u as X}from"./useVContext.90866f64.js";import"./model-close-icon.706a0490.js";const Y={class:"bg min-w-392px h-30px absolute bottom-0 left-1/2 z-999 footer flex items-end"},q={class:"h-27px w-full flex text-white text-12px font-bold px-18px"},G={class:"flex-1 flex"},K=["onClick"],O={class:"h-full flex items-center cursor-pointer justify-center"},Q={class:"text-white"},W={class:"bg-clip-text text-transparent bg-gradient-to-t from-[#76E9F0] to-[#A7E6EE]"},Z={class:"flex -mr-10px flex-wrap"},ee=["onClick"],te={class:"h-500px overflow-auto h-full"},oe=["innerHTML"],ne={key:1,class:"h-full"},se=["src"],le={__name:"Footer",setup(o){const{rootEmitter:t}=X(),e=l=>l.parentElement,y=[{type:1,value:"\u94FE\u63A5"},{type:2,value:"\u89C6\u9891"},{type:3,value:"\u6587\u7AE0"}],v=h([]),x=h([]),_=h(!1),n=h({});function s(){return g(this,null,function*(){const l=yield H({recommend:1,show:1});x.value=l})}function p(){return g(this,null,function*(){const l=yield H();v.value=l.reduce((f,r)=>{var m,d;const u=y.find(D=>D.type==r.type);return B(j({},f),{[(m=u==null?void 0:u.value)!=null?m:"\u5176\u4ED6"]:[...(d=f[u.value])!=null?d:[],r]})},{})})}function E(l){n.value=l,l.type==1?window.open(l.content):_.value=!0}return A(()=>{s(),p(),t.on("interval:auto",()=>{s(),p()})}),(l,f)=>(a(),i("div",Y,[c("div",q,[c("div",G,[(a(!0),i(k,null,b(x.value,r=>(a(),i("div",{class:"h-full flex items-center cursor-pointer justify-center px-10px flex-none",key:r.id,onClick:u=>E(r)},w(r.name),9,K))),128))]),c("div",O,[C(N(R),{placement:"topRight",trigger:"click",overlayClassName:"fotter-popover",color:"rgba(28, 44, 52, .8)",align:{overflow:{adjustX:!0,adjustY:!0}},"get-popup-container":e},{content:F(()=>[c("div",Q,[(a(!0),i(k,null,b(v.value,(r,u,m)=>(a(),i("div",{key:m,class:"mb-10px"},[c("div",W,w(u),1),c("div",Z,[(a(!0),i(k,null,b(r,d=>(a(),i("div",{onClick:D=>E(d),class:"text-12px mr-10px py-4px cursor-pointer",key:d.id},w(d.name),9,ee))),128))])]))),128))])]),default:F(()=>[C(N(J),{name:"more-icon"})]),_:1})])]),C(U,{visible:_.value,"onUpdate:visible":f[0]||(f[0]=r=>_.value=r),footer:null,title1:n.value.name},{content:F(()=>[c("div",te,[n.value.type==3?(a(),i("div",{key:0,innerHTML:n.value.content},null,8,oe)):V("",!0),n.value.type==2?(a(),i("div",ne,[c("video",{muted:"",autoplay:"",controls:"",src:n.value.content,class:"w-full h-full"},null,8,se)])):V("",!0)])]),_:1},8,["visible","title1"])]))}};var de=z(le,[["__scopeId","data-v-b8b82de8"]]);export{de as default};

View File

@ -0,0 +1 @@
.bg[data-v-b8b82de8]{background:url(/assets/footer.89a69ecf.png) no-repeat;background-size:100% 100%}.footer[data-v-b8b82de8]{transform:translate(-50%)}[data-v-b8b82de8] .fotter-popover{top:-85px!important;left:10px!important}[data-v-b8b82de8] .fotter-popover .ant-popover-inner-content{width:375px;border:1px solid #396684}[data-v-b8b82de8] .fotter-popover .ant-popover-arrow{right:20px}[data-v-b8b82de8] .fotter-popover .ant-popover-arrow .ant-popover-arrow-content{background-color:#396684!important}

View File

@ -0,0 +1 @@
var d=(o,r,s)=>new Promise((c,n)=>{var u=a=>{try{t(s.next(a))}catch(e){n(e)}},l=a=>{try{t(s.throw(a))}catch(e){n(e)}},t=a=>a.done?c(a.value):Promise.resolve(a.value).then(u,l);t((s=s.apply(o,r)).next())});import k from"./Box.6e1a6928.js";import{u as B}from"./useECharts.7b7a31e5.js";import{j as C}from"./other.770da20f.js";import{u as w}from"./visualization.0b352701.js";import{a as m}from"./colors.69d1b0cd.js";import{J as D,a as L,s as y,r as v,bp as T,aA as S,o as h,j as E,x as F,i as _,h as b,F as $,aD as j,n as A,t as z}from"./index.eec7c138.js";const I=L({components:{Box:k},setup(){const o=y([{key:"1",value:"\u9972\u6599"},{key:"2",value:"\u80A5\u6599"}]),r=y({x_axis:[],series:[]}),s=v("1"),c=w(),n=v(null),u=e=>{s.value!=e&&(s.value=e,t())},{setOptions:l}=B(n);function t(){return d(this,null,function*(){const e=yield C({year:c.getYear,type:s.value});r.x_axis=e.x_axis,r.series=e.series,a()})}const a=()=>{const e={legendData:[],series:[]};r.series.forEach(({name:p,data:i,diffs:f},x)=>{const g=m[x%m.length];e.legendData.push(p),e.series.push({name:"Placeholder",type:"bar",stack:"Total"+x,itemStyle:{borderColor:"transparent",color:"transparent"},data:i}),e.series.push({name:p,type:"bar",stack:"Total"+x,itemStyle:{color:g.itemColor1},label:{show:!0,position:"inside",color:"#fff"},data:f})}),l({grid:{left:"2%",right:"2%",top:"3%",bottom:"2%",containLabel:!0},tooltip:{trigger:"axis",axisPointer:{lineStyle:{width:1,color:"#019680"}},formatter:function(p){var f;var i=p[1];return i.name+"<br/>"+i.seriesName+" : "+((f=i==null?void 0:i.value)!=null?f:0)}},xAxis:{type:"category",data:r.x_axis,axisTick:{show:!1},axisLine:{show:!1},axisLabel:{color:"#fff"}},yAxis:[{type:"value",axisTick:{show:!1},splitLine:{lineStyle:{type:"solid",color:"#8EEEFF",opacity:.3}},axisLabel:{color:"#fff"}}],series:e.series})};return T(()=>{t()}),{tabList:o,currentTab:s,chartRef:n,changeTab:u}}}),M={class:"h-full flex flex-col"},N={class:"py-10px"},P={class:"flex items-center justify-center m-0"},R=["onClick"],V={class:"flex-1",ref:"chartRef"};function J(o,r,s,c,n,u){const l=S("Box");return h(),E(l,{title:"\u5927\u5B97\u7269\u8D28"},{default:F(()=>[_("div",M,[_("div",N,[_("ul",P,[(h(!0),b($,null,j(o.tabList,t=>(h(),b("li",{class:A(["mx-11px text-white text-12px cursor-pointer",{active:o.currentTab==t.key}]),onClick:a=>o.changeTab(t.key),key:t.key},z(t.value),11,R))),128))])]),_("div",V,null,512)])]),_:1})}var U=D(I,[["render",J],["__scopeId","data-v-7b5c6fec"]]);export{U as default};

View File

@ -0,0 +1 @@
.active[data-v-7b5c6fec]{font-weight:700;font-size:15px;line-height:1;--tw-text-opacity: 1;color:rgba(118,233,240,var(--tw-text-opacity))}

View File

@ -0,0 +1 @@
var _=(g,l,o)=>new Promise((d,i)=>{var p=a=>{try{r(o.next(a))}catch(m){i(m)}},c=a=>{try{r(o.throw(a))}catch(m){i(m)}},r=a=>a.done?d(a.value):Promise.resolve(a.value).then(p,c);r((o=o.apply(g,l)).next())});import{u as b,a as I,L as R,_ as h}from"./LoginFormTitle.bb3f60e2.js";import{a as w,c as z,r as k,s as B,f as L,k as e,o as E,h as N,p as s,x as t,I as x,B as v,y,t as F,F as D,l as T}from"./index.eec7c138.js";import{F as C}from"./index.d17e923e.js";import"./index.a2241d89.js";import{C as U}from"./index.af861c3a.js";import"./_baseIteratee.8e9620dd.js";import"./get.2199c57c.js";import"./useSize.507b40b9.js";const H=w({__name:"ForgetPasswordForm",setup(g){const l=C.Item,{t:o}=z(),{handleBackLogin:d,getLoginState:i}=b(),{getFormRules:p}=I(),c=k(),r=k(!1),a=B({account:"",mobile:"",sms:""}),m=L(()=>e(i)===R.RESET_PASSWORD);function S(){return _(this,null,function*(){const f=e(c);!f||(yield f.resetFields())})}return(f,n)=>e(m)?(E(),N(D,{key:0},[s(h,{class:"enter-x"}),s(e(C),{class:"p-4 enter-x",model:a,rules:e(p),ref_key:"formRef",ref:c},{default:t(()=>[s(e(l),{name:"account",class:"enter-x"},{default:t(()=>[s(e(x),{size:"large",value:a.account,"onUpdate:value":n[0]||(n[0]=u=>a.account=u),placeholder:e(o)("sys.login.userName")},null,8,["value","placeholder"])]),_:1}),s(e(l),{name:"mobile",class:"enter-x"},{default:t(()=>[s(e(x),{size:"large",value:a.mobile,"onUpdate:value":n[1]||(n[1]=u=>a.mobile=u),placeholder:e(o)("sys.login.mobile")},null,8,["value","placeholder"])]),_:1}),s(e(l),{name:"sms",class:"enter-x"},{default:t(()=>[s(e(U),{size:"large",value:a.sms,"onUpdate:value":n[2]||(n[2]=u=>a.sms=u),placeholder:e(o)("sys.login.smsCode")},null,8,["value","placeholder"])]),_:1}),s(e(l),{class:"enter-x"},{default:t(()=>[s(e(v),{type:"primary",size:"large",block:"",onClick:S,loading:r.value},{default:t(()=>[y(F(e(o)("common.resetText")),1)]),_:1},8,["loading"]),s(e(v),{size:"large",block:"",class:"mt-4",onClick:e(d)},{default:t(()=>[y(F(e(o)("sys.login.backSignIn")),1)]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model","rules"])],64)):T("",!0)}});export{H as default};

View File

@ -0,0 +1 @@
var y=(k,f,t)=>new Promise((c,m)=>{var e=u=>{try{l(t.next(u))}catch(r){m(r)}},g=u=>{try{l(t.throw(u))}catch(r){m(r)}},l=u=>u.done?c(u.value):Promise.resolve(u.value).then(e,g);l((t=t.apply(k,f)).next())});import{a as R,r as U,f as j,o as s,j as I,x as L,h as n,F as B,aD as _,k as i,i as v,t as w,p as h,I as E,aB as O,fn as P,fo as S}from"./index.eec7c138.js";import{a as V,B as W}from"./index.1560549a.js";import"./index.abfdfeab.js";import"./ArrowLeftOutlined.489857b7.js";const T={class:"text-20px font-semibold"},$={class:"w-90px leading-42px"},q=v("div",{class:"mx-10px"},"-",-1),M=R({__name:"FormDrawer",emits:["success","register"],setup(k,{emit:f}){const t={conductivity:"\u7535\u5BFC\u7387",humidity:"\u6E7F\u5EA6",temperature:"\u6E29\u5EA6",k:"\u6C2E",n:"\u78F7",p:"\u94BE"},c={temperature:"\u2103",conductivity:"us/cm",humidity:"%",k:"mg/kg",n:"mg/kg",p:"mg/kg"},m={1:"\u2160\u7EA7\u9884\u8B66",2:"\u2161\u7EA7\u9884\u8B66",3:"\u2162\u7EA7\u9884\u8B66",4:"\u2163\u7EA7\u9884\u8B66"},e=U(null),g=j(()=>e.value?Object.keys(e.value.value):[]),l=a=>e.value?Object.keys(e.value.value[a]):[],[u,{setDrawerProps:r,closeDrawer:D}]=V(()=>y(this,null,function*(){r({confirmLoading:!1});const a=yield P({});e.value=a.find(p=>p.slug==="device_warning_rule_soil")})),A=()=>y(this,null,function*(){if(!!e.value)try{const a={slug:e.value.slug,value:e.value.value},p=yield S(a);D(),f("success")}finally{r({confirmLoading:!1})}});return(a,p)=>(s(),I(i(W),O(a.$attrs,{onRegister:i(u),showFooter:"",title:"\u8BBE\u7F6E",width:"500px",onOk:A}),{default:L(()=>[(s(!0),n(B,null,_(i(g),(o,b)=>(s(),n("div",{key:b,class:"mt-10px"},[v("div",T,w(t[o]),1),(s(!0),n(B,null,_(l(o),(F,C)=>(s(),n("div",{class:"mt-30px flex",key:C},[v("div",$,w(m[F])+"\uFF1A",1),v("div",null,[(s(!0),n(B,null,_(e.value.value[o][F],(d,N)=>(s(),n("div",{class:"flex w-full items-center mt-10px",key:N},[h(i(E),{type:"number",value:d.min,"onUpdate:value":x=>d.min=x,placeholder:"\u8BF7\u8F93\u5165",suffix:c[o]},null,8,["value","onUpdate:value","suffix"]),q,h(i(E),{type:"number",value:d.max,"onUpdate:value":x=>d.max=x,placeholder:"\u8BF7\u8F93\u5165",suffix:c[o]},null,8,["value","onUpdate:value","suffix"])]))),128))])]))),128))]))),128))]),_:1},16,["onRegister"]))}});export{M as default};

View File

@ -0,0 +1 @@
var y=(h,f,t)=>new Promise((c,p)=>{var e=u=>{try{l(t.next(u))}catch(r){p(r)}},g=u=>{try{l(t.throw(u))}catch(r){p(r)}},l=u=>u.done?c(u.value):Promise.resolve(u.value).then(e,g);l((t=t.apply(h,f)).next())});import{a as N,r as U,f as R,o as s,j,x as I,h as n,F as _,aD as B,k as i,i as v,t as F,p as D,I as k,aB as O,fn as P,fo as S}from"./index.eec7c138.js";import{a as T,B as V}from"./index.1560549a.js";import"./index.abfdfeab.js";import"./ArrowLeftOutlined.489857b7.js";const W={class:"text-20px font-semibold"},q={class:"w-90px leading-42px"},H=v("div",{class:"mx-10px"},"-",-1),M=N({__name:"FormDrawer",emits:["success","register"],setup(h,{emit:f}){const t={chlorine:"\u6C2F",conductivity:"\u7535\u5BFC\u7387",oxygen:"\u6C27\u6C14",ph:"PH",temperature:"\u6E29\u5EA6",turbidity:"\u6D4A\u5EA6"},c={temperature:"\u2103",conductivity:"us/cm",turbidity:"NTU",chlorine:"mg/L",oxygen:"mg/L",ph:""},p={1:"\u2160\u7EA7\u9884\u8B66",2:"\u2161\u7EA7\u9884\u8B66",3:"\u2162\u7EA7\u9884\u8B66",4:"\u2163\u7EA7\u9884\u8B66"},e=U(null),g=R(()=>e.value?Object.keys(e.value.value):[]),l=a=>e.value?Object.keys(e.value.value[a]):[],[u,{setDrawerProps:r,closeDrawer:E}]=T(()=>y(this,null,function*(){r({confirmLoading:!1});const a=yield P({});e.value=a.find(d=>d.slug==="device_warning_rule_waterquality")})),b=()=>y(this,null,function*(){if(!!e.value)try{const a={slug:e.value.slug,value:e.value.value},d=yield S(a);E(),f("success")}finally{r({confirmLoading:!1})}});return(a,d)=>(s(),j(i(V),O(a.$attrs,{onRegister:i(u),showFooter:"",title:"\u8BBE\u7F6E",width:"500px",onOk:b}),{default:I(()=>[(s(!0),n(_,null,B(i(g),(o,A)=>(s(),n("div",{key:A,class:"mt-10px"},[v("div",W,F(t[o]),1),(s(!0),n(_,null,B(l(o),(w,C)=>(s(),n("div",{class:"mt-30px flex",key:C},[v("div",q,F(p[w])+"\uFF1A",1),v("div",null,[(s(!0),n(_,null,B(e.value.value[o][w],(m,L)=>(s(),n("div",{class:"flex w-full items-center mt-10px",key:L},[D(i(k),{type:"number",value:m.min,"onUpdate:value":x=>m.min=x,placeholder:"\u8BF7\u8F93\u5165",suffix:c[o]},null,8,["value","onUpdate:value","suffix"]),H,D(i(k),{type:"number",value:m.max,"onUpdate:value":x=>m.max=x,placeholder:"\u8BF7\u8F93\u5165",suffix:c[o]},null,8,["value","onUpdate:value","suffix"])]))),128))])]))),128))]))),128))]),_:1},16,["onRegister"]))}});export{M as default};

View File

@ -0,0 +1 @@
import{J as e,a,o as n,h as o}from"./index.eec7c138.js";const r=a({name:"FrameBlank"});function t(s,c,p,m,_,f){return n(),o("div")}var i=e(r,[["render",t]]);export{i as default};

View File

@ -0,0 +1 @@
import{p as s,aX as f}from"./index.eec7c138.js";var o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M391 240.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L200 146.3a8.03 8.03 0 00-11.3 0l-42.4 42.3a8.03 8.03 0 000 11.3L280 333.6l-43.9 43.9a8.01 8.01 0 004.7 13.6L401 410c5.1.6 9.5-3.7 8.9-8.9L391 240.9zm10.1 373.2L240.8 633c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L146.3 824a8.03 8.03 0 000 11.3l42.4 42.3c3.1 3.1 8.2 3.1 11.3 0L333.7 744l43.7 43.7A8.01 8.01 0 00391 783l18.9-160.1c.6-5.1-3.7-9.4-8.8-8.8zm221.8-204.2L783.2 391c6.6-.8 9.4-8.9 4.7-13.6L744 333.6 877.7 200c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.3a8.03 8.03 0 00-11.3 0L690.3 279.9l-43.7-43.7a8.01 8.01 0 00-13.6 4.7L614.1 401c-.6 5.2 3.7 9.5 8.8 8.9zM744 690.4l43.9-43.9a8.01 8.01 0 00-4.7-13.6L623 614c-5.1-.6-9.5 3.7-8.9 8.9L633 783.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L824 877.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L744 690.4z"}}]},name:"fullscreen-exit",theme:"outlined"},L=o;function u(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},l=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(l=l.concat(Object.getOwnPropertySymbols(t).filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),l.forEach(function(n){O(r,n,t[n])})}return r}function O(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var a=function(e,t){var l=u({},e,t.attrs);return s(f,u({},l,{icon:L}),null)};a.displayName="FullscreenExitOutlined";a.inheritAttrs=!1;var g=a,d={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M290 236.4l43.9-43.9a8.01 8.01 0 00-4.7-13.6L169 160c-5.1-.6-9.5 3.7-8.9 8.9L179 329.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L370 423.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L290 236.4zm352.7 187.3c3.1 3.1 8.2 3.1 11.3 0l133.7-133.6 43.7 43.7a8.01 8.01 0 0013.6-4.7L863.9 169c.6-5.1-3.7-9.5-8.9-8.9L694.8 179c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L600.3 370a8.03 8.03 0 000 11.3l42.4 42.4zM845 694.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L654 600.3a8.03 8.03 0 00-11.3 0l-42.4 42.3a8.03 8.03 0 000 11.3L734 787.6l-43.9 43.9a8.01 8.01 0 004.7 13.6L855 864c5.1.6 9.5-3.7 8.9-8.9L845 694.9zm-463.7-94.6a8.03 8.03 0 00-11.3 0L236.3 733.9l-43.7-43.7a8.01 8.01 0 00-13.6 4.7L160.1 855c-.6 5.1 3.7 9.5 8.9 8.9L329.2 845c6.6-.8 9.4-8.9 4.7-13.6L290 787.6 423.7 654c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.4z"}}]},name:"fullscreen",theme:"outlined"},m=d;function i(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},l=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(l=l.concat(Object.getOwnPropertySymbols(t).filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),l.forEach(function(n){p(r,n,t[n])})}return r}function p(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var c=function(e,t){var l=i({},e,t.attrs);return s(f,i({},l,{icon:m}),null)};c.displayName="FullscreenOutlined";c.inheritAttrs=!1;var v=c;export{g as F,v as a};

View File

@ -0,0 +1 @@
import{C as n}from"./index.c41309ba.js";import{a as d,o as e,h as r,F as p,aD as m,j as f,x as l,p as o,k as a,y as x,t as i,i as s,b6 as g,n as _}from"./index.eec7c138.js";import{T as v}from"./index.693b4f1e.js";import{C as B}from"./index.b568925b.js";import"./index.a2ec4afe.js";import"./index.a2241d89.js";import"./index.ba75b5cb.js";import"./index.fd07537f.js";import"./useRefs.77e50e1b.js";import"./PlusOutlined.073ab670.js";const C=[{title:"\u8BBF\u95EE\u6570",icon:"visit-count|svg",value:2e3,total:12e4,color:"green",action:"\u6708"},{title:"\u6210\u4EA4\u989D",icon:"total-sales|svg",value:2e4,total:5e5,color:"blue",action:"\u6708"},{title:"\u4E0B\u8F7D\u6570",icon:"download-count|svg",value:8e3,total:12e4,color:"orange",action:"\u5468"},{title:"\u6210\u4EA4\u6570",icon:"transaction|svg",value:5e3,total:5e4,color:"purple",action:"\u5E74"}],V={class:"md:flex"},w={class:"py-4 px-4 flex justify-between"},E={class:"p-2 px-4 flex justify-between"},$=d({__name:"GrowCard",props:{loading:{type:Boolean}},setup(c){return(y,h)=>(e(),r("div",V,[(e(!0),r(p,null,m(a(C),(t,u)=>(e(),f(a(B),{key:t.title,size:"small",loading:c.loading,title:t.title,class:_(["md:w-1/4 w-full !md:mt-0 !mt-4",[u+1<4&&"!md:mr-4"]]),canExpan:!1},{extra:l(()=>[o(a(v),{color:t.color},{default:l(()=>[x(i(t.action),1)]),_:2},1032,["color"])]),default:l(()=>[s("div",w,[o(a(n),{prefix:"$",startVal:1,endVal:t.value,class:"text-2xl"},null,8,["endVal"]),o(a(g),{icon:t.icon,size:40},null,8,["icon"])]),s("div",E,[s("span",null,"\u603B"+i(t.title),1),o(a(n),{prefix:"$",startVal:1,endVal:t.total},null,8,["endVal"])])]),_:2},1032,["loading","title","class"]))),128))]))}});export{$ as default};

1
dist/assets/Head.b87f4c87.js vendored 100644

File diff suppressed because one or more lines are too long

1
dist/assets/Head.dba27bd4.css vendored 100644
View File

@ -0,0 +1 @@
[data-v-6929f8c8] .cu-date-input .ant-picker-input>input{-webkit-background-clip:text;background-clip:text;background-image:-o-linear-gradient(bottom,var(--tw-gradient-stops));background-image:-webkit-gradient(linear,left bottom,left top,from(var(--tw-gradient-stops)));background-image:linear-gradient(to top,var(--tw-gradient-stops));--tw-gradient-from: rgba(118, 233, 240, var(--tw-from-opacity, 1));--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(255, 255, 255, 0));--tw-gradient-to: rgba(167, 230, 238, var(--tw-to-opacity, 1));display:-webkit-box;display:-ms-flexbox;display:-webkit-flex;display:flex;-webkit-box-align:center;-ms-flex-align:center;-webkit-align-items:center;align-items:center;font-weight:700;color:transparent}

View File

@ -0,0 +1 @@
.active[data-v-1c51c240]{font-weight:700;font-size:15px;line-height:1;--tw-text-opacity: 1;color:rgba(118,233,240,var(--tw-text-opacity))}

View File

@ -0,0 +1 @@
var f=(o,r,s)=>new Promise((c,a)=>{var l=t=>{try{i(s.next(t))}catch(n){a(n)}},e=t=>{try{i(s.throw(t))}catch(n){a(n)}},i=t=>t.done?c(t.value):Promise.resolve(t.value).then(l,e);i((s=s.apply(o,r)).next())});import x from"./Box.6e1a6928.js";import{u as d}from"./useECharts.7b7a31e5.js";import{i as h}from"./other.770da20f.js";import{u as m}from"./visualization.0b352701.js";import{c as p}from"./colors.69d1b0cd.js";import{J as y,a as g,s as v,r as b,bp as B,H as E,aA as w,o as S,j as A,x as C,i as u}from"./index.eec7c138.js";const D=g({components:{Box:x},setup(){const o=v({x_axis:[],series:[]}),r=b(null),s=m(),{setOptions:c}=d(r);function a(){return f(this,null,function*(){const e=yield h({year:s.getYear});o.x_axis=e.x_axis,o.series=e.series,l()})}const l=()=>{const e={legendData:[],series:[]};o.series.forEach(({name:i,data:t},n)=>{const _=p[n%p.length];e.legendData.push(i),e.series.push({name:i,data:t,type:"line",symbol:"none",itemStyle:{color:_.itemColor}})}),c({grid:{left:"2%",right:"2%",top:"10%",bottom:"2%",containLabel:!0},legend:{data:e.legendData,top:"0%",right:"0",textStyle:{color:"#ffffff"}},tooltip:{trigger:"axis",axisPointer:{lineStyle:{width:1,color:"#019680"}}},xAxis:{type:"category",data:o.x_axis,axisTick:{show:!1},axisLine:{show:!1},axisLabel:{color:"#fff"}},yAxis:[{type:"value",axisTick:{show:!1},splitLine:{lineStyle:{type:"solid",color:"#8EEEFF",opacity:.3}},axisLabel:{color:"#fff"}}],series:e.series})};return B(()=>{a()}),E(()=>s.getYear,()=>a()),{chartRef:r}}}),L={class:"h-full flex flex-col"},$={class:"flex-1",ref:"chartRef"};function k(o,r,s,c,a,l){const e=w("Box");return S(),A(e,{title:"\u7A3B\u867E\u4EA7\u4E1A"},{default:C(()=>[u("div",L,[u("div",$,null,512)])]),_:1})}var V=y(D,[["render",k],["__scopeId","data-v-1c51c240"]]);export{V as default};

View File

@ -0,0 +1 @@
var p=(u,r,a)=>new Promise((d,s)=>{var c=t=>{try{l(a.next(t))}catch(o){s(o)}},i=t=>{try{l(a.throw(t))}catch(o){s(o)}},l=t=>t.done?d(t.value):Promise.resolve(t.value).then(c,i);l((a=a.apply(u,r)).next())});import{J as E,a as B,r as b,f as v,o as g,j as A,x as F,p as I,k as n,aB as D,cG as m,e$ as y,f0 as C}from"./index.eec7c138.js";import{u as w,B as $}from"./useForm.34cdb88b.js";import{a as h,B as P}from"./index.1560549a.js";const L=[{title:"\u5E74\u4EFD",dataIndex:"year",customRender:({text:u})=>u+"\u5E74"},{title:"\u5B63\u5EA6",dataIndex:"quarter"},{title:"\u9762\u79EF",dataIndex:"area",customRender:({record:{area:u,area_unit:r}})=>u+r},{title:"\u4EA7\u91CF",dataIndex:"product_output",customRender:({record:{product_output:u,product_output_unit:r}})=>u+r},{title:"\u4EA7\u503C",dataIndex:"product_value",customRender:({record:{product_value:u,product_value_unit:r}})=>u+r},{title:"\u521B\u5EFA\u4EBA",dataIndex:"name",customRender:({record:{created_by:u}})=>u.name},{width:180,title:"\u64CD\u4F5C",dataIndex:"action",align:"center",fixed:void 0}],O=[{field:"year",label:"\u5E74\u4EFD",component:"DatePicker",componentProps:{picker:"year",mode:"year"},colProps:{span:8}},{field:"quarter",label:"\u5B63\u5EA6",component:"Select",componentProps:{options:[{label:"\u7B2C\u4E00\u5B63\u5EA6",value:"1"},{label:"\u7B2C\u4E8C\u5B63\u5EA6",value:"2"},{label:"\u7B2C\u4E09\u5B63\u5EA6",value:"3"},{label:"\u7B2C\u56DB\u5B63\u5EA6",value:"4"}]},colProps:{span:8}}],q=[{field:"id",label:"ID",required:!1,dynamicDisabled:!0,component:"Input",ifShow:({values:u})=>!!u.id},{field:"year",label:"\u5E74\u4EFD",component:"DatePicker",required:!0,componentProps:{picker:"year",mode:"year"}},{field:"quarter",label:"\u5B63\u5EA6",component:"Select",required:!0,componentProps:{options:[{label:"\u7B2C\u4E00\u5B63\u5EA6",value:"1"},{label:"\u7B2C\u4E8C\u5B63\u5EA6",value:"2"},{label:"\u7B2C\u4E09\u5B63\u5EA6",value:"3"},{label:"\u7B2C\u56DB\u5B63\u5EA6",value:"4"}]}},{field:"area",label:"\u9762\u79EF",required:!0,component:"InputNumber",componentProps:{formatter:u=>{let r=/^(-)*(\d+)\.(\d\d).*$/;return`${u}`.replace(/\B(?=(\d{3})+(?!\d))/g,"").replace(r,"$1$2.$3")}}},{field:"product_output",label:"\u4EA7\u91CF",required:!0,component:"InputNumber",componentProps:{formatter:u=>{let r=/^(-)*(\d+)\.(\d\d).*$/;return`${u}`.replace(/\B(?=(\d{3})+(?!\d))/g,"").replace(r,"$1$2.$3")}}},{field:"product_value",label:"\u4EA7\u503C",required:!0,component:"InputNumber",componentProps:{formatter:u=>{let r=/^(-)*(\d+)\.(\d\d).*$/;return`${u}`.replace(/\B(?=(\d{3})+(?!\d))/g,"").replace(r,"$1$2.$3")}}},{field:"area_unit",label:"\u9762\u79EF\u5355\u4F4D",required:!0,component:"Input"},{field:"product_output_unit",label:"\u4EA7\u91CF\u5355\u4F4D",required:!0,component:"Input"},{field:"product_value_unit",label:"\u4EA7\u503C\u5355\u4F4D",required:!0,component:"Input"}];const x=B({__name:"IndustriesDrawer",emits:["success","register"],setup(u,{emit:r}){const a=b(!1),d=v(()=>a.value?"\u7F16\u8F91\u4EA7\u4E1A":"\u65B0\u589E\u4EA7\u4E1A"),[s,{resetFields:c,setFieldsValue:i,validate:l}]=w({labelWidth:120,baseColProps:{span:24},schemas:q,showActionButtonGroup:!1}),[t,{setDrawerProps:o,closeDrawer:_}]=h(e=>p(this,null,function*(){c(),o({confirmLoading:!1}),a.value=e==null?void 0:e.isUpdate,n(a)?yield i({id:e.id,quarter:e.quarter.toString(),year:m(e.year.toString()),area:e.area,product_output:e.product_output,product_value:e.product_value,area_unit:e.area_unit,product_output_unit:e.product_output_unit,product_value_unit:e.product_value_unit}):i({area_unit:"\u5343\u4EA9",product_output_unit:"\u5428",product_value_unit:"\u4E07\u5143"})})),f=()=>p(this,null,function*(){try{const e=yield l();e.year=m(e.year.toString()).format("YYYY"),o({confirmLoading:!0}),e.id?yield y(e.id,e):yield C(e),_(),r("success")}finally{o({confirmLoading:!1})}});return(e,R)=>(g(),A(n(P),D(e.$attrs,{onRegister:n(t),showFooter:"",title:n(d),width:"500px",onOk:f}),{default:F(()=>[I(n($),{onRegister:n(s)},null,8,["onRegister"])]),_:1},16,["onRegister","title"]))}});var S=E(x,[["__scopeId","data-v-604823d8"]]),G=Object.freeze(Object.defineProperty({__proto__:null,default:S},Symbol.toStringTag,{value:"Module"}));export{S as I,G as a,L as c,O as s};

View File

@ -0,0 +1 @@
[data-v-604823d8] .ant-picker{width:100%}

View File

@ -0,0 +1 @@
import{J as p,a as s,b as a,aA as m,o as i,h as u,i as l,t as c,p as d,aB as _,n as f}from"./index.eec7c138.js";import{I as b}from"./index.b6156dbd.js";import{b as I}from"./index.4c25bb40.js";import"./index.1560549a.js";import"./index.abfdfeab.js";import"./ArrowLeftOutlined.489857b7.js";import"./index.638bb3e3.js";import"./index.d138e84e.js";import"./FullscreenOutlined.05779bfe.js";import"./index.79d07be2.js";import"./useWindowSizeFn.0f608d47.js";import"./useContentViewHeight.17fa274c.js";import"./uniqBy.4b5d9352.js";import"./_baseIteratee.8e9620dd.js";import"./get.2199c57c.js";import"./index.a2ec4afe.js";import"./useRefs.77e50e1b.js";import"./PlusOutlined.073ab670.js";import"./RedoOutlined.4acab324.js";import"./index.ba75b5cb.js";import"./lock.e299ad2d.js";const g=s({name:"InputNumberItem",components:{InputNumber:b},props:{event:{type:Number},title:{type:String}},setup(e){const{prefixCls:t}=a("setting-input-number-item");function r(n){e.event&&I(e.event,n)}return{prefixCls:t,handleChange:r}}});function v(e,t,r,n,C,N){const o=m("InputNumber");return i(),u("div",{class:f(e.prefixCls)},[l("span",null,c(e.title),1),d(o,_(e.$attrs,{size:"small",class:`${e.prefixCls}-input-number`,onChange:e.handleChange}),null,16,["class","onChange"])],2)}var L=p(g,[["render",v],["__scopeId","data-v-19883dde"]]);export{L as default};

View File

@ -0,0 +1 @@
.vben-setting-input-number-item[data-v-19883dde]{display:flex;justify-content:space-between;margin:16px 0}.vben-setting-input-number-item-input-number[data-v-19883dde]{width:126px}

1
dist/assets/JK.d410e90f.js vendored 100644
View File

@ -0,0 +1 @@
var G=Object.defineProperty,H=Object.defineProperties;var P=Object.getOwnPropertyDescriptors;var A=Object.getOwnPropertySymbols;var Q=Object.prototype.hasOwnProperty,X=Object.prototype.propertyIsEnumerable;var E=(t,e,n)=>e in t?G(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,C=(t,e)=>{for(var n in e||(e={}))Q.call(e,n)&&E(t,n,e[n]);if(A)for(var n of A(e))X.call(e,n)&&E(t,n,e[n]);return t},S=(t,e)=>H(t,P(e));var F=(t,e,n)=>new Promise((w,l)=>{var _=a=>{try{u(n.next(a))}catch(c){l(c)}},g=a=>{try{u(n.throw(a))}catch(c){l(c)}},u=a=>a.done?w(a.value):Promise.resolve(a.value).then(_,g);u((n=n.apply(t,e)).next())});import{a as Y,cV as Z,cW as ee,b7 as N,s as te,r as p,f as V,bp as ne,af as se,bc as oe,J as ae,aA as f,o as r,j as J,x as b,i,h as m,t as R,p as v,F as T,aD as $,l as z,n as K}from"./index.eec7c138.js";import{p as le,b as re,q as ie}from"./other.770da20f.js";import ce from"./Box.6e1a6928.js";import ue from"./VideoFlv.2bb9adf1.js";import de from"./LinkModal.db879c6e.js";import"./flv.c8c88a4e.js";import"./model-close-icon.706a0490.js";var U="/assets/v01.fb45fe6a.png",pe="/assets/v02.5305abb9.png",fe="/assets/v03.03878ed0.png";const me=Y({components:{Box:ce,Dropdown:Z,DownOutlined:ee,Menu:N,MenuItem:N.Item,VideoFlv:ue,LinkModal:de},props:["baseId"],setup(t){t.baseId;const e=te({tabList:p([]),currentTab:p(""),list:p([])}),n=p(!1),w=p(null),l=p(null),_=p(null),g=V(()=>e.list.slice(1,4)),u=V(()=>e.list.slice(0,1)),a=V(()=>{var s,k;return(k=(s=e.tabList.find(M=>M.id==e.currentTab))==null?void 0:s.name)!=null?k:""});function c({key:s}){e.currentTab!=s&&(e.currentTab=s,x())}function h(){return F(this,null,function*(){const s=yield le({device_type:1});e.tabList=s,s.length&&(e.currentTab=s[0].id),x()})}function x(){return F(this,null,function*(){var B;const{ip:s,port:k,change_time:M}=yield re(),y=yield ie({base_id:(B=t.baseId)!=null?B:e.currentTab,type:1,status:1,is_recommend:1});l.value=null,e.list=y.splice(0,4).map((O,I)=>{const{rtsp_url:q}=O.extends,W=q;return S(C({},O),{img:I==0?U:I==1?pe:I==2?fe:U,url:`ws://${s}:${k}/rtsp?url=${window.btoa(W)}`})}),e.list.length>0&&(l.value=e.list[0]),L.value||o(M)})}let d=null;function o(s){d&&clearInterval(d),s!=0&&(d=setInterval(()=>{const M=e.tabList.findIndex(B=>B.id==e.currentTab)+1,y=e.tabList[M%e.tabList.length];c(C({key:y.id},y))},1e3*s))}function D(s){l.value.url!=s.url&&(l.value=s)}function j(s){_.value=s,n.value=!0}const L=V(()=>!!t.baseId);return ne(()=>{L.value?x():h()}),se(()=>{d&&clearInterval(d)}),S(C({isBase:L,listBig:u,listSmall:g,onChangeVideo:D,currentVido:l,currentModelVideo:_},oe(e)),{chartRef:w,currentTabValue:a,onMenuClick:c,visibleModal:n,onScreenClick:j})}}),ve={class:"h-full flex flex-col"},be={key:0,class:"py-10px relative"},_e={class:"text-center bg-clip-text text-transparent bg-gradient-to-t from-[#76E9F0] to-[#A7E6EE] text-14px font-bold"},ge={key:0,class:"absolute right-18px top-1/2 transform -translate-y-1/2"},he={class:"cursor-pointer"},xe=i("span",{class:"text-white text-12px"},"\u66F4\u591A",-1),ke={class:"flex-1"},Me={class:"grid grid-cols-3 gap-x-6px pt-10px"},we={class:"w-full"};function ye(t,e,n,w,l,_){const g=f("DownOutlined"),u=f("menu-item"),a=f("Menu"),c=f("Dropdown"),h=f("VideoFlv"),x=f("LinkModal"),d=f("Box");return r(),J(d,{title:"\u76D1\u63A7"},{default:b(()=>[i("div",ve,[t.isBase?z("",!0):(r(),m("div",be,[i("div",_e,R(t.currentTabValue),1),t.tabList.length>1?(r(),m("div",ge,[v(c,{overlayClassName:"dropdownClass",placement:"bottomRight",trigger:"click",style:{height:"300px"}},{overlay:b(()=>[v(a,{onClick:t.onMenuClick},{default:b(()=>[(r(!0),m(T,null,$(t.tabList,o=>(r(),J(u,{key:o.id},{default:b(()=>[i("div",null,R(o.name),1)]),_:2},1024))),128))]),_:1},8,["onClick"])]),default:b(()=>[i("div",he,[xe,v(g,{style:{fontSize:"12px",color:"#FFF"}})])]),_:1})])):z("",!0)])),i("div",{class:K(["flex-1 px-11px flex flex-col py-10px box-content",{"pt-0":!t.isBase}])},[i("div",ke,[(r(!0),m(T,null,$(t.listBig,(o,D)=>(r(),m("div",{class:K(["h-full",{"h-140px":t.isBase}]),key:D},[v(h,{onOnScreen:t.onScreenClick,class:"cursor-pointer",url:o.url,name:o.base_name},null,8,["onOnScreen","url","name"])],2))),128))]),i("div",Me,[(r(!0),m(T,null,$(t.listSmall,o=>(r(),m("div",{class:"h-66px",key:o.id},[v(h,{onOnScreen:t.onScreenClick,class:"cursor-pointer",url:o.url,name:o.base_name,screen:!0},null,8,["onOnScreen","url","name"])]))),128))])],2)]),v(x,{visible:t.visibleModal,"onUpdate:visible":e[0]||(e[0]=o=>t.visibleModal=o),footer:null,title1:t.currentModelVideo&&t.currentModelVideo.name,width:1100},{content:b(()=>[i("div",we,[v(h,{url:t.currentModelVideo.url,screen:!1,name:t.currentModelVideo.name},null,8,["url","name"])])]),_:1},8,["visible","title1"])]),_:1})}var Te=ae(me,[["render",ye]]);export{Te as default};

View File

@ -0,0 +1 @@
var x=Object.defineProperty,b=Object.defineProperties;var k=Object.getOwnPropertyDescriptors;var d=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable;var f=(e,t,o)=>t in e?x(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,s=(e,t)=>{for(var o in t||(t={}))w.call(t,o)&&f(e,o,t[o]);if(d)for(var o of d(t))B.call(t,o)&&f(e,o,t[o]);return e},u=(e,t)=>b(e,k(t));import{a as Z,el as _,r as L,f as y,ac as V,J as W,k as h,aA as a,o as n,h as N,p as T,x as C,i as g,j as r,l as i,aB as Y}from"./index.eec7c138.js";import $ from"./DXCY.c7c12d0e.js";import M from"./DXLX.f353062c.js";import S from"./DZWZ.c404856c.js";import{_ as E}from"./model-close-icon.706a0490.js";import"./Box.6e1a6928.js";import"./useECharts.7b7a31e5.js";import"./other.770da20f.js";import"./visualization.0b352701.js";import"./colors.69d1b0cd.js";import"./Circle.abe2c14b.js";import"./useVContext.90866f64.js";import"./add.aca6e96d.js";const R=Z({components:{[_.name]:_,DXCY:$,DZWZ:S,DXLX:M},props:{visible:{type:Boolean},type:{type:String,default:""}},setup(e,{attrs:t}){const o=L(!1),l=y(()=>e.type),p=()=>document.body.clientWidth<3e3?document.body:document.body.querySelector(".modelRef"),c=y(()=>u(s(s({},t),h(e)),{visible:h(o),maskClosable:!1}));return V(()=>{o.value=!!e.visible}),{leftType:l,getContainer:p,getBindValue:c,modelVisible:o}}}),j={class:"modelRef"},q=g("img",{class:"w-22px h-22px inline text-0",src:E,alt:"",srcset:""},null,-1),A={class:"w-full mt-30px"};function I(e,t,o,l,p,c){const m=a("DXCY"),D=a("DXLX"),X=a("DZWZ"),v=a("a-modal");return n(),N("div",j,[T(v,Y(e.getBindValue,{bodyStyle:{background:"#233741",color:"#fff"},destroyOnClose:"",width:860,wrapClassName:"cu-map-modal",getContainer:e.getContainer}),{closeIcon:C(()=>[q]),default:C(()=>[g("div",A,[e.leftType=="DXCY"?(n(),r(m,{key:0,width:"810px",height:"600px"})):i("",!0),e.leftType=="DXLX"?(n(),r(D,{key:1,width:"810px",height:"600px"})):i("",!0),e.leftType=="DZWZ"?(n(),r(X,{key:2,width:"810px",height:"600px"})):i("",!0)])]),_:1},16,["getContainer"])])}var ne=W(R,[["render",I]]);export{ne as default};

Some files were not shown because too many files have changed in this diff Show More