Merge pull request #58 from dromara/dev

Dev
This commit is contained in:
李佳航
2024-09-11 21:18:41 +08:00
committed by GitHub
7 changed files with 17 additions and 27 deletions

View File

@@ -1,4 +1,4 @@
<div align="center"><img src="https://bjuimg.obs.cn-north-4.myhuaweicloud.com/images/2024/5/29/cec03bbd-0eab-464d-9caf-d0b5a7ffc5a6.png" alt="logo" width="32" /></div>
<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 align="center">
<a target="_blank"
@@ -51,7 +51,7 @@
## 演示环境
* 🔗 演示地址: https://dv.orionsec.cn/
* 🔗 演示地址: [https://dv.orionsec.cn/](https://dv.orionsec.cn/)
* 🔏 演示账号: admin/admin
* ⭐ 体验后可以点一下 `star` 这对我很重要! [github](https://github.com/dromara/orion-visor) [gitee](https://gitee.com/dromara/orion-visor) [gitcode](https://gitcode.com/dromara/orion-visor/overview)
* 🌈 如果本项目对你有帮助请帮忙推广一下 让更多的人知道此项目!

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

View File

@@ -59,8 +59,8 @@
<a-form-item field="limit" label="数量限制">
<a-input-number v-model="formModel.limit"
:min="1"
:max="maxLimit"
:placeholder="`请输入数量限制 最大: ${maxLimit}`"
:max="maxClearLimit"
:placeholder="`请输入数量限制 最大: ${maxClearLimit}`"
hide-button
allow-clear />
</a-form-item>
@@ -101,16 +101,14 @@
type: undefined,
status: undefined,
startTimeRange: undefined,
limit: maxLimit.value,
limit: maxClearLimit,
};
};
const maxLimit = ref<number>(0);
const formModel = ref<HostConnectLogQueryRequest>({});
// 打开
const open = (record: any) => {
maxLimit.value = maxClearLimit;
renderForm({ ...defaultForm(), ...record });
setVisible(true);
};

View File

@@ -51,8 +51,8 @@
<a-form-item field="limit" label="数量限制">
<a-input-number v-model="formModel.limit"
:min="1"
:max="maxLimit"
:placeholder="`请输入数量限制 最大: ${maxLimit}`"
:max="maxClearLimit"
:placeholder="`请输入数量限制 最大: ${maxClearLimit}`"
hide-button
allow-clear />
</a-form-item>
@@ -85,7 +85,6 @@
const { loading, setLoading } = useLoading();
const { toOptions } = useDictStore();
const maxLimit = ref<number>(0);
const formModel = ref<ExecLogQueryRequest>({});
const defaultForm = (): ExecLogQueryRequest => {
@@ -96,13 +95,12 @@
command: undefined,
status: undefined,
startTimeRange: undefined,
limit: maxLimit.value,
limit: maxClearLimit,
};
};
// 打开
const open = (record: any) => {
maxLimit.value = maxClearLimit;
renderForm({ ...defaultForm(), ...record });
setVisible(true);
};

View File

@@ -52,8 +52,8 @@
<a-form-item field="limit" label="数量限制">
<a-input-number v-model="formModel.limit"
:min="1"
:max="maxLimit"
:placeholder="`请输入数量限制 最大: ${maxLimit}`"
:max="maxClearLimit"
:placeholder="`请输入数量限制 最大: ${maxClearLimit}`"
hide-button
allow-clear />
</a-form-item>
@@ -85,7 +85,6 @@
const { loading, setLoading } = useLoading();
const { toOptions } = useDictStore();
const maxLimit = ref<number>(0);
const formModel = ref<UploadTaskQueryRequest>({});
const defaultForm = (): UploadTaskQueryRequest => {
@@ -95,13 +94,12 @@
description: undefined,
status: undefined,
createTimeRange: undefined,
limit: maxLimit.value,
limit: maxClearLimit,
};
};
// 打开
const open = (record: any) => {
maxLimit.value = maxClearLimit;
renderForm({ ...defaultForm(), ...record });
setVisible(true);
};

View File

@@ -46,8 +46,8 @@
<a-form-item field="limit" label="数量限制">
<a-input-number v-model="formModel.limit"
:min="1"
:max="maxLimit"
:placeholder="`请输入数量限制 最大: ${maxLimit}`"
:max="maxClearLimit"
:placeholder="`请输入数量限制 最大: ${maxClearLimit}`"
hide-button
allow-clear />
</a-form-item>
@@ -80,7 +80,6 @@
const { loading, setLoading } = useLoading();
const { toOptions } = useDictStore();
const maxLimit = ref<number>(0);
const formModel = ref<ExecLogQueryRequest>({});
const defaultForm = (): ExecLogQueryRequest => {
@@ -91,13 +90,12 @@
command: undefined,
status: undefined,
startTimeRange: undefined,
limit: maxLimit.value,
limit: maxClearLimit,
};
};
// 打开
const open = (record: any) => {
maxLimit.value = maxClearLimit;
renderForm({ ...defaultForm(), ...record });
setVisible(true);
};

View File

@@ -65,8 +65,8 @@
<a-form-item field="limit" label="数量限制">
<a-input-number v-model="formModel.limit"
:min="1"
:max="maxLimit"
:placeholder="`请输入数量限制 最大: ${maxLimit}`"
:max="maxClearLimit"
:placeholder="`请输入数量限制 最大: ${maxClearLimit}`"
hide-button
allow-clear />
</a-form-item>
@@ -105,11 +105,10 @@
riskLevel: undefined,
result: undefined,
startTimeRange: undefined,
limit: maxLimit.value,
limit: maxClearLimit,
};
};
const maxLimit = ref<number>(0);
const typeOptions = ref<SelectOptionData[]>(toOptions(operatorLogTypeKey));
const formModel = ref<OperatorLogQueryRequest>({});
@@ -117,7 +116,6 @@
// 打开
const open = (record: OperatorLogQueryRequest) => {
maxLimit.value = maxClearLimit;
renderForm({ ...defaultForm(), ...record });
setVisible(true);
};