liuhj il y a 10 mois
Parent
commit
7d8665400a
1 fichiers modifiés avec 7 ajouts et 2 suppressions
  1. 7 2
      src/components/OP/CarTouristGuideGrounContent.vue

+ 7 - 2
src/components/OP/CarTouristGuideGrounContent.vue

@@ -10,7 +10,7 @@
                 <el-table-column width="100" property="date" label="日期"></el-table-column>
                 <el-table-column width="70" label="车费用">
                     <template slot-scope="scope">
-                        {{ townum(scope.row.carFee) + ' ' + bizhong }}
+                        {{ townum(scope.row.carFee) + '\n' + bizhong }}
                     </template>
                 </el-table-column>
                 <el-table-column width="70" label="车型">
@@ -335,6 +335,7 @@
     </div>
 </template>
 <script>
+import { el } from '@fullcalendar/core/internal-common'
 export default {
     data() {
         return {
@@ -393,7 +394,11 @@ export default {
     methods: {
         //保留两位小数
         townum(val) {
-            return val.toFixed(2)
+            if(val==0.00){
+                return '--'
+            }else{
+                return val.toFixed(2)
+            }
         },
         //获取成本提示
         getcostbudgeting() {