mirror of https://github.com/certd/certd
fix: 修复通知和触发器无法编辑的bug
parent
3c9a8a38dd
commit
a2e0951042
|
@ -91,6 +91,7 @@ import { nanoid } from "nanoid";
|
||||||
import PiNotificationFormEmail from "./pi-notification-form-email.vue";
|
import PiNotificationFormEmail from "./pi-notification-form-email.vue";
|
||||||
import NotificationSelector from "/@/views/certd/notification/notification-selector/index.vue";
|
import NotificationSelector from "/@/views/certd/notification/notification-selector/index.vue";
|
||||||
import { useI18n } from "vue-i18n";
|
import { useI18n } from "vue-i18n";
|
||||||
|
import { cloneDeep } from "lodash-es";
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
|
|
||||||
|
@ -151,7 +152,7 @@ const notificationDrawerOnAfterVisibleChange = (val: any) => {
|
||||||
|
|
||||||
const notificationOpen = (notification: any, emit: any) => {
|
const notificationOpen = (notification: any, emit: any) => {
|
||||||
callback.value = emit;
|
callback.value = emit;
|
||||||
currentNotification.value = _.cloneDeep(notification);
|
currentNotification.value = cloneDeep(notification);
|
||||||
console.log("currentNotificationOpen", currentNotification.value);
|
console.log("currentNotificationOpen", currentNotification.value);
|
||||||
notificationDrawerShow();
|
notificationDrawerShow();
|
||||||
};
|
};
|
||||||
|
@ -210,6 +211,16 @@ function onSelectedChange(node: any) {
|
||||||
|
|
||||||
const labelCol = { span: 6 };
|
const labelCol = { span: 6 };
|
||||||
const wrapperCol = { span: 16 };
|
const wrapperCol = { span: 16 };
|
||||||
|
|
||||||
|
defineExpose({
|
||||||
|
notificationAdd,
|
||||||
|
notificationEdit,
|
||||||
|
notificationView,
|
||||||
|
notificationDelete,
|
||||||
|
notificationSave,
|
||||||
|
notificationOpen,
|
||||||
|
notificationDrawerShow,
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less">
|
<style lang="less">
|
||||||
|
|
|
@ -190,6 +190,7 @@ export default {
|
||||||
...useTriggerForm(),
|
...useTriggerForm(),
|
||||||
labelCol: { span: 6 },
|
labelCol: { span: 6 },
|
||||||
wrapperCol: { span: 16 },
|
wrapperCol: { span: 16 },
|
||||||
|
t,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue