| | |
| | | size="small" |
| | | :title="$t('dataManage.vmobj.keyword')" |
| | | v-model="formInline.name" |
| | | :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valuedataName')" |
| | | > <i |
| | | @click="getTableData" |
| | | :title="$t('common.iquery')" |
| | |
| | | ></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item :label="$t('dataManage.vmobj.minLevel')"> |
| | | <el-form-item |
| | | v-show="formInline.type !='DEM'" |
| | | :label="$t('dataManage.vmobj.minLevel')" |
| | | > |
| | | <!-- <el-input |
| | | v-model="insertLayer.min" |
| | | :placeholder="$t('dataManage.vmobj.labe11')" |
| | |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item :label="$t('dataManage.vmobj.maxLevel')"> |
| | | <el-form-item |
| | | :label="$t('dataManage.vmobj.maxLevel')" |
| | | v-show="formInline.type !='DEM'" |
| | | > |
| | | <!-- <el-input |
| | | v-model="insertLayer.max" |
| | | :placeholder="$t('dataManage.vmobj.labe12')" |
| | |
| | | }, |
| | | //发布提交 |
| | | async setinsertLayerSubmit() { |
| | | |
| | | var min = this.insertLayer.min; |
| | | var max = this.insertLayer.max; |
| | | var name = this.insertLayer.name; |
| | | if (this.formInline.type == 'DEM') { |
| | | min = 0; |
| | | max = 18; |
| | | } |
| | | if (!name) { |
| | | 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; |
| | | |
| | |
| | | //分页切换 |
| | | handleCurrentChange(val) { |
| | | this.listData.pageIndex = val; |
| | | this.getTableData(); |
| | | this.getTableData_one(); |
| | | }, |
| | | //每页显示数量 |
| | | handleSizeChange(val) { |
| | | this.listData.pageSize = val; |
| | | this.listData.pageIndex = 1; |
| | | this.getTableData(); |
| | | this.getTableData_one(); |
| | | }, |
| | | //tabs切換 |
| | | setTabsChange(res) { |
| | |
| | | }, |
| | | //获取Table表格数据 |
| | | async getTableData() { |
| | | this.tableData = []; |
| | | |
| | | this.listData.count = 0; |
| | | this.listData.pageIndex = 1; |
| | | this.getTableData_one(); |
| | | }, |
| | | async getTableData_one() { |
| | | this.tableData = []; |
| | | if (this.active == "first") { |
| | | |
| | | this.listData.depcode = this.formInline.depid; |