|
|
@@ -469,8 +469,9 @@ Page({
|
|
|
},
|
|
|
reset() {
|
|
|
let form = this.data.form;
|
|
|
- form[4].value = "";
|
|
|
- form.splice(5, 2);
|
|
|
+ let index = form.findIndex(v => v.label == '开始日期');
|
|
|
+ form[index].value = "";
|
|
|
+ form.splice(index + 1, 2);
|
|
|
this.setData({
|
|
|
isReset: true,
|
|
|
disabled: true,
|