(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5e4dccd7"],{4944:function(t,e,i){"use strict";i("8412")},8412:function(t,e,i){},f154:function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"app-container"},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"app-form"},[i("div",{staticClass:"app-form-group"},[i("el-alert",{attrs:{type:"warning","show-icon":""}},[i("div",{attrs:{slot:"title"},slot:"title"},[t._v(" 请填入地图Key和安全密钥。不填则无法使用地图选址功能。 "),i("a",{staticStyle:{"margin-left":"10px",color:"#409EFF"},attrs:{href:"https://lbs.amap.com/",target:"_blank"}},[t._v("前往获取")])])]),i("div",{staticClass:"app-form-ti margin-top"},[t._v("高德地图")]),i("form-generator",{ref:"formGenerator",attrs:{"form-config":t.formConfig,"submit-text":"保存配置"},on:{submit:t.submit},model:{value:t.form,callback:function(e){t.form=e},expression:"form"}})],1)])])},o=[],n=i("7f70"),s=(i("9ca6"),i("5c41"),i("0c43"),i("6994"),i("8849"),i("8327")),r={name:"MapConfig",data:function(){return{id:"",form:{h5_map:{key:"",securityJsCode:""},admin_map:{key:"",securityJsCode:""}},loading:!1}},computed:Object(n["a"])(Object(n["a"])({},Object(s["b"])(["config"])),{},{formConfig:function(){var t=[{type:"input",label:"H5地图Key",prop:"h5_map.key",placeholder:"请输入H5地图Key",width:"600px"},{type:"input",InputType:"password",label:"H5地图安全密钥",prop:"h5_map.securityJsCode",placeholder:"请输入作者",width:"600px"},{type:"input",label:"管理后台地图Key",prop:"admin_map.key",placeholder:"请输入管理后台地图Key",width:"600px"},{type:"input",InputType:"password",label:"管理后台地图安全密钥",prop:"admin_map.securityJsCode",placeholder:"请输入管理后台地图安全密钥",width:"600px"}];return t}}),watch:{config:{handler:function(t){t.data&&t.data.map&&this.init()},deep:!0,immediate:!0}},created:function(){this.resetForm(),this.loading=!0},mounted:function(){this.init()},methods:{init:function(){var t=this.$util.restJson(this.config.data.map);t&&(this.loading=!1,this.form={h5_map:t.h5_map,admin_map:t.admin_map})},onBack:function(){this.$router.go(-1)},submit:function(){var t=this;this.api.post("config/mapSubmit",this.form).then((function(e){1==e.code?(t.$util.success(e.message),t.$store.dispatch("settings/getSetting")):t.$util.error(e.message)}))},resetForm:function(){this.form={h5_map:{key:"",securityJsCode:""},admin_map:{key:"",securityJsCode:""}}}}},p=r,c=(i("4944"),i("3d7a")),m=Object(c["a"])(p,a,o,!1,null,"3569a24a",null);e["default"]=m.exports}}]);