mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-10 19:36:46 +08:00
修改total请求
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user