From a6653e19d20a61e7b8f788037d2a4df3f93a4f32 Mon Sep 17 00:00:00 2001
From: queenwuli <942534046@qq.com>
Date: Tue, 12 Jan 2021 16:51:03 +0800
Subject: [PATCH] gx

---
 hive-app/pages/workbench/followRecords/index.vue |   20 +++++++++++++++++++-
 1 files changed, 19 insertions(+), 1 deletions(-)

diff --git a/hive-app/pages/workbench/followRecords/index.vue b/hive-app/pages/workbench/followRecords/index.vue
index 9ea4d6f..bafbeeb 100644
--- a/hive-app/pages/workbench/followRecords/index.vue
+++ b/hive-app/pages/workbench/followRecords/index.vue
@@ -55,6 +55,7 @@
 		<view v-if="list.length">
 			<uni-load-more :status="loadStatus" color="#a5abaf"></uni-load-more>
 		</view>
+		<no-record :isShow="!list.length" txt="暂无跟进记录"></no-record>
 		<view v-if="isShowComments" class="message-row" @click.stop="">
 			<input type="text" v-model="comment" cursor-spacing="10" :focus="isShowComments" class="message-input" placeholder="评论" placeholder-class="placeholder"/>
 			<button class="green-btn message-btn" :disabled="!comment" @click="addFollowupComment">发送</button>
@@ -110,14 +111,31 @@
 				uni.navigateTo({
 					url:"./addRecord"
 				})
+				this.isShowFilter = false;
 			}
 			if(e.index==1){
 				this.isShowFilter = !this.isShowFilter;
 			}
 		},
-		onLoad() {
+		onLoad(options) {
+			if(options.selectInfo){
+				this.vipList.push(JSON.parse(options.selectInfo))
+			}
 			this.getUserInfo()
 			this.reloadList()
+			
+			// 判断权限
+			// #ifdef APP-PLUS
+			if(!this.$utils.hasPermission('gjjl.add')){
+				let webView = this.$mp.page.$getAppWebview();
+				webView.setTitleNViewButtonStyle(0, {
+				    width: 0,  
+				});
+			}
+			// #endif
+		},
+		onShow() {
+			this.reloadList()
 		},
 		onPullDownRefresh(){
 			this.reloadData();

--
Gitblit v1.9.1