54 lines
1.1 KiB
Vue
54 lines
1.1 KiB
Vue
<!-- 搜索表单 -->
|
|
<template>
|
|
<a-space style="flex-wrap: wrap" v-if="website">
|
|
<a-button class="ele-btn-icon" @click="edit">
|
|
<span>网站设置</span>
|
|
</a-button>
|
|
<a-button
|
|
class="ele-btn-icon"
|
|
@click="push(`/website/field/${website.websiteId}`)"
|
|
>
|
|
<span>参数配置</span>
|
|
</a-button>
|
|
<a-button
|
|
class="ele-btn-icon"
|
|
@click="push(`/website/domain/${website?.websiteId}`)"
|
|
>
|
|
<span>域名管理</span>
|
|
</a-button>
|
|
</a-space>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { watch } from 'vue';
|
|
import { CmsWebsite } from '@/api/cms/cmsWebsite/model';
|
|
import { push } from '@/utils/common';
|
|
|
|
const props = withDefaults(
|
|
defineProps<{
|
|
// 选中的角色
|
|
selection?: [];
|
|
website?: CmsWebsite;
|
|
count?: 0;
|
|
}>(),
|
|
{}
|
|
);
|
|
|
|
const emit = defineEmits<{
|
|
(e: 'add', data: CmsWebsite): void;
|
|
}>();
|
|
|
|
const add = () => {
|
|
emit('add');
|
|
};
|
|
|
|
const edit = () => {
|
|
emit('add', props.website);
|
|
};
|
|
|
|
watch(
|
|
() => props.selection,
|
|
() => {}
|
|
);
|
|
</script>
|