优化网站导航模块

This commit is contained in:
2024-08-23 22:28:24 +08:00
parent 1d81fa9270
commit 13832d9de0
964 changed files with 90774 additions and 31362 deletions
@@ -91,21 +91,13 @@
<span v-if="form.version === 20">授权版</span>
<span v-if="form.version === 30">永久授权</span>
</a-form-item>
<a-form-item label="排序" name="sortNumber">
<a-input-number
:min="0"
:max="9999"
class="ele-fluid"
placeholder="请输入排序号"
v-model:value="form.sortNumber"
/>
<a-form-item label="状态" name="status">
<a-radio-group v-model:value="form.status">
<a-radio :value="0">运行中</a-radio>
<a-radio :value="1">维护中</a-radio>
<a-radio :value="2">已关闭</a-radio>
</a-radio-group>
</a-form-item>
<!-- <a-form-item label="状态" name="status">-->
<!-- <a-radio-group v-model:value="form.status">-->
<!-- <a-radio :value="0">正常</a-radio>-->
<!-- <a-radio :value="1">已过期</a-radio>-->
<!-- </a-radio-group>-->
<!-- </a-form-item>-->
</a-form>
</ele-modal>
</template>
@@ -287,6 +279,7 @@
loading.value = false;
message.success(msg);
updateVisible(false);
localStorage.setItem('Domain',`${form.prefix}${form.domain}`);
emit('done');
})
.catch((e) => {
+6 -2
View File
@@ -52,7 +52,9 @@
</template>
<template v-if="column.key === 'action'">
<a-space>
<a-button type="primary" ghost @click="openUrl(`${record.prefix}${record.adminUrl}`)">进入后台</a-button>
<a @click="openUrl(`${record.prefix}${record.domain}`)">首页</a>
<a-divider type="vertical" />
<a @click="openUrl(record.adminUrl)">后台</a>
</a-space>
</template>
</template>
@@ -84,7 +86,8 @@
updateWebsite
} from '@/api/cms/website';
import type { Website, WebsiteParam } from '@/api/cms/website/model';
import { openUrl } from '@/utils/common';
import { openPreview, openUrl } from '@/utils/common';
import { getSiteDomain } from '@/utils/domain';
// 表格实例
const tableRef = ref<InstanceType<typeof EleProTable> | null>(null);
@@ -99,6 +102,7 @@
const showMove = ref(false);
// 加载状态
const loading = ref(true);
const domain = getSiteDomain();
// 表格数据源
const datasource: DatasourceFunction = ({