asd26269546 hace 1 año
padre
commit
f68543ae21
Se han modificado 2 ficheros con 5 adiciones y 2 borrados
  1. 1 1
      src/components/common-list.vue
  2. 4 1
      src/views/customer/file/index.vue

+ 1 - 1
src/components/common-list.vue

@@ -20,7 +20,7 @@
           @click="listCk(i)"
         >
           <div v-for="j in config" :key="j.prop" style="display: flex">
-            <span>{{ j.label }}:</span>
+            <span style="width:72px;">{{ j.label }}:</span>
             <span v-if="j.type && j.type === 'slot'">
               <slot :name="j.slotName" :row="i">
                 {{ j.slotName }}插槽占位符

+ 4 - 1
src/views/customer/file/index.vue

@@ -44,9 +44,12 @@ const getList = (type) => {
     .then((res) => {
       if (res.data.rows && res.data.rows.length > 0) {
         res.data.rows = res.data.rows.map((item) => {
+          item.countryName = item.countryName ? item.countryName : "";
+          item.provinceName = item.provinceName ? item.provinceName : "";
+          item.cityName = item.cityName ? item.cityName : "";
           return {
             ...item,
-            cityText: item.countryName || null + "," + item.provinceName || null  + "," + item.cityName || null ,
+            cityText: item.countryName + "," + item.provinceName   + "," + item.cityName ,
           };
         });
       }