zx/public/mer/js/chunk-35c0d5a1.b1e339af.js

1 line
3.7 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-35c0d5a1"],{"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("c80c")),c=(n("96cf"),n("3b8d")),o=n("db72"),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(o["a"])({},Object(u["b"])(["menuList"])),methods:{getFrom:function(){var t=this;Object(d["a"])(this.$route.params.key).then(function(){var e=Object(c["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("c99e"),n("2877")),g=Object(h["a"])(m,r,a,!1,null,"0b1efd57",null);e["default"]=g.exports},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 c})),n.d(e,"e",(function(){return o})),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 g})),n.d(e,"m",(function(){return v})),n.d(e,"n",(function(){return b})),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 c(t){return r["a"].post("delivery/station/create",t)}function o(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 g(t,e){return r["a"].get("service/reply/list",{page:t,limit:e})}function v(t){return r["a"].delete("service/reply/delete/".concat(t))}function b(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})}},c931:function(t,e,n){},c99e:function(t,e,n){"use strict";n("c931")}}]);