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