Karsa 3 months ago
parent
commit
fae313d361
1 changed files with 7 additions and 8 deletions
  1. 7 8
      src/views/dataEntry_manage/thirdBase/zhuochuangRedStageBase.vue

+ 7 - 8
src/views/dataEntry_manage/thirdBase/zhuochuangRedStageBase.vue

@@ -386,7 +386,8 @@ export default {
         {  label: this.$t('Edb.Detail.e_name'),key: 'IndexName',minwidthsty:'150px' },
         {  label: this.$t('Edb.Detail.e_name'),key: 'IndexName',minwidthsty:'150px' },
         {  label: this.$t('Edb.Detail.e_fre'),key: 'Frequency' },
         {  label: this.$t('Edb.Detail.e_fre'),key: 'Frequency' },
         {  label: this.$t('Edb.Detail.e_unit'),key: 'Unit', },
         {  label: this.$t('Edb.Detail.e_unit'),key: 'Unit', },
-        {  label: this.$t('Edb.Detail.e_update_time'),key: 'ModifyTime', },
+        {  label: this.$t('Edb.Detail.e_latest_date'),key: 'LatestDate', },
+        {  label: this.$t('Edb.Detail.e_latest_value'),key: 'LatestValue', },
       ]
       ]
     },
     },
 
 
@@ -496,7 +497,7 @@ export default {
     },
     },
 
 
     /* 批量编辑 */
     /* 批量编辑 */
-   async handleBatchEdit() {
+    async handleBatchEdit() {
       let res = await this.getBatchEdbList()
       let res = await this.getBatchEdbList()
       if(!res.Data) return
       if(!res.Data) return
       
       
@@ -682,11 +683,8 @@ export default {
         this.filterNodes(this.classifyList)
         this.filterNodes(this.classifyList)
 
 
         this.$nextTick(() => {
         this.$nextTick(() => {
-          /* 处理树展开和选中 */
-          params && this.selectCurrentNode(params);
-          !params &&
-            this.select_node &&
-            this.$refs.treeRef.setCurrentKey(this.select_node);
+          this.select_node = res.Data[0].UniqueCode
+          this.$refs.treeRef.setCurrentKey(this.select_node);
         });
         });
       });
       });
     },
     },
@@ -704,8 +702,9 @@ export default {
 
 
     //指标懒加载
     //指标懒加载
     async getLazyTreeData(node,resolve){
     async getLazyTreeData(node,resolve){
+      console.log(node)
       let arr=[]
       let arr=[]
-      if(node.level===2){
+      if(node.level===2||node.data.ClassifyIdStr==='0'){
         const res=await zhuochuangRedStageInterface.edbListForClassify({
         const res=await zhuochuangRedStageInterface.edbListForClassify({
           ClassifyId:node.data.ClassifyId
           ClassifyId:node.data.ClassifyId
         })
         })