| | |
| | | optionx: [], |
| | | imagePoint: null, |
| | | Layerprimit: null, |
| | | insertOption: null, |
| | | isflag: true, |
| | | } |
| | | }, |
| | | methods: { |
| | |
| | | |
| | | // this.dialogInsertVisible = false |
| | | // this.dialogVisible = true |
| | | if (this.isflag) { |
| | | this.codeForm = res; |
| | | this.download1(); |
| | | this.isflag = false |
| | | } |
| | | |
| | | this.codeForm = res; |
| | | this.download(); |
| | | }, |
| | | handleInsertClose() { |
| | | this.$confirm("确认关闭?") |
| | |
| | | encrypt.setPublicKey(res.result) |
| | | } |
| | | }, |
| | | async download() { |
| | | async download1() { |
| | | if (this.codeForm.password == "") return |
| | | |
| | | var entities = []; |
| | |
| | | // } |
| | | }, |
| | | async getInsertApply(res) { |
| | | var entities = []; |
| | | var tabs = []; |
| | | for (var i in this.option) { |
| | | entities.push(this.option[i].entity) |
| | | tabs.push(this.option[i].tabDesc) |
| | | } |
| | | var std = []; |
| | | for (var i in this.ruleForm.depname) { |
| | | std.push(this.ruleForm.depname[i].name) |
| | | } |
| | | |
| | | var obj = { |
| | | pwd: encr(this.codeForm.password), |
| | | entities: entities, |
| | | wkt: this.listdata.wkt, |
| | | filter: null, |
| | | ids: null, |
| | | depcode: null, |
| | | dirs: null, |
| | | depcodes: std, |
| | | descr: res.descr, |
| | | tabs: tabs |
| | | } |
| | | const data = await apply_insertApply(JSON.stringify(obj)) |
| | | if (data.code != 200) { |
| | | this.$message.error("数据申请失败") |
| | | return |
| | | } |
| | | this.$message({ |
| | | message: "数据申请成功", |
| | | type: "success", |
| | | }) |
| | | if (!this.isflag) { |
| | | var entities = []; |
| | | var tabs = []; |
| | | if (this.option.length != res.tabs.length) { |
| | | return |
| | | } |
| | | |
| | | for (var i in this.option) { |
| | | entities.push(this.option[i].entity) |
| | | tabs.push(this.option[i].tabDesc) |
| | | } |
| | | var std = []; |
| | | for (var i in this.ruleForm.depname) { |
| | | std.push(this.ruleForm.depname[i].name) |
| | | } |
| | | var obj = { |
| | | pwd: encr(this.codeForm.password), |
| | | entities: entities, |
| | | wkt: this.listdata.wkt, |
| | | filter: null, |
| | | ids: null, |
| | | depcode: null, |
| | | dirs: null, |
| | | depcodes: std, |
| | | descr: res.descr, |
| | | tabs: tabs |
| | | } |
| | | const data = await apply_insertApply(JSON.stringify(obj)) |
| | | if (data.code != 200) { |
| | | this.$message.error("数据申请失败") |
| | | return |
| | | } |
| | | this.$message({ |
| | | message: "数据申请成功", |
| | | type: "success", |
| | | }) |
| | | this.isflag = true; |
| | | } |
| | | }, |
| | | |
| | | |
| | |
| | | "&pwd=" + |
| | | encodeURIComponent(rspwd) |
| | | $("#Iframe1").attr("src", url).click() |
| | | // this.isflag = true; |
| | | }, |
| | | handleCloseDown() { |
| | | this.$confirm("确认关闭?") |
| | |
| | | }, |
| | | }, |
| | | created() { |
| | | |
| | | this.setTableAll() |
| | | |
| | | }, |
| | | mounted() { |
| | | |
| | | this.$bus.$on("changeMapMenuTop", res => { |
| | | if (res == "true") { |
| | | this.setTableAll() |
| | | } |
| | | }) |
| | | this.$bus.$on("setInsertDown", res => { |
| | | this.$bus.$on("setInsertDown2", res => { |
| | | this.getInsertDown(res) |
| | | }) |
| | | this.$bus.$on("setInsertApply", res => { |
| | | this.$bus.$on("setInsertDown1", res => { |
| | | |
| | | this.getInsertDown(res) |
| | | }) |
| | | this.$bus.$on("setInsertApply1", res => { |
| | | |
| | | this.getInsertApply(res) |
| | | }) |
| | | }, |