wujingjing
2025-01-09 6a475521b957b2c3a68ee950704f8f1948bd6cf9
src/components/chat/chatComponents/summaryCom/components/deviceLastValue/DeviceLastValueCom.vue
@@ -53,6 +53,7 @@
                     :restColWidth="restColWidth"
                     :title="firstRow.title"
                     :type="firstRow.id"
                     :row="firstRow"
                     :values="rowChunk"
                     @itemClick="valueClick"
                  />
@@ -65,6 +66,7 @@
                  :restColWidth="restColWidth"
                  :title="row.title"
                  :type="row.id"
                  :row="row"
                  :values="rowChunk"
                  @itemClick="valueClick"
               />
@@ -81,7 +83,7 @@
            @current-change="handleCurrentChange"
         />
      </div>
      <RecordSetDialog v-model="chartDlgIsShow" :otype="chartDlgMapRow?.OTYPE" :oname="chartDlgMapRow?.ONAME" :indexName="indexName" />
      <RecordSetDialog v-model="chartDlgIsShow" :lastValueItem="chartDlgMapRow"  :metricsInfo="chartDlgMapMetricsInfo"/>
   </div>
</template>
@@ -277,13 +279,15 @@
const chartDlgIsShow = ref(false);
const chartDlgMapRow = ref(null);
/** @description 指标名称 */
const indexName = ref(null);
const valueClick = (item, type) => {
const chartDlgMapMetricsInfo = ref(null);
const valueClick = (item,row) => {
   if (isSharePage.value) return;
   if(!row.query_detail_id){
      return;
   }
   chartDlgMapRow.value = item;
   chartDlgIsShow.value = true;
   indexName.value = type;
   chartDlgMapMetricsInfo.value = row;
};
//#endregion