高敬炎 2 vuotta sitten
vanhempi
commit
6148d0a702
1 muutettua tiedostoa jossa 18 lisäystä ja 3 poistoa
  1. 18 3
      pages/universalityAudit/look.vue

+ 18 - 3
pages/universalityAudit/look.vue

@@ -157,6 +157,21 @@
 					}
 				});
 			},
+			openDocument(src) {
+				uni.downloadFile({
+					url: src.appendixPath,
+					success: function(res) {
+						var filePath = res.tempFilePath;
+						uni.openDocument({
+							filePath: filePath,
+							showMenu: true,
+							success: function(res) {
+								console.log('打开文档成功');
+							}
+						});
+					}
+				});
+			},
 			getList(){
 				var that =this
 				this.$api.doRequest('get', '/generalAuditInfo/getGeneralAuditInfo', {
@@ -296,11 +311,11 @@
 								}
 							}
 							this.auditList = response.data.data
-							var time2 = new Date(this.list.createDate).getTime()
+							var time2 = new Date(this.dataobj.createDate).getTime()
 							var time3 = this.$u.timeFormat(time2, 'mm.dd hh:MM')
 							this.auditList.unshift({
-								operatorTitle: this.list.creater.substring(0, 2),
-								operatorName: this.list.creater,
+								operatorTitle: this.dataobj.creater.substring(0, 2),
+								operatorName: this.dataobj.creater,
 								updateDate: time3,
 								auditMind: '',
 								desc: '发起申请',