Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #70

Merged
merged 38 commits into from
Dec 10, 2024
Merged

Dev #70

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
562052b
:zap: 优化前端代码语义.
lijiahangmax Nov 7, 2024
73c18c7
:bug: 计划任务创建后会自动执行.
lijiahangmax Nov 13, 2024
9bfd588
:zap: 修改代码生成器.
lijiahangmax Nov 25, 2024
eb77f33
:zap: 去除轮询接口错误信息.
lijiahangmax Dec 3, 2024
652691b
:pencil: 修改 README.
lijiahangmax Dec 4, 2024
90eb600
:bookmark: 升级版本.
Dec 6, 2024
cf093e1
update: 更新文件 pom.xml
Dec 6, 2024
fc6418c
:bookmark: 升级版本.
Dec 6, 2024
343c188
merge dev into dev
lijiahangmax Dec 6, 2024
214b6fe
:bookmark: 升级版本.
Dec 6, 2024
713af9d
merge dev into dev
lijiahangmax Dec 6, 2024
211a50d
:whale: 修改版本.
Dec 6, 2024
168f193
merge dev into dev
lijiahangmax Dec 6, 2024
cb828e5
:whale: 修改 docker 版本.
Dec 6, 2024
a75ce21
:bookmark: 升级版本.
Dec 6, 2024
691c616
merge dev into dev
lijiahangmax Dec 6, 2024
e3d3329
update: 更新文件 build.sh
Dec 6, 2024
8027d39
merge dev into dev
lijiahangmax Dec 6, 2024
95a31d6
Merge remote-tracking branch 'origin/dev' into dev
lijiahangmax Dec 6, 2024
73b034b
:bookmark: 升级版本.
Dec 6, 2024
08a0eeb
merge dev into dev
lijiahangmax Dec 6, 2024
45c83f6
:bookmark: 升级版本.
Dec 6, 2024
4a2c01f
merge dev into dev
lijiahangmax Dec 6, 2024
88ddc7c
:bookmark: 升级版本.
Dec 6, 2024
148d9f1
merge dev into dev
lijiahangmax Dec 6, 2024
100b5e8
:bookmark: 升级版本.
Dec 6, 2024
b850aa1
:whale: 禁用缓存.
Dec 6, 2024
eb18f42
merge dev into dev
lijiahangmax Dec 6, 2024
30ff601
:bookmark: 升级版本.
Dec 6, 2024
d828d4a
merge dev into dev
lijiahangmax Dec 6, 2024
cffb3c9
:bookmark: 升级版本.
Dec 6, 2024
952d63b
merge dev into dev
lijiahangmax Dec 6, 2024
d303406
:pencil:修改文档.
Dec 6, 2024
e434d85
merge dev into dev
lijiahangmax Dec 6, 2024
f38ae06
:arrow_up: 升级 orion-kit 版本.
Dec 9, 2024
28ce231
merge dev into dev
lijiahangmax Dec 9, 2024
9fe2531
:pencil: 修改介绍.
lijiahangmax Dec 9, 2024
d0b25c3
Merge remote-tracking branch 'origin/dev' into dev
lijiahangmax Dec 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div align="center"><img src="https://bjuimg.obs.cn-north-4.myhuaweicloud.com/images/2024/9/11/11e7e78e-2af0-4c68-9811-db8a4c4400f4.png" alt="logo" width="520" /></div>
<p style="margin-top: 12px" align="center"><b>一款高颜值、现代化的自动化运维&轻量堡垒机平台。</b></p>
<p style="margin-top: 12px" align="center"><b>【Dromara】 一款高颜值、现代化的自动化运维&轻量堡垒机平台。</b></p>
<p align="center">
<a target="_blank"
style="text-decoration: none !important;"
Expand Down
6 changes: 3 additions & 3 deletions docker-compose-testing.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '3.3'
services:
service:
image: registry.cn-hangzhou.aliyuncs.com/lijiahangmax/orion-visor-service:2.2.0
image: registry.cn-hangzhou.aliyuncs.com/lijiahangmax/orion-visor-service:2.2.1
privileged: true
ports:
- 1081:80
Expand Down Expand Up @@ -32,7 +32,7 @@ services:
- mysql
- redis
mysql:
image: registry.cn-hangzhou.aliyuncs.com/lijiahangmax/orion-visor-mysql:2.2.0
image: registry.cn-hangzhou.aliyuncs.com/lijiahangmax/orion-visor-mysql:2.2.1
privileged: true
ports:
- 3307:3306
Expand All @@ -52,7 +52,7 @@ services:
retries: 10
start_period: 3s
redis:
image: registry.cn-hangzhou.aliyuncs.com/lijiahangmax/orion-visor-redis:2.2.0
image: registry.cn-hangzhou.aliyuncs.com/lijiahangmax/orion-visor-redis:2.2.1
privileged: true
ports:
- 6380:6379
Expand Down
8 changes: 4 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '3.3'
services:
service:
image: registry.cn-hangzhou.aliyuncs.com/lijiahangmax/orion-visor-service:2.2.0
image: registry.cn-hangzhou.aliyuncs.com/lijiahangmax/orion-visor-service:2.2.1
privileged: true
ports:
- ${SERVICE_PORT:-1081}:80
Expand Down Expand Up @@ -32,7 +32,7 @@ services:
- mysql
- redis
mysql:
image: registry.cn-hangzhou.aliyuncs.com/lijiahangmax/orion-visor-mysql:2.2.0
image: registry.cn-hangzhou.aliyuncs.com/lijiahangmax/orion-visor-mysql:2.2.1
privileged: true
ports:
- 3307:3306
Expand All @@ -52,7 +52,7 @@ services:
retries: 15
start_period: 3s
redis:
image: registry.cn-hangzhou.aliyuncs.com/lijiahangmax/orion-visor-redis:2.2.0
image: registry.cn-hangzhou.aliyuncs.com/lijiahangmax/orion-visor-redis:2.2.1
privileged: true
ports:
- 6380:6379
Expand All @@ -68,7 +68,7 @@ services:
retries: 15
start_period: 3s
adminer:
image: registry.cn-hangzhou.aliyuncs.com/lijiahangmax/orion-visor-adminer:2.2.0
image: registry.cn-hangzhou.aliyuncs.com/lijiahangmax/orion-visor-adminer:2.2.1
ports:
- 8081:8080
depends_on:
Expand Down
2 changes: 1 addition & 1 deletion docker/adminer/build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/bin/bash
version=2.2.0
version=2.2.1
docker build -t orion-visor-adminer:${version} .
docker tag orion-visor-adminer:${version} registry.cn-hangzhou.aliyuncs.com/lijiahangmax/orion-visor-adminer:${version}
2 changes: 1 addition & 1 deletion docker/mysql/build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#/bin/bash
version=2.2.0
version=2.2.1
cp -r ../../sql ./sql
docker build -t orion-visor-mysql:${version} .
rm -rf ./sql
Expand Down
2 changes: 1 addition & 1 deletion docker/push.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#/bin/bash
version=2.2.0
version=2.2.1
docker push registry.cn-hangzhou.aliyuncs.com/lijiahangmax/orion-visor-adminer:${version}
docker push registry.cn-hangzhou.aliyuncs.com/lijiahangmax/orion-visor-mysql:${version}
docker push registry.cn-hangzhou.aliyuncs.com/lijiahangmax/orion-visor-redis:${version}
Expand Down
2 changes: 1 addition & 1 deletion docker/redis/build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/bin/bash
version=2.2.0
version=2.2.1
docker build -t orion-visor-redis:${version} .
docker tag orion-visor-redis:${version} registry.cn-hangzhou.aliyuncs.com/lijiahangmax/orion-visor-redis:${version}
4 changes: 2 additions & 2 deletions docker/service/build.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#/bin/bash
version=2.2.0
version=2.2.1
mv ../../orion-visor-launch/target/orion-visor-launch.jar ./orion-visor-launch.jar
mv ../../orion-visor-ui/dist ./dist
docker build -t orion-visor-service:${version} .
docker build --no-cache -t orion-visor-service:${version} .
rm -rf ./orion-visor-launch.jar
rm -rf ./dist
docker tag orion-visor-service:${version} registry.cn-hangzhou.aliyuncs.com/lijiahangmax/orion-visor-service:${version}
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
// 左侧文档名称
name: 'orion-visor',
// 右上角仓库
repo: 'https://github.com/lijiahangmax/orion-visor',
repo: 'https://github.com/dromara/orion-visor',
coverpage: true,
// 加载侧边栏
loadSidebar: true,
Expand Down
6 changes: 3 additions & 3 deletions orion-visor-dependencies/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
<packaging>pom</packaging>
<name>${project.artifactId}</name>

<description>项目所有依赖</description>
<description>项目全部依赖</description>
<url>https://github.com/dromara/orion-visor</url>

<properties>
<revision>2.2.0</revision>
<revision>2.2.1</revision>
<spring.boot.version>2.7.17</spring.boot.version>
<spring.boot.admin.version>2.7.15</spring.boot.admin.version>
<flatten.maven.plugin.version>1.5.0</flatten.maven.plugin.version>
<orion.kit.version>2.0.0</orion.kit.version>
<orion.kit.version>2.0.1</orion.kit.version>
<aspectj.version>1.9.7</aspectj.version>
<lombok.version>1.18.26</lombok.version>
<springdoc.version>1.6.15</springdoc.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public interface AppConst extends OrionConst {
/**
* 同 ${orion.version} 迭代时候需要手动更改
*/
String VERSION = "2.2.0";
String VERSION = "2.2.1";

/**
* 同 ${spring.application.name}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ public class ${table.serviceImplName} implements ${table.serviceName} {
// 查询
return ${typeLower}DAO.of(wrapper).list(${type}Convert.MAPPER::to);
}

#if($meta.enableCache)

@Override
public List<${type}VO> get${type}ListByCache() {
// 查询缓存
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,14 @@ export interface ${vue.featureEntity}QueryResponse extends TableData {
* $apiComment.create
*/
export function create${vue.featureEntity}(request: ${vue.featureEntity}CreateRequest) {
return axios.post('/${package.ModuleName}/${typeHyphen}/create', request);
return axios.post<number>('/${package.ModuleName}/${typeHyphen}/create', request);
}

/**
* $apiComment.updateById
*/
export function update${vue.featureEntity}(request: ${vue.featureEntity}UpdateRequest) {
return axios.put('/${package.ModuleName}/${typeHyphen}/update', request);
return axios.put<number>('/${package.ModuleName}/${typeHyphen}/update', request);
}

/**
Expand Down Expand Up @@ -126,14 +126,14 @@ export function get${vue.featureEntity}Count(request: ${vue.featureEntity}QueryR
* $apiComment.deleteById
*/
export function delete${vue.featureEntity}(id: number) {
return axios.delete('/${package.ModuleName}/${typeHyphen}/delete', { params: { id } });
return axios.delete<number>('/${package.ModuleName}/${typeHyphen}/delete', { params: { id } });
}

/**
* $apiComment.batchDelete
*/
export function batchDelete${vue.featureEntity}(idList: Array<number>) {
return axios.delete('/${package.ModuleName}/${typeHyphen}/batch-delete', {
return axios.delete<number>('/${package.ModuleName}/${typeHyphen}/batch-delete', {
params: { idList },
paramsSerializer: params => {
return qs.stringify(params, { arrayFormat: 'comma' });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
#if("$field.propertyType" == "Integer" || "$field.propertyType" == "Long")
<a-input-number v-model="formModel.${field.propertyName}"
placeholder="请输入${field.comment}"
allow-clear
hide-button />
hide-button
allow-clear />
#elseif("$field.propertyType" == "Date")
<a-date-picker v-model="formModel.${field.propertyName}"
style="width: 100%"
Expand Down Expand Up @@ -180,19 +180,12 @@
});
};

// 添加后回调
const addedCallback = () => {
// 重新加载
const reload = () => {
fetchCardData();
};

// 更新后回调
const updatedCallback = () => {
fetchCardData();
};

defineExpose({
addedCallback, updatedCallback
});
defineExpose({ reload });

// 重置条件
const reset = () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,20 @@
#if(${dictMap.containsKey(${field.propertyName})})
<a-select v-model="formModel.${field.propertyName}"
:options="toOptions($dictMap.get(${field.propertyName}).keyField)"
placeholder="请选择${field.comment}" />
placeholder="请选择${field.comment}"
allow-clear />
#else
#if("$field.propertyType" == "Integer" || "$field.propertyType" == "Long")
<a-input-number v-model="formModel.${field.propertyName}"
placeholder="请输入${field.comment}"
hide-button />
hide-button
allow-clear />
#elseif("$field.propertyType" == "Date")
<a-date-picker v-model="formModel.${field.propertyName}"
style="width: 100%"
placeholder="请选择${field.comment}"
show-time />
show-time
allow-clear />
#else
<a-input v-model="formModel.${field.propertyName}"
placeholder="请输入${field.comment}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,20 @@
#if(${dictMap.containsKey(${field.propertyName})})
<a-select v-model="formModel.${field.propertyName}"
:options="toOptions($dictMap.get(${field.propertyName}).keyField)"
placeholder="请选择${field.comment}" />
placeholder="请选择${field.comment}"
allow-clear />
#else
#if("$field.propertyType" == "Integer" || "$field.propertyType" == "Long")
<a-input-number v-model="formModel.${field.propertyName}"
placeholder="请输入${field.comment}"
hide-button />
hide-button
allow-clear />
#elseif("$field.propertyType" == "Date")
<a-date-picker v-model="formModel.${field.propertyName}"
style="width: 100%"
placeholder="请选择${field.comment}"
show-time />
show-time
allow-clear />
#else
<a-input v-model="formModel.${field.propertyName}"
placeholder="请输入${field.comment}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
#if("$field.propertyType" == "Integer" || "$field.propertyType" == "Long")
<a-input-number v-model="formModel.${field.propertyName}"
placeholder="请输入${field.comment}"
allow-clear
hide-button />
hide-button
allow-clear />
#elseif("$field.propertyType" == "Date")
<a-date-picker v-model="formModel.${field.propertyName}"
style="width: 100%"
Expand Down Expand Up @@ -63,7 +63,7 @@
<a-popconfirm :content="`确认删除选中的 ${selectedKeys.length} 条记录吗?`"
position="br"
type="warning"
@ok="deleteSelectRows">
@ok="deleteSelectedRows">
<a-button v-permission="['${package.ModuleName}:${typeHyphen}:delete']"
type="secondary"
status="danger"
Expand Down Expand Up @@ -182,7 +182,7 @@

#if($vue.enableRowSelection)
// 删除选中行
const deleteSelectRows = async () => {
const deleteSelectedRows = async () => {
try {
setLoading(true);
// 调用删除接口
Expand Down Expand Up @@ -215,19 +215,12 @@
}
};

// 添加后回调
const addedCallback = () => {
// 重新加载
const reload = () => {
fetchTableData();
};

// 更新后回调
const updatedCallback = () => {
fetchTableData();
};

defineExpose({
addedCallback, updatedCallback
});
defineExpose({ reload });

// 加载数据
const doFetchTableData = async (request: ${vue.featureEntity}QueryRequest) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
@open-update="(e) =>#if($vue.enableDrawerForm) drawer#else modal#end.openUpdate(e)" />
#end
#if($vue.enableDrawerForm)
<!-- 添加修改模态框 -->
<!-- 添加修改抽屉 -->
<${vue.feature}-form-drawer ref="drawer"
@added="modalAddCallback"
@updated="modalUpdateCallback" />
@added="reload"
@updated="reload" />
#else
<!-- 添加修改模态框 -->
<${vue.feature}-form-modal ref="modal"
@added="modalAddCallback"
@updated="modalUpdateCallback" />
@added="reload"
@updated="reload" />
#end
</div>
</template>
Expand Down Expand Up @@ -81,29 +81,16 @@
const modal = ref();
#end

// 添加回调
const modalAddCallback = () => {
#if($vue.enableCardView)
if (renderTable.value) {
table.value.addedCallback();
} else {
card.value.addedCallback();
}
#else
table.value.addedCallback();
#end
};

// 修改回调
const modalUpdateCallback = () => {
// 重新加载
const reload = () => {
#if($vue.enableCardView)
if (renderTable.value) {
table.value.updatedCallback();
table.value.reload();
} else {
card.value.updatedCallback();
card.value.reload();
}
#else
table.value.updatedCallback();
table.value.reload();
#end
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public Long createExecJob(ExecJobCreateRequest request) {
// 设置任务主机
execJobHostService.setHostIdByJobId(id, request.getHostIdList());
// 设置 quartz 状态
this.setQuartzJobStatus(record, false, true);
// this.setQuartzJobStatus(record, false, false);
log.info("ExecJobService-createExecJob id: {}, effect: {}", id, effect);
return id;
}
Expand Down
2 changes: 1 addition & 1 deletion orion-visor-ui/.env.development
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
VITE_API_BASE_URL= 'http://127.0.0.1:9200/orion-visor/api'
VITE_WS_BASE_URL= 'ws://127.0.0.1:9200/orion-visor/keep-alive'
VITE_APP_VERSION= '2.2.0'
VITE_APP_VERSION= '2.2.1'
VITE_APP_RELEASE= 'community'
VITE_DEMO_MODE= false
Loading
Loading