Hua 2 months ago
parent
commit
4d3a7f34d6

+ 1 - 1
ruoyi-ui/.env.development

@@ -11,7 +11,7 @@ VITE_APP_BASE_Title = '/sh'
 VITE_APP_BASE_API = '/sh-api'
 
 # VITE_DEV_PATH = 'http://localhost:8082'
-VITE_DEV_PATH = 'http://192.168.2.105:8082'
+VITE_DEV_PATH = 'http://192.168.2.104:8082'
 
 # 是否在打包时开启压缩,支持 gzip 和 brotli
 VITE_BUILD_COMPRESS = gzip

+ 1 - 0
ruoyi-ui/src/api/service/info.js

@@ -338,6 +338,7 @@ export function delMdfile(id) {
 }
 export function downloadFile(query) {
   return request({
+    responseType: 'blob',
     url: "/data/set/API/download",
     method: "get",
     params: query,

+ 1 - 1
ruoyi-ui/src/views/register/componentReg/index.vue

@@ -729,7 +729,7 @@
                         </div>
                       </template>
                     </el-table-column>
-                    <el-table-column prop="fileVersion" label="文件版本"  width="100">
+                    <el-table-column prop="fileVersion" label="参数版本"  width="100">
                     </el-table-column>
                     <el-table-column prop="createBy" label="创建人员"  width="150">
                     </el-table-column>

+ 1 - 1
ruoyi-ui/src/views/register/componentReg/peizhi.vue

@@ -724,7 +724,7 @@
                         </div>
                       </template>
                     </el-table-column>
-                    <el-table-column prop="fileVersion" label="文件版本"  width="100">
+                    <el-table-column prop="fileVersion" label="参数版本"  width="100">
                     </el-table-column>
                     <el-table-column prop="createBy" label="创建人员"  width="150">
                     </el-table-column>

+ 1 - 1
ruoyi-ui/src/views/register/modelData/dataJiDe.vue

@@ -552,7 +552,7 @@ function download(row){
         dcCode:row.dcCode
       }
       downloadFile(par).then(res=>{
-        const blob = new Blob([res.data], { type: 'text/plain' });
+        const blob = new Blob([res], { type: 'text/plain' });
     // 创建临时URL
         const url = URL.createObjectURL(blob);
         // 创建a标签

+ 2 - 2
ruoyi-ui/src/views/service/fabu/fabu.vue

@@ -138,8 +138,8 @@
           <template #footer>
             <span class="dialog-footer">
               <el-button type="primary" @click="dialogVisible = false" size="mini">
-                确定
-              </el-button>
+                  确定
+                </el-button>
             </span>
           </template>
         </el-dialog>

+ 1 - 1
ruoyi-ui/src/views/service/info/fabu.vue

@@ -77,7 +77,7 @@
                   </div> -->
                   <div style="display: flex;">
                     
-                    <el-button :disabled="scope.row.publish!==null" @click="shenhe(scope.row)" type="primary" text size="mini" style="margin-left: -5%;">发布</el-button>
+                    <el-button :disabled="scope.row.publish!==null&& scope.row.publish!=='2'" @click="shenhe(scope.row)" type="primary" text size="mini" style="margin-left: -5%;">发布</el-button>
                     <el-button :disabled="scope.row.publish!=='3'" @click="gengxin(scope.row)" type="warning" text size="mini" style="margin-left:0%;">更新</el-button>
                     <el-button :disabled="scope.row.publish!=='1'&& scope.row.publish!=='3'" @click="xiaxian(scope.row)" type="danger" text size="mini" style="margin-left: 0%;">下线</el-button>
                     <el-button @click="showLog(scope.row)" type="primary" text size="mini" style="margin-left: 0%;">日志</el-button>

+ 7 - 5
ruoyi-ui/src/views/service/log/index.vue

@@ -73,10 +73,10 @@
             <div>
               过去7天模型吞吐量
             </div>
-            <div style="height: 30vh;width: 100%;background-color: ;margin-top: 1%;" id="right1">
+            <div style="height: 40vh;width: 100%;background-color: ;margin-top: 1%;" id="right1">
 
             </div>
-            <div style="margin-top: 5%;">
+            <div style="margin-top: 3%;">
               过去7天模型错误率
             </div>
             <div style="height: 30vh;width: 100%;background-color: ;margin-top: 1%;" id="right2">
@@ -535,23 +535,25 @@ async function drawRight1(){
   })
   option = {
      grid: {
-      top: '15%',     // 图表距离容器顶部的距离
+      top: '10%',     // 图表距离容器顶部的距离
       right: '5%',    // 图表距离容器右侧的距离
       bottom: '15%',  // 图表距离容器底部的距离
       left: '10%',    // 图表距离容器左侧的距离
       containLabel: true  // 确保坐标轴标签在 grid 区域内
     },
     tooltip: {
-        trigger: 'axis'
+        trigger: 'axis',
+        show:'false'
     },
     legend: {
-      top:'90%'
+      top:'88%'
     },
     xAxis: {
       splitLine: { show: false },
       // type: 'category',
       data: x,
       axisLabel: {
+          top:'10%',
           interval: 0,  // 强制显示所有标签
           rotate: -25,   // 旋转角度,正值表示顺时针旋转,负值表示逆时针旋转
           // 可以设置文字样式,如字体大小、颜色等