chore: zindex

This commit is contained in:
xiaojunnuo
2026-01-25 23:08:42 +08:00
parent 40be42406c
commit 64a314c19e
4 changed files with 10 additions and 15 deletions

View File

@@ -16,14 +16,7 @@
<template v-if="search">
<div class="flex w-full items-center justify-between flex-wrap" style="padding: 4px 8px">
<div class="flex-1 flex flex-row items-center">
<a-input
ref="inputRef"
v-model:value="searchKeyRef"
class="flex-1"
allow-clear
placeholder="这里可以搜索域名(数据来自“设置->域名管理”),列表中没有的域名可以直接在上面输入框输入"
@keydown.enter="doSearch"
/>
<a-input 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>
</div>
<div class="manager flex flex-row items-center">
@@ -203,7 +196,6 @@ function openDomainManager(e: any) {
const openDomainImportManageDialog = useDomainImportManage();
function openDomainImportDialog() {
openDomainImportManageDialog({
zIndex: 2060,
afterSubmit: res => {
refreshOptions();
},

View File

@@ -1,7 +1,7 @@
<template>
<div class="domain-import-task-status min-h-[300px]">
<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>
</div>
<div class="table-container overflow-auto mb-10">
@@ -53,11 +53,11 @@
</template>
<script setup lang="ts">
import { Modal } from "ant-design-vue";
import { onMounted, onUnmounted, ref } from "vue";
import * as api from "./api";
import { Modal } from "ant-design-vue";
import { useDomainImport } from "./use";
import { Dicts } from "/@/components/plugins/lib/dicts";
import { useSettingStore } from "/@/store/settings";
defineOptions({
name: "DomainImportTaskStatus",
});
@@ -70,6 +70,7 @@ async function loadImportTaskStatus() {
}
async function startTask(item: any) {
settingStore.checkPlus();
await api.ImportTaskStart(item.key);
await loadImportTaskStatus();
}
@@ -87,8 +88,9 @@ async function deleteTask(item: any) {
}
const openDomainImportDialog = useDomainImport();
const settingStore = useSettingStore();
async function addTask() {
settingStore.checkPlus();
await openDomainImportDialog({
afterSubmit: async (res?: any) => {
if (res) {
@@ -100,6 +102,7 @@ async function addTask() {
}
async function editTask(item: any) {
settingStore.checkPlus();
await openDomainImportDialog({
afterSubmit: async () => {
await loadImportTaskStatus();

View File

@@ -75,7 +75,6 @@ export function useDomainImportManage() {
const { openFormDialog } = useFormDialog();
const settingStore = useSettingStore();
return async function openDomainImportManageDialog(req: { afterSubmit?: (res?: any) => void; form?: any; zIndex?: number }) {
settingStore.checkPlus();
await openFormDialog({
title: "从域名提供商导入域名",
body: () => {

View File

@@ -82,11 +82,11 @@ export class DomainController extends CrudController<DomainService> {
@Post('/import/start', { summary: Constants.per.authOnly })
async importStart(@Body(ALL) body: any) {
checkPlus();
const { key } = body;
const req = {
key, userId: this.getUserId(),
}
checkPlus()
await this.service.startDomainImportTask(req);
return this.ok();
}
@@ -114,6 +114,7 @@ export class DomainController extends CrudController<DomainService> {
@Post('/import/save', { summary: Constants.per.authOnly })
async importSave(@Body(ALL) body: any) {
checkPlus();
const { dnsProviderType, dnsProviderAccessId, key } = body;
const req = {
userId: this.getUserId(),