|
@@ -26,7 +26,8 @@ Page({
|
|
|
*/
|
|
|
onLoad(options) {
|
|
|
this.setData({
|
|
|
- sat_submiteditmodelid: options.id
|
|
|
+ sat_submiteditmodelid: options.id,
|
|
|
+ ishistory: options.ishistory
|
|
|
})
|
|
|
|
|
|
//查询详情
|
|
@@ -53,11 +54,16 @@ Page({
|
|
|
detailsData: res.data[0],
|
|
|
oneToOne: options.oneToOne
|
|
|
});
|
|
|
- if (options.oneToOne == 'true' && res.data[0].submitedit.length == 1) {
|
|
|
+ if (options.ishistory == 1) {
|
|
|
this.setData({
|
|
|
done: true
|
|
|
})
|
|
|
- }
|
|
|
+ } else if (options.oneToOne == 'true' && res.data[0].submitedit.length == 1) {
|
|
|
+ this.setData({
|
|
|
+ done: true
|
|
|
+ })
|
|
|
+ };
|
|
|
+
|
|
|
});
|
|
|
},
|
|
|
|