You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sonic/resources/admin/js/828.bd55ca6d.js

1 line
18 KiB
JavaScript

2 years ago
"use strict";(self["webpackChunkhalo_admin"]=self["webpackChunkhalo_admin"]||[]).push([[828],{9828:function(t,e,n){n.r(e),n.d(e,{default:function(){return I}});var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("page-view",[n("a-row",[n("a-col",{attrs:{span:24}},[n("div",{staticClass:"card-container"},[n("a-tabs",{attrs:{type:"card"},model:{value:t.activeKey,callback:function(e){t.activeKey=e},expression:"activeKey"}},t._l(t.panes,(function(e){return n("a-tab-pane",{key:e.key},[n("span",{attrs:{slot:"tab"},slot:"tab"},[n("a-icon",{attrs:{type:e.icon}}),t._v(t._s(e.title)+" ")],1),n(e.component,{tag:"component"})],1)})),1)],1)])],1)],1)},s=[],i=n(53298),r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.isMobile()?n("a-list",{attrs:{dataSource:t.independentSheets,loading:t.loading,pagination:!1,itemLayout:"vertical",size:"large"},scopedSlots:t._u([{key:"renderItem",fn:function(e,a){return n("a-list-item",{key:a},[n("template",{slot:"actions"},[n("span",[n("router-link",{attrs:{to:{name:e.routeName}}},[n("a-icon",{attrs:{type:"edit"}})],1)],1)]),n("template",{slot:"extra"},[e.available?n("span",[t._v("可用")]):n("span",[t._v("不可用 "),n("a-tooltip",{attrs:{slot:"action",title:"当前主题没有对应模板"},slot:"action"},[n("a-icon",{attrs:{type:"info-circle-o"}})],1)],1)]),n("a-list-item-meta",[n("span",{staticStyle:{"max-width":"300px",display:"block","white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis"},attrs:{slot:"title"},slot:"title"},[e.available?n("a",{attrs:{href:e.fullPath,target:"_blank"}},[t._v(t._s(e.title))]):n("a",{attrs:{href:e.fullPath,disabled:"",target:"_blank"}},[t._v(t._s(e.title))])])])],2)}}],null,!1,490164655)}):n("a-table",{attrs:{columns:t.independentColumns,dataSource:t.independentSheets,loading:t.loading,pagination:!1,rowKey:function(t){return t.id}},scopedSlots:t._u([{key:"available",fn:function(e){return[e?n("span",[t._v("可用")]):n("span",[t._v(" 不可用 "),n("a-tooltip",{attrs:{slot:"action",title:"当前主题没有对应模板"},slot:"action"},[n("a-icon",{attrs:{type:"info-circle-o"}})],1)],1)]}},{key:"action",fn:function(e,a){return n("span",{},[n("router-link",{attrs:{to:{name:a.routeName}}},[n("a-button",{staticClass:"!p-0",attrs:{type:"link"}},[t._v("管理")])],1),n("a-divider",{attrs:{type:"vertical"}}),a.available?n("a",{attrs:{href:a.fullPath,target:"_blank"}},[t._v("访问")]):n("a",{attrs:{href:a.fullPath,disabled:"",target:"_blank"}},[t._v("访问")])],1)}}])})],1)},o=[],l=n(54288),c=(n(70315),n(94370)),u=n(36591),d=[{title:"页面名称",dataIndex:"title"},{title:"访问地址",dataIndex:"fullPath"},{title:"状态",dataIndex:"available",scopedSlots:{customRender:"available"}},{title:"操作",dataIndex:"action",width:"150px",scopedSlots:{customRender:"action"}}],h={name:"IndependentSheetList",mixins:[c.jB,c.KT],data:function(){return{independentColumns:d,independentSheets:[],loading:!1}},created:function(){this.handleListIndependentSheets()},methods:{handleListIndependentSheets:function(){var t=this;return(0,l.Z)(regeneratorRuntime.mark((function e(){var n,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,u.Z.sheet.listIndependents();case 3:n=e.sent,a=n.data,t.independentSheets=a,e.next=11;break;case 8:e.prev=8,e.t0=e["catch"](0),t.$log.error(e.t0);case 11:return e.prev=11,t.loading=!1,e.finish(11);case 14:case"end":return e.stop()}}),e,null,[[0,8,11,14]])})))()}}},p=h,f=n(70739),m=(0,f.Z)(p,r,o,!1,null,null,null),g=m.exports,v=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.isMobile()?n("a-list",{attrs:{dataSource:t.list.data,loading:t.list.loading,pagination:!1,itemLayout:"vertical",size:"large"},scopedSlots:t._u([{key:"renderItem",fn:function(e,a){return[n("a-list-item",{key:a,scopedSlots:t._u([{key:"actions",fn:function(){return[n("span",[n("a-icon",{attrs:{type:"eye"}}),t._v(" "+t._s(e.visits)+" ")],1),n("span",{on:{click:function(n){return t.handleOpenSheetComments(e)}}},[n("a-icon",{attrs:{type:"message"}}),t._v(