Files
electron-4/src/main/backManage/static/js/chunk-7a11d744.1f59da7d.js
2025-12-09 10:54:36 +08:00

1 line
5.5 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7a11d744"],{8581:function(t,e,o){"use strict";o.r(e);var a=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("el-form",{ref:"form",attrs:{model:t.form,"label-width":"80px"}},[o("el-form-item",{attrs:{label:"服务器IP"}},[o("el-input",{model:{value:t.form.http.host,callback:function(e){t.$set(t.form.http,"host",e)},expression:"form.http.host"}})],1),o("el-form-item",{attrs:{label:"端口"}},[o("el-input",{attrs:{disabled:""},model:{value:t.form.http.port,callback:function(e){t.$set(t.form.http,"port",e)},expression:"form.http.port"}})],1),o("el-form-item",{attrs:{label:"数据路径"}},[o("el-input",{model:{value:t.form.tong_bu.path,callback:function(e){t.$set(t.form.tong_bu,"path",e)},expression:"form.tong_bu.path"}})],1),o("el-form-item",{attrs:{label:"军标库"}},[o("el-input",{attrs:{disabled:""},model:{value:t.form.jun_biao_path,callback:function(e){t.$set(t.form,"jun_biao_path",e)},expression:"form.jun_biao_path"}},[o("div",{attrs:{slot:"append"},slot:"append"},[[o("el-upload",{ref:"junbiaoupload",attrs:{action:t.action,headers:t.headers,"on-success":t.onpoisuccess,accept:".junbiao"}},[o("el-button",{attrs:{size:"small",title:"点击导入军标",icon:"el-icon-upload2",type:"primary"}})],1)]],2)])],1),o("el-form-item",{attrs:{label:"模型库"}},[o("el-input",{attrs:{disabled:""},model:{value:t.form.model_path,callback:function(e){t.$set(t.form,"model_path",e)},expression:"form.model_path"}},[o("div",{attrs:{slot:"append"},slot:"append"},[[o("el-upload",{ref:"modelupload",staticClass:"upload-demo",attrs:{action:t.action,accept:".model",headers:t.headers,timeout:"360s","on-success":t.onpoisuccess}},[o("el-button",{attrs:{size:"small",title:"点击导入poi数据",icon:"el-icon-upload2",type:"primary"}})],1)]],2)])],1),o("el-form-item",{attrs:{label:"poi"}},[o("el-input",{attrs:{placeholder:"请导入poi数据",disabled:""},model:{value:t.form.poi_path,callback:function(e){t.$set(t.form,"poi_path",e)},expression:"form.poi_path"}},[o("div",{attrs:{slot:"append"},slot:"append"},[[o("el-upload",{ref:"poiupload",staticClass:"upload-demo",attrs:{action:t.action,accept:".poi",headers:t.headers,"on-success":t.onpoisuccess}},[o("el-button",{attrs:{size:"small",title:"点击导入poi数据",icon:"el-icon-upload2",type:"primary"}})],1)]],2)])],1),o("el-form-item",{attrs:{label:"路网数据"}},[o("el-input",{attrs:{placeholder:"请导入路网数据",disabled:""},model:{value:t.form.pbf_path,callback:function(e){t.$set(t.form,"pbf_path",e)},expression:"form.pbf_path"}},[o("div",{attrs:{slot:"append"},slot:"append"},[[o("el-upload",{ref:"pbfupload",attrs:{action:t.action,headers:t.headers,"on-success":t.onpoisuccess,accept:".pbf"}},[o("el-button",{attrs:{size:"small",title:"点击导入路网数据",icon:"el-icon-upload2",type:"primary"}})],1)]],2)])],1),o("el-form-item",{attrs:{label:"是否代理"}},[o("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-text":"开","inactive-text":"关"},model:{value:t.form.proxy,callback:function(e){t.$set(t.form,"proxy",e)},expression:"form.proxy"}})],1),o("el-form-item",{attrs:{label:"代理前缀"}},[o("el-input",{attrs:{disabled:""},model:{value:t.form.prefix,callback:function(e){t.$set(t.form,"prefix",e)},expression:"form.prefix"}})],1),o("el-form-item",{attrs:{label:"工程导入"}},[o("el-upload",{staticClass:"upload-demo",attrs:{drag:"",headers:t.headers,action:"/yjearth4.0/api/v1/project/import",multiple:"",accept:".zip"}},[o("i",{staticClass:"el-icon-upload"}),o("div",{staticClass:"el-upload__text"},[t._v("将工程文件拖到此处,或"),o("em",[t._v("点击上传")])])])],1),o("el-form-item",{attrs:{label:"备注"}},[o("span",{staticStyle:{color:"red","font-size":"20px","font-weight":"bolder"}},[t._v(" "+t._s(t.content)+" ")])]),o("el-form-item",[o("el-button",{attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v("确定")])],1)],1)},l=[],r=o("ad8f"),s=o("5f87"),i=o("5c96"),p={name:"index",data:function(){return{headers:{token:Object(s["a"])()},action:"/yjearth4.0/api/v1/source/import_poi",content:"网络版可使用当前功能进行模型库军标库poi路网数据的导入。单机版请勿使用。",form:{http:{host:""},tong_bu:{path:""},proxy:!1,prefix:"yjearth4.0",port:8895,jun_biao_path:"",pbf_path:"",poi_path:"",model_path:""}}},mounted:function(){this.getinfo()},methods:{onpoisuccess:function(t,e,o){this.$refs.poiupload.clearFiles(),this.$refs.pbfupload.clearFiles(),this.$refs.junbiaoupload.clearFiles(),this.$refs.modelupload.clearFiles(),t.code?Object(i["Message"])({message:t.message,type:"error",duration:2e3}):(Object(i["Message"])({message:"操作成功",type:"success",duration:2e3}),this.getinfo())},getinfo:function(){var t=this;Object(r["b"])().then((function(e){t.form.http=e.data.http,t.form.tong_bu=e.data.tong_bu,t.form.proxy=e.data.proxy,t.form.port=e.data.port,t.form.jun_biao_path=e.data.jun_biao_path,t.form.model_path=e.data.model_path,t.form.poi_path=e.data.poi_path,t.form.pbf_path=e.data.pbf_path}))},onSubmit:function(){Object(r["c"])(this.form).then((function(t){console.log("submit!")}))}}},n=p,c=o("2877"),u=Object(c["a"])(n,a,l,!1,null,"3e9537ea",null);e["default"]=u.exports},ad8f:function(t,e,o){"use strict";o.d(e,"a",(function(){return l})),o.d(e,"b",(function(){return r})),o.d(e,"c",(function(){return s}));var a=o("b775");function l(){return Object(a["a"])({url:"/auth/check",method:"post"})}function r(){return Object(a["a"])({url:"/ini/info",method:"get"})}function s(t){return Object(a["a"])({url:"/ini/update",method:"post",data:t})}}}]);