1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-31 22:18:07 +08:00

feat: 增加默认值显示

This commit is contained in:
zhengkunwang223 2022-12-26 13:56:23 +08:00 committed by zhengkunwang223
parent 98fd2f614a
commit 3c5ab1c68a
2 changed files with 13 additions and 8 deletions

View File

@ -930,6 +930,10 @@ export default {
provider: '类型',
manualCreate: '手动创建',
acmeAccount: 'Acme 账号',
resolveDomain: '解析域名',
err: '错误',
value: '记录值',
type: '类型',
},
firewall: {
ccDeny: 'CC 防护',

View File

@ -51,14 +51,16 @@
<el-form-item v-if="dnsResolve.length > 0">
<div v-for="(re, index) in dnsResolve" :key="index">
<el-descriptions direction="vertical" :column="4" border>
<el-descriptions-item label="域名">{{ re.domain }}</el-descriptions-item>
<el-descriptions-item :label="$t('website.domain')">{{ re.domain }}</el-descriptions-item>
<div v-if="re.err != ''">
<el-descriptions-item label="错误">{{ re.err }}</el-descriptions-item>
<el-descriptions-item :label="$t('ssl.err')">{{ re.err }}</el-descriptions-item>
</div>
<div v-else>
<el-descriptions-item label="解析域名">{{ re.resolve }}</el-descriptions-item>
<el-descriptions-item label="记录值">{{ re.value }}</el-descriptions-item>
<el-descriptions-item label="类型">TXT</el-descriptions-item>
<el-descriptions-item :label="$t('ssl.resolveDomain')">
{{ re.resolve }}
</el-descriptions-item>
<el-descriptions-item :label="$t('ssl.value')">{{ re.value }}</el-descriptions-item>
<el-descriptions-item :label="$t('ssl.type')">TXT</el-descriptions-item>
</div>
</el-descriptions>
</div>
@ -137,15 +139,14 @@ const resetForm = () => {
otherDomains: '',
provider: 'dnsAccount',
websiteId: 0,
acmeAccountId: 0,
dnsAccountId: 0,
acmeAccountId: undefined,
dnsAccountId: undefined,
};
};
const acceptParams = () => {
resetForm();
ssl.value.websiteId = Number(id.value);
// getWebsite(id.value);
getAcmeAccounts();
getDnsAccounts();
open.value = true;