You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
3.7 KiB
1 lines
3.7 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6231f720"],{"693d":function(t,e,n){},"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)},i=[],a=(n("ac6a"),n("c80c")),o=(n("96cf"),n("3b8d")),c=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.setTagsViewTitle(),this.getFrom()},created:function(){this.tempRoute=Object.assign({},this.$route)},computed:Object(c["a"])({},Object(u["b"])(["menuList"])),methods:{getFrom:function(){var t=this;console.log(this.$route.params.key),Object(d["a"])(this.$route.params.key).then(function(){var e=Object(o["a"])(Object(a["a"])().mark((function e(n){return Object(a["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.route.indexOf("Basics")||t.route!==n.$route.path?t[e]&&t[e].length&&r(t[e]):n.titles=t.menu_name}))}r(t)}}},m=p,h=(n("efe7"),n("2877")),g=Object(h["a"])(m,r,i,!1,null,"42170f99",null);e["default"]=g.exports},a7a4:function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"k",(function(){return a})),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 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 i(t){return r["a"].get("config/".concat(t))}function a(){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 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})}},efe7:function(t,e,n){"use strict";n("693d")}}]); |