Просмотр исходного кода

后台管理相关(帖子举报页面完善,图片上传组件问题处理,点赞问题处理)

canghailong 7 месяцев назад
Родитель
Сommit
65df5f9481

+ 1 - 0
src/components/Comment/index.vue

@@ -103,6 +103,7 @@
 			)
 			)
 			.then((data) => {
 			.then((data) => {
 				item.isLike = l
 				item.isLike = l
+				emit('successful')
 			})
 			})
 	}
 	}
 	const showDeleteConfirm = (item) => {
 	const showDeleteConfirm = (item) => {

+ 40 - 39
src/components/UpLoadImg/index.vue

@@ -163,58 +163,59 @@ defineExpose({
 		display: flex;
 		display: flex;
 		align-items: center;
 		align-items: center;
 	}
 	}
+	
+}
+
+.cover-upload-row {
+	// display: flex;
+	// align-items: center;
 
 
-	.cover-upload-row {
+	.cover-upload-box {
+		width: 120px;
+		height: 120px;
+		background: #f7f8fa;
+		border-radius: 8px;
 		display: flex;
 		display: flex;
 		align-items: center;
 		align-items: center;
-
-		.cover-upload-box {
-			width: 120px;
-			height: 120px;
-			background: #f7f8fa;
+		justify-content: center;
+		margin-right: 24px;
+		border: 1px dashed #d9d9d9;
+		cursor: pointer;
+
+		.cover-img {
+			width: 100%;
+			height: 100%;
+			object-fit: cover;
 			border-radius: 8px;
 			border-radius: 8px;
+		}
+
+		.cover-placeholder {
 			display: flex;
 			display: flex;
 			align-items: center;
 			align-items: center;
 			justify-content: center;
 			justify-content: center;
-			margin-right: 24px;
-			border: 1px dashed #d9d9d9;
-			cursor: pointer;
-
-			.cover-img {
-				width: 100%;
-				height: 100%;
-				object-fit: cover;
-				border-radius: 8px;
-			}
-
-			.cover-placeholder {
-				display: flex;
-				align-items: center;
-				justify-content: center;
-				width: 100%;
-				height: 100%;
-				color: #bbb;
-				font-size: 32px;
-			}
-		}
-
-		.cover-tip {
-			color: #888;
-			font-size: 13px;
+			width: 100%;
+			height: 100%;
+			color: #bbb;
+			font-size: 32px;
 		}
 		}
 	}
 	}
 
 
-	.upload-tip {
+	.cover-tip {
 		color: #888;
 		color: #888;
 		font-size: 13px;
 		font-size: 13px;
-		margin-left: 12px;
 	}
 	}
+}
 
 
-	.footer-btns {
-		display: flex;
-		justify-content: flex-end;
-		gap: 16px;
-		margin-top: 24px;
-	}
+.upload-tip {
+	color: #888;
+	font-size: 13px;
+	margin-left: 12px;
+}
+
+.footer-btns {
+	display: flex;
+	justify-content: flex-end;
+	gap: 16px;
+	margin-top: 24px;
 }
 }
 </style>
 </style>

+ 2 - 2
src/views/forum/detail.vue

@@ -21,10 +21,10 @@
 			<span>
 			<span>
 				<a-tooltip title="点赞">
 				<a-tooltip title="点赞">
 					<template v-if="detailObj.isLike == 1">
 					<template v-if="detailObj.isLike == 1">
-						<HeartOutlined :style="{ color: '#fa6c8d' }" @click="like(item, 0)" />
+						<HeartOutlined :style="{ color: '#fa6c8d' }" @click="like(detailObj, 0)" />
 					</template>
 					</template>
 					<template v-else>
 					<template v-else>
-						<HeartOutlined @click="like(item, 1)" />
+						<HeartOutlined @click="like(detailObj, 1)" />
 					</template>
 					</template>
 				</a-tooltip>
 				</a-tooltip>
 				<span style="padding-left: 8px">
 				<span style="padding-left: 8px">

+ 3 - 1
src/views/forum/form.vue

@@ -113,7 +113,9 @@
 			})
 			})
 		})
 		})
 		if (module) {
 		if (module) {
-			record.appointUserArr = record.appointUser.split(',')
+			if(record.appointUser){
+				record.appointUserArr = record.appointUser.split(',')
+			}
 			formData.value = Object.assign(formData.value, record)
 			formData.value = Object.assign(formData.value, record)
 		}
 		}
 	}
 	}

Разница между файлами не показана из-за своего большого размера
+ 5 - 0
src/views/forum/reportinfo/index.vue


Некоторые файлы не были показаны из-за большого количества измененных файлов