From 63be6c3a6e0308812cb9f0ab26a15aff293200a0 Mon Sep 17 00:00:00 2001 From: Surpriseplus <845948745@qq.com> Date: 星期四, 11 五月 2023 16:06:43 +0800 Subject: [PATCH] 模型发布预览修改,属性查询修改 --- src/views/datamanage/uploadmanage.vue | 40 ++++++++++++++++++---------------------- 1 files changed, 18 insertions(+), 22 deletions(-) diff --git a/src/views/datamanage/uploadmanage.vue b/src/views/datamanage/uploadmanage.vue index a6d3a59..29bd7b6 100644 --- a/src/views/datamanage/uploadmanage.vue +++ b/src/views/datamanage/uploadmanage.vue @@ -129,14 +129,13 @@ size="small" :title="$t('dataManage.vmobj.keyword')" v-model="formInline.name" - :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valuedataName')" + :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valuedataName')" > <i @click="getTableData" :title="$t('common.iquery')" slot="suffix" class="el-icon-search" style="padding-right: 8px" - ></i></el-input> </el-form-item> <el-form-item style="float:right"> @@ -674,25 +673,19 @@ this.$message.error("鍚嶇О涓嶈兘涓虹┖") return } - if (!min) { - this.$message.error("璇疯緭鍏ユ渶灏忕骇鍒�(0 ~ 20)") - return - } else { - if (parseInt(min) < 0 || parseInt(min) > 20) { - this.$message.error(" 鏈�灏忕骇鍒笉鑳藉皬浜� 0 鎴栧ぇ浜� 20 ") - return - } - } - if (!max) { - this.$message.error("璇疯緭鍏ユ渶澶х骇鍒�(0 ~ 20)") + + if (parseInt(min) < 0 || parseInt(min) > 20) { + this.$message.error("鏈�灏忕骇鍒笉鑳藉皬浜� 0 鎴栧ぇ浜� 20 ") return - } else { - if (parseInt(max) < 0 || parseInt(max) > 20) { - this.$message.error(" 鏈�澶х骇鍒笉鑳藉皬浜� 0 鎴栧ぇ浜� 20 ") - return - } } + + + if (parseInt(max) < 0 || parseInt(max) > 20) { + this.$message.error(" 鏈�澶х骇鍒笉鑳藉皬浜� 0 鎴栧ぇ浜� 20 ") + return + } + if (parseInt(min) > parseInt(max)) { this.$message.error("鏈�灏忕骇鍒笉寰楀ぇ浜庢渶澶х骇鍒�") return @@ -715,14 +708,14 @@ this.insertDialogVisible = false; const data = await publish_insert(obj); - if (data.code != 200 || data.count > 0) { - this.$message.error("鏁版嵁鍙戝竷澶辫触") - } else { + if (data.code == 200 && data.result > 0) { this.$message({ message: '鏁版嵁鍙戝竷鎴愬姛', type: 'success' }); + } else { + this.$message.error("鏁版嵁鍙戝竷澶辫触") } this.loadDialogVisible = false this.getTableData(); @@ -735,7 +728,8 @@ return } if (this.formInline.type == "DOM" || this.formInline.type == "DEM") { - this.insertLayer.name = this.formInline.dirName; + + this.insertLayer.name = this.multipleSelection[0].name.split('.')[0]; this.insertLayer.number = this.multipleSelection.length this.insertLayer.noData = '0'; this.insertDialogVisible = true; @@ -744,12 +738,14 @@ for (var i in this.multipleSelection) { std.push(this.multipleSelection[i].id) } + var obj = { dircode: this.formInline.dirid, depcode: this.formInline.depid, ids: std, type: this.formInline.type } + this.loadDialogVisible = true this.insertDialogVisible = false; -- Gitblit v1.9.3