ccjgmwz 3 years ago
parent
commit
3c51ab8ebb
1 changed files with 7 additions and 1 deletions
  1. 7 1
      pages/attestation/indexTwo.vue

+ 7 - 1
pages/attestation/indexTwo.vue

@@ -111,7 +111,7 @@
 		computed: {
 			...mapState(['hasLogin', 'userInfo'])
 		},
-		onLoad() {
+		onshow() {
 			this.getList()
 		},
 		onPullDownRefresh() {
@@ -199,6 +199,12 @@
 								res.data.data.records[i].basis = "true"
 							}
 						}
+						var data = res.data.data.records
+						for(var i=0;i<data.length;i++){
+							if(data[i].compName.length > 10){
+								data[i].compName = data[i].compName.substring(0,10) + "..."
+							}
+						}
 						this.businessman = res.data.data.records
 
 					})