hanfucheng преди 1 година
родител
ревизия
53b1381517
променени са 1 файла, в които са добавени 5 реда и са изтрити 3 реда
  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("修改成功");