Browse Source

修改提取接口

haojianlong 4 năm trước cách đây
mục cha
commit
0bb99e7b8e
2 tập tin đã thay đổi với 4 bổ sung2 xóa
  1. 1 1
      src/api/editer.js
  2. 3 1
      src/components/baseEditer.vue

+ 1 - 1
src/api/editer.js

@@ -103,7 +103,7 @@ export function graphElementSearch(params){
 }
 // 图例搜索(提取用)
 export function graphElementQuery(params){
-    return httputils.postJson(`${testApi}/graphElement/query`, params)
+    return httputils.postJson(`${testApi}/graphElement/search`, params)
 }
 //草稿箱原理图删除
 export function deleteByCategory(params){

+ 3 - 1
src/components/baseEditer.vue

@@ -78,7 +78,9 @@ export default {
     this.init();
     // 挂在bus
     this.getBus();
-    store.dispatch("getGraphElement", { PageSize: 1000 });
+    if (this.urlMsg.categoryId) {
+      store.dispatch("getGraphElement", { PageSize: 1000, Deleted: false, GraphCategoryIds:[this.urlMsg.categoryId] });
+    }
     window.vm = this;
     const that = this;
     document.onkeydown = function(event) {