feat: 主域名和代号保持一致

pull/48/head
zhengkunwang223 2022-11-25 15:47:23 +08:00 committed by zhengkunwang223
parent 9f7c6b07e2
commit 324903f7a0
3 changed files with 7 additions and 8 deletions

View File

@ -696,7 +696,7 @@ export default {
otherDomains: '',
type: '',
static: '',
deployment: '',
deployment: '',
proxy: '',
alias: '',
remark: '',

View File

@ -83,7 +83,7 @@
</div>
</div>
<el-form-item :label="$t('website.primaryDomain')" prop="primaryDomain">
<el-input v-model="website.primaryDomain"></el-input>
<el-input v-model="website.primaryDomain" @input="changeAlias(website.primaryDomain)"></el-input>
</el-form-item>
<el-form-item :label="$t('website.otherDomains')" prop="otherDomains">
<el-input
@ -129,7 +129,7 @@ const website = ref({
alias: '',
remark: '',
appType: 'installed',
appInstallId: 0,
appInstallId: undefined,
webSiteGroupId: 1,
otherDomains: '',
appinstall: {
@ -252,6 +252,10 @@ const submit = async (formEl: FormInstance | undefined) => {
});
};
const changeAlias = (value: string) => {
website.value.alias = value;
};
defineExpose({
acceptParams,
});

View File

@ -11,8 +11,6 @@
{{ $t('commons.button.create') }}
</el-button>
<el-button type="primary" plain @click="openGroup">{{ $t('website.group') }}</el-button>
<!-- <el-button type="primary" plain>{{ '修改默认页' }}</el-button>
<el-button type="primary" plain>{{ '默认站点' }}</el-button> -->
</template>
<el-table-column
:label="$t('commons.table.name')"
@ -25,17 +23,14 @@
</template>
</el-table-column>
<el-table-column :label="$t('commons.table.status')" prop="status"></el-table-column>
<!-- <el-table-column :label="'备份'" prop="backup"></el-table-column> -->
<el-table-column :label="$t('website.remark')" prop="remark"></el-table-column>
<el-table-column :label="$t('website.protocol')" prop="protocol"></el-table-column>
<el-table-column :label="$t('website.expireDate')">
<template #default="{ row }">
<span v-if="row.protocol === 'HTTP'">{{ $t('website.neverExpire') }}</span>
<!-- <span v-else>{{ row.webSiteSSL.id }}</span> -->
<span v-else>{{ dateFromat(1, 1, row.webSiteSSL.expireDate) }}</span>
</template>
</el-table-column>
<!-- <el-table-column :label="'SSL证书'" prop="ssl"></el-table-column> -->
<fu-table-operations
:ellipsis="1"
:buttons="buttons"