|
|
@@ -128,11 +128,16 @@ export default {
|
|
|
this.loadingUpdateAssignment = true;
|
|
|
this.submitting = true;
|
|
|
this.isUpdateModalActive = false;
|
|
|
- this.parseParams();
|
|
|
+ // this.parseParams();
|
|
|
+ const param = {
|
|
|
+ ...this.params,
|
|
|
+ startAt: parseInt(this.params.startAt),
|
|
|
+ endAt: parseInt(this.params.endAt)
|
|
|
+ };
|
|
|
if (this.assignType === 1) {
|
|
|
- this.myPromise = putDocAssignment(this.params, this.updateItem.id);
|
|
|
+ this.myPromise = putDocAssignment(param, this.updateItem.id);
|
|
|
} else {
|
|
|
- this.myPromise = putCodeAssignment(this.params, this.updateItem.id);
|
|
|
+ this.myPromise = putCodeAssignment(param, this.updateItem.id);
|
|
|
}
|
|
|
this.myPromise.then(res => {
|
|
|
if (res.code === 0) {
|
|
|
@@ -150,10 +155,6 @@ export default {
|
|
|
});
|
|
|
this.submitting = true;
|
|
|
}
|
|
|
- },
|
|
|
- parseParams() {
|
|
|
- this.params.startAt = parseInt(this.params.startAt);
|
|
|
- this.params.endAt = parseInt(this.params.endAt);
|
|
|
}
|
|
|
},
|
|
|
validations: {
|