mirror of
https://github.com/certd/certd.git
synced 2026-04-24 20:57:26 +08:00
chore: admin mode setting
This commit is contained in:
@@ -12,7 +12,7 @@
|
|||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
</template>
|
</template>
|
||||||
</fs-crud>
|
</fs-crud>
|
||||||
<AdminModeIntro v-if="!projectStore.isEnterprise"></AdminModeIntro>
|
<AdminModeIntro v-if="!projectStore.isEnterprise" title="当前为SaaS管理模式,项目管理需要切换到企业模式" :open="true"></AdminModeIntro>
|
||||||
</fs-page>
|
</fs-page>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="admin-mode-intro">
|
<div v-if="open" class="admin-mode-intro" :style="fixed ? 'position: fixed;' : 'position: absolute;'">
|
||||||
<div class="mask">
|
<div class="mask" @click="close()">
|
||||||
<div class="intro-content">
|
<div class="intro-content">
|
||||||
<h2 class="intro-title text-xl font-bold">当前为SaaS管理模式,项目管理需要切换到企业模式</h2>
|
<h2 class="intro-title text-xl font-bold">{{ title || "管理模式介绍" }}</h2>
|
||||||
<div class="mt-8 image-block">
|
<div class="mt-8 image-block">
|
||||||
<div class="flex gap-8">
|
<div class="flex gap-8">
|
||||||
<div class="intro-desc flex-1">SaaS模式:每个用户管理自己的流水线和授权资源,独立使用。</div>
|
<div class="intro-desc flex-1">SaaS模式:每个用户管理自己的流水线和授权资源,独立使用。</div>
|
||||||
@@ -22,12 +22,23 @@
|
|||||||
|
|
||||||
<script setup lang="tsx">
|
<script setup lang="tsx">
|
||||||
import { ref } from "vue";
|
import { ref } from "vue";
|
||||||
import { useI18n } from "/src/locales";
|
|
||||||
import { useRouter } from "vue-router";
|
import { useRouter } from "vue-router";
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: "AdminModeIntro",
|
name: "AdminModeIntro",
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const props = defineProps<{
|
||||||
|
title?: string;
|
||||||
|
open?: boolean;
|
||||||
|
fixed?: boolean;
|
||||||
|
}>();
|
||||||
|
|
||||||
|
const emit = defineEmits(["update:open"]);
|
||||||
|
|
||||||
|
function close() {
|
||||||
|
emit("update:open", false);
|
||||||
|
}
|
||||||
|
|
||||||
const src = ref("static/images/ent/admin_mode.png");
|
const src = ref("static/images/ent/admin_mode.png");
|
||||||
|
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
|||||||
@@ -8,12 +8,15 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="intro-desc helper">SaaS模式:每个用户管理自己的流水线和授权资源,独立使用。</div>
|
<div class="intro-desc helper">SaaS模式:每个用户管理自己的流水线和授权资源,独立使用。</div>
|
||||||
<div class="intro-desc helper">企业模式:企业内部员工使用,通过项目合作管理流水线证书和授权资源。</div>
|
<div class="intro-desc helper">企业模式:企业内部员工使用,通过项目合作管理流水线证书和授权资源。</div>
|
||||||
|
<div><a @click="adminModeIntroOpen = true"> 查看示意图</a></div>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
|
|
||||||
<a-form-item label=" " :colon="false" :wrapper-col="{ span: 8 }">
|
<a-form-item label=" " :colon="false" :wrapper-col="{ span: 8 }">
|
||||||
<a-button :loading="saveLoading" type="primary" html-type="submit">{{ t("certd.saveButton") }}</a-button>
|
<a-button :loading="saveLoading" type="primary" html-type="submit">{{ t("certd.saveButton") }}</a-button>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-form>
|
</a-form>
|
||||||
|
|
||||||
|
<AdminModeIntro v-model:open="adminModeIntroOpen" fixed></AdminModeIntro>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -27,12 +30,15 @@ import { notification } from "ant-design-vue";
|
|||||||
import { useI18n } from "/src/locales";
|
import { useI18n } from "/src/locales";
|
||||||
import { dict } from "@fast-crud/fast-crud";
|
import { dict } from "@fast-crud/fast-crud";
|
||||||
import { useProjectStore } from "/@/store/project";
|
import { useProjectStore } from "/@/store/project";
|
||||||
|
import AdminModeIntro from "/@/views/sys/enterprise/project/intro.vue";
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: "SettingMode",
|
name: "SettingMode",
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const adminModeIntroOpen = ref(false);
|
||||||
|
|
||||||
const adminModeDict = dict({
|
const adminModeDict = dict({
|
||||||
data: [
|
data: [
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user