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.
1 lines
4.3 KiB
1 lines
4.3 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-7d39eb77"],{"88eb":function(t,e,a){},a664:function(t,e,a){"use strict";a("88eb")},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("a664"),a("2877")),l=Object(o.a)(r,(function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"i-layout-page-header"},[e("PageHeader",{staticClass:"product_tabs",attrs:{title:"清除数据","hidden-breadcrumb":""}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("div",{staticClass:"clear_tit"},[e("Icon",{attrs:{type:"md-information-circle",color:"#ED4014"}}),e("span",[t._v("清除数据请谨慎,清除就无法恢复哦!")])],1)])])],1),e("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[e("Row",{attrs:{type:"flex",gutter:24}},t._l(t.tabList,(function(a,s){return e("Col",t._b({key:s,staticClass:"mb20"},"Col",t.grid,!1),[e("div",{staticClass:"clear_box"},[e("span",{staticClass:"clear_box_sp1",domProps:{textContent:t._s(a.title)}}),e("span",{staticClass:"clear_box_sp2",domProps:{textContent:t._s(a.tlt)}}),12!=a.type?e("Button",{attrs:{type:a.typeName},domProps:{textContent:t._s("primary"===a.typeName?"立即更换":"立即清理")},on:{click:function(e){return t.onChange(a)}}}):e("Button",{attrs:{type:a.typeName},domProps:{textContent:t._s("立即预热")},on:{click:function(e){return t.onChange(a)}}})],1)])})),1)],1),e("Modal",{staticClass:"tableBox",attrs:{scrollable:"",closable:"",title:"更换域名","mask-closable":!1},model:{value:t.modals,callback:function(e){t.modals=e},expression:"modals"}},[e("div",{staticClass:"acea-row row-column"},[e("span",[t._v("请输入需要替换的域名,格式为:http://域名。")]),e("span",[t._v("替换规则:会使用当前[设置]里面的[网站域名]去替换成当前您输入的域名。")]),e("span",{staticClass:"mb15"},[t._v("替换成功后再去更换[网站域名]。")]),e("Input",{attrs:{type:"textarea",rows:4,placeholder:"请输入网站域名..."},model:{value:t.value6,callback:function(e){t.value6=e},expression:"value6"}})],1),e("div",{attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"primary",size:"large",long:""},on:{click:t.changeYU}},[t._v("确定")])],1)])],1)}),[],!1,null,"9da9fe38",null);e.default=l.exports}}]); |