Explorar el Código

通讯录显示问题

wangqiang hace 1 año
padre
commit
5827f6b9e9

+ 3 - 1
pages/addressbook/addressbook.vue

@@ -26,7 +26,9 @@
 							<!-- <view class="cu-avatar round " :style="'background-image:url('+(user.photo?user.photo:'/h5/static/user/flat-avatar.png')+');'"></view> -->
 							<text class="list__item__user-name">{{user.name}}</text>
 							<!-- 新增的展示其他信息的元素 -->
-							<text class="list__item__additional-info">{{ user.officeDTO.name }}</text>
+							<!-- 使用条件渲染检查 user.officeDTO.name 是否为 null -->
+							<text class="list__item__additional-info" v-if="user.officeDTO">{{ user.officeDTO.name }}</text>
+<!--							<text class="list__item__additional-info">{{ user.officeDTO.name }}</text>-->
 							<!-- 新的电话号码信息 -->
 							<text class="list__item__phone-number">{{ user.mobile }}</text>
 						</view>

+ 3 - 1
pages/apps/notification/notificationDetail.vue

@@ -87,7 +87,9 @@
 						name: name,
 					}).then((data) => {
 						console.log('data', data)
-						window.open(data, '_blank'); // 在新标签页或新窗口打开文件
+						// window.open(data, '_blank'); // 在新标签页或新窗口打开文件
+						// 在新窗口打开下载链接
+						window.location.href = data;
 					})
 
 				}

+ 4 - 4
pages/workbench/workbench.vue

@@ -36,10 +36,10 @@
 					</view>
 				</view>
 				<view class="cu-list grid col-4 no-border">
-				<view class="circle-button-box" @click="start(act)" v-for="(act, index) in processMap.get(key)" :key="index">
-					<view class="cuIcon-calendar bg-blue text-white circle-button font-size-35"></view>
-					<text class="ellipsis-description">{{act.name}}</text>
-				</view>
+					<view class="circle-button-box" @click="start(act)" v-for="(act, index) in processMap.get(key)" :key="index">
+						<view class="cuIcon-calendar bg-blue text-white circle-button font-size-35"></view>
+						<text class="ellipsis-description">{{act.name}}</text>
+					</view>
 				</view>
 			</template>
 			<u-gap height="80" bgColor="#fff"></u-gap>