Browse Source

fix:图表来源宽度限制

chenlei 3 months ago
parent
commit
841358b964
2 changed files with 5 additions and 2 deletions
  1. 4 1
      src/views/chartShow/index.vue
  2. 1 1
      src/views/chartShow/previewHT.vue

+ 4 - 1
src/views/chartShow/index.vue

@@ -57,7 +57,7 @@
     <div class="bootom-source">
     <div class="bootom-source">
 
 
       <!-- 自定义来源 -->
       <!-- 自定义来源 -->
-      <div>
+      <div class="source-box">
         <div class="chart-source text_oneLine" 
         <div class="chart-source text_oneLine" 
           v-if="chartInfo.SourcesFrom&&JSON.parse(chartInfo.SourcesFrom).isShow"
           v-if="chartInfo.SourcesFrom&&JSON.parse(chartInfo.SourcesFrom).isShow"
           :style="`
           :style="`
@@ -246,4 +246,7 @@ export default defineComponent({
 </script>
 </script>
 <style scoped lang="less">
 <style scoped lang="less">
 @import './index.less';
 @import './index.less';
+.source-box {
+  max-width: 50%;
+}
 </style>
 </style>

+ 1 - 1
src/views/chartShow/previewHT.vue

@@ -30,7 +30,7 @@ const getChartInfo = async (type = '') => {
 
 
   loading.value = true;
   loading.value = true;
   try {
   try {
-    const { Data } = await ChartApi.getChart({
+    const { Data } = await ChartApi.chartDetail({
       UniqueCode: code.value || '',
       UniqueCode: code.value || '',
     });
     });
     loading.value = false;
     loading.value = false;