ソースを参照

导出单个指标

chenlei 8 ヶ月 前
コミット
b5073806f0
1 ファイル変更5 行追加3 行削除
  1. 5 3
      src/views/dataEntry_manage/thirdBase/FwmtData.vue

+ 5 - 3
src/views/dataEntry_manage/thirdBase/FwmtData.vue

@@ -179,6 +179,7 @@ export default {
       repetition: null, // 是否重复请求
       indexFrequency: 0, // 当前选中的指标code
       select_frequency: '', // 当前选中的频度
+      classId: '', // 当前选中的指标的分类id
     };
   },
   methods: {
@@ -351,10 +352,11 @@ export default {
         if(res.Ret===200){
           const temarr=res.Data||[]
           arr=temarr.map((item, i)=>{
+            const classId = item.ClassifyId
             delete item.ClassifyId
             return {
               ...item,
-              id: 'code' + (item.ClassifyId + i),
+              classId,
               isLeaf:true
             }
           })
@@ -512,7 +514,7 @@ export default {
     //改变选中节点
     nodeChangeHandle(data, node) {
       console.log(data, node);
-      
+      this.classId = data.classId
       if (data.ClassifyId === this.repetition || data.IndexCode === this.repetition) return;
       this.select_classify = data.ClassifyId;
       this.repetition = data.ClassifyId || data.IndexCode
@@ -539,7 +541,7 @@ export default {
         // 指标id
         urlStr += `&IndexCode=${
           this.isShowSingleData ? this.leftSearchTradeCode : ""
-        }&ClassifyId=${ this.select_classify }`;
+        }&ClassifyId=${ this.classId }`;
       } else {
         // 目录id
         urlStr += `&ClassifyId=${