Browse Source

修改传值问题

haojianlong 5 years ago
parent
commit
7831d7d996

+ 5 - 1
src/components/config_point/step3_edit/index.vue

@@ -151,6 +151,10 @@ export default {
   methods: {
     //保存
     save() {
+      if (!this.form.EquipmentMark) {
+        this.errMsg();
+        return false;
+      }
       this.$refs.dictionaryCas.validate(valid => {
         if (valid) {
           for (let i = 0; i < this.typeList.length; i++) {
@@ -248,7 +252,7 @@ export default {
         if (temp.length == 3) {
           //设备-部件-空间
           eachData.EquipmentTypeCode = temp[1]
-          eachData.EquipmentType = temp[1]
+          eachData.EquipmentType = tempNames[1]
         } else if (temp.length == 4) {
           eachData.SpecialtyCode = temp[1]
           eachData.Specialty = tempNames[1]

+ 1 - 1
src/components/config_point/step3_point/3_temps.vue

@@ -406,7 +406,7 @@ export default {
         if (temp.length == 3) {
           //设备-部件-空间
           eachData.EquipmentTypeCode = temp[1]
-          eachData.EquipmentType = temp[1]
+          eachData.EquipmentType = tempNames[1]
         } else if (temp.length == 4) {
           eachData.SpecialtyCode = temp[1]
           eachData.Specialty = tempNames[1]