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.
yanzong/public/admin/js/setting.d83607b1.js

1 line
8.1 KiB

9 months ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["setting"],{"3b6f":function(t,e,a){},"468f":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t._self._c;return e("a-card",{attrs:{bordered:!1}},[e("content-header",{attrs:{title:"队列服务"}}),e("a-alert",{staticStyle:{"margin-bottom":"20px"},attrs:{message:"队列服务用于处理数据导入、数据导出、消息推送等需大量占用服务器资源或实时性要求不高的业务场景,通过异步处理分担服务器压力",type:"warning","show-icon":""}}),e("div",{staticClass:"content"},[e("h4",{staticClass:"title"},[t._v("第一步、启动Redis服务")]),e("p",{staticClass:"text"},[e("span",{staticClass:"mr-5"},[t._v("队列服务需要依赖Redis")]),e("a",{attrs:{href:"https://www.yiovo.com/doc/10051",target:"_blank"}},[t._v("点击查看Redis服务启动教程")])]),e("h4",{staticClass:"title"},[t._v("第二步、启动队列服务")]),e("p",{staticClass:"text"},[e("a",{attrs:{href:"https://www.yiovo.com/doc/10062",target:"_blank"}},[t._v("点击查看队列服务启动教程")])]),e("h4",{staticClass:"title"},[t._v("第三步、测试队列服务是否启动")]),e("p",{staticClass:"text mtb-10"},[e("a-button",{attrs:{loading:t.isBtnLoading},on:{click:function(e){return t.handleTest()}}},[t._v("点击测试")])],1),e("p",{staticClass:"text"},[e("span",[t._v("测试过程可能需要5秒-10秒钟时间")])])])],1)},s=[],i=(a("d3b7"),a("ac1f"),a("f6ae")),o=a("b775");function r(t){return Object(o["b"])({url:i["a"].setting.queue.test,method:"post",data:t})}var c=a("2af9"),l={components:{ContentHeader:c["a"]},data:function(){return{isBtnLoading:!1}},created:function(){},methods:{handleTest:function(){var t=this;this.isBtnLoading=!0,r().then((function(e){t.$message.success(e.message,5)})).finally((function(){return t.isBtnLoading=!1}))}}},d=l,u=(a("50fd"),a("2877")),f=Object(u["a"])(d,n,s,!1,null,"01c45f59",null);e["default"]=f.exports},"50fd":function(t,e,a){"use strict";a("3b6f")},"5ca4":function(t,e,a){},7334:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t._self._c;return e("a-card",{attrs:{bordered:!1}},[e("content-header",{attrs:{title:"服务器信息"}}),e("a-table",{attrs:{rowKey:"key",size:"middle",columns:t.columns.server,"data-source":t.scienceInfo.server,loading:t.isLoading,rowClassName:t.rowClassName,pagination:!1},scopedSlots:t._u([{key:"remark",fn:function(a,n){return e("span",{},["normal"!==n.status?[t._v(t._s(a))]:t._e()],2)}}])}),e("content-header",{staticStyle:{"margin-top":"50px"},attrs:{title:"PHP环境要求"}}),e("a-table",{attrs:{rowKey:"key",size:"middle",columns:t.columns.phpinfo,"data-source":t.scienceInfo.phpinfo,loading:t.isLoading,rowClassName:t.rowClassName,pagination:!1},scopedSlots:t._u([{key:"status",fn:function(t){return e("span",{},[e("a-icon",{class:["icon","status-icon"],attrs:{type:"normal"===t?"check":"close"}})],1)}},{key:"remark",fn:function(a,n){return e("span",{},["normal"!==n.status?[t._v(t._s(a))]:t._e()],2)}}])}),e("content-header",{staticStyle:{"margin-top":"50px"},attrs:{title:"目录权限监测"}}),e("a-table",{attrs:{rowKey:"key",size:"middle",columns:t.columns.writeable,"data-source":t.scienceInfo.writeable,loading:t.isLoading,rowClassName:t.rowClassName,pagination:!1},scopedSlots:t._u([{key:"status",fn:function(t){return e("span",{},[e("a-icon",{class:["icon","status-icon"],attrs:{type:"normal"===t?"check":"close"}})],1)}}])})],1)},s=[],i=(a("d3b7"),a("f6ae")),o=a("b775");function r(){return Object(o["b"])({url:i["a"].setting.science,method:"get"})}var c=a("2af9"),l={name:"TableList",components:{ContentHeader:c["a"]},data:function(){return{isLoading:!1,scienceInfo:{server:[],phpinfo:[],writeable:[]},columns:{server:[{title:"参数",dataIndex:"name",width:"30%"},{title:"值",dataIndex:"value"},{title:"备注",dataIndex:"remark",scopedSlots:{customRender:"remark"}}],phpinfo:[{title:"选项",dataIndex:"name"},{title:"要求",dataIndex:"value"},{title:"状态",dataIndex:"status",scopedSlots:{customRender:"status"}},{title:"备注",dataIndex:"remark",scopedSlots