Przeglądaj źródła

考试回显,通知按需修改,串行问题

canghailong 6 miesięcy temu
rodzic
commit
fb3df32dab

+ 2 - 2
src/views/portal/components/headerIcon.vue

@@ -16,10 +16,10 @@
 	const bellNum = ref(0)
 	const notiNum = ref(0)
 	function getList() {
-		classCentre.UnreadNum({ funcType: 1 }).then((res) => {
+		classCentre.UnreadNum({ funcType: 1, category: 'BIZ' }).then((res) => {
 			bellNum.value = res.unreadCount
 		})
-		classCentre.UnreadNum({ funcType: 2 }).then((res) => {
+		classCentre.UnreadNum({ funcType: 2, category: 'BIZ' }).then((res) => {
 			notiNum.value = res.unreadCount
 		})
 	}

+ 4 - 34
src/views/resourceDetails/components/ShareDialog.vue

@@ -7,7 +7,7 @@
 			</div>
 
 			<div style="display: flex; align-items: center; width: 100%; justify-content: space-between">
-				<p>{{ thisUrl }}</p>
+				<p class="multiline">{{ thisUrl }}</p>
 			</div>
 			<a-button type="primary" @click="copyLink()">复制链接</a-button>
 		</div>
@@ -23,31 +23,11 @@
 	import sysConfig from '@/config/index'
 	const emit = defineEmits(['selectTab'])
 
-	// id: 1,
-	// 			name: '张三',是1000元,请给我一个好评,谢谢',
-	// 			follw: 0,
-
 	const props = defineProps({
 		item: {
 			type: Object,
 			default: () => {}
 		}
-		// name: {
-		// 	type: String,
-		// 	default: () => ''
-		// },
-		// talk: {
-		// 	type: String,
-		// 	default: () => ''
-		// },
-		// follw: {
-		// 	type: Number,
-		// 	default: () => 0
-		// },
-		// callBackTalk: {
-		// 	type: Array,
-		// 	default: () => []
-		// }
 	})
 	const listUnpublishedView = ref(null)
 	const tallTag = ref(false)
@@ -56,17 +36,11 @@
 	const thisUrl = ref('')
 
 	const handleOk = () => {
-		// console.log('查询内容', form)
-		// tallTag.value == true ? (tallTag.value = false) : (tallTag.value = true)
-		// EventBus.emit('closeInput', null, props.item.id)
-		//....
 		visible.value = false
-		// listUnpublishedView.value.setData(tableData.value)
 	}
 	const open = (shareLink) => {
 		console.log('要 打开分享弹窗', shareLink)
 		visible.value = true
-		// itemData.value = data
 		thisUrl.value = sysConfig.API_URL + shareLink
 	}
 	const copyLink = () => {
@@ -82,18 +56,12 @@
 	const handerPublish = () => {
 		tallTag.value = false
 		emit('publish')
-
-		//....
-		// listUnpublishedView.value.setData(tableData.value)
 	}
 	const handleCloseInput = (data, tag) => {
 		if (props.item.id != tag) {
 			tallTag.value = false
 		}
 	}
-	onMounted(() => {
-		// getList()
-	})
 
 	defineExpose({
 		open
@@ -120,7 +88,9 @@
 		color: white;
 	}
 
-	.tab-switcher div:not(:last-child) {
+	.multiline {
+		width: 100%;
+		white-space: pre-wrap;
 	}
 
 	.user-info {

+ 2 - 2
src/views/student/exam/components/QuestionAnswerShow.vue

@@ -49,12 +49,12 @@
 				<div v-if="answer.contentArray !== null">
 					<a-form layout="vertical">
 						<a-form-item
-							v-for="item in question.items"
+							v-for="(item,idx) in question.items"
 							:label="item.prefix"
 							:key="item.prefix"
 							style="margin-top: 10px; margin-bottom: 10px"
 						>
-							<a-input :class="askType==1?'read-only':''" v-model:value="answer.contentArray[item.prefix - 1]" />
+							<a-input :class="askType==1?'read-only':''" v-model:value="answer.contentArray[idx]" />
 						</a-form-item>
 					</a-form>
 				</div>