|
@@ -5,6 +5,7 @@
|
|
|
:tableData="tableData"
|
|
|
:navText="navText"
|
|
|
:loading="loading"
|
|
|
+ @classView="classView"
|
|
|
>
|
|
|
<template slot="customize">
|
|
|
<el-select
|
|
@@ -82,16 +83,22 @@ export default {
|
|
|
label: "未配置班级",
|
|
|
prop: "notConfiguredNum",
|
|
|
hidden: true,
|
|
|
+ type: 1,
|
|
|
+ scope: "configSetClass",
|
|
|
},
|
|
|
{
|
|
|
label: "有接口班级",
|
|
|
prop: "interfaceNum",
|
|
|
hidden: true,
|
|
|
+ type: 2,
|
|
|
+ scope: "configSetClass",
|
|
|
},
|
|
|
{
|
|
|
label: "无接口班级",
|
|
|
prop: "noInterfaceNum",
|
|
|
hidden: true,
|
|
|
+ type: 3,
|
|
|
+ scope: "configSetClass",
|
|
|
},
|
|
|
{
|
|
|
label: "所有班级人数",
|
|
@@ -154,6 +161,33 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ classView(row) {
|
|
|
+ console.log(row);
|
|
|
+ const jump = () => {
|
|
|
+ this.$router.push({
|
|
|
+ name: "ClassList",
|
|
|
+ params: {
|
|
|
+ businessId: row.businessId,
|
|
|
+ },
|
|
|
+ });
|
|
|
+ };
|
|
|
+ const statusPage = this.$store.state.tagsView.visitedViews.some(
|
|
|
+ (item) => {
|
|
|
+ return item.name == "ClassList";
|
|
|
+ }
|
|
|
+ );
|
|
|
+ if (statusPage) {
|
|
|
+ this.$store
|
|
|
+ .dispatch("tagsView/delCachedView", {
|
|
|
+ name: "ClassList",
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ jump();
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ jump();
|
|
|
+ }
|
|
|
+ },
|
|
|
search(int) {
|
|
|
this.loading = true;
|
|
|
if (int === 1) {
|
|
@@ -219,7 +253,7 @@ export default {
|
|
|
if (int === 2) {
|
|
|
const jump = () => {
|
|
|
this.$router.push({
|
|
|
- path: "NoInterface",
|
|
|
+ path: "noInterface",
|
|
|
query: {
|
|
|
businessId: v.businessId,
|
|
|
},
|
|
@@ -227,7 +261,7 @@ export default {
|
|
|
};
|
|
|
const statusPage = this.$store.state.tagsView.visitedViews.some(
|
|
|
(item) => {
|
|
|
- return item.name == "noInterface";
|
|
|
+ return item.name == "NoInterface";
|
|
|
}
|
|
|
);
|
|
|
if (statusPage) {
|