1 line
5.1 KiB
JavaScript
1 line
5.1 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-62846124"],{"7fc5":function(t,e,a){},"8f76":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",{staticClass:"divBox"},[a("div",{staticClass:"box-card"},[a("el-card",[a("div",{staticClass:"acea-row row-between"},[a("span",{staticClass:"header-title"},[t._v(t._s(t.$route.meta.title))]),t._v(" "),a("span",{staticClass:"clear_tit"},[a("i",{staticClass:"el-icon-info",staticStyle:{color:"#ED4014"}}),t._v(" "),a("span",[t._v("清除数据请谨慎,清除就无法恢复哦!")])])])]),t._v(" "),a("el-card",{staticClass:"mt15"},[a("el-row",{attrs:{gutter:24}},t._l(t.tabList,(function(e,n){return a("el-col",t._b({key:n,staticClass:"mb20"},"el-col",t.grid,!1),[a("div",{staticClass:"clear_box"},[a("span",{staticClass:"clear_box_sp1",domProps:{textContent:t._s(e.title)}}),t._v(" "),a("span",{staticClass:"clear_box_sp2",domProps:{textContent:t._s(e.tlt)}}),t._v(" "),a("el-button",{attrs:{size:"small",type:e.typeName},domProps:{textContent:t._s("primary"===e.typeName?"立即更换":"立即清理")},on:{click:function(a){return t.onChange(e)}}})],1)])})),1)],1),t._v(" "),a("el-dialog",{staticClass:"tableBox",attrs:{visible:t.modals,title:"更换域名",width:"540px","close-on-click-modal":!1},on:{"update:visible":function(e){t.modals=e}}},[a("div",{staticClass:"acea-row row-column"},[a("span",[t._v("替换规则:将数据库中被换域名(旧域名),修改为替换域名(新域名)。")]),t._v(" "),a("span",{staticClass:"mb15"},[t._v("注意事项:此功能仅限于数据量较少时使用,当数据量过大,可能会操作失败无法替换")]),t._v(" "),a("el-input",{staticClass:"mb15",attrs:{type:"text",placeholder:"请输入原始域名..."},model:{value:t.value5,callback:function(e){t.value5=e},expression:"value5"}}),t._v(" "),a("el-input",{attrs:{type:"text",placeholder:"请输入更换后的域名..."},model:{value:t.value6,callback:function(e){t.value6=e},expression:"value6"}})],1),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"small"},on:{click:function(e){t.modals=!1}}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.changeYU}},[t._v("确 定")])],1)])],1)])},s=[],r=a("f955"),c={name:"DataCache",data:function(){return{value5:"",value6:"",modals:!1,grid:{xl:6,lg:8,md:12,sm:24,xs:24},tabList:[{title:"更换域名",tlt:"替换所有本地上传的图片域名",typeName:"primary",type:"11"},{title:"清除全部缓存",tlt:"清除所有商城数据,谨慎操作",typeName:"error",type:"1"},{title:"清理商户缓存",tlt:"清除所有商户数据,谨慎操作",typeName:"error",type:"2"},{title:"清理配置缓存",tlt:"清除配置缓存,谨慎操作",typeName:"error",type:"3"}]}},mounted:function(){},methods:{onChange:function(t){"11"===t.type?this.modals=!0:this.clearCache(t.type)},changeYU:function(){var t=this;Object(r["o"])({origin:this.value5,replace:this.value6}).then((function(e){t.modals=!1,t.$message.success(e.message)})).catch((function(e){t.$message.error(e.message)}))},clearCache:function(t){var e=this;return new Promise((function(a,n){e.$confirm("确定清除吗?清除后无法恢复请谨慎操作!","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(r["g"])({type:t}).then((function(t){var a=t.message;e.$message.success(a)})).catch((function(t){var a=t.message;e.$message.error(a)}))})).catch((function(t){e.$message({type:"info",message:"已取消"})}))}))}}},o=c,i=(a("eb28"),a("2877")),u=Object(i["a"])(o,n,s,!1,null,"1a4e7490",null);e["default"]=u.exports},eb28:function(t,e,a){"use strict";a("7fc5")},f955:function(t,e,a){"use strict";a.d(e,"j",(function(){return s})),a.d(e,"k",(function(){return r})),a.d(e,"h",(function(){return c})),a.d(e,"d",(function(){return o})),a.d(e,"n",(function(){return i})),a.d(e,"m",(function(){return u})),a.d(e,"i",(function(){return l})),a.d(e,"c",(function(){return f})),a.d(e,"l",(function(){return p})),a.d(e,"b",(function(){return d})),a.d(e,"e",(function(){return m})),a.d(e,"a",(function(){return v})),a.d(e,"f",(function(){return h})),a.d(e,"g",(function(){return b})),a.d(e,"o",(function(){return g})),a.d(e,"p",(function(){return y}));var n=a("0c6d");function s(){return n["a"].get("safety/database/fileList")}function r(t){return n["a"].delete("safety/database/delete",t)}function c(){return n["a"].get("safety/database/lst")}function o(t){return n["a"].post("safety/database/backups",t)}function i(t){return n["a"].post("safety/database/repair",t)}function u(t){return n["a"].post("safety/database/optimize",t)}function l(t){return n["a"].get("safety/database/detail/".concat(t))}function f(){return n["a"].get("auth")}function p(){return n["a"].get("copyright/auth")}function d(t){return n["a"].post("auth_apply",t)}function m(){return n["a"].get("check_auth")}function v(){return n["a"].get("pay/auth")}function h(){return n["a"].get("check/queue")}function b(t){return n["a"].post("clear/cache",t)}function g(t){return n["a"].post("replace/image_host",t)}function y(t){return n["a"].post("copyright/save",t)}}}]); |