| | |
| | | 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"> |
| | |
| | | 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 |
| | |
| | | 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(); |
| | |
| | | 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; |
| | |
| | | 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; |
| | | |