+
{{ scope.row.clusterNews ? scope.row.clusterNews.length : 0 }}
@@ -795,9 +799,16 @@ function initPageData() {
range: Session.get('userInfoLocal').userType == '01' ? 'review' : Session.get('userInfoLocal').userType == '02' ? 'secondReview' : 'all',
includeRuleIds: includeRuleIds.value,
excludeRuleIds: excludeRuleIds.value,
+ clusterSwitch: hadExpand.value,
};
}
-const hadExpand = ref(false);
+
+function handleExpandChange() {
+ // hadExpand.value = !hadExpand.value;
+ getData();
+}
+
+const hadExpand = ref(true);
// 获取列表
async function getData() {
// return
@@ -832,15 +843,6 @@ async function getData() {
});
}
});
-
- // 判断有没有折叠菜单
- if (Session.get('userInfoLocal').userType != '00') {
- hadExpand.value = false;
- } else {
- // 会进来这里说明这个页面是资讯精选
- getRealTotalFn();
- hadExpand.value = true;
- }
}
} catch (error) {
tableLoading.value = false;
@@ -1256,6 +1258,15 @@ onMounted(async () => {
}
getCompany();
+
+ // 判断有没有折叠菜单
+ if (Session.get('userInfoLocal').userType != '00') {
+ hadExpand.value = false;
+ } else {
+ // 会进来这里说明这个页面是资讯精选
+ getRealTotalFn();
+ hadExpand.value = true;
+ }
});
@@ -1421,4 +1432,8 @@ onMounted(async () => {
font-style: normal;
cursor: pointer;
}
+
+:deep(.el-switch__label.is-active) {
+ color: #4e4e4e;
+}