hanfucheng 1 tahun lalu
induk
melakukan
53b1381517
1 mengubah file dengan 5 tambahan dan 3 penghapusan
  1. 5 3
      data-ui/src/views/data/housingconstruction/car/index.vue

+ 5 - 3
data-ui/src/views/data/housingconstruction/car/index.vue

@@ -440,9 +440,11 @@ export default {
           this.form.driverName = this.sjList.filter((item) => {
             return this.form.driverId == item.id;
           })[0].staffName;
-          this.form.escortName = this.psyList.filter((item) => {
-            return this.form.escortId == item.id;
-          })[0].staffName;
+          if (this.form.escortId != null){
+            this.form.escortName = this.psyList.filter((item) => {
+              return this.form.escortId == item.id;
+            })[0].staffName;
+          }
           if (this.form.id != null) {
             updateCar(this.form).then(response => {
               this.$modal.msgSuccess("修改成功");