visop
Version:
A simple CLI for scaffolding visible operation projects.
1 lines • 2.39 kB
JavaScript
webpackJsonp([54],{"+NrA":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=n("viA7"),a={props:{type:{type:String,default:"CN"}},data:function(){return{list:null,listQuery:{page:1,limit:5,type:this.type,sort:"+id"},loading:!1}},filters:{statusFilter:function(t){return{published:"success",draft:"info",deleted:"danger"}[t]}},created:function(){this.getList()},methods:{getList:function(){var t=this;this.loading=!0,this.$emit("create"),Object(l.c)(this.listQuery).then(function(e){t.list=e.data.items,t.loading=!1})}}},s={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-table",{staticStyle:{width:"100%"},attrs:{data:t.list,border:"",fit:"","highlight-current-row":""}},[n("el-table-column",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{align:"center",label:"ID",width:"65","element-loading-text":"请给我点时间!"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.id))])]}}])}),t._v(" "),n("el-table-column",{attrs:{width:"180px",align:"center",label:"Date"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(t._f("parseTime")(e.row.timestamp,"{y}-{m}-{d} {h}:{i}")))])]}}])}),t._v(" "),n("el-table-column",{attrs:{"min-width":"300px",label:"Title"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.title))]),t._v(" "),n("el-tag",[t._v(t._s(e.row.type))])]}}])}),t._v(" "),n("el-table-column",{attrs:{width:"110px",align:"center",label:"Author"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.author))])]}}])}),t._v(" "),n("el-table-column",{attrs:{width:"120px",label:"Importance"},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(+e.row.importance,function(t){return n("svg-icon",{key:t,attrs:{"icon-class":"star"}})})}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"Readings",width:"95"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.pageviews))])]}}])}),t._v(" "),n("el-table-column",{attrs:{"class-name":"status-col",label:"Status",width:"110"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-tag",{attrs:{type:t._f("statusFilter")(e.row.status)}},[t._v(t._s(e.row.status))])]}}])})],1)},staticRenderFns:[]},i=n("VU/8")(a,s,!1,null,null,null);e.default=i.exports}});