From aafa5d5f9047150ba3fcc3e9572e0ca1704fb0cd Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Mon, 9 Dec 2024 01:24:56 +0800 Subject: [PATCH] chore: 1 --- docker/run/docker-compose.yaml | 1 - packages/ui/certd-client/package.json | 8 ++++---- .../certd-client/src/views/certd/notification/common.tsx | 5 ++++- .../certd-client/src/views/certd/notification/index.vue | 2 ++ .../certd/notification/notification-selector/index.vue | 9 ++++++++- .../src/views/certd/pipeline/certd-form/crud.tsx | 9 +++++---- packages/ui/certd-server/src/config/config.default.ts | 2 +- 7 files changed, 24 insertions(+), 12 deletions(-) diff --git a/docker/run/docker-compose.yaml b/docker/run/docker-compose.yaml index 0a8f82c3..09f8f2b3 100644 --- a/docker/run/docker-compose.yaml +++ b/docker/run/docker-compose.yaml @@ -23,7 +23,6 @@ services: # # ↓↓↓↓ --------------------------------------------------------- 如果你服务器部署在国外,可以用这个替换上面阿里云的公共dns # - 8.8.8.8 # 谷歌公共dns # - 8.8.4.4 - # extra_hosts: # # ↓↓↓↓ -------------------------------------------------------- 这里可以配置自定义hosts,外网域名可以指向本地局域网ip地址 # - "localdomain.comm:192.168.1.3" diff --git a/packages/ui/certd-client/package.json b/packages/ui/certd-client/package.json index d7f5ab37..fbf3660c 100644 --- a/packages/ui/certd-client/package.json +++ b/packages/ui/certd-client/package.json @@ -26,10 +26,10 @@ "dependencies": { "@ant-design/colors": "^7.0.2", "@ant-design/icons-vue": "^6.1.0", - "@fast-crud/fast-crud": "^1.23.1", - "@fast-crud/fast-extends": "^1.23.1", - "@fast-crud/ui-antdv4": "^1.23.1", - "@fast-crud/ui-interface": "^1.23.1", + "@fast-crud/fast-crud": "^1.23.4", + "@fast-crud/fast-extends": "^1.23.4", + "@fast-crud/ui-antdv4": "^1.23.4", + "@fast-crud/ui-interface": "^1.23.4", "@iconify/vue": "^4.1.1", "@soerenmartius/vue3-clipboard": "^0.1.2", "@vue-js-cron/light": "^4.0.5", diff --git a/packages/ui/certd-client/src/views/certd/notification/common.tsx b/packages/ui/certd-client/src/views/certd/notification/common.tsx index 15cdb65a..2127c249 100644 --- a/packages/ui/certd-client/src/views/certd/notification/common.tsx +++ b/packages/ui/certd-client/src/views/certd/notification/common.tsx @@ -6,11 +6,14 @@ import { Modal } from "ant-design-vue"; import * as api from "/@/views/sys/cname/provider/api"; import { mitter } from "/@/utils/util.mitt"; -export function getCommonColumnDefine(crudExpose: any, typeRef: any, api: any) { +export function notificationProvide(api: any) { provide("notificationApi", api); provide("get:plugin:type", () => { return "notification"; }); +} + +export function getCommonColumnDefine(crudExpose: any, typeRef: any, api: any) { const notificationTypeDictRef = dict({ url: "/pi/notification/getTypeDict" }); diff --git a/packages/ui/certd-client/src/views/certd/notification/index.vue b/packages/ui/certd-client/src/views/certd/notification/index.vue index 64ff6182..b78b19bd 100644 --- a/packages/ui/certd-client/src/views/certd/notification/index.vue +++ b/packages/ui/certd-client/src/views/certd/notification/index.vue @@ -15,11 +15,13 @@ import { defineComponent, onActivated, onMounted } from "vue"; import { useFs } from "@fast-crud/fast-crud"; import createCrudOptions from "./crud"; import { createNotificationApi } from "./api"; +import { notificationProvide } from "/@/views/certd/notification/common"; export default defineComponent({ name: "NotificationManager", setup() { const api = createNotificationApi(); + notificationProvide(api); const { crudBinding, crudRef, crudExpose } = useFs({ createCrudOptions, context: { api } }); // 页面打开后获取列表数据 diff --git a/packages/ui/certd-client/src/views/certd/notification/notification-selector/index.vue b/packages/ui/certd-client/src/views/certd/notification/notification-selector/index.vue index f6297f5c..782255dc 100644 --- a/packages/ui/certd-client/src/views/certd/notification/notification-selector/index.vue +++ b/packages/ui/certd-client/src/views/certd/notification/notification-selector/index.vue @@ -29,7 +29,9 @@ :show-select="false" :dialog="{ width: 960 }" :destroy-on-close="false" + height="400px" @update:model-value="onChange" + @dialog-closed="doRefresh" >