Browse Source

推荐表单增加

duy 1 day ago
parent
commit
aaa0af476b
2 changed files with 19 additions and 3 deletions
  1. 9 0
      src/api/manager/wbstree.js
  2. 10 3
      src/views/manager/projectinfo/tree.vue

+ 9 - 0
src/api/manager/wbstree.js

@@ -386,4 +386,13 @@ export const getTreeByType = (params) => {
         method: 'get',
         params
     })
+}
+
+//获取推荐表单
+export const getRecommendTable = (params) => {
+    return request({
+        url: '/api/blade-manager/synchronousRecord/getRecommendTable',
+        method: 'get',
+        params
+    })
 }

+ 10 - 3
src/views/manager/projectinfo/tree.vue

@@ -2630,7 +2630,7 @@
         <el-card class="box-card-2">
          
             <div class="table-box">
-              <h4 style="margin-left: 4px;">表单预览</h4>
+              <h4 style="margin-left: 4px;">推荐</h4>
               <el-table
               size="small"
               ref="proTable1"
@@ -2831,7 +2831,7 @@ import {
 import { getStore, setStore } from "@/util/store";
 
 import { getTempProject,addSync,getNodeStatus,getById } from "@/api/manager/ledger";
-import { selectByNodeTable   as findNodeTableByCondition1 } from "@/api/manager/wbstree";
+import { selectByNodeTable   as findNodeTableByCondition1 ,getRecommendTable} from "@/api/manager/wbstree";
 
 import { getDictionaryBiz } from "@/api/other";
 import tableSortByType from './tableSortByType'
@@ -6434,7 +6434,14 @@ async saveLinkTab() {
     },
     handleNodeClick(data) {
    
-      selectByNodeTable(data.id, this.projectid, this.id).then((res) => {
+      getRecommendTable(
+        {
+          parentId:data.id,
+          projectId:this.projectid,
+          wbsId:this.id,
+          pKeyId:this.checkRow.pkeyId
+        }
+      ).then((res) => {
           if (res.data.data.length) {
             this.preTableData1 = res.data.data;
           } else {