webpackJsonp([57],{uVgj:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("D6Ug"),l={name:"clearCache",data:function(){return{tableData:[{type:"cim",tag:"设置类",name:"系统设置",intro:"站点全局参数和个性化配置，全局加载。"},{type:"temp",tag:"运行类",name:"模板缓存",intro:"模板编译后的缓存文件，存储于RUNTIME中的temp目录。"},{type:"log",tag:"运行类",name:"运行日志",intro:"系统运行产生的日志文件，存储于RUNTIME中的log目录，系统调试跟踪。"},{type:"columns",tag:"数据类",name:"栏目信息",intro:"全站使用的栏目集合，为了提升性能，做了永久缓存。"}],multipleSelection:[],clearParams:[]}},created:function(){},methods:{handleSelectionChange:function(t){this.multipleSelection=t},toggleSelection:function(t){var e=this;t?t.forEach(function(t){e.$refs.multipleTable.toggleRowSelection(t)}):this.$refs.multipleTable.clearSelection()},handleRefresh:function(t){var e=this,a={id:[t]};n.a.clearCache(a).then(function(t){e.$message.success(t.msg)})},batchClear:function(){var t=this;if(this.clearParams=[],this.multipleSelection.forEach(function(e){t.clearParams.push(e.type)}),0==this.clearParams.length)return this.$message.warning("请选择类型"),!1;var e={id:this.clearParams};n.a.clearCache(e).then(function(e){t.$message.success(e.msg)})},allClear:function(){var t=this;this.clearParams=[];n.a.clearCache({remove:1}).then(function(e){t.$message.success(e.msg)})}}},s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{},[a("el-table",{ref:"multipleTable",attrs:{data:t.tableData},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"30"}}),t._v(" "),a("el-table-column",{attrs:{label:"类型",prop:"tag",width:"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-tag",{attrs:{type:"info",size:"small"}},[t._v("\n                          "+t._s(e.row.tag)+"\n                  ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"名称",prop:"name",width:"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.name))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"说明",prop:"intro"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n              "+t._s(e.row.intro)+"\n          ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作",width:"50"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"刷新缓存",placement:"top"}},[a("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(a){t.handleRefresh(e.row.type)}}},[a("i",{staticClass:"fa fa-refresh"})])],1)]}}])})],1),t._v(" "),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:12}},[a("div",{staticClass:"grid-content"},[a("div",{staticClass:"handle-box mt-md"},[a("el-button",{attrs:{type:"",size:"mini"},on:{click:function(e){t.toggleSelection(t.tableData)}}},[t._v("全选/反选")]),t._v(" "),a("el-button",{attrs:{type:"",size:"mini"},on:{click:function(e){t.batchClear()}}},[a("i",{staticClass:"fa fa-refresh"}),t._v(" 批量刷新/清除")]),t._v(" "),a("el-button",{attrs:{type:"",size:"mini"},on:{click:function(e){t.allClear()}}},[a("i",{staticClass:"fa fa-trash"}),t._v(" 全部清除")])],1)])])],1)],1)},staticRenderFns:[]},i=a("XAIM")(l,s,!1,null,null,null);e.default=i.exports}});