(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-358bb2f8"],{3385:function(t,e,n){"use strict";n("a0be")},"6ee8":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"divBox"},[n("el-card",{staticClass:"box-card FromData"},[t.FromData?n("form-create",{attrs:{option:t.option,rule:t.FromData.rule},on:{submit:t.onSubmit}}):t._e()],1)],1)},a=[],i=(n("ac6a"),n("c7eb")),o=(n("96cf"),n("1da1")),c=n("5530"),u=n("2f62"),s=n("30ba"),f=n.n(s),d=n("a7a4"),l=n("0c6d"),p={name:"Basics",components:{formCreate:f.a.$form()},data:function(){return{option:{form:{labelWidth:"150px"},global:{upload:{props:{onSuccess:function(t,e){200===t.status&&(e.url=t.data.src)}}}}},FromData:null,titles:""}},mounted:function(){this.getFrom()},watch:{"$route.path":{handler:function(){this.getFrom()},immediate:!1,deep:!0}},created:function(){this.tempRoute=Object.assign({},this.$route)},computed:Object(c["a"])({},Object(u["b"])(["menuList"])),methods:{getFrom:function(){var t=this;Object(d["a"])(this.$route.params.key).then(function(){var e=Object(o["a"])(Object(i["a"])().mark((function e(n){return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.FromData=n.data;case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$message.error(e.message)}))},onSubmit:function(t){var e=this;l["a"][this.FromData.method.toLowerCase()](this.FromData.api,t).then((function(t){e.$message.success(t.message||"提交成功")})).catch((function(t){e.$message.error(t.message||"提交失败")}))},setTagsViewTitle:function(){this.deepTraversal(this.menuList,"children");var t=Object.assign({},this.tempRoute,{title:this.titles});this.$store.dispatch("tagsView/updateVisitedView",t)},deepTraversal:function(t,e){var n=this;function r(t){t.forEach((function(t){-1===t.path.indexOf("Basics")||t.path!==n.$route.path?t[e]&&t[e].length&&r(t[e]):n.titles=t.title}))}r(t)}}},m=p,h=(n("3385"),n("2877")),b=Object(h["a"])(m,r,a,!1,null,"070bb356",null);e["default"]=b.exports},a0be:function(t,e,n){},a7a4:function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"k",(function(){return i})),n.d(e,"b",(function(){return o})),n.d(e,"e",(function(){return c})),n.d(e,"d",(function(){return u})),n.d(e,"f",(function(){return s})),n.d(e,"g",(function(){return f})),n.d(e,"j",(function(){return d})),n.d(e,"h",(function(){return l})),n.d(e,"c",(function(){return p})),n.d(e,"i",(function(){return m})),n.d(e,"l",(function(){return h})),n.d(e,"o",(function(){return b})),n.d(e,"m",(function(){return g})),n.d(e,"n",(function(){return v})),n.d(e,"p",(function(){return y}));var r=n("0c6d");function a(t){return r["a"].get("config/".concat(t))}function i(){return r["a"].get("delivery/station/business")}function o(t){return r["a"].post("delivery/station/create",t)}function c(t){return r["a"].get("delivery/station/lst",t)}function u(t){return r["a"].get("delivery/station/detail/".concat(t))}function s(t){return r["a"].get("delivery/station/mark/".concat(t,"/form"))}function f(t,e){return r["a"].post("delivery/station/status/".concat(t),e)}function d(){return r["a"].get("config")}function l(t,e){return r["a"].post("delivery/station/update/".concat(t),e)}function p(t){return r["a"].delete("delivery/station/delete/".concat(t))}function m(){return r["a"].get("delivery/station/getCity")}function h(t){return r["a"].post("service/reply/create",t)}function b(t,e){return r["a"].get("service/reply/list",{page:t,limit:e})}function g(t){return r["a"].delete("service/reply/delete/".concat(t))}function v(t,e){return r["a"].post("service/reply/update/".concat(t),e)}function y(t,e){return r["a"].post("service/reply/status/".concat(t),{status:e})}}}]);