From ec511e31e01a195bfea5145f9e7e929a68cd9f7e Mon Sep 17 00:00:00 2001
From: liuwh <hugeinfo123>
Date: Wed, 25 Mar 2020 01:05:55 +0800
Subject: [PATCH] 提交

---
 SunshineLnsMinApp/pages/rzcx/rzcx.js |   26 ++++++++++++++------------
 1 files changed, 14 insertions(+), 12 deletions(-)

diff --git a/SunshineLnsMinApp/pages/rzcx/rzcx.js b/SunshineLnsMinApp/pages/rzcx/rzcx.js
index a378fa9..d5bb9da 100644
--- a/SunshineLnsMinApp/pages/rzcx/rzcx.js
+++ b/SunshineLnsMinApp/pages/rzcx/rzcx.js
@@ -16,13 +16,14 @@
     evalList: {},
     dataSet: {},
     picturesInfo: {},
-    entityId: ''
+    entityId: '',
+    approveLogs: []
   },
 
   /**
    * 生命周期函数--监听页面加载
    */
-  onLoad: function (options) {
+  onLoad: function(options) {
     var that = this;
     console.log(options)
     let id = options.id
@@ -34,7 +35,7 @@
     var userinfo = wx.getStorageSync("user");
     wx.request({
       url: app.globalData.url + '/api/entry/find?id=' + id + '&flag=' + flag,
-      success: function (res) {
+      success: function(res) {
         console.log(res.data)
         // if (res.data.code == 0) {
         console.log(res.data)
@@ -59,6 +60,7 @@
             ...res.data,
             createrId: userinfo.id,
           },
+          approveLogs: res.data.approveLogs || [],
           entityId: res.data.id,
           disabled,
           evalList
@@ -73,7 +75,7 @@
     })
   },
 
-  inputChange: function (e) {
+  inputChange: function(e) {
     var name = e.currentTarget.dataset.name;
     this.setData({
       picturesInfo: {
@@ -84,7 +86,7 @@
 
   },
 
-  submit: function (e) {
+  submit: function(e) {
     var picturesInfo = this.data.picturesInfo;
 
     if (!picturesInfo.reason) {
@@ -99,14 +101,14 @@
       header: {
         "Content-Type": "application/json"
       },
-      success: function (res) {
+      success: function(res) {
         // if (res.data.code == 0) {
         wx.showToast({
           title: '提交成功',
           icon: 'success',
           duration: 2000
         })
-        setTimeout(function () {
+        setTimeout(function() {
           wx.reLaunch({
             url: '../zhwj/zhwj',
           })
@@ -122,24 +124,24 @@
   },
 
   // 删除图片
-  clearImg: function (e) {
+  clearImg: function(e) {
     var that = this;
     app.clearImg(e, that)
   },
 
   //预览图片
-  previewImage: function (e) {
+  previewImage: function(e) {
     app.previewImage(e)
   },
 
-  uploadFiles: function (e) {
+  uploadFiles: function(e) {
     var that = this;
     wx.showActionSheet({
       itemList: ['拍照上传', '选择图片'],
-      success: function (res) {
+      success: function(res) {
         app.joinPicture(e, that, 1019, that.data.entityId)
       },
-      fail: function (res) {}
+      fail: function(res) {}
     })
   },
 })
\ No newline at end of file

--
Gitblit v1.8.0