fix: 修复通知和触发器无法编辑的bug

pull/453/head
xiaojunnuo 2025-07-02 16:47:50 +08:00
parent 3c9a8a38dd
commit a2e0951042
2 changed files with 13 additions and 1 deletions

View File

@ -91,6 +91,7 @@ import { nanoid } from "nanoid";
import PiNotificationFormEmail from "./pi-notification-form-email.vue";
import NotificationSelector from "/@/views/certd/notification/notification-selector/index.vue";
import { useI18n } from "vue-i18n";
import { cloneDeep } from "lodash-es";
const { t } = useI18n();
@ -151,7 +152,7 @@ const notificationDrawerOnAfterVisibleChange = (val: any) => {
const notificationOpen = (notification: any, emit: any) => {
callback.value = emit;
currentNotification.value = _.cloneDeep(notification);
currentNotification.value = cloneDeep(notification);
console.log("currentNotificationOpen", currentNotification.value);
notificationDrawerShow();
};
@ -210,6 +211,16 @@ function onSelectedChange(node: any) {
const labelCol = { span: 6 };
const wrapperCol = { span: 16 };
defineExpose({
notificationAdd,
notificationEdit,
notificationView,
notificationDelete,
notificationSave,
notificationOpen,
notificationDrawerShow,
});
</script>
<style lang="less">

View File

@ -190,6 +190,7 @@ export default {
...useTriggerForm(),
labelCol: { span: 6 },
wrapperCol: { span: 16 },
t,
};
},
};