(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d22fd0e"],{ea40:function(e,t,l){"use strict";l.r(t);var a=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",{staticClass:"app-container"},[l("div",{staticClass:"filter-container"},[l("el-button",{staticClass:"filter-item",attrs:{type:"primary",size:"mini",icon:"el-icon-edit"},on:{click:function(t){e.dialogVisible=!0}}},[e._v("\n      添加标签\n    ")])],1),e._v(" "),l("el-table",{attrs:{data:e.tagTable,border:""}},[l("el-table-column",{attrs:{label:"标签名",prop:"name",align:"center"}}),e._v(" "),l("el-table-column",{attrs:{label:"链接",prop:"link",align:"center"}}),e._v(" "),l("el-table-column",{attrs:{label:"模板标签",prop:"isFixed",align:"center"},scopedSlots:e._u([{key:"header",fn:function(t){var a=t.column;return[l("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"固定模板标签,不可删除",placement:"top"}},[l("i",{staticClass:"el-icon-info"},[e._v(e._s(a.label))])])]}}])}),e._v(" "),l("el-table-column",{attrs:{label:"状态",prop:"status",align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[l("el-tag",{attrs:{type:"0"===a.status?"success":"info"}},[e._v("\n          "+e._s("0"===a.status?"正常":"禁用")+"\n        ")])]}}])}),e._v(" "),l("el-table-column",{attrs:{label:"添加时间",prop:"time",align:"center"}}),e._v(" "),l("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){t.row;return[l("el-button",{attrs:{type:"text",size:"mini"}},[e._v("\n          设为模板标签\n        ")]),e._v(" "),l("el-button",{attrs:{type:"text",size:"mini"}},[e._v("\n          修改\n        ")]),e._v(" "),l("el-button",{attrs:{type:"text",size:"mini"}},[e._v("\n          删除\n        ")])]}}])})],1),e._v(" "),l("el-dialog",{attrs:{title:"add"===e.dialogType?"添加标签":"修改标签",visible:e.dialogVisible,"before-close":e.closeDialogForm},on:{"update:visible":function(t){e.dialogVisible=t}}},[l("el-form",{ref:"tagForm",attrs:{model:e.tagForm,rules:e.tagRules,"label-width":"100px"}},[l("el-form-item",{attrs:{label:"标签名:",prop:"name"}},[l("el-input",{staticStyle:{width:"250px"},attrs:{placeholder:"标签名",size:"mini"},model:{value:e.tagForm.name,callback:function(t){e.$set(e.tagForm,"name",t)},expression:"tagForm.name"}})],1),e._v(" "),l("el-form-item",{attrs:{label:"链接:"}},[l("el-input",{staticStyle:{width:"250px"},attrs:{placeholder:"链接",size:"mini"},model:{value:e.tagForm.link,callback:function(t){e.$set(e.tagForm,"link",t)},expression:"tagForm.link"}})],1),e._v(" "),l("el-form-item",{attrs:{label:"是否固定模板:",prop:"isFixed"}},[l("el-radio",{attrs:{label:"1"},model:{value:e.tagForm.isFixed,callback:function(t){e.$set(e.tagForm,"isFixed",t)},expression:"tagForm.isFixed"}},[e._v("是")]),e._v(" "),l("el-radio",{attrs:{label:"0"},model:{value:e.tagForm.isFixed,callback:function(t){e.$set(e.tagForm,"isFixed",t)},expression:"tagForm.isFixed"}},[e._v("否")])],1)],1),e._v(" "),l("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[l("el-button",{on:{click:e.closeDialogForm}},[e._v("取 消")]),e._v(" "),l("el-button",{attrs:{type:"primary"},on:{click:function(t){e.dialogVisible=!1}}},[e._v("确 定")])],1)],1)],1)},i=[],s=[{name:"",link:"",isFixed:"",status:0,time:""}],o={data:function(){return{tagTable:s,dialogVisible:!1,dialogType:"add",tagForm:{name:"",link:"",isFixed:"0"},tagRules:{name:[{required:!0,message:"请输入标签名",trigger:"blur"}],isFixed:[{required:!0,message:"请选择是否为固定模板",trigger:"change"}]}}},methods:{closeDialogForm:function(){this.dialogVisible=!1,this.$refs.tagForm.resetFields()}}},n=o,r=l("2877"),c=Object(r["a"])(n,a,i,!1,null,"7861227e",null);t["default"]=c.exports}}]);