text: webpackJsonp([59],{1049:function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{align:"center",data:t.dataList,"tooltip-effect":"dark"},on:{"selection-change":t.handleSelectionChange}},[n("el-table-column",{attrs:{type:"selection",width:"55"}}),t._v(" "),n("el-table-column",{attrs:{prop:"name",label:t.$t("contentTag.name"),width:"120"}}),t._v(" "),n("el-table-column",{attrs:{prop:"comments",label:t.$t("contentTag.comments")}}),t._v(" "),n("el-table-column",{attrs:{label:t.$t("main.dataTableOptions"),width:"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{size:"mini",type:"primary",plain:"",round:""},on:{click:function(n){return t.editContentTag(e.$index,t.dataList)}}},[n("i",{staticClass:"fa fa-edit"})]),t._v(" "),n("el-button",{attrs:{size:"mini",type:"danger",plain:"",round:"",icon:"el-icon-delete"},on:{click:function(n){return t.deleteContentTag(e.$index,t.dataList)}}})]}}])})],1)],1)},staticRenderFns:[]}},350:function(t,e,n){var a=n(6)(n(967),n(1049),null,null,null);t.exports=a.exports},967:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var a,i=n(126),o=(a=i)&&a.__esModule?a:{default:a};e.default={props:{dataList:Array,pageInfo:Object},data:function(){return{loading:!1,multipleSelection:[]}},methods:{handleSelectionChange:function(t){this.multipleSelection=t},editContentTag:function(t,e){var n=this,a=e[t];o.default.getOneContentTag({id:a._id}).then(function(t){200===t.data.status?n.$store.dispatch("showContentTagForm",{edit:!0,formData:t.data.data}):n.$message.error(t.data.message)}).catch(function(){n.$message({type:"info",message:n.$t("main.scr_modal_del_error_info")})})},deleteContentTag:function(t,e){var n=this;this.$confirm(this.$t("main.del_notice"),this.$t("main.scr_modal_title"),{confirmButtonText:this.$t("main.confirmBtnText"),cancelButtonText:this.$t("main.cancelBtnText"),type:"warning"}).then(function(){return o.default.deleteContentTag({ids:e[t]._id})}).then(function(t){200===t.data.status?(n.$store.dispatch("getContentTagList",n.pageInfo),n.$message({message:n.$t("main.scr_modal_del_succes_info"),type:"success"})):n.$message.error(t.data.message)}).catch(function(){n.$message({type:"info",message:n.$t("main.scr_modal_del_error_info")})})}}}}});