Browse Source

no message

USER-20230908AJ\Administrator 1 year ago
parent
commit
bb1caa76c3
2 changed files with 13 additions and 4 deletions
  1. 10 1
      page_task/property/components/house.vue
  2. 3 3
      page_task/property/property.vue

+ 10 - 1
page_task/property/components/house.vue

@@ -30,7 +30,7 @@
 					</view>
 					<view class="row p-t30">
 						<view class="text-color-666"><text></text>房屋用途:</view>
-						<text class="flex">{{item.data.house_city}}</text>
+						<text class="flex">{{getHouseUse(item.data.house_use)}}</text>
 					</view>
 					<view class="row p-t30">
 						<view class="text-color-666"><text></text>建成年份:</view>
@@ -179,6 +179,15 @@
 			this.setValue()
 		},
 		methods: {
+      getHouseUse(val){
+        val=val*1
+        for (const typeKey in   this.houseTypeData) {
+          if(val===this.houseTypeData[typeKey].value){
+            return this.houseTypeData[typeKey].text
+          }
+        }
+
+      },
       onDeleteInfo(itemKey) {
         uni.showModal({
           title: '是否删除当前资产信息',

+ 3 - 3
page_task/property/property.vue

@@ -34,7 +34,7 @@
 							<House v-model="houseList" :show-keys="propertyKey" @onResize="onResizeInit"></House>
 						</view>
 					</uni-collapse-item>
-					<uni-collapse-item titleBorder="none" :border="true" v-show="propertyKey.indexOf('car_item')>=0"
+					<uni-collapse-item titleBorder="none" :border="true" :rightLength="carList.length" v-show="propertyKey.indexOf('car_item')>=0"
 						class="collapse-item-car    p-30 r-30">
 						<template v-slot:title class="page-box-bg-fff">
 							<view class="row-justify-sb center">
@@ -51,7 +51,7 @@
 								@onResize="onResizeInit"></property-car>
 						</view>
 					</uni-collapse-item>
-					<uni-collapse-item titleBorder="none" :border="true"
+					<uni-collapse-item titleBorder="none" :border="true" :rightLength="insuranceList.length"
 						v-show="propertyKey.indexOf('insurance_item')>=0"
 						class="collapse-item-guarantee  page-box-bg-fff p-30 r-30">
 						<template v-slot:title>
@@ -69,7 +69,7 @@
 								@onResize="onResizeInit"></property-guarantee>
 						</view>
 					</uni-collapse-item>
-					<uni-collapse-item titleBorder="none" :border="true" v-show="propertyKey.indexOf('firm_item')>=0"
+					<uni-collapse-item titleBorder="none" :border="true" v-show="propertyKey.indexOf('firm_item')>=0" :rightLength="firmList.length"
 						class="collapse-item-company page-box-bg-fff p-30 r-30">
 						<template v-slot:title>
 							<view class="row-justify-sb center">