|
@@ -729,10 +729,10 @@ export default {
|
|
|
submitForm() {
|
|
|
this.$refs["form"].validate(valid => {
|
|
|
if (valid) {
|
|
|
- this.form.validityBefore = this.chooseDate[0];
|
|
|
- this.form.validityAfter = this.chooseDate[1];
|
|
|
- console.info("validityBefore:" + this.form.validityBefore)
|
|
|
- console.info("validityAfter:" + this.form.validityAfter)
|
|
|
+ if (this.form.isPermanent === 0) {
|
|
|
+ this.form.validityBefore = this.chooseDate[0];
|
|
|
+ this.form.validityAfter = this.chooseDate[1];
|
|
|
+ }
|
|
|
if (this.form.id != null) {
|
|
|
updateSafetyapproval(this.form).then(response => {
|
|
|
this.msgSuccess(this.$t('修改成功'));
|