订阅修改
This commit is contained in:
@@ -23,9 +23,9 @@ const subscribeTypeOptions = [
|
|||||||
{ name: '短信', value: 'mobileSwitch', id: 1 },
|
{ name: '短信', value: 'mobileSwitch', id: 1 },
|
||||||
{ name: '邮件', value: 'emailSwitch', id: 2 },
|
{ name: '邮件', value: 'emailSwitch', id: 2 },
|
||||||
{ name: '站内通知', value: 'webSwitch', id: 3 },
|
{ name: '站内通知', value: 'webSwitch', id: 3 },
|
||||||
];
|
];
|
||||||
const props = defineProps(['softwareData']);
|
const props = defineProps(['softwareData']);
|
||||||
const emit = defineEmits(['close']);
|
const emit = defineEmits(['close','closeSub']);
|
||||||
const formRef = ref(null);
|
const formRef = ref(null);
|
||||||
const formData = ref({
|
const formData = ref({
|
||||||
subscribeType: [],
|
subscribeType: [],
|
||||||
@@ -59,6 +59,7 @@ const sendSubscribe = async () => {
|
|||||||
type: 'success'
|
type: 'success'
|
||||||
})
|
})
|
||||||
emit('close');
|
emit('close');
|
||||||
|
emit('closeSub');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const confirm = () => {
|
const confirm = () => {
|
||||||
@@ -74,7 +75,7 @@ const confirm = () => {
|
|||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
.subscribe-container {
|
.subscribe-container {
|
||||||
width: 600px;
|
width: 600px;
|
||||||
|
|
||||||
.subscribe-tip {
|
.subscribe-tip {
|
||||||
color: #191919;
|
color: #191919;
|
||||||
font-family: HarmonyOS Sans SC;
|
font-family: HarmonyOS Sans SC;
|
||||||
@@ -98,4 +99,4 @@ const confirm = () => {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
<span>订阅漏洞预警通知</span>
|
<span>订阅漏洞预警通知</span>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<SubscriptionModal @close="colseSubscription" :softwareData="{id: softwareId}"></SubscriptionModal>
|
<SubscriptionModal @closeSub="isSub = true;" @close="colseSubscription" :softwareData="{id: softwareId}"></SubscriptionModal>
|
||||||
</d-modal>
|
</d-modal>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -201,7 +201,6 @@ const signCla = (row: any) => {
|
|||||||
|
|
||||||
const subscribeModalVisable = ref(false);
|
const subscribeModalVisable = ref(false);
|
||||||
const openSubscription = () => {
|
const openSubscription = () => {
|
||||||
isSub.value = true;
|
|
||||||
subscribeModalVisable.value = true;
|
subscribeModalVisable.value = true;
|
||||||
};
|
};
|
||||||
const colseSubscription = () => {
|
const colseSubscription = () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user