From 413eae5cb4d5fe78fc25258bf7b5e3b53740b1f9 Mon Sep 17 00:00:00 2001
From: xyc <jc_xiong@hotmail.com>
Date: 星期三, 24 七月 2024 11:08:01 +0800
Subject: [PATCH] 1)新增仿真时模型及参数完整性检查 2)增加调用算法库后端接口
---
web/src/views/modules/basicInfo/XhProductModel-AddOrUpdate.vue | 17 +++++++++++------
1 files changed, 11 insertions(+), 6 deletions(-)
diff --git a/web/src/views/modules/basicInfo/XhProductModel-AddOrUpdate.vue b/web/src/views/modules/basicInfo/XhProductModel-AddOrUpdate.vue
index f48641b..cf6daf8 100644
--- a/web/src/views/modules/basicInfo/XhProductModel-AddOrUpdate.vue
+++ b/web/src/views/modules/basicInfo/XhProductModel-AddOrUpdate.vue
@@ -11,7 +11,7 @@
<zt-dict v-model="dataForm.productType" dict="product" @input="getDefaultImg"
:disabled="disabled"></zt-dict>
</zt-form-item>
- <zt-form-item label="杩愯鐘舵�佸浘" prop="operatImg" v-if="isShow">
+ <zt-form-item label="杩愯鐘舵�佸浘" prop="operatImg">
<el-input v-model="dataForm.operatImgName" @focus="selectPicture()"></el-input>
<el-image v-if="dataForm.operatImg" :src="url+dataForm.operatImg" style="height: 50px;width: 50px"></el-image>
</zt-form-item>
@@ -56,16 +56,19 @@
if (params.type === 'xh') {
this.isShow = false
this.dataForm.pid = null
- this.dataForm.productType = 5
+ this.dataForm.productType = 1
+ this.getDefaultImg(this.dataForm.productType)
} else if (params.type === 'zt') {
this.dataForm.pid = params.pid
- this.dataForm.productType = 4
+ this.dataForm.productType = 2
this.getProductList()
+ this.getDefaultImg(this.dataForm.productType)
} else {
this.dataForm.pid = params.pid
this.dataForm.productType = params.type
}
if (this.dataForm.productType === 10 && id == null) {
+ this.isShow = false
this.getDefaultImg(this.dataForm.productType)
}
},
@@ -81,8 +84,10 @@
productType: selected
}
let res = await this.$http.get(`/sysPictureBase/getDefaultImg`, {params: params})
- this.dataForm.operatImgName = res.data.name
- this.dataForm.operatImg = res.data.id
+ if (res.data){
+ this.dataForm.operatImgName = res.data.name
+ this.dataForm.operatImg = res.data.id
+ }
},
selectPicture() {
this.$refs.pictureSelect.$refs.dialog.init(this.dataForm.productType)
@@ -104,7 +109,7 @@
async formSubmit() {
let flag = true
if (this.isShow) {
- if (this.dataForm.productType === '5') {
+ if (this.dataForm.productType === '1') {
this.$alert("涓嶆敮鎸佹柊澧炴鑺傜偣")
flag = false
}
--
Gitblit v1.9.1