chunk-2d22fd0e.a76e2798.js 3.7 KB

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