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
4.6 KiB
1 lines
4.6 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1ecade53"],{"40ae":function(t,e,n){"use strict";n("a3c5")},"6ee8":function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"divBox"},[n("el-card",{staticClass:"box-card FromData"},["app"==t.types||"wechat"==t.types||"routine"==t.types?n("div",{staticClass:"guide"},[n("el-button",{attrs:{slot:"extra",type:"text",size:"small",icon:"el-icon-guide"},on:{click:function(e){t.guideShow=!0}},slot:"extra"},[t._v("配置引导")])],1):t._e(),t._v(" "),n("el-row",[n("el-col",{attrs:{span:20}},[t.FromData?n("form-create",{attrs:{option:t.option,rule:t.FromData.rule},on:{submit:t.onSubmit}}):t._e()],1)],1)],1),t._v(" "),n("el-drawer",{attrs:{visible:t.guideShow,title:t.title+"引导",size:"800px"},on:{"update:visible":function(e){t.guideShow=e}}},[n(t.types,{tag:"component"})],1)],1)},i=[],r=(n("ac6a"),n("c80c")),s=(n("96cf"),n("3b8d")),c=(n("28a5"),n("db72")),o={components:{app:function(){return n.e("chunk-4109e78d").then(n.bind(null,"739f"))},routine:function(){return n.e("chunk-7e170329").then(n.bind(null,"23b3"))},wechat:function(){return n.e("chunk-a90ab134").then(n.bind(null,"1402"))}}},u=n("2f62"),l=n("30ba"),p=n.n(l),f=n("a7a4"),h=n("0c6d"),d=n("83d6"),m={name:"Basics",mixins:[o],provide:function(){return{type:this.types}},components:{formCreate:p.a.$form()},data:function(){return{guideShow:!1,routeKey:"",title:"",types:"",roterPre:d["roterPre"],option:{form:{labelWidth:"200px"},global:{upload:{props:{onSuccess:function(t,e){200===t.status&&(e.url=t.data.src)}}}}},FromData:null,titles:""}},mounted:function(){this.setTagsViewTitle(),this.getFrom()},computed:Object(c["a"])({},Object(u["b"])(["menuList"])),created:function(){console.log(this.$route);var t=this.$route.path.split("/"),e=t[t.length-1];this.getType(e),this.tempRoute=Object.assign({},this.$route)},methods:{getFrom:function(){var t=this;"upload"===this.$route.params.key?Object(f["j"])().then(function(){var e=Object(s["a"])(Object(r["a"])().mark((function e(n){return Object(r["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)})):Object(f["a"])(this.$route.params.key).then(function(){var e=Object(s["a"])(Object(r["a"])().mark((function e(n){return Object(r["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;h["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 a(t){t.forEach((function(t){-1===t.route.indexOf("Basics")||t.route!==n.$route.path?t[e]&&t[e].length&&a(t[e]):n.titles=t.menu_name}))}a(t)},getType:function(t){switch(t){case"wechat_open_app":this.types="app",this.title="微信开放平台配置";break;case"wechat":this.types="wechat",this.title="公众号配置";break;case"smallapp":this.types="routine",this.title="小程序配置";break;default:this.types="",this.title=""}}}},g=m,b=(n("40ae"),n("2877")),v=Object(b["a"])(g,a,i,!1,null,"3566ea9a",null);e["default"]=v.exports},a3c5:function(t,e,n){},a7a4:function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"j",(function(){return r})),n.d(e,"b",(function(){return s})),n.d(e,"d",(function(){return c})),n.d(e,"c",(function(){return o})),n.d(e,"e",(function(){return u})),n.d(e,"h",(function(){return l})),n.d(e,"f",(function(){return p})),n.d(e,"g",(function(){return f})),n.d(e,"i",(function(){return h}));var a=n("0c6d");function i(t){return a["a"].get("config/".concat(t))}function r(){return a["a"].get("upload/config")}function s(){return a["a"].get("delivery/config/form")}function c(t){return a["a"].get("delivery/station/lst",t)}function o(t){return a["a"].get("delivery/station/detail/".concat(t))}function u(t){return a["a"].post("service/reply/create",t)}function l(t,e){return a["a"].get("service/reply/list",{page:t,limit:e})}function p(t){return a["a"].delete("service/reply/delete/".concat(t))}function f(t,e){return a["a"].post("service/reply/update/".concat(t),e)}function h(t,e){return a["a"].post("service/reply/status/".concat(t),{status:e})}}}]); |