Sfoglia il codice sorgente

获取规范数据详情

duy 2 mesi fa
parent
commit
3b63b457f9
1 ha cambiato i file con 30 aggiunte e 5 eliminazioni
  1. 30 5
      src/views/codeRule/ruleManage.vue

+ 30 - 5
src/views/codeRule/ruleManage.vue

@@ -189,7 +189,7 @@
                         <div class="box-card-content2-list-item-list">
                                 <span class="basic-info">基础信息</span>
                                 <div class="box-card-content2-list-item-list-basic">
-                                    <div class="basic-item-info" v-for="(item1,index1) in item.basic":key="index1" >
+                                    <div class="basic-item-info" v-for="(item1,index1) in item.info":key="index1" >
                                       {{ item1.name }}
                                     </div>
                                     <div class="operation-icons">
@@ -409,7 +409,7 @@ import {getLazytree} from "@/api/manager/wbsprivate";
 import ConditionsSet from './ConditionsSet.vue'
 import LinkEle from "./LinkEle.vue";
 import PreviewResult from './PreviewResult.vue'
-import {getPage,edit,add,deleteItem,getById, addInfo } from "@/api/ruleManage/fileRule.js";
+import {getPage,edit,add,deleteItem,getById, addInfo,getInfoPage } from "@/api/ruleManage/fileRule.js";
 import { getStore, setStore } from "@/util/store";
 
   export default {
@@ -482,20 +482,20 @@ import { getStore, setStore } from "@/util/store";
         },
         ypList:[
           {id:1,name:'样品名称',
-          basic:
+          info:
           [{}]
           },  
         ],
         jsList:[
           {id:1,name:'技术指标名称',
-          basic:
+          info:
           [{name:'基本信息1'} , {name:'基本信息2'}    , {name:'基本信息3'}    , {name:'基本信息4'}]
           },  
         ],
         isShowJsList:false,
         jsDetail: {
           name: '',
-          basic: [{ name: '',select:[] }, ]
+          info: [{ name: '',select:[] }, ]
         },
         jsRuleForm: {
           name: [
@@ -668,10 +668,12 @@ import { getStore, setStore } from "@/util/store";
               }
             });
           },
+          //
 
 
          ruleDetailClick1(item){
             this.getRuleDataDetail(item);
+            this.getRuleDataDetail1(item);
             this.ruleItemDetail=item
 
           this.isShowDetail = true;
@@ -689,6 +691,29 @@ import { getStore, setStore } from "@/util/store";
               }
             });
          },
+         //获取规范数据详情
+         getRuleDataDetail1(item){
+             getInfoPage({
+                current:1,
+                size:100,
+                type: 1,
+             
+                standardId: item.id,
+              }).then((res) => {
+                console.log(res,'res1111');
+                
+                this.ruleLoading = false;
+                if (res.data.code === 200) {
+                  console.log(res.data.data.records,'res.data.data.records');
+                  this.ypList = res.data.data.records;
+              
+                  
+                } else {
+                 this.ypList = [];
+                  this.$message.error(res.data.msg);
+                }
+              });
+         },
          addFile(){
          //新增规范文件
          this.addFileDialogVisible = true;