修改total请求

This commit is contained in:
BOE\10867418
2023-03-20 14:11:41 +08:00
parent 06eda37317
commit b72f48a9c9

View File

@@ -120,8 +120,9 @@
<!-- 项目状态 -->
<template v-if="column.key === 'projectStatus'">
<span>{{
record.reportProjectOverview.length > 0 ? "-" :
record.status == "0"
record.reportProjectOverview.length > 0
? "-"
: record.status == "0"
? "-"
: record.status == "1"
? "提交待审核"
@@ -309,8 +310,14 @@ export default {
// 获取tab数据
const getTabData = async () => {
console.log(state.type);
const res = await api.boeuAllTotal({type:state.type});
if (res) {
axios({
method: "get",
url: "/report/boeu/all/total",
params: { type: state.type },
headers: {
token: Cookies.get("token"),
},
}).then((res) => {
const list = [
{ text: "项目", num: res.data?.projectTotal },
{ text: "学习路径图", num: res.data?.routerTotal },
@@ -320,7 +327,7 @@ export default {
{ text: "案例", num: res.data?.caseTotal },
];
tabData.value = list;
}
});
};
// 重置按钮
const reset = async () => {