From a8230f1ab02069431738bd72f36ab95a0ace01ae Mon Sep 17 00:00:00 2001
From: xyc <jc_xiong@hotmail.com>
Date: 星期二, 06 八月 2024 15:22:22 +0800
Subject: [PATCH] 修改仿真后台
---
web/src/views/modules/basicInfo/XhProductModel-AddOrUpdate.vue | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/web/src/views/modules/basicInfo/XhProductModel-AddOrUpdate.vue b/web/src/views/modules/basicInfo/XhProductModel-AddOrUpdate.vue
index eed5944..976797f 100644
--- a/web/src/views/modules/basicInfo/XhProductModel-AddOrUpdate.vue
+++ b/web/src/views/modules/basicInfo/XhProductModel-AddOrUpdate.vue
@@ -43,11 +43,12 @@
id: '',
pid: '',
name: '',
+ shipId: '',
productType: '',
operatImg: '',
operatImgName: '',
sort: '',
- equipType:'',
+ equipType: '',
status: ''
}
}
@@ -57,6 +58,9 @@
},
methods: {
init(id, params) {
+ if (params.shipId) {
+ this.dataForm.shipId = params.shipId
+ }
if (params.type === 'xh') {
this.isShow = false
this.dataForm.pid = null
@@ -88,7 +92,7 @@
productType: selected
}
let res = await this.$http.get(`/sysPictureBase/getDefaultImg`, {params: params})
- if (res.data){
+ if (res.data) {
this.dataForm.operatImgName = res.data.name
this.dataForm.operatImg = res.data.id
}
@@ -126,7 +130,6 @@
await this.$tip.success()
this.$refs.dialog.close()
this.$emit('refreshDataList')
- this.map.clear()
}
}
}
--
Gitblit v1.9.1