- 管理端前端设备判定改为按宽高比(嵌入竖屏容器时正确使用手机版布局) - 统计上报跨源读取 parent.location 报错防护(降级用 referrer) - 续接会话时校验客服在线,离线不再误入聊天页 - 聊天记录整理与消息发送的用户资料缺失空值防护,避免接口 400 - entrypoint 数据库导入加空库守卫,容器重启/线上更新不再重置数据
1 line
8.5 KiB
JavaScript
1 line
8.5 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-546fa4f0"],{"1d98":function(t,e,n){"use strict";n("28ef")},"28ef":function(t,e,n){},"90e7":function(t,e,n){"use strict";n.d(e,"f",(function(){return a})),n.d(e,"e",(function(){return c})),n.d(e,"o",(function(){return u})),n.d(e,"G",(function(){return i})),n.d(e,"C",(function(){return o})),n.d(e,"B",(function(){return s})),n.d(e,"k",(function(){return d})),n.d(e,"l",(function(){return h})),n.d(e,"D",(function(){return f})),n.d(e,"E",(function(){return l})),n.d(e,"F",(function(){return m})),n.d(e,"x",(function(){return g})),n.d(e,"y",(function(){return b})),n.d(e,"v",(function(){return p})),n.d(e,"w",(function(){return j})),n.d(e,"t",(function(){return O})),n.d(e,"n",(function(){return v})),n.d(e,"r",(function(){return k})),n.d(e,"q",(function(){return _})),n.d(e,"g",(function(){return w})),n.d(e,"s",(function(){return T})),n.d(e,"j",(function(){return S})),n.d(e,"p",(function(){return $})),n.d(e,"h",(function(){return y})),n.d(e,"a",(function(){return C})),n.d(e,"b",(function(){return L})),n.d(e,"d",(function(){return x})),n.d(e,"m",(function(){return I})),n.d(e,"i",(function(){return D})),n.d(e,"c",(function(){return F})),n.d(e,"z",(function(){return E})),n.d(e,"A",(function(){return P})),n.d(e,"u",(function(){return R}));var r=n("6b6c");function a(t){return Object(r["a"])({url:"setting/config/header_basics",method:"get",params:t})}function c(t,e){return Object(r["a"])({url:e,method:"get",params:t})}function u(t){return Object(r["a"])({url:"chat/kefu/login/".concat(t),method:"get"})}function i(t){return Object(r["a"])({url:"chat/speechcraft",method:"get",params:t})}function o(t){return Object(r["a"])({url:"chat/speechcraft/".concat(t,"/edit"),method:"get"})}function s(){return Object(r["a"])({url:"chat/speechcraft/create",method:"get"})}function d(t){return Object(r["a"])({url:"chat/feedback",method:"get",params:t})}function h(t){return Object(r["a"])({url:"chat/feedback/".concat(t,"/edit"),method:"get"})}function f(){return Object(r["a"])({url:"chat/speechcraftcate",method:"get"})}function l(){return Object(r["a"])({url:"chat/speechcraftcate/create",method:"get"})}function m(t){return Object(r["a"])({url:"chat/speechcraftcate/".concat(t,"/edit"),method:"get"})}function g(t){return Object(r["a"])({url:"setting/role",method:"GET",params:t})}function b(t){return Object(r["a"])({url:"setting/role/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function p(t){return Object(r["a"])({url:"setting/role/".concat(t.id),method:"post",data:t})}function j(t){return Object(r["a"])({url:"setting/role/".concat(t,"/edit"),method:"get"})}function O(){return Object(r["a"])({url:"setting/role/create",method:"get"})}function v(t){return Object(r["a"])({url:"chat/kefu",method:"get",params:t})}function k(t){return Object(r["a"])({url:"chat/kefu/create",method:"get",params:t})}function _(){return Object(r["a"])({url:"chat/kefu/add",method:"get"})}function w(t){return Object(r["a"])({url:"chat/kefu",method:"post",data:t})}function T(t){return Object(r["a"])({url:"chat/kefu/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function S(t){return Object(r["a"])({url:"chat/kefu/".concat(t,"/edit"),method:"GET"})}function $(t,e){return Object(r["a"])({url:"chat/kefu/record/".concat(e),method:"GET",params:t})}function y(t){return Object(r["a"])({url:"chat/kefu/chat_list",method:"GET",params:t})}function C(t){return Object(r["a"])({url:"chat/qrcode",method:"get",params:t})}function L(t){return Object(r["a"])({url:"chat/qrcode/".concat(t),method:"get"})}function x(t){return Object(r["a"])({url:"chat/statistics",method:"get",params:t})}function I(){return Object(r["a"])({url:"chat/group",method:"get"})}function D(t){return Object(r["a"])({url:"chat/group/create/"+t,method:"get"})}function F(t){return Object(r["a"])({url:"chat/record",method:"get",params:t})}function E(t){return Object(r["a"])({url:"setting/verison",method:"get",params:t})}function P(t){return Object(r["a"])({url:"setting/verison/".concat(t),method:"get"})}function R(t){return Object(r["a"])({url:"chat/record/list",method:"get",params:t})}},a53e:function(t,e,n){"use strict";n.r(e);n("6b54");var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"article-manager"},[e("div",{staticClass:"i-layout-page-header"},[e("div",{staticClass:"i-layout-page-header"},[e("span",{staticClass:"ivu-page-header-title"},[t._v(t._s(t.title))]),e("div",[e("Tabs",{on:{"on-click":t.changeTab},model:{value:t.currentTab,callback:function(e){t.currentTab=e},expression:"currentTab"}},t._l(t.headerList,(function(t,n){return e("TabPane",{key:n,attrs:{icon:t.icon,label:t.label,name:t.value.toString()}})})),1)],1)])]),e("Card",{staticClass:"ivu-mt fromBox",attrs:{bordered:!1,"dis-hover":""}},[t.headerChildrenList.length?e("Tabs",{attrs:{type:"card"},on:{"on-click":t.changeChildrenTab},model:{value:t.childrenId,callback:function(e){t.childrenId=e},expression:"childrenId"}},t._l(t.headerChildrenList,(function(t,n){return e("TabPane",{key:n,attrs:{label:t.label,name:t.id.toString()}})})),1):t._e(),0!==t.rules.length?e("form-create",{attrs:{option:t.option,rule:t.rules},on:{"on-submit":t.onSubmit}}):t._e(),t.spinShow?e("Spin",{attrs:{size:"large",fix:""}}):t._e()],1)],1)},a=[],c=(n("7f7f"),n("c5f6"),n("96cf"),n("1da1")),u=(n("ac6a"),n("9860")),i=n.n(u),o=n("90e7"),s=n("6b6c"),d={name:"setting_setSystem",components:{formCreate:i.a.$form()},data:function(){return{rules:[],option:{form:{labelWidth:185},submitBtn:{col:{span:3,push:3}},global:{upload:{props:{onSuccess:function(t,e){200===t.status?e.url=t.data.src:this.$Message.error(t.msg)}}},frame:{props:{closeBtn:!1,okBtn:!1}}}},spinShow:!1,FromData:null,currentTab:"",headerList:[],headerChildrenList:[],childrenId:"",title:""}},created:function(){this.getAllData()},watch:{$route:function(t,e){this.headerChildrenList=[],this.getAllData()},childrenId:function(){this.getFrom()}},methods:{childrenList:function(){var t=this;t.headerList.forEach((function(e){e.value.toString()===t.currentTab&&(void 0===e.children?(t.childrenId=e.id,t.headerChildrenList=[]):(t.headerChildrenList=e.children,t.childrenId=e.children.length?e.children[0].id.toString():""))}))},getHeader:function(){var t=this;return this.spinShow=!0,new Promise((function(e,n){var r=t.$route.params.tab_id,a={type:t.$route.params.type?t.$route.params.type:0,pid:r||0};Object(o["f"])(a).then(function(){var n=Object(c["a"])(regeneratorRuntime.mark((function n(r){var a;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:a=r.data.config_tab,t.headerList=a,t.currentTab=a[0].value.toString(),t.childrenList(),e(t.currentTab),t.spinShow=!1;case 1:case"end":return n.stop()}}),n)})));return function(t){return n.apply(this,arguments)}}()).catch((function(e){t.spinShow=!1,t.$Message.error(e)}))}))},getFrom:function(){var t=this;return this.spinShow=!0,new Promise((function(e,n){var r="";r="3"===t.$route.params.type?t.$route.params.tab_id:t.childrenId?t.childrenId:t.currentTab;var a={tab_id:Number(r)},u="freight/config/edit_basics",i="agent/config/edit_basics",s="marketing/integral_config/edit_basics",d="serve/sms_config/edit_basics",h="setting/config/edit_basics",f="setting_logistics"===t.$route.name?u:"setting_distributionSet"===t.$route.name?i:"setting_message"===t.$route.name?d:"setting_setSystem"===t.$route.name?h:s;Object(o["e"])(a,f).then(function(){var e=Object(c["a"])(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.spinShow=!1,!1!==n.data.status){e.next=1;break}return e.abrupt("return",t.$authLapse(n.data));case 1:t.FromData=n.data,t.rules=n.data.rules,t.title=n.data.title;case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.spinShow=!1,t.$Message.error(e.msg)}))}))},getAllData:function(){var t=Object(c["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("3"===this.$route.params.type){t.next=2;break}return t.next=1,this.getHeader();case 1:t.next=3;break;case 2:this.headerList=[],this.getFrom();case 3:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),changeTab:function(){this.childrenList()},changeChildrenTab:function(t){this.childrenId=t},onSubmit:function(t){var e=this;Object(s["a"])({url:this.FromData.action,method:this.FromData.method,data:t}).then((function(t){e.$Message.success(t.msg)})).catch((function(t){e.$Message.error(t.msg)}))}}},h=d,f=(n("1d98"),n("2877")),l=Object(f["a"])(h,r,a,!1,null,"4e048aba",null);e["default"]=l.exports}}]); |