CRMEB_PRO_M/public/view_admin/js/chunk-776ae3c0.e3afa042.js

1 line
4.3 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-776ae3c0"],{"07fa":function(t,e,a){},"7f88":function(t,e,a){"use strict";var s=a("07fa");a.n(s).a},b4f0:function(t,e,a){"use strict";a.r(e);var s=a("8593"),r={name:"systemCleardata",data:function(){return{value6:"",modals:!1,grid:{xl:6,lg:8,md:12,sm:24,xs:24},tabList:[{title:"更换域名",tlt:"替换所有本地上传的图片域名",typeName:"primary",type:"11"},{title:"预热营销商品库存",tlt:"更新系统,切换redis库缓存前缀,整体预热库存",typeName:"primary",type:"12"},{title:"清除用户生成的临时附件",tlt:"清除用户生成的临时附件,不会影响商品图",typeName:"error",type:"temp"},{title:"清除回收站商品",tlt:"清除回收站商品,谨慎操作",typeName:"error",type:"recycle"},{title:"清除商城数据",tlt:"清除商城数据,谨慎操作",typeName:"error",type:"store"},{title:"清除订单数据",tlt:"清除用户所有订单数据,谨慎操作",typeName:"error",type:"order"},{title:"清除客服数据",tlt:"清除添加的客服数据,谨慎操作",typeName:"error",type:"kefu"},{title:"清除微信数据",tlt:"清除微信菜单保存数据,微信关键字无效回复",typeName:"error",type:"wechat"},{title:"清除内容分类",tlt:"清除添加的文章和文章分类,谨慎操作",typeName:"error",type:"article"},{title:"清除用户数据",tlt:"用户相关的所有表都将被清除,谨慎操作",typeName:"error",type:"user"},{title:"清除所有附件",tlt:"清除所有附件用户生成和后台上传,谨慎操作",typeName:"error",type:"attachment"},{title:"清除系统记录",tlt:"清除系统记录,谨慎操作",typeName:"error",type:"system"}]}},methods:{onChange:function(t){var e=this;"11"===t.type?this.modals=!0:"12"===t.type?Object(s.I)().then((function(t){e.$Message.success(t.msg)})).catch((function(t){e.$Message.error(t.msg)})):this.clearFroms(t)},clearFroms:function(t){var e=this,a={title:t.title,url:"system/clear/".concat(t.type),method:"get",ids:""};this.$modalSure(a).then((function(t){e.$Message.success(t.msg)})).catch((function(t){e.$Message.error(t.msg)}))},changeYU:function(){var t=this;Object(s.O)({url:this.value6}).then((function(e){t.modals=!1,t.$Message.success(e.msg)})).catch((function(e){t.$Message.error(e.msg)}))}}},o=(a("7f88"),a("2877")),l=Object(o.a)(r,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"i-layout-page-header"},[a("PageHeader",{staticClass:"product_tabs",attrs:{title:"清除数据","hidden-breadcrumb":""}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("div",{staticClass:"clear_tit"},[a("Icon",{attrs:{type:"md-information-circle",color:"#ED4014"}}),a("span",[t._v("清除数据请谨慎,清除就无法恢复哦!")])],1)])])],1),a("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[a("Row",{attrs:{type:"flex",gutter:24}},t._l(t.tabList,(function(e,s){return a("Col",t._b({key:s,staticClass:"mb20"},"Col",t.grid,!1),[a("div",{staticClass:"clear_box"},[a("span",{staticClass:"clear_box_sp1",domProps:{textContent:t._s(e.title)}}),a("span",{staticClass:"clear_box_sp2",domProps:{textContent:t._s(e.tlt)}}),12!=e.type?a("Button",{attrs:{type:e.typeName},domProps:{textContent:t._s("primary"===e.typeName?"立即更换":"立即清理")},on:{click:function(a){return t.onChange(e)}}}):a("Button",{attrs:{type:e.typeName},domProps:{textContent:t._s("立即预热")},on:{click:function(a){return t.onChange(e)}}})],1)])})),1)],1),a("Modal",{staticClass:"tableBox",attrs:{scrollable:"",closable:"",title:"更换域名","mask-closable":!1},model:{value:t.modals,callback:function(e){t.modals=e},expression:"modals"}},[a("div",{staticClass:"acea-row row-column"},[a("span",[t._v("请输入需要替换的域名格式为http://域名。")]),a("span",[t._v("替换规则:会使用当前[设置]里面的[网站域名]去替换成当前您输入的域名。")]),a("span",{staticClass:"mb15"},[t._v("替换成功后再去更换[网站域名]。")]),a("Input",{attrs:{type:"textarea",rows:4,placeholder:"请输入网站域名..."},model:{value:t.value6,callback:function(e){t.value6=e},expression:"value6"}})],1),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{type:"primary",size:"large",long:""},on:{click:t.changeYU}},[t._v("确定")])],1)])],1)}),[],!1,null,"9da9fe38",null);e.default=l.exports}}]);