webpackJsonp([80],{TJPv:function(e,t,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={data:function(){return{dialogTitle:"新建文章类型",dialogVisible:!1,ruleForm:{state:""},rules:{},articleTypeData:[{createTime:"2016-05-03",type:"公告",state:1,content:"上海市普陀区金沙江路 1518 弄"},{createTime:"2016-05-02",type:"资讯",state:1,content:"上海市普陀区金沙江路 1518 弄"}],deleteItems:[]}},methods:{handleCreateArticleType:function(){this.dialogVisible=!0},handleSelectionChange:function(e){this.deleteItems=e},handleDelete:function(){0===this.deleteItems.length?this.$alert("请选择需要删除的文章类型","提示",{confirmButtonText:"确定",type:"warning",callback:function(e){}}):this.$alert("确定要删除该文章类型吗？","提示",{confirmButtonText:"确定",type:"warning",callback:function(e){alert("ok")}})},handleEdit:function(e,t){this.dialogTitle="编辑文章类型",this.dialogVisible=!0,this.ruleForm=t},handleOpen:function(){},handleClose:function(){}}},i={render:function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",{staticClass:"common-main"},[l("div",{staticClass:"operation-container"},[l("el-button",{attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.handleCreateArticleType}},[e._v("新建")]),e._v(" "),l("el-button",{attrs:{type:"danger",icon:"el-icon-delete"},on:{click:e.handleDelete}},[e._v("删除")])],1),e._v(" "),l("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.articleTypeData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[l("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),l("el-table-column",{attrs:{prop:"type",label:"文章类型"}}),e._v(" "),l("el-table-column",{attrs:{prop:"content",label:"描述"}}),e._v(" "),l("el-table-column",{attrs:{prop:"createTime",label:"创建时间"}}),e._v(" "),l("el-table-column",{attrs:{prop:"state",label:"状态",width:"100"}}),e._v(" "),l("el-table-column",{attrs:{label:"操作",width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("el-button",{attrs:{size:"mini",type:"primary",icon:"el-icon-edit"},on:{click:function(l){e.handleEdit(t.$index,t.row)}}},[e._v("编辑\n        ")])]}}])})],1),e._v(" "),l("el-dialog",{attrs:{title:e.dialogTitle,visible:e.dialogVisible,width:"40%"},on:{"update:visible":function(t){e.dialogVisible=t},close:e.handleClose,open:e.handleOpen}},[l("el-form",{ref:"ruleForm",staticClass:"search-container",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[l("el-form-item",{attrs:{label:"文章类型",prop:"type"}},[l("el-input",{staticClass:"form-input",model:{value:e.ruleForm.type,callback:function(t){e.$set(e.ruleForm,"type",t)},expression:"ruleForm.type"}})],1),e._v(" "),l("el-form-item",{attrs:{label:"描述",prop:"desc"}},[l("el-input",{staticClass:"form-input",model:{value:e.ruleForm.desc,callback:function(t){e.$set(e.ruleForm,"desc",t)},expression:"ruleForm.desc"}})],1),e._v(" "),l("el-form-item",{attrs:{label:"状态",prop:"state"}},[l("el-select",{staticClass:"form-input",attrs:{placeholder:"请选择"},model:{value:e.ruleForm.state,callback:function(t){e.$set(e.ruleForm,"state",t)},expression:"ruleForm.state"}},[l("el-option",{attrs:{label:"开启",value:"1"}}),e._v(" "),l("el-option",{attrs:{label:"关闭",value:"2"}})],1)],1)],1),e._v(" "),l("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[l("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v("取 消")]),e._v(" "),l("el-button",{attrs:{type:"primary"},on:{click:function(t){e.dialogVisible=!1}}},[e._v("确 定")])],1)],1)],1)},staticRenderFns:[]},n=l("rCDr")(a,i,!1,null,null,null);t.default=n.exports}});