|
@@ -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]
|