⚡ 修改字典值长度.
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<a-modal v-model:visible="visible"
|
<a-modal v-model:visible="visible"
|
||||||
body-class="modal-form-large"
|
modal-class="modal-form-large"
|
||||||
title-align="start"
|
title-align="start"
|
||||||
:title="title"
|
:title="title"
|
||||||
:top="80"
|
:top="80"
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ public class HostTerminalManager {
|
|||||||
*
|
*
|
||||||
* @param channelId channelId
|
* @param channelId channelId
|
||||||
* @param sessionId sessionId
|
* @param sessionId sessionId
|
||||||
* @param T T
|
* @param <T> T
|
||||||
* @return session
|
* @return session
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ public class HostTerminalServiceImpl implements HostTerminalService {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getTerminalAccessToken() {
|
public String getTerminalAccessToken() {
|
||||||
LoginUser user = SecurityUtils.getLoginUser();
|
LoginUser user = Valid.notNull(SecurityUtils.getLoginUser());
|
||||||
log.info("HostConnectService.getHostAccessToken userId: {}", user.getId());
|
log.info("HostConnectService.getHostAccessToken userId: {}", user.getId());
|
||||||
String accessToken = UUIds.random19();
|
String accessToken = UUIds.random19();
|
||||||
HostTerminalAccessDTO access = HostTerminalAccessDTO.builder()
|
HostTerminalAccessDTO access = HostTerminalAccessDTO.builder()
|
||||||
|
|||||||
@@ -30,7 +30,6 @@ public class DictValueCreateRequest implements Serializable {
|
|||||||
private Long keyId;
|
private Long keyId;
|
||||||
|
|
||||||
@NotBlank
|
@NotBlank
|
||||||
@Size(max = 512)
|
|
||||||
@Schema(description = "配置值")
|
@Schema(description = "配置值")
|
||||||
private String value;
|
private String value;
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,6 @@ public class DictValueQueryRequest extends PageRequest {
|
|||||||
@Schema(description = "配置项名称")
|
@Schema(description = "配置项名称")
|
||||||
private String keyName;
|
private String keyName;
|
||||||
|
|
||||||
@Size(max = 512)
|
|
||||||
@Schema(description = "配置值")
|
@Schema(description = "配置值")
|
||||||
private String value;
|
private String value;
|
||||||
|
|
||||||
|
|||||||
@@ -34,7 +34,6 @@ public class DictValueUpdateRequest implements Serializable {
|
|||||||
private Long keyId;
|
private Long keyId;
|
||||||
|
|
||||||
@NotBlank
|
@NotBlank
|
||||||
@Size(max = 512)
|
|
||||||
@Schema(description = "配置值")
|
@Schema(description = "配置值")
|
||||||
private String value;
|
private String value;
|
||||||
|
|
||||||
|
|||||||
@@ -24,14 +24,14 @@
|
|||||||
label="配置项">
|
label="配置项">
|
||||||
<dict-key-selector v-model="formModel.keyId" @change="changeKey" />
|
<dict-key-selector v-model="formModel.keyId" @change="changeKey" />
|
||||||
</a-form-item>
|
</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-form-item field="label" label="配置描述">
|
||||||
<a-input v-model="formModel.label" placeholder="请输入配置描述" allow-clear />
|
<a-input v-model="formModel.label" placeholder="请输入配置描述" allow-clear />
|
||||||
</a-form-item>
|
</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-form-item field="sort" label="排序">
|
||||||
<a-input-number v-model="formModel.sort"
|
<a-input-number v-model="formModel.sort"
|
||||||
|
|||||||
@@ -88,7 +88,7 @@
|
|||||||
<span class="copy-left" title="复制" @click="copy(record.value)">
|
<span class="copy-left" title="复制" @click="copy(record.value)">
|
||||||
<icon-copy />
|
<icon-copy />
|
||||||
</span>
|
</span>
|
||||||
<a-tooltip :content="record.value">
|
<a-tooltip position="tl" :content="record.value">
|
||||||
<span>{{ record.value }}</span>
|
<span>{{ record.value }}</span>
|
||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
</template>
|
</template>
|
||||||
@@ -146,13 +146,13 @@
|
|||||||
|
|
||||||
const emits = defineEmits(['openAdd', 'openUpdate', 'openHistory']);
|
const emits = defineEmits(['openAdd', 'openUpdate', 'openHistory']);
|
||||||
|
|
||||||
const selectedKeys = ref<number[]>([]);
|
|
||||||
const tableRenderData = ref<DictValueQueryResponse[]>([]);
|
|
||||||
|
|
||||||
const pagination = usePagination();
|
const pagination = usePagination();
|
||||||
const rowSelection = useRowSelection();
|
const rowSelection = useRowSelection();
|
||||||
const { loading, setLoading } = useLoading();
|
const { loading, setLoading } = useLoading();
|
||||||
|
|
||||||
|
const selectedKeys = ref<Array<number>>([]);
|
||||||
|
const tableRenderData = ref<Array<DictValueQueryResponse>>([]);
|
||||||
|
|
||||||
const formModel = reactive<DictValueQueryRequest>({
|
const formModel = reactive<DictValueQueryRequest>({
|
||||||
keyId: undefined,
|
keyId: undefined,
|
||||||
keyName: undefined,
|
keyName: undefined,
|
||||||
@@ -178,13 +178,11 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
// 删除当前行
|
// 删除当前行
|
||||||
const deleteRow = async ({ id }: {
|
const deleteRow = async (record: DictValueQueryResponse) => {
|
||||||
id: number
|
|
||||||
}) => {
|
|
||||||
try {
|
try {
|
||||||
setLoading(true);
|
setLoading(true);
|
||||||
// 调用删除接口
|
// 调用删除接口
|
||||||
await deleteDictValue(id);
|
await deleteDictValue(record.id);
|
||||||
Message.success('删除成功');
|
Message.success('删除成功');
|
||||||
// 重新加载数据
|
// 重新加载数据
|
||||||
fetchTableData();
|
fetchTableData();
|
||||||
|
|||||||
@@ -17,8 +17,8 @@ export const value = [{
|
|||||||
required: true,
|
required: true,
|
||||||
message: '请输入配置值'
|
message: '请输入配置值'
|
||||||
}, {
|
}, {
|
||||||
maxLength: 512,
|
maxLength: 1024,
|
||||||
message: '配置值长度不能大于512位'
|
message: '配置值长度不能大于1024位'
|
||||||
}] as FieldRule[];
|
}] as FieldRule[];
|
||||||
|
|
||||||
export const label = [{
|
export const label = [{
|
||||||
|
|||||||
Reference in New Issue
Block a user