|
@@ -123,6 +123,7 @@ import leftFolder from "@/components/homeView/leftFolder.vue";
|
|
|
import leftAsideTree from "@/components/homeView/leftAsideTree.vue";
|
|
|
import topoImageCard from "@/components/homeView/topoImageCard.vue";
|
|
|
import { queryDraftsGraph, queryPubGraph } from "@/api/home";
|
|
|
+import { planerQuery, pubPlanerQuery } from "@/api/labsl";
|
|
|
import rename from "@/components/homeView/rename";
|
|
|
import move from "@/components/homeView/move";
|
|
|
import deleteDialog from "@/components/homeView/deleteDialog";
|
|
@@ -297,17 +298,12 @@ export default {
|
|
|
this.queryGraph();
|
|
|
// this.$refs.leftAsideTree.getCategoryGraph();
|
|
|
},
|
|
|
- // 选中节点变化
|
|
|
- changeNode(data) {
|
|
|
- this.curCategory = data;
|
|
|
- this.categoryName = data.name;
|
|
|
- this.queryGraph();
|
|
|
- },
|
|
|
/**
|
|
|
* 更改选中的文件夹
|
|
|
*/
|
|
|
changeFolder(data) {
|
|
|
- // this.queryGraph();
|
|
|
+ this.queryGraph();
|
|
|
+ return true;
|
|
|
// TODO:
|
|
|
let { yfbMocKdata } = require("./mockData");
|
|
|
// console.log(yfbMocKdata);
|
|
@@ -371,12 +367,12 @@ export default {
|
|
|
// 查询图形信息
|
|
|
queryGraph() {
|
|
|
if (!this.curCategory.code) {
|
|
|
- return;
|
|
|
+ // return;
|
|
|
}
|
|
|
this.cardLoading = true;
|
|
|
this.selectCard = [];
|
|
|
const pa = {
|
|
|
- filters: `categoryId="${this.curCategory.code}"`,
|
|
|
+ filters: `categoryId=111`,
|
|
|
orders: `${this.selVal} desc`,
|
|
|
};
|
|
|
if (this.queryText) {
|
|
@@ -386,7 +382,7 @@ export default {
|
|
|
* 已发布,未发布 1:已发布 0:未发布
|
|
|
*/
|
|
|
if (this.isPub) {
|
|
|
- queryPubGraph(pa).then((res) => {
|
|
|
+ pubPlanerQuery(pa).then((res) => {
|
|
|
this.cardTree = res.content.map((t) => {
|
|
|
t.checked = false;
|
|
|
return t;
|
|
@@ -395,7 +391,7 @@ export default {
|
|
|
});
|
|
|
} else {
|
|
|
pa.filters += ";state=1";
|
|
|
- queryDraftsGraph(pa).then((res) => {
|
|
|
+ planerQuery(pa).then((res) => {
|
|
|
this.cardTree = res.content.map((t) => {
|
|
|
t.checked = false;
|
|
|
return t;
|