From afab3a98a65f7fb4f342251238ab3c329e4242dd Mon Sep 17 00:00:00 2001
From: inleft <inleft@qq.com>
Date: Tue, 30 Aug 2022 18:44:23 +0800
Subject: [PATCH] 调整统计脚本渲染逻辑 新增自定义表情组件

---
 src/components/group/MyModal.vue |   20 ++++++++++++++------
 1 files changed, 14 insertions(+), 6 deletions(-)

diff --git a/src/components/group/MyModal.vue b/src/components/group/MyModal.vue
index 9330fcf..bd193de 100644
--- a/src/components/group/MyModal.vue
+++ b/src/components/group/MyModal.vue
@@ -1,7 +1,7 @@
 <template>
-	<div class="myModal" ref="test">
-		<a-modal v-drag-modal v-model="visible" title="日志添加" on-ok="handleOk"
-			:bodyStyle="{'overflow':'overlay','maxHeight': '550px'}">
+	<div class="myModal">
+		<a-modal v-drag-modal ref="blogAddModal" v-model="visible" title="日志添加" on-ok="handleOk"
+			:bodyStyle="{'overflow':'overlay','maxHeight': '550px'}" :destroyOnClose="destroyOnClose">
 			<template slot="footer">
 				<a-button key="reset" @click="reset" type="danger">
 					擦掉重来
@@ -34,6 +34,7 @@
 			return {
 				visible: false,
 				loading: false,
+				destroyOnClose: false,
 			}
 		},
 		methods: {
@@ -61,6 +62,7 @@
 
 				let tempData = this.$refs.modalBox.form;
 				var param = {
+					introduce: tempData.introduce,
 					secret: tempData.secret,
 					title: tempData.title,
 					articleTypeId: tempData.class,
@@ -68,15 +70,16 @@
 					articleFileId: tempData.fileId,
 					content: tempData.content,
 					articleFileType: tempData.blogType,
-					introduce: "",
 					coverFileId: tempData.coverFile,
+					pictureIds: tempData.pictureIds,
+					videoIds: tempData.videoIds,
 					publishDate: tempData.publishDate,
 					isTop: tempData.top ? 1 : 0,
 					topValue: tempData.sliderValue,
 					isLock: tempData.lock ? 1 : 0,
 					authStatus: tempData.auth,
 					authPassword: tempData.password == "" ? null : md5(tempData.password),
-					editorStatus: !tempData.tempSave?1:0
+					editorStatus: !tempData.tempSave ? 1 : 0
 				}
 				console.log(param)
 				this.loading = true;
@@ -91,8 +94,13 @@
 				// }, 3000);
 			},
 			reset(e) {
-				var res = this.$refs.modalBox.$refs.myForm.resetFields();
+				// var res = this.$refs.modalBox.$refs.myForm.resetFields();
 				//this.$refs.modalBox.reset();
+				this.destroyOnClose = true;
+				this.visible = false;
+				setTimeout(() => {
+					this.destroyOnClose = false;
+				}, 500)
 			},
 			handleCancel(e) {
 				this.visible = false;

--
Gitblit v1.9.1