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