Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
big_hedgehog01
Aidex Sharp
提交
2126e913
A
Aidex Sharp
项目概览
big_hedgehog01
/
Aidex Sharp
通知
5
Star
4
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
Aidex Sharp
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
2126e913
编写于
10月 25, 2021
作者:
hagyao520
浏览文件
操作
浏览文件
下载
差异文件
修改登录界面图形验证码加载错误,新增图片懒加载方式
上级
119e88e2
07e5c9ee
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
66 addition
and
65 deletion
+66
-65
README.md
README.md
+4
-1
aidex-common/src/main/java/com/aidex/common/core/domain/AjaxResult.java
...rc/main/java/com/aidex/common/core/domain/AjaxResult.java
+45
-39
aidex-ui/src/views/system/user/modules/SysUserForm.js
aidex-ui/src/views/system/user/modules/SysUserForm.js
+0
-4
aidex.bat
aidex.bat
+13
-13
aidex.sh
aidex.sh
+4
-8
未找到文件。
README.md
浏览文件 @
2126e913
...
...
@@ -36,7 +36,10 @@
**邮箱:1125373330@qq.com**
<a target="_blank" href="http://mail.qq.com/cgi-bin/qm_share?t=qm_mailme&email=1125373330@qq.com"> 点击这里给我发邮件</a>
<br>
**承接各种XX软件和APP定制开发,请让我发挥专业的技能(UI设计+前端开发7年工龄的程序媛,请对我有信心,超出你的期待哦)具体私聊**
<br>
我的微信二维码:
<a
target=
"_blank"
href=
"https://images.gitee.com/uploads/images/2021/1023/123437_41c4b786_9700683.png"
>
点击查看
</a>
## 官方QQ群
<a
target=
"_blank"
href=
"https://qm.qq.com/cgi-bin/qm/qr?k=8_5QVK727Jg0sEuLSOWRLiMqOIBGB_lp&jump_from=webapi"
><img
border=
"0"
src=
"//pub.idqqimg.com/wpa/images/group.png"
alt=
"Aidex Sharp快速开发平台3群"
title=
"Aidex Sharp快速开发平台3群"
>
208511180
</a>
使用问题请入群由专人负责简答
...
...
aidex-common/src/main/java/com/aidex/common/core/domain/AjaxResult.java
浏览文件 @
2126e913
package
com.aidex.common.core.domain
;
import
java.util.HashMap
;
import
com.aidex.common.constant.HttpStatus
;
import
com.aidex.common.utils.StringUtils
;
...
...
@@ -9,34 +10,37 @@ import com.aidex.common.utils.StringUtils;
*
* @author ruoyi
*/
public
class
AjaxResult
extends
HashMap
<
String
,
Object
>
{
public
class
AjaxResult
extends
HashMap
<
String
,
Object
>
{
private
static
final
long
serialVersionUID
=
1L
;
/** 状态码 */
/**
* 状态码
*/
public
static
final
String
CODE_TAG
=
"code"
;
/** 返回内容 */
/**
* 返回内容
*/
public
static
final
String
MSG_TAG
=
"msg"
;
/** 数据对象 */
/**
* 数据对象
*/
public
static
final
String
DATA_TAG
=
"data"
;
/**
* 初始化一个新创建的 AjaxResult 对象,使其表示一个空消息。
*/
public
AjaxResult
()
{
public
AjaxResult
()
{
}
/**
* 初始化一个新创建的 AjaxResult 对象
*
* @param code 状态码
* @param msg 返回内容
* @param msg
返回内容
*/
public
AjaxResult
(
int
code
,
String
msg
)
{
public
AjaxResult
(
int
code
,
String
msg
)
{
super
.
put
(
CODE_TAG
,
code
);
super
.
put
(
MSG_TAG
,
msg
);
}
...
...
@@ -45,15 +49,13 @@ public class AjaxResult extends HashMap<String, Object>
* 初始化一个新创建的 AjaxResult 对象
*
* @param code 状态码
* @param msg 返回内容
* @param msg
返回内容
* @param data 数据对象
*/
public
AjaxResult
(
int
code
,
String
msg
,
Object
data
)
{
public
AjaxResult
(
int
code
,
String
msg
,
Object
data
)
{
super
.
put
(
CODE_TAG
,
code
);
super
.
put
(
MSG_TAG
,
msg
);
if
(
StringUtils
.
isNotNull
(
data
))
{
if
(
StringUtils
.
isNotNull
(
data
))
{
super
.
put
(
DATA_TAG
,
data
);
}
}
...
...
@@ -62,15 +64,13 @@ public class AjaxResult extends HashMap<String, Object>
* 初始化一个新创建的 AjaxResult 对象
*
* @param code 状态码
* @param msg 返回内容
* @param msg
返回内容
* @param data 数据对象
*/
public
AjaxResult
(
String
code
,
String
msg
,
Object
data
)
{
public
AjaxResult
(
String
code
,
String
msg
,
Object
data
)
{
super
.
put
(
CODE_TAG
,
code
);
super
.
put
(
MSG_TAG
,
msg
);
if
(
StringUtils
.
isNotNull
(
data
))
{
if
(
StringUtils
.
isNotNull
(
data
))
{
super
.
put
(
DATA_TAG
,
data
);
}
}
...
...
@@ -80,8 +80,7 @@ public class AjaxResult extends HashMap<String, Object>
*
* @return 成功消息
*/
public
static
AjaxResult
success
()
{
public
static
AjaxResult
success
()
{
return
AjaxResult
.
success
(
"操作成功"
);
}
...
...
@@ -90,8 +89,7 @@ public class AjaxResult extends HashMap<String, Object>
*
* @return 成功消息
*/
public
static
AjaxResult
success
(
Object
data
)
{
public
static
AjaxResult
success
(
Object
data
)
{
return
AjaxResult
.
success
(
"操作成功"
,
data
);
}
...
...
@@ -101,20 +99,18 @@ public class AjaxResult extends HashMap<String, Object>
* @param msg 返回内容
* @return 成功消息
*/
public
static
AjaxResult
success
(
String
msg
)
{
public
static
AjaxResult
success
(
String
msg
)
{
return
AjaxResult
.
success
(
msg
,
null
);
}
/**
* 返回成功消息
*
* @param msg 返回内容
* @param msg
返回内容
* @param data 数据对象
* @return 成功消息
*/
public
static
AjaxResult
success
(
String
msg
,
Object
data
)
{
public
static
AjaxResult
success
(
String
msg
,
Object
data
)
{
return
new
AjaxResult
(
HttpStatus
.
SUCCESS
,
msg
,
data
);
}
...
...
@@ -123,8 +119,7 @@ public class AjaxResult extends HashMap<String, Object>
*
* @return
*/
public
static
AjaxResult
error
()
{
public
static
AjaxResult
error
()
{
return
AjaxResult
.
error
(
"操作失败"
);
}
...
...
@@ -134,20 +129,18 @@ public class AjaxResult extends HashMap<String, Object>
* @param msg 返回内容
* @return 警告消息
*/
public
static
AjaxResult
error
(
String
msg
)
{
public
static
AjaxResult
error
(
String
msg
)
{
return
AjaxResult
.
error
(
msg
,
null
);
}
/**
* 返回错误消息
*
* @param msg 返回内容
* @param msg
返回内容
* @param data 数据对象
* @return 警告消息
*/
public
static
AjaxResult
error
(
String
msg
,
Object
data
)
{
public
static
AjaxResult
error
(
String
msg
,
Object
data
)
{
return
new
AjaxResult
(
HttpStatus
.
ERROR
,
msg
,
data
);
}
...
...
@@ -155,11 +148,24 @@ public class AjaxResult extends HashMap<String, Object>
* 返回错误消息
*
* @param code 状态码
* @param msg 返回内容
* @param msg
返回内容
* @return 警告消息
*/
public
static
AjaxResult
error
(
int
code
,
String
msg
)
{
public
static
AjaxResult
error
(
int
code
,
String
msg
)
{
return
new
AjaxResult
(
code
,
msg
,
null
);
}
/**
* 方便链式调用
*
* @param key 键
* @param value 值
* @return 数据对象
*/
@Override
public
AjaxResult
put
(
String
key
,
Object
value
)
{
super
.
put
(
key
,
value
);
return
this
;
}
}
aidex-ui/src/views/system/user/modules/SysUserForm.js
浏览文件 @
2126e913
...
...
@@ -20,10 +20,6 @@ export default {
type
:
Array
,
required
:
true
},
userSecretLevelOptions
:
{
type
:
Array
,
required
:
true
},
defalutExpandedKeys
:
{
type
:
Array
}
...
...
aidex.bat
浏览文件 @
2126e913
...
...
@@ -4,36 +4,36 @@ rem jar平
set
AppName
=
aidex
-admin
.jar
rem JVM参数
set
JVM_OPTS
=
"-Dname=
%AppName%
-Duser.timezone=Asia/Shanghai -Xms512
M -Xmx512M -XX:PermSize=256M -XX:MaxPermSize=512M
-XX:+HeapDumpOnOutOfMemoryError -XX:+PrintGCDateStamps -XX:+PrintGCDetails -XX:NewRatio=1 -XX:SurvivorRatio=30 -XX:+UseParallelGC -XX:+UseParallelOldGC"
set
JVM_OPTS
=
"-Dname=
%AppName%
-Duser.timezone=Asia/Shanghai -Xms512
m -Xmx1024m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=512m
-XX:+HeapDumpOnOutOfMemoryError -XX:+PrintGCDateStamps -XX:+PrintGCDetails -XX:NewRatio=1 -XX:SurvivorRatio=30 -XX:+UseParallelGC -XX:+UseParallelOldGC"
ECHO
.
ECHO
.
ECHO
.
[
1
]
启动
%AppName%
ECHO
.
[
2
]
关闭
%AppName%
ECHO
.
[
3
]
重启
%AppName%
ECHO
.
[
4
]
启动状态
%AppName%
ECHO
.
[
5
]
退 出
ECHO
.
ECHO
.
[
5
]
退 出
ECHO
.
ECHO
.请输入选择项目的序号:
set
/p
ID
=
IF
"
%id%
"
==
"1"
GOTO
start
IF
"
%id%
"
==
"2"
GOTO
stop
IF
"
%id%
"
==
"3"
GOTO
restart
IF
"
%id%
"
==
"1"
GOTO
start
IF
"
%id%
"
==
"2"
GOTO
stop
IF
"
%id%
"
==
"3"
GOTO
restart
IF
"
%id%
"
==
"4"
GOTO
status
IF
"
%id%
"
==
"5"
EXIT
PAUSE
PAUSE
:start
for
/f
"usebackq tokens=1-2"
%%a
in
(
`jps -l
^|
findstr
%AppName%
`
)
do
(
set
pid
=
%%a
set
image_name
=
%%b
)
if
defined
pid
(
echo
%%is
running
PAUSE
)
echo
%%is
running
PAUSE
)
start
javaw
-jar
%JAVA_OPTS%
aidex
-admin
.jar
start
javaw
%JAVA_OPTS%
-jar
%AppName%
echo
starting
……
echo
Start
%AppName%
success
...
...
...
@@ -64,4 +64,4 @@ goto:eof
if
not
defined
pid
(
echo
process
%AppName%
is
dead
)
else
(
echo
%image_name%
is
running
)
goto
:eof
\ No newline at end of file
goto
:eof
aidex.sh
浏览文件 @
2126e913
#!/bin/sh
# author ruoyi
# ./aidex.sh start 启动
# ./aidex.sh stop 停止
# ./aidex.sh restart 重启
# ./aidex.sh status 状态
# ./ry.sh start 启动 stop 停止 restart 重启 status 状态
AppName
=
aidex-admin.jar
# JVM参数
JVM_OPTS
=
"-Dname=
$AppName
-Duser.timezone=Asia/Shanghai -Xms512
M -Xmx512M -XX:PermSize=256M -XX:MaxPermSize=512M
-XX:+HeapDumpOnOutOfMemoryError -XX:+PrintGCDateStamps -XX:+PrintGCDetails -XX:NewRatio=1 -XX:SurvivorRatio=30 -XX:+UseParallelGC -XX:+UseParallelOldGC"
JVM_OPTS
=
"-Dname=
$AppName
-Duser.timezone=Asia/Shanghai -Xms512
m -Xmx1024m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=512m
-XX:+HeapDumpOnOutOfMemoryError -XX:+PrintGCDateStamps -XX:+PrintGCDetails -XX:NewRatio=1 -XX:SurvivorRatio=30 -XX:+UseParallelGC -XX:+UseParallelOldGC"
APP_HOME
=
`
pwd
`
LOG_PATH
=
$APP_HOME
/logs/
$AppName
.log
...
...
@@ -30,7 +26,7 @@ function start()
if
[
x
"
$PID
"
!=
x
""
]
;
then
echo
"
$AppName
is running..."
else
nohup
java
-jar
$JVM_OPTS
target/
$AppName
>
/dev/null 2>&1 &
nohup
java
$JVM_OPTS
-jar
$AppName
>
/dev/null 2>&1 &
echo
"Start
$AppName
success..."
fi
}
...
...
@@ -38,7 +34,7 @@ function start()
function
stop
()
{
echo
"Stop
$AppName
"
PID
=
""
query
(){
PID
=
`
ps
-ef
|grep java|grep
$AppName
|grep
-v
grep
|awk
'{print $2}'
`
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录