This commit is contained in:
yanran200730
2022-01-27 10:03:21 +08:00

View File

@@ -967,7 +967,7 @@ export default {
starTime: this.jobForm.date[0],
endTime: this.jobForm.date[1],
}))
if (this.jobId != "") {
if (this.jobId !== "") {
this.form.workInfoList.splice(this.jobId, 1, info)
} else {
this.form.workInfoList.push(info)
@@ -980,7 +980,7 @@ export default {
this.$refs.starForm.validate((valid) => {
if (valid) {
let info = JSON.parse(JSON.stringify(this.starForm))
if (this.starId != "") {
if (this.starId !== "") {
this.form.starList.splice(this.starId, 1, info)
} else {
this.form.starList.push(info)
@@ -993,7 +993,7 @@ export default {
this.$refs.disciplinaryForm.validate((valid) => {
if (valid) {
let info = JSON.parse(JSON.stringify(this.disciplinaryForm))
if (this.disciplinaryId != "") {
if (this.disciplinaryId !== "") {
this.form.disciplinaryInfoList.splice(this.disciplinaryId, 1, info)
} else {
this.form.disciplinaryInfoList.push(info)