Karsa 1 年之前
父节点
当前提交
3bb6f66755

+ 5 - 4
src/views/chartRelevance_manage/crossVarietyAnalysis/chartEditor.vue

@@ -240,14 +240,15 @@ export default {
       isShowSetDia: false,//管理弹窗
       dialogType: '',
 
-      isShowTagRelationDia: true,//标签指标管理弹窗
+      isShowTagRelationDia: false,//标签指标管理弹窗
+      tagRelation: ''
     };
   },
   methods: {
 
     /* 获取图表详情 */
-    getChartDetail() {
-
+    async getChartDetail() {
+      
     },
     
     /* 选择品种 */
@@ -256,7 +257,7 @@ export default {
 
     /* 打开标签关联弹窗 */
     setTagRelationOpen(item) {
-
+      this.isShowTagRelationDia = true;
     },
 
     /* 标签管理 */

+ 26 - 6
src/views/chartRelevance_manage/crossVarietyAnalysis/components/tagRelationDialog.vue

@@ -22,9 +22,21 @@
             :filter="false"
             style="max-width: 200px;"
           />
-          
-          <span>{{item.latestDate}}</span>
-          <span> {{item.latestValue}}</span>
+          <el-date-picker
+            v-if="item.latestDate"
+            v-model="item.latestDate"
+            type="date"
+            value-format="yyyy-MM-dd"
+            disabled
+            style="width:140px;"
+          />
+
+          <el-input
+            v-if="item.latestValue"
+            v-model="item.latestValue"
+            style="width: 100px;"
+            disabled
+          />
 
           <!-- <i class="el-icon-error" style="font-size:20px;cursor:pointer"></i> -->
         </li>
@@ -65,6 +77,13 @@ export default {
           latestDate: '2023-05-06',
           latestValue: '55'
         },
+        { 
+          varietyName: 'pta',
+          edbName: '',
+          edbInfoId: '',
+          latestDate: '2023-05-06',
+          latestValue: '55'
+        },
       ]
     }
   },
@@ -106,8 +125,8 @@ export default {
       gap: 20px;
       margin-bottom: 20px;
       .variety-name {
-        margin-right: 50px;
-        width: 120px;
+        /* margin-right: 20px; */
+        width: 100px;
       }
     }
   }
@@ -120,7 +139,8 @@ export default {
 </style>
 <style lang="scss">
   .tag-relation-dialog .el-dialog__body {
-    max-height: calc(100vh - 200px);
+    max-height: calc(100vh - 350px);
+    min-height: 300px;
     overflow-y: auto;
   }
 </style>