canghailong vor 6 Monaten
Ursprung
Commit
f39d0e8c9b
1 geänderte Dateien mit 5 neuen und 8 gelöschten Zeilen
  1. 5 8
      src/views/forum/index.vue

+ 5 - 8
src/views/forum/index.vue

@@ -198,12 +198,10 @@
 	const typeValue = ref('所有分类')
 	const typeOptions = ref([])
 	const handleChange = (value) => {
-		exType.value = false
 		searchFormState.typeId = value
 		resetLoad()
 	}
 	const handleChangeVal = (value) => {
-		exType.value = false
 		searchFormState.postType = value
 		searchFormState.typeId = ''
 		typeValue.value = '所有分类'
@@ -215,7 +213,6 @@
 	}
 	// 查询
 	const onSearch = () => {
-		exType.value = false
 		resetLoad()
 	}
 	function customRow(record) {
@@ -244,7 +241,7 @@
 		})
 	}
 
-	const exType = ref(false)
+	const exType = ref(1)
 	const tableData = ref([])
 	const tableTotal = ref(0)
 	const resetLoad = () => {
@@ -253,9 +250,9 @@
 		loadData(pagination.value)
 	}
 	const loadData = (parameter, a) => {
-		if (exType.value) {
+		if (exType.value == 2) {
 			let postExtend = moduleTypeList.value.find((r) => r.id == searchFormState.sortOrder).state
-			return forumApi.moreList(Object.assign(parameter,searchFormState, { postExtend: postExtend })).then((data) => {
+			return forumApi.moreList(Object.assign(parameter, searchFormState, { postExtend: postExtend })).then((data) => {
 				tableTotal.value = data.total
 				if (a) {
 					tableData.value = Object.assign(tableData.value, data.records)
@@ -285,7 +282,7 @@
 
 	// 切换应用标签查询菜单列表
 	const moduleClock = (value, t) => {
-		exType.value = true
+		exType.value = t
 		searchFormState.sortOrder = value
 		pagination.value.current = 1
 		moreText.value = '加载更多'
@@ -373,7 +370,7 @@
 		height: 55px;
 	}
 	.main-content-wrapper {
-		padding:0px;
+		padding: 0px;
 		height: calc(100% - 55px);
 	}
 </style>