修改字典值长度.

This commit is contained in:
lijiahang
2024-07-08 14:44:33 +08:00
parent d34843f90c
commit e9ac9b9f13
9 changed files with 15 additions and 20 deletions

View File

@@ -1,6 +1,6 @@
<template>
<a-modal v-model:visible="visible"
body-class="modal-form-large"
modal-class="modal-form-large"
title-align="start"
:title="title"
:top="80"

View File

@@ -65,7 +65,7 @@ public class HostTerminalManager {
*
* @param channelId channelId
* @param sessionId sessionId
* @param T T
* @param <T> T
* @return session
*/
@SuppressWarnings("unchecked")

View File

@@ -93,7 +93,7 @@ public class HostTerminalServiceImpl implements HostTerminalService {
@Override
public String getTerminalAccessToken() {
LoginUser user = SecurityUtils.getLoginUser();
LoginUser user = Valid.notNull(SecurityUtils.getLoginUser());
log.info("HostConnectService.getHostAccessToken userId: {}", user.getId());
String accessToken = UUIds.random19();
HostTerminalAccessDTO access = HostTerminalAccessDTO.builder()

View File

@@ -30,7 +30,6 @@ public class DictValueCreateRequest implements Serializable {
private Long keyId;
@NotBlank
@Size(max = 512)
@Schema(description = "配置值")
private String value;

View File

@@ -28,7 +28,6 @@ public class DictValueQueryRequest extends PageRequest {
@Schema(description = "配置项名称")
private String keyName;
@Size(max = 512)
@Schema(description = "配置值")
private String value;

View File

@@ -34,7 +34,6 @@ public class DictValueUpdateRequest implements Serializable {
private Long keyId;
@NotBlank
@Size(max = 512)
@Schema(description = "配置值")
private String value;

View File

@@ -24,14 +24,14 @@
label="配置项">
<dict-key-selector v-model="formModel.keyId" @change="changeKey" />
</a-form-item>
<!-- 配置值 -->
<a-form-item field="value" label="配置值">
<a-input v-model="formModel.value" placeholder="请输入配置值" allow-clear />
</a-form-item>
<!-- 配置描述 -->
<a-form-item field="label" label="配置描述">
<a-input v-model="formModel.label" placeholder="请输入配置描述" allow-clear />
</a-form-item>
<!-- 配置值 -->
<a-form-item field="value" label="配置值">
<a-input v-model="formModel.value" placeholder="请输入配置值" allow-clear />
</a-form-item>
<!-- 排序 -->
<a-form-item field="sort" label="排序">
<a-input-number v-model="formModel.sort"

View File

@@ -88,7 +88,7 @@
<span class="copy-left" title="复制" @click="copy(record.value)">
<icon-copy />
</span>
<a-tooltip :content="record.value">
<a-tooltip position="tl" :content="record.value">
<span>{{ record.value }}</span>
</a-tooltip>
</template>
@@ -146,13 +146,13 @@
const emits = defineEmits(['openAdd', 'openUpdate', 'openHistory']);
const selectedKeys = ref<number[]>([]);
const tableRenderData = ref<DictValueQueryResponse[]>([]);
const pagination = usePagination();
const rowSelection = useRowSelection();
const { loading, setLoading } = useLoading();
const selectedKeys = ref<Array<number>>([]);
const tableRenderData = ref<Array<DictValueQueryResponse>>([]);
const formModel = reactive<DictValueQueryRequest>({
keyId: undefined,
keyName: undefined,
@@ -178,13 +178,11 @@
};
// 删除当前行
const deleteRow = async ({ id }: {
id: number
}) => {
const deleteRow = async (record: DictValueQueryResponse) => {
try {
setLoading(true);
// 调用删除接口
await deleteDictValue(id);
await deleteDictValue(record.id);
Message.success('删除成功');
// 重新加载数据
fetchTableData();

View File

@@ -17,8 +17,8 @@ export const value = [{
required: true,
message: '请输入配置值'
}, {
maxLength: 512,
message: '配置值长度不能大于512位'
maxLength: 1024,
message: '配置值长度不能大于1024位'
}] as FieldRule[];
export const label = [{