fix: 修复系统变量显示问题

This commit is contained in:
taojinlong
2024-06-04 15:41:17 +08:00
parent a366d8d39c
commit dab153631d
5 changed files with 45 additions and 1 deletions

View File

@@ -2222,6 +2222,7 @@ export default {
dsExecuteTime: '数据源检测频率',
frontTimeOut: '请求超时时间(秒)',
logLiveTime: '操作日志保留时间(天)',
exportFileLiveTime: '后台导出文件保留时间(天)',
platformOid: '第三方平台用户组织',
platformRid: '第三方平台用户角色',
pwdStrategy: '开启密码策略',

View File

@@ -125,6 +125,15 @@ const edit = (list, orgOptions, roleOptions) => {
}
]
}
if (pkey === 'basic.exportFileLiveTime') {
rule[pkey.split('.')[1]] = [
{
required: true,
message: t('common.require'),
trigger: ['blur', 'change']
}
]
}
item['label'] = `setting_${pkey}`
item['pkey'] = pkey.split('.')[1]
let pval = item.pval
@@ -301,6 +310,19 @@ defineExpose({
/>
</el-select>
</div>
<div v-else-if="item.pkey === 'exportFileLiveTime'">
<el-input-number
v-model="state.form[item.pkey]"
autocomplete="off"
step-strictly
class="text-left edit-all-line"
:min="1"
:max="4000"
:placeholder="t('common.inputText')"
controls-position="right"
type="number"
/>
</div>
<v-else />
</el-form-item>
</el-form>

View File

@@ -458,7 +458,7 @@ defineExpose({
</div>
<el-form-item :label="$t('datasource.query_timeout')" prop="apiQueryTimeout">
<el-input v-model="apiItem.apiQueryTimeout" autocomplete="off" type="number" :min="0">
<template v-slot:append>{{ $t('panel.second') }}</template>
<template v-slot:append>{{ $t('chart.second') }}</template>
</el-input>
</el-form-item>
<div class="title-form_primary request-info">