Преглед изворни кода

前端: 年审资质文件显示名称问题(|分割),修改索引值,打印日志

baichengfei пре 5 година
родитељ
комит
201dfd5673

+ 2 - 2
src/dashoo.cn/frontend_web/src/pages/oilsupplier/annualaudit/_opera/auditoperation.vue

@@ -698,7 +698,7 @@
                       <el-link :href="'http://'+fileurlcut(scope.row.OldFileUrl, index)" target="_blank" type="primary"
                                v-if="scope.row.OldFileUrl==''?false:imgFormat(scope.row.OldFileUrl, index)"
                       >
-                        {{tmpUrl.split('|')[-1]}}</el-link>
+                        {{tmpUrl.split('|')[1]}}</el-link>
 
                       <img
                         v-if="scope.row.OldFileUrl==''?false:!imgFormat(scope.row.OldFileUrl, index)"
@@ -728,7 +728,7 @@
                       <el-link :href="'http://'+fileurlcut(scope.row.FileUrl, index)" target="_blank" type="primary"
                                v-if="scope.row.FileUrl==''?false:imgFormat(scope.row.FileUrl, index)"
                       >
-                        {{tmpUrl.split('|')[-1]}}</el-link>
+                        {{tmpUrl.split('|')[1]}}</el-link>
 
                       <img
                         v-if="scope.row.FileUrl==''?false:!imgFormat(scope.row.FileUrl, index)"

+ 6 - 4
src/dashoo.cn/frontend_web/src/pages/oilsupplier/annualaudit/_opera/basicauditoperation.vue

@@ -595,7 +595,7 @@
             <div slot="header" class="clearfix">
               <span style="font-weight: bold">企业资质</span>
             </div>
-            <el-table :data="subfileList" border>
+            <el-table :data="subfileList" size="mini" border>
               <!--<el-table-column label="操作" width="150" align="center" fixed>-->
               <!--<template slot-scope="scope">-->
               <!--<el-button type="primary" plain size="mini" title="文件变更" @click="openDialog(scope.row)">-->
@@ -614,9 +614,9 @@
                     <div  v-for="(tmpUrl,index) in scope.row.OldFileUrlList" :key="index" style="vertical-align: middle;	text-align: center;">
 
                       <el-link :href="'http://'+fileurlcut(scope.row.OldFileUrl, index)" target="_blank" type="primary"
-                               v-if="scope.row.OldFileUrl==''?false:imgFormat(scope.row.OldFileUrl, index)"
+                               v-if="scope.row.OldFileUrl == '' ? false : imgFormat(scope.row.OldFileUrl, index)"
                       >
-                        {{tmpUrl.split('|')[-1]}}</el-link>
+                        {{tmpUrl.split('|')[1]}}</el-link>
 
                       <img
                         v-if="scope.row.OldFileUrl==''?false:!imgFormat(scope.row.OldFileUrl, index)"
@@ -646,7 +646,7 @@
                       <el-link :href="'http://'+fileurlcut(scope.row.FileUrl, index)" target="_blank" type="primary"
                                v-if="scope.row.FileUrl==''?false:imgFormat(scope.row.FileUrl, index)"
                       >
-                        {{scope.row.FileName.split('$')[index]}}</el-link>
+                        {{tmpUrl.split('|')[1]}}</el-link>
 
                       <img
                         v-if="scope.row.FileUrl==''?false:!imgFormat(scope.row.FileUrl, index)"
@@ -1466,10 +1466,12 @@
             if (Format[1] != null && Format[1] != '' && Format[1] != undefined) {
               let pictureFormat = Format[1]
               if (pictureFormat == 'jpg' || pictureFormat == 'bmp' || pictureFormat == 'png' || pictureFormat == 'gif' || pictureFormat == 'jpeg') {
+                console.log('图片判断结果1')
                 return false
               }
             }
           }
+          console.log('图片判断结果2')
           return true
         }
       },

+ 1 - 1
src/dashoo.cn/frontend_web/src/pages/oilsupplier/annualaudit/_opera/bassicoperation.vue

@@ -653,7 +653,7 @@
                         <div v-for="(tmpUrl,index) in scope.row.FileUrlList" :key="index" style="vertical-align: middle;	text-align: center;">
                           <div v-if="imgFormat(scope.row.FileUrl, index)">
                             <el-link :href="'http://' + fileurlcut(scope.row.FileUrl, index)" target="_blank" type="primary">
-                              {{tmpUrl.split('|')[-1]}}</el-link>
+                              {{tmpUrl.split('|')[1]}}</el-link>
                           </div>
                           <div v-else>
                             <img

+ 1 - 1
src/dashoo.cn/frontend_web/src/pages/oilsupplier/annualaudit/_opera/goodsoperation.vue

@@ -753,7 +753,7 @@
                       <div v-for="(tmpUrl,index) in scope.row.FileUrlList" :key="index" style="vertical-align: middle;	text-align: center;">
                         <div v-if="imgFormat(scope.row.FileUrl, index)">
                           <el-link :href="'http://' + fileurlcut(scope.row.FileUrl, index)" target="_blank" type="primary">
-                            {{tmpUrl.split('|')[-1]}}</el-link>
+                            {{tmpUrl.split('|')[1]}}</el-link>
                         </div>
                         <div v-else>
                           <img

+ 1 - 1
src/dashoo.cn/frontend_web/src/pages/oilsupplier/annualaudit/_opera/operation.vue

@@ -584,7 +584,7 @@
                         <div v-for="(tmpUrl,index) in scope.row.FileUrlList" :key="index" style="vertical-align: middle;	text-align: center;">
                           <div v-if="imgFormat(scope.row.FileUrl, index)">
                             <el-link :href="'http://' + fileurlcut(scope.row.FileUrl, index)" target="_blank" type="primary">
-                              {{tmpUrl.split('|')[-1]}}</el-link>
+                              {{tmpUrl.split('|')[1]}}</el-link>
                           </div>
                           <div v-else>
                             <img

+ 1 - 1
src/dashoo.cn/frontend_web/src/pages/oilsupplier/annualaudit/_opera/techoperation.vue

@@ -570,7 +570,7 @@
                     <div v-for="(tmpUrl,index) in scope.row.FileUrlList" :key="index" style="vertical-align: middle;	text-align: center;">
                       <div v-if="imgFormat(scope.row.FileUrl, index)">
                         <el-link :href="'http://' + fileurlcut(scope.row.FileUrl, index)" target="_blank" type="primary">
-                          {{tmpUrl.split('|')[-1]}}</el-link>
+                          {{tmpUrl.split('|')[1]}}</el-link>
                       </div>
                       <div v-else>
                         <img