mirror of
https://github.com/certd/certd.git
synced 2026-04-24 20:57:26 +08:00
chore: zindex
This commit is contained in:
@@ -16,14 +16,7 @@
|
|||||||
<template v-if="search">
|
<template v-if="search">
|
||||||
<div class="flex w-full items-center justify-between flex-wrap" style="padding: 4px 8px">
|
<div class="flex w-full items-center justify-between flex-wrap" style="padding: 4px 8px">
|
||||||
<div class="flex-1 flex flex-row items-center">
|
<div class="flex-1 flex flex-row items-center">
|
||||||
<a-input
|
<a-input ref="inputRef" v-model:value="searchKeyRef" class="flex-1" allow-clear placeholder="这里可以搜索域名(数据来自“设置->域名管理”),您也可以直接在上面输入框输入" @keydown.enter="doSearch" />
|
||||||
ref="inputRef"
|
|
||||||
v-model:value="searchKeyRef"
|
|
||||||
class="flex-1"
|
|
||||||
allow-clear
|
|
||||||
placeholder="这里可以搜索域名(数据来自“设置->域名管理”),列表中没有的域名可以直接在上面输入框输入"
|
|
||||||
@keydown.enter="doSearch"
|
|
||||||
/>
|
|
||||||
<fs-button type="primary" class="m-1" :loading="loading" icon="mingcute:search-2-line" @click="doSearch"> 查询 </fs-button>
|
<fs-button type="primary" class="m-1" :loading="loading" icon="mingcute:search-2-line" @click="doSearch"> 查询 </fs-button>
|
||||||
</div>
|
</div>
|
||||||
<div class="manager flex flex-row items-center">
|
<div class="manager flex flex-row items-center">
|
||||||
@@ -203,7 +196,6 @@ function openDomainManager(e: any) {
|
|||||||
const openDomainImportManageDialog = useDomainImportManage();
|
const openDomainImportManageDialog = useDomainImportManage();
|
||||||
function openDomainImportDialog() {
|
function openDomainImportDialog() {
|
||||||
openDomainImportManageDialog({
|
openDomainImportManageDialog({
|
||||||
zIndex: 2060,
|
|
||||||
afterSubmit: res => {
|
afterSubmit: res => {
|
||||||
refreshOptions();
|
refreshOptions();
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="domain-import-task-status min-h-[300px]">
|
<div class="domain-import-task-status min-h-[300px]">
|
||||||
<div class="action mb-5">
|
<div class="action mb-5">
|
||||||
<fs-button type="primary" icon="ion:add-outline" @click="addTask">添加导入任务</fs-button>
|
<fs-button type="primary" icon="mingcute:vip-1-line" @click="addTask">添加导入任务</fs-button>
|
||||||
<fs-button type="primary" icon="ion:refresh-outline" class="ml-2" @click="loadImportTaskStatus">刷新</fs-button>
|
<fs-button type="primary" icon="ion:refresh-outline" class="ml-2" @click="loadImportTaskStatus">刷新</fs-button>
|
||||||
</div>
|
</div>
|
||||||
<div class="table-container overflow-auto mb-10">
|
<div class="table-container overflow-auto mb-10">
|
||||||
@@ -53,11 +53,11 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
import { Modal } from "ant-design-vue";
|
||||||
import { onMounted, onUnmounted, ref } from "vue";
|
import { onMounted, onUnmounted, ref } from "vue";
|
||||||
import * as api from "./api";
|
import * as api from "./api";
|
||||||
import { Modal } from "ant-design-vue";
|
|
||||||
import { useDomainImport } from "./use";
|
import { useDomainImport } from "./use";
|
||||||
import { Dicts } from "/@/components/plugins/lib/dicts";
|
import { useSettingStore } from "/@/store/settings";
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: "DomainImportTaskStatus",
|
name: "DomainImportTaskStatus",
|
||||||
});
|
});
|
||||||
@@ -70,6 +70,7 @@ async function loadImportTaskStatus() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function startTask(item: any) {
|
async function startTask(item: any) {
|
||||||
|
settingStore.checkPlus();
|
||||||
await api.ImportTaskStart(item.key);
|
await api.ImportTaskStart(item.key);
|
||||||
await loadImportTaskStatus();
|
await loadImportTaskStatus();
|
||||||
}
|
}
|
||||||
@@ -87,8 +88,9 @@ async function deleteTask(item: any) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const openDomainImportDialog = useDomainImport();
|
const openDomainImportDialog = useDomainImport();
|
||||||
|
const settingStore = useSettingStore();
|
||||||
async function addTask() {
|
async function addTask() {
|
||||||
|
settingStore.checkPlus();
|
||||||
await openDomainImportDialog({
|
await openDomainImportDialog({
|
||||||
afterSubmit: async (res?: any) => {
|
afterSubmit: async (res?: any) => {
|
||||||
if (res) {
|
if (res) {
|
||||||
@@ -100,6 +102,7 @@ async function addTask() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function editTask(item: any) {
|
async function editTask(item: any) {
|
||||||
|
settingStore.checkPlus();
|
||||||
await openDomainImportDialog({
|
await openDomainImportDialog({
|
||||||
afterSubmit: async () => {
|
afterSubmit: async () => {
|
||||||
await loadImportTaskStatus();
|
await loadImportTaskStatus();
|
||||||
|
|||||||
@@ -75,7 +75,6 @@ export function useDomainImportManage() {
|
|||||||
const { openFormDialog } = useFormDialog();
|
const { openFormDialog } = useFormDialog();
|
||||||
const settingStore = useSettingStore();
|
const settingStore = useSettingStore();
|
||||||
return async function openDomainImportManageDialog(req: { afterSubmit?: (res?: any) => void; form?: any; zIndex?: number }) {
|
return async function openDomainImportManageDialog(req: { afterSubmit?: (res?: any) => void; form?: any; zIndex?: number }) {
|
||||||
settingStore.checkPlus();
|
|
||||||
await openFormDialog({
|
await openFormDialog({
|
||||||
title: "从域名提供商导入域名",
|
title: "从域名提供商导入域名",
|
||||||
body: () => {
|
body: () => {
|
||||||
|
|||||||
@@ -82,11 +82,11 @@ export class DomainController extends CrudController<DomainService> {
|
|||||||
|
|
||||||
@Post('/import/start', { summary: Constants.per.authOnly })
|
@Post('/import/start', { summary: Constants.per.authOnly })
|
||||||
async importStart(@Body(ALL) body: any) {
|
async importStart(@Body(ALL) body: any) {
|
||||||
|
checkPlus();
|
||||||
const { key } = body;
|
const { key } = body;
|
||||||
const req = {
|
const req = {
|
||||||
key, userId: this.getUserId(),
|
key, userId: this.getUserId(),
|
||||||
}
|
}
|
||||||
checkPlus()
|
|
||||||
await this.service.startDomainImportTask(req);
|
await this.service.startDomainImportTask(req);
|
||||||
return this.ok();
|
return this.ok();
|
||||||
}
|
}
|
||||||
@@ -114,6 +114,7 @@ export class DomainController extends CrudController<DomainService> {
|
|||||||
|
|
||||||
@Post('/import/save', { summary: Constants.per.authOnly })
|
@Post('/import/save', { summary: Constants.per.authOnly })
|
||||||
async importSave(@Body(ALL) body: any) {
|
async importSave(@Body(ALL) body: any) {
|
||||||
|
checkPlus();
|
||||||
const { dnsProviderType, dnsProviderAccessId, key } = body;
|
const { dnsProviderType, dnsProviderAccessId, key } = body;
|
||||||
const req = {
|
const req = {
|
||||||
userId: this.getUserId(),
|
userId: this.getUserId(),
|
||||||
|
|||||||
Reference in New Issue
Block a user