From 4a9b924df69b2b5a252f4ba189b025d42ac5f943 Mon Sep 17 00:00:00 2001 From: xuziqiang <1344691446@qq.com> Date: Tue, 21 May 2024 16:42:16 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20huaxing-AI=E6=99=BA=E8=83=BDBAS?= =?UTF-8?q?=E7=B3=BB=E7=BB=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hx-ai-intelligent/.env | 10 + hx-ai-intelligent/.env.development | 22 + hx-ai-intelligent/.env.production | 35 + hx-ai-intelligent/.version | 1 + hx-ai-intelligent/build.sh | 74 + hx-ai-intelligent/index.html | 19 + hx-ai-intelligent/mock/user.ts | 95 + .../public/asset/file/whiteListUser.xlsx | Bin 0 -> 8909 bytes .../public/asset/font/QuartzMS.TTF | Bin 0 -> 26740 bytes .../public/asset/image/NoImage.png | Bin 0 -> 1782 bytes .../public/asset/image/login/adminIcon.png | Bin 0 -> 3169 bytes .../public/asset/image/login/background.png | Bin 0 -> 704075 bytes .../public/asset/image/login/icon_clear.png | Bin 0 -> 1741 bytes .../public/asset/image/noResource.png | Bin 0 -> 21422 bytes hx-ai-intelligent/public/asset/image/side.png | Bin 0 -> 93832 bytes .../image/sider_collapsed_background.png | Bin 0 -> 150207 bytes hx-ai-intelligent/public/asset/js/tdt.js | 1 + hx-ai-intelligent/public/favicon.ico | Bin 0 -> 4286 bytes hx-ai-intelligent/release.yaml | 12 + .../nervui/smart-parking-depositor/create.sh | 35 + .../nervui/smart-parking-depositor/delete.sh | 1 + .../nervui/smart-parking-depositor/setup.sh | 1 + .../nervui/smart-parking-depositor/start.sh | 1 + .../nervui/smart-parking-depositor/stop.sh | 1 + .../nervui/smart-parking-depositor/type.json | 30 + .../resources/templates/deploy.json | 64 + hx-ai-intelligent/routes.json | 26545 ++++++++++++++++ hx-ai-intelligent/src/App.vue | 234 + hx-ai-intelligent/src/api/index.ts | 6 + hx-ai-intelligent/src/api/user.ts | 20 + hx-ai-intelligent/src/config/app.config.ts | 71 + hx-ai-intelligent/src/config/index.ts | 2 + hx-ai-intelligent/src/config/resource.json | 4309 +++ hx-ai-intelligent/src/enum/http-enum.ts | 22 + hx-ai-intelligent/src/icon/dicizhishou.svg | 10 + hx-ai-intelligent/src/icon/downArrow.svg | 5 + .../src/icon/headerAdminIcon.svg | 8 + hx-ai-intelligent/src/icon/passWord.svg | 5 + hx-ai-intelligent/src/icon/userName.svg | 5 + hx-ai-intelligent/src/main.ts | 15 + hx-ai-intelligent/src/router/home.ts | 34 + hx-ai-intelligent/src/router/index.ts | 11 + .../src/router/organizationManage.ts | 82 + hx-ai-intelligent/src/store/item.ts | 12 + hx-ai-intelligent/src/theme/detail.less | 151 + hx-ai-intelligent/src/theme/form.less | 72 + hx-ai-intelligent/src/theme/global.less | 183 + hx-ai-intelligent/src/theme/global.scss | 73 + hx-ai-intelligent/src/theme/theme.scss | 2 + hx-ai-intelligent/src/theme/variable.less | 36 + hx-ai-intelligent/src/types.d.ts | 1 + hx-ai-intelligent/src/util/debounce.ts | 21 + hx-ai-intelligent/src/view/developing.vue | 17 + .../enterpriseManage/config.ts | 101 + .../enterpriseManage/index.vue | 7 + hx-ai-intelligent/tsconfig.json | 51 + hx-ai-intelligent/vite.config.ts | 15 + lib/saas/config/table.config.ts | 10 +- lib/saas/view/system/login.vue | 13 +- lib/use/use-api.ts | 4 +- lib/util/http/axios.ts | 9 +- package.json | 4 +- vite.config.ts | 3 +- 63 files changed, 32555 insertions(+), 16 deletions(-) create mode 100644 hx-ai-intelligent/.env create mode 100644 hx-ai-intelligent/.env.development create mode 100644 hx-ai-intelligent/.env.production create mode 100644 hx-ai-intelligent/.version create mode 100644 hx-ai-intelligent/build.sh create mode 100644 hx-ai-intelligent/index.html create mode 100644 hx-ai-intelligent/mock/user.ts create mode 100644 hx-ai-intelligent/public/asset/file/whiteListUser.xlsx create mode 100644 hx-ai-intelligent/public/asset/font/QuartzMS.TTF create mode 100644 hx-ai-intelligent/public/asset/image/NoImage.png create mode 100644 hx-ai-intelligent/public/asset/image/login/adminIcon.png create mode 100644 hx-ai-intelligent/public/asset/image/login/background.png create mode 100644 hx-ai-intelligent/public/asset/image/login/icon_clear.png create mode 100644 hx-ai-intelligent/public/asset/image/noResource.png create mode 100644 hx-ai-intelligent/public/asset/image/side.png create mode 100644 hx-ai-intelligent/public/asset/image/sider_collapsed_background.png create mode 100644 hx-ai-intelligent/public/asset/js/tdt.js create mode 100644 hx-ai-intelligent/public/favicon.ico create mode 100644 hx-ai-intelligent/release.yaml create mode 100644 hx-ai-intelligent/resources/scripts/nervui/smart-parking-depositor/create.sh create mode 100644 hx-ai-intelligent/resources/scripts/nervui/smart-parking-depositor/delete.sh create mode 100644 hx-ai-intelligent/resources/scripts/nervui/smart-parking-depositor/setup.sh create mode 100644 hx-ai-intelligent/resources/scripts/nervui/smart-parking-depositor/start.sh create mode 100644 hx-ai-intelligent/resources/scripts/nervui/smart-parking-depositor/stop.sh create mode 100644 hx-ai-intelligent/resources/scripts/nervui/smart-parking-depositor/type.json create mode 100644 hx-ai-intelligent/resources/templates/deploy.json create mode 100644 hx-ai-intelligent/routes.json create mode 100644 hx-ai-intelligent/src/App.vue create mode 100644 hx-ai-intelligent/src/api/index.ts create mode 100644 hx-ai-intelligent/src/api/user.ts create mode 100644 hx-ai-intelligent/src/config/app.config.ts create mode 100644 hx-ai-intelligent/src/config/index.ts create mode 100644 hx-ai-intelligent/src/config/resource.json create mode 100644 hx-ai-intelligent/src/enum/http-enum.ts create mode 100644 hx-ai-intelligent/src/icon/dicizhishou.svg create mode 100644 hx-ai-intelligent/src/icon/downArrow.svg create mode 100644 hx-ai-intelligent/src/icon/headerAdminIcon.svg create mode 100644 hx-ai-intelligent/src/icon/passWord.svg create mode 100644 hx-ai-intelligent/src/icon/userName.svg create mode 100644 hx-ai-intelligent/src/main.ts create mode 100644 hx-ai-intelligent/src/router/home.ts create mode 100644 hx-ai-intelligent/src/router/index.ts create mode 100644 hx-ai-intelligent/src/router/organizationManage.ts create mode 100644 hx-ai-intelligent/src/store/item.ts create mode 100644 hx-ai-intelligent/src/theme/detail.less create mode 100644 hx-ai-intelligent/src/theme/form.less create mode 100644 hx-ai-intelligent/src/theme/global.less create mode 100644 hx-ai-intelligent/src/theme/global.scss create mode 100644 hx-ai-intelligent/src/theme/theme.scss create mode 100644 hx-ai-intelligent/src/theme/variable.less create mode 100644 hx-ai-intelligent/src/types.d.ts create mode 100644 hx-ai-intelligent/src/util/debounce.ts create mode 100644 hx-ai-intelligent/src/view/developing.vue create mode 100644 hx-ai-intelligent/src/view/organizationManage/enterpriseManage/config.ts create mode 100644 hx-ai-intelligent/src/view/organizationManage/enterpriseManage/index.vue create mode 100644 hx-ai-intelligent/tsconfig.json create mode 100644 hx-ai-intelligent/vite.config.ts diff --git a/hx-ai-intelligent/.env b/hx-ai-intelligent/.env new file mode 100644 index 0000000..bef8ce8 --- /dev/null +++ b/hx-ai-intelligent/.env @@ -0,0 +1,10 @@ +# port +VITE_PORT = 3301 +#mode +VITE_GLOB_APP_RUN_TYPE = saas + +# spa-title +VITE_GLOB_APP_TITLE = Smart Parking Depositor + +# spa shortname +VITE_GLOB_APP_SHORT_NAME = smart-parking-depositor diff --git a/hx-ai-intelligent/.env.development b/hx-ai-intelligent/.env.development new file mode 100644 index 0000000..1981d31 --- /dev/null +++ b/hx-ai-intelligent/.env.development @@ -0,0 +1,22 @@ +# Whether to open mock +VITE_USE_MOCK = true + +# public path +VITE_PUBLIC_PATH = / + +# Cross-domain proxy, you can configure multiple +# Please note that no line breaks http://100.73.70.51 + +#VITE_PROXY = {"/community":{ "target":"http://100.73.70.51","changeOrigin": true,"prependPath":false},"/parking":{ "target":"http://100.73.70.246:8080","changeOrigin": true,"iprependPath":false}} +# VITE_PROXY=[["/api","http://100.73.70.51"],["/parking","http://100.73.70.246:8080"]] +# Delete console +VITE_DROP_CONSOLE = false + +# Basic interface address SPA +VITE_GLOB_API_URL=/basic-api + +# File upload address, optional +VITE_GLOB_UPLOAD_URL=/upload + +# Interface prefix +VITE_GLOB_API_URL_PREFIX= diff --git a/hx-ai-intelligent/.env.production b/hx-ai-intelligent/.env.production new file mode 100644 index 0000000..a0bdfb7 --- /dev/null +++ b/hx-ai-intelligent/.env.production @@ -0,0 +1,35 @@ +# Whether to open mock +VITE_USE_MOCK = true + +# public path +VITE_PUBLIC_PATH = / + +# Delete console +VITE_DROP_CONSOLE = true + +# Whether to enable gzip or brotli compression +# Optional: gzip | brotli | none +# If you need multiple forms, you can use `,` to separate +VITE_BUILD_COMPRESS = 'none' + +# Whether to delete origin files when using compress, default false +VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE = false + +# Basic interface address SPA +VITE_GLOB_API_URL=/basic-api + +# File upload address, optional +# It can be forwarded by nginx or write the actual address directly +VITE_GLOB_UPLOAD_URL=/upload + +# Interface prefix +VITE_GLOB_API_URL_PREFIX= + +# Whether to enable image compression +VITE_USE_IMAGEMIN= true + +# use pwa +VITE_USE_PWA = false + +# Is it compatible with older browsers +VITE_LEGACY = false diff --git a/hx-ai-intelligent/.version b/hx-ai-intelligent/.version new file mode 100644 index 0000000..f316ecb --- /dev/null +++ b/hx-ai-intelligent/.version @@ -0,0 +1 @@ +2.1.19 diff --git a/hx-ai-intelligent/build.sh b/hx-ai-intelligent/build.sh new file mode 100644 index 0000000..e4bdb04 --- /dev/null +++ b/hx-ai-intelligent/build.sh @@ -0,0 +1,74 @@ +#!/bin/bash +SOURCE="$0" +while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink + DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" + SOURCE="$(readlink "$SOURCE")" + [[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located +done +DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" + +if [ -z $WORKSPACE ];then + echo "WORKSPACE not exists" +else + set DIR=$WORKSPACE +fi + +echo "current dir" +echo "$DIR" + +cd "$DIR" +projectname=$(basename `pwd`) + +npm run parking-build + +if [ -d "$DIR/dist" ];then + + cd "$DIR/dist" + + # copy module.json + cp ../module.json ./ + + # package + VERSION=$(cat ../.version) + lastdir=../release/ + if [ -d ${lastdir} ];then + echo "删除旧release文件夹" + rm -rf ${lastdir} + else + echo "文件夹不存在!" + fi + mkdir -p ${lastdir} + + dir=../release/nerv/$projectname/$VERSION + mkdir -p ${dir} + tar -zcvf "${dir}/$projectname-$VERSION.tgz" ./* + + templatedir=../release/resources/templates/nerv/$projectname/$VERSION/$projectname + mkdir -p ${templatedir} + cp -r ../resources/templates/* ${templatedir} + + cd ../ + + releasefile=nerv-$projectname-$VERSION.tgz + if [ -f ${releasefile} ];then + echo "删除旧包!" + rm -rf ${releasefile} + fi + + tar -zcvf ${releasefile} ./release/* release.yaml + + mkdir -p ./release/nervui + cp -r ./release/nerv/* ./release/nervui + + if [ -f ${releasefile} ];then + echo "编译成功!" + mv ${releasefile} ./release + else + echo "编译失败!!!" + exit 1 + fi + +else + echo "编译失败!!!" + exit 1 +fi diff --git a/hx-ai-intelligent/index.html b/hx-ai-intelligent/index.html new file mode 100644 index 0000000..eeffd10 --- /dev/null +++ b/hx-ai-intelligent/index.html @@ -0,0 +1,19 @@ + + +
+ + + + + +ez0j>Qv%#edx|G#qv9y5IHpCfOw~A`z7!LzV1u+_03t
z3=ha_l@4rq0gz;a&Y!&}0$$xM1$kOt0RO#vpujEN4;@@yeikQL5{n9EhvSQKhwCk8
z#i8=wy%Z|1bH}u|xMGA^s&K%KJFke
zT$;__vEF?vbS||ZAVEoiw!7Kq-@-Y7+iz{Vsuj}vx;J6k91}icpq3yb_8z=@HQwWC
z6W+3)0h>i@8$y=zSuJQl;D$~5qz{5F*~OF|i;7%{id}3MjiWZr(M;H^@$OiCJYiBcD0 oYh%I2h}ExcHXBVv
zgQer6WVRgcQjC31%QsR1(%x$pFxKT>~XxP+lczEP`r#5H_71
zFkp8Ra?&xdMcWbrabim3J^s%Y-=06mV>IndgKY`gR{VvO0}yxXAX4s?pKLM!8LT73
zoiEVY^Lcon9s=ovJJHpvQ@E6c!SIzRFqIMz9hGi2z74U6C$OFqr8$6tq_xH4JJ8m@
z;o7*}WKQVPrds^U@R#txr4Lt7U1V^^6aCDbvGsVcC;*^U0~&NNvrZzjE}+Hls!GkA
zH?zsV8;det%g$D!yJ}WO`C7DqXbDyZ9{S~fqCnr3gNKF=N-U)MPnf