| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-793cbcfe"],{"039b":function(t,e,a){},"22ca":function(t,e,a){"use strict";a("039b")},2818:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-card",{staticClass:"ivu-mt",attrs:{bordered:!1,shadow:"never"}},[a("div",{staticClass:"head acea-row row-between-wrapper"},[t._v("商业授权")]),t._v(" "),a("el-table",{ref:"table",attrs:{size:"small",data:t.licensingTable,"empty-text":"暂无数据"}},[a("el-table-column",{attrs:{label:"产品证书编号",minWidth:"180"},scopedSlots:t._u([{key:"default",fn:function(e){return[1===e.row.status?a("span",[t._v(t._s(e.row.authCode))]):a("span",[t._v("未授权")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作",fixed:"right",width:"180"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{staticClass:"btn cup",attrs:{type:"text",size:"small"},on:{click:function(e){return t.toCrmeb()}}},[t._v("进入官网")]),t._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:1!=e.row.status,expression:"scope.row.status != 1"}],staticClass:"btn cup",attrs:{type:"text",size:"small"},on:{click:function(e){return t.payAuth()}}},[t._v("购买授权")])]}}])})],1)],1),t._v(" "),1!=t.copyrightStatus&&1==t.status?a("el-card",{staticClass:"ivu-mt mt16",attrs:{bordered:!1,shadow:"never"}},[a("div",{staticClass:"head acea-row row-between-wrapper"},[t._v("去版权服务")]),t._v(" "),a("el-table",{ref:"table",attrs:{size:"small",data:t.copyrightList,"empty-text":"暂无数据"}},[a("el-table-column",{attrs:{label:"授权服务",minWidth:"180"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" PHP多商户 ")]}}],null,!1,1177855699)}),t._v(" "),a("el-table-column",{attrs:{label:"操作",fixed:"right",width:"180"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{staticClass:"btn cup",attrs:{type:"text",size:"small"},on:{click:function(e){return t.getCopy()}}},[t._v("立即购买")])]}}],null,!1,2978572027)})],1)],1):t._e(),t._v(" "),1==t.copyrightStatus&&1==t.status?a("el-card",{staticClass:"ivu-mt mt16",attrs:{bordered:!1,shadow:"never"}},[a("div",{staticClass:"head acea-row row-between-wrapper"},[t._v("自定义版权信息")]),t._v(" "),a("el-table",{ref:"table",attrs:{size:"small",data:t.copyrightTableData,"empty-text":"暂无数据"}},[a("el-table-column",{attrs:{label:"文字版权信息",minWidth:"180"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.copyrightContext)+" ")]}}],null,!1,3470242503)}),t._v(" "),a("el-table-column",{attrs:{label:"底部版权图片",minWidth:"180"},scopedSlots:t._u([{key:"default",fn:function(t){return[a("div",{directives:[{name:"viewer",rawName:"v-viewer"},{name:"show",rawName:"v-show",value:t.row.copyrightImage,expression:"scope.row.copyrightImage"}],staticClass:"uploadPictrue"},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.row.copyrightImage,expression:"scope.row.copyrightImage"}]})])]}}],null,!1,3252438012)}),t._v(" "),a("el-table-column",{attrs:{label:"操作",fixed:"right",width:"180"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{staticClass:"btn cup",attrs:{type:"text",size:"small"},on:{click:function(e){return t.editCopyright()}}},[t._v("编辑")])]}}],null,!1,295972275)})],1)],1):t._e(),t._v(" "),t._l(t.tableList,(function(e,n,i){return a("el-card",{key:i,staticClass:"ivu-mt mt16",attrs:{bordered:!1,shadow:"never"}},[a("div",{staticClass:"head acea-row row-between-wrapper"},[t._v(t._s(t._f("headText")(n)))]),t._v(" "),a("el-table",{ref:"table",refInFor:!0,attrs:{size:"small",data:t.tableList[n],"empty-text":"暂无数据"}},[a("el-table-column",{attrs:{label:"permissions"==n?"文件/目录":"环境",minWidth:"180"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.name)+" ")]}}],null,!0)}),t._v(" "),a("el-table-column",{attrs:{label:"要求",minWidth:"180"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.require)+" ")]),t._v(" "),"process"!=n||e.row.value?t._e():a("el-tooltip",{attrs:{placement:"top"}},[a("div",{attrs:{slot:"content"},domProps:{innerHTML:t._s(t.trips[e.$index].message)},slot:"content"}),t._v(" "),a("i",{staticClass:"el-icon-warning-outline"})])]}}],null,!0)}),t._v(" "),a("el-table-column",{attrs:{label:"状态",width:"180"},scopedSlots:t._u([{key:"default",fn:function(e){return["boolean"===typeof e.row.value?a("span",[!0===e.row.value?a("i",{staticClass:"el-icon-check"}):a("i",{staticClass:"el-icon-close"})]):a("span",[t._v(t._s(e.row.value))])]}}],null,!0)})],1)],1)})),t._v(" "),a("el-dialog",{attrs:{visible:t.isTemplate,title:"商业授权",width:"550px"},on:{"update:visible":function(e){t.isTemplate=e},closed:t.cancel}},[a("iframe",{attrs:{width:"100%",height:"780",src:t.iframeUrl,frameborder:"0"}})]),t._v(" "),a("el-dialog",{attrs:{visible:t.modalCopyright,title:"版权信息",width:"550px"},on:{"update:visible":function(e){t.modalCopyright=e}}},[a("div",{staticClass:"auth"},[a("div",{staticClass:"update"},[t._v("修改版权信息:")]),t._v(" "),a("el-input",{staticStyle:{width:"460px"},model:{value:t.copyrightText,callback:function(e){t.copyrightText=e},expression:"copyrightText"}})],1),t._v(" "),a("div",{staticClass:"auth"},[a("div",{staticClass:"update"},[t._v("上传版权图片:")]),t._v(" "),a("div",[t.authorizedPicture?a("div",{staticClass:"uploadPictrue",on:{click:function(e){return t.modalPicTap("单选")}}},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.authorizedPicture,expression:"authorizedPicture"}]}),t._v(" "),a("i",{staticClass:"el-icon-error",on:{click:function(e){e.stopPropagation(),t.authorizedPicture=""}}})]):a("div",{staticClass:"upload",on:{click:function(e){return t.modalPicTap("单选")}}},[a("div",{staticClass:"iconfont"},[t._v("+")])]),t._v(" "),a("div",{staticClass:"tips-info"},[t._v("建议尺寸:宽290px*高100px")])])]),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.modalCopyright=!1}}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.saveCopyRight}},[t._v("保存")])],1)])],2)},i=[],r=a("8593"),s=a("f955"),o={name:"system_auth",computed:{},data:function(){return{baseUrl:"https://shop.crmeb.net/html/index.html",iframeUrl:"",removeCopyUrl:"",captchs:"http://authorize.crmeb.net/api/captchs/",status:1,dayNum:0,copyright:"",isTemplate:!1,modalCopyright:!1,copyrightText:"",label:"",modalPic:!1,authorizedPicture:"",tableList:[],licensingTable:[],copyrightTableData:[],copyrightList:[{}],loading:!1,copyrightStatus:0,trips:[{title:"温馨提示",message:'您的【长连接】未开启,没有开启会导致系统默认客服无法使用,后台订单通知无法收到。请尽快执行命令开启!!<a href="https://doc.crmeb.com/single/v54/13667" target="_blank">点击查看开启方法</a>'},{title:"温馨提示",message:'您的【定时任务】未开启,没有开启会导致自动收货、未支付自动取消订单、订单自动好评、拼团到期退款等任务无法正常执行。请尽快执行命令开启!!<a href="https://doc.crmeb.com/single/v54/13667" target="_blank">点击查看开启方法</a>'},{title:"温馨提示",message:'您的【消息队列】未开启,没有开启会导致异步任务无法执行。请尽快执行命令开启!!<a href="https://doc.crmeb.com/single/v54/13667" target="_blank">点击查看开启方法</a>'}]}},filters:{headText:function(t){return"server"===t?"服务器信息":"environment"===t?"系统环境要求":"permissions"===t?"权限状态":"process"===t?"启动进程":void 0}},components:{},mounted:function(){var t=this;this.getInfo(),this.getAuth(),this.getAuthData(),window.addEventListener("message",(function(e){"onCancel"!==e.data.event&&"onComplete"!=e.data.type||t.cancel()}))},methods:{editCopyright:function(){this.modalCopyright=!0},saveCopyRight:function(){var t=this;Object(s["p"])({copyright_context:this.copyrightText,copyright_image:this.authorizedPicture}).then((function(e){return t.modalCopyright=!1,t.$message.success(e.message)})).catch((function(e){var a=e.message;t.$message.error(a)}))},modalPicTap:function(){var t=this;this.$modalUpload((function(e){t.authorizedPicture=e[0]}))},cancel:function(){this.iframeUrl="",this.isTemplate=!1},getAuth:function(){var t=this;Object(s["c"])().then((function(e){var a=e.data||{};t.licensingTable=[{authCode:a.authCode||"",status:void 0===a.status?-1:a.status}],t.status=void 0===a.status?-1:a.status,t.dayNum=a.day||0}))},getInfo:function(){var t=this;Object(r["h"])().then((function(e){t.tableList=e.data})).catch((function(e){t.$message.error(e.message)}))},toCrmeb:function(){window.open("http://www.crmeb.com")},getAuthData:function(){var t=this;Object(s["l"])().then((function(e){t.copyrightStatus=e.data.status,-1==e.data.status?t.removeCopyUrl=e.data.url:(t.copyrightText=e.data.copyright_context||"",t.authorizedPicture=e.data.copyright_image||"",t.copyrightTableData=[{copyrightContext:t.copyrightText,copyrightImage:t.authorizedPicture}])}))},getCopy:function(){this.iframeUrl=this.removeCopyUrl,this.isTemplate=!0},payAuth:function(){var t=this;Object(s["a"])().then((function(e){t.iframeUrl=e.data.url,t.isTemplate=!0}))}},destroyed:function(){}},c=o,l=(a("22ca"),a("2877")),u=Object(l["a"])(c,n,i,!1,null,"6ddeea12",null);e["default"]=u.exports},f955:function(t,e,a){"use strict";a.d(e,"j",(function(){return i})),a.d(e,"k",(function(){return r})),a.d(e,"h",(function(){return s})),a.d(e,"d",(function(){return o})),a.d(e,"n",(function(){return c})),a.d(e,"m",(function(){return l})),a.d(e,"i",(function(){return u})),a.d(e,"c",(function(){return d})),a.d(e,"l",(function(){return p})),a.d(e,"b",(function(){return h})),a.d(e,"e",(function(){return f})),a.d(e,"a",(function(){return m})),a.d(e,"f",(function(){return v})),a.d(e,"g",(function(){return g})),a.d(e,"o",(function(){return b})),a.d(e,"p",(function(){return y}));var n=a("0c6d");function i(){return n["a"].get("safety/database/fileList")}function r(t){return n["a"].delete("safety/database/delete",t)}function s(){return n["a"].get("safety/database/lst")}function o(t){return n["a"].post("safety/database/backups",t)}function c(t){return n["a"].post("safety/database/repair",t)}function l(t){return n["a"].post("safety/database/optimize",t)}function u(t){return n["a"].get("safety/database/detail/".concat(t))}function d(){return n["a"].get("auth")}function p(){return n["a"].get("copyright/auth")}function h(t){return n["a"].post("auth_apply",t)}function f(){return n["a"].get("check_auth")}function m(){return n["a"].get("pay/auth")}function v(){return n["a"].get("check/queue")}function g(t){return n["a"].post("clear/cache",t)}function b(t){return n["a"].post("replace/image_host",t)}function y(t){return n["a"].post("copyright/save",t)}}}]);
|