|
@@ -176,7 +176,11 @@ export default {
|
|
|
if (this.certificate.id) {
|
|
|
this.$refs.landCertificateForm.validate(valid => {
|
|
|
if (valid) {
|
|
|
- this.certificate.landLimitDate = moment(this.certificate.limitDateD).format('YYYY年MM月DD日');
|
|
|
+ if (this.certificate.limitDateD){
|
|
|
+ this.certificate.landLimitDate = moment(this.certificate.limitDateD).format('YYYY年MM月DD日');
|
|
|
+ }else{
|
|
|
+ this.certificate.landLimitDate = null
|
|
|
+ }
|
|
|
this.$api.personalTarget.updateLandCer(this.certificate).then(res => {
|
|
|
if (res.code === 200 && res.data) {
|
|
|
this.$notify({
|