Prechádzať zdrojové kódy

钢材报表问题修改

xiaosonghong 7 mesiacov pred
rodič
commit
7853a84b9f

+ 2 - 2
src/views/OYE/components/oYeTransResult.vue

@@ -458,11 +458,11 @@
         >
           <template slot-scope="scope">
             <span
-              v-if="scope.row.addressPlace.indexOf('新地址') >= 0"
+              v-if="scope.row.addressPlace != null && scope.row.addressPlace.indexOf('新地址') >= 0"
               style="color:red"
               >{{ scope.row.addressPlace }}</span
             >
-            <span v-show="scope.row.addressPlace.indexOf('新地址') < 0">{{
+            <span v-show="scope.row.addressPlace == null || scope.row.addressPlace.indexOf('新地址') < 0">{{
               scope.row.addressPlace
             }}</span>
           </template>