| 1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([[55],{1690:function(t,n,e){"use strict";e.r(n);var a=[{title:"ID",dataIndex:"id",key:"id"},{title:"创建时间",dataIndex:"created_at",key:"created_at",width:300},{title:"页面名称",dataIndex:"name",key:"name"},{title:"类型",dataIndex:"top_type",key:"top_type",scopedSlots:{customRender:"tags"}},{title:"操作",key:"action",width:300,scopedSlots:{customRender:"action"}}],i={data:function(){return{columns:a,page_name:"",top_type:"",loading:!1,main_page_list:[],main_page_pagination:{current:1,pageSize:10,total:0}}},computed:{},created:function(){this.currentChange(1)},components:{},methods:{toPage:function(t,n){n?this.$router.push(this.fun.getUrl("/top_navigation",{},{page_sort:t,id:n})):this.$router.push(this.fun.getUrl("/top_navigation",{},{page_sort:t}))},currentChange:function(t){var n=this;this.main_page_pagination.current=t,$http.post("plugin.decorate.admin.decorate-top.get-list",{page:t,name:this.page_name,top_type:this.top_type},"loading").then((function(t){1===t.result?(n.main_page_pagination.total=t.data.total,n.main_page_pagination.pageSize=t.data.per_page,n.main_page_list=t.data.data):(n.main_page_list=[],-1===t.data.status&&n.currentChange(1))})).catch((function(t){console.error(t)}))},deleteIt:function(t){var n=this;this.$confirm({title:"确认删除该顶部菜单?",onOk:function(){$http.post("plugin.decorate.admin.decorate-top.del",{id:t},"loading").then((function(t){1===t.result?(n.currentChange(n.main_page_pagination.current),n.$message.success("删除成功")):t.msg&&n.$message.error(t.msg)})).catch((function(t){console.log(t)}))}})},copyIt:function(t){var n=this;$http.post("plugin.decorate.admin.decorate-top.copy-page",{id:t},"loading").then((function(t){1===t.result?(n.currentChange(n.main_page_pagination.current),n.$message.success("复制成功")):t.msg&&n.$message.error(t.msg)})).catch((function(t){console.log(t)}))}}},o=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{attrs:{id:"navigation_list"}},[e("div",{staticClass:"page-head"},[e("a-select",{staticStyle:{width:"25%","margin-right":"5%"},on:{change:function(n){return t.currentChange(1)}},model:{value:t.top_type,callback:function(n){t.top_type=n},expression:"top_type"}},[e("a-select-option",{attrs:{value:""}},[t._v("\n 页面类型\n ")]),t._v(" "),e("a-select-option",{attrs:{value:"1"}},[t._v("\n H5\n ")]),t._v(" "),e("a-select-option",{attrs:{value:"2"}},[t._v("\n 微信小程序\n ")])],1),t._v(" "),e("a-input",{staticStyle:{width:"33%"},attrs:{placeholder:"请输入页面名称进行搜索"},model:{value:t.page_name,callback:function(n){t.page_name="string"==typeof n?n.trim():n},expression:"page_name"}},[e("a-icon",{staticStyle:{color:"#999999"},attrs:{slot:"prefix",type:"search"},slot:"prefix"})],1),t._v(" "),e("a-button",{staticStyle:{width:"6%","margin-left":"3%"},attrs:{type:"primary"},on:{click:function(n){return t.currentChange(1)}}},[t._v("搜索")])],1),t._v(" "),e("div",{staticClass:"page-content"},[e("div",{staticClass:"content-head"},[e("div",{staticClass:"left"},[t._v("页面总数: "+t._s(t.main_page_pagination.total))]),t._v(" "),e("div",{staticClass:"right",attrs:{content:"right"}},[e("a-button",{staticStyle:{"margin-right":"10px"},attrs:{icon:"plus"},on:{click:function(n){return t.toPage("1")}}},[t._v("添加H5顶部菜单")]),t._v(" "),e("a-button",{staticStyle:{"margin-right":"10px"},attrs:{icon:"plus"},on:{click:function(n){return t.toPage("2")}}},[t._v("添加小程序顶部菜单")])],1)]),t._v(" "),e("a-spin",{attrs:{spinning:t.loading}},[e("div",{staticClass:"main-page-list"},[e("div",{staticClass:"table-box"},[e("a-table",{attrs:{pagination:{pageSize:t.main_page_pagination.pageSize,current:t.main_page_pagination.current,total:t.main_page_pagination.total,showQuickJumper:!0,onChange:t.currentChange},columns:t.columns,"data-source":t.main_page_list,rowKey:function(t){return t.id}},scopedSlots:t._u([{key:"tags",fn:function(n,a){return e("span",{staticClass:"type-box"},[e("a-tooltip",{directives:[{name:"show",rawName:"v-show",value:"1"==a.top_type,expression:"record.top_type == '1'"}]},[e("template",{slot:"title"},[t._v("\n H5\n ")]),t._v(" "),e("i",{staticClass:"iconfont icon-ht_btn_wap",staticStyle:{color:"#5f20fe"}})],2),t._v(" "),e("a-tooltip",{directives:[{name:"show",rawName:"v-show",value:"2"==a.top_type,expression:"record.top_type == '2'"}]},[e("template",{slot:"title"},[t._v("\n 小程序\n ")]),t._v(" "),e("i",{staticClass:"iconfont icon-ht_btn_smallprogram",staticStyle:{color:"#00dfb9"}})],2)],1)}},{key:"action",fn:function(n,a){return e("span",{staticClass:"edit-box"},[e("a-tooltip",[e("template",{slot:"title"},[t._v("编辑")]),t._v(" "),e("i",{staticClass:"iconfont icon-ht_operation_edit",attrs:{id:"dea"},on:{click:function(n){return t.toPage(a.top_type,a.id)}}})],2),t._v(" "),e("a-tooltip",[e("template",{slot:"title"},[t._v("\n 复制页面\n ")]),t._v(" "),e("i",{staticClass:"iconfont icon-ht_operation_copypage",on:{click:function(n){return t.copyIt(a.id)}}})],2),t._v(" "),e("a-tooltip",[e("template",{slot:"title"},[t._v("删除")]),t._v(" "),e("i",{staticClass:"iconfont icon-ht_operation_delete",attrs:{id:"del"},on:{click:function(n){return t.deleteIt(a.id)}}})],2)],1)}}])})],1)])])],1)])};o._withStripped=!0;var s=e(11);var p=function(t){e(2073)},r=Object(s.a)(i,o,[],!1,p,"data-v-5616d9e3",null);r.options.__file="src\\views\\top-navigation\\top_navigation_list.vue";n.default=r.exports},2073:function(t,n,e){var a=e(2074);"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);(0,e(19).default)("0dfdaa87",a,!1,{})},2074:function(t,n,e){(t.exports=e(16)(!1)).push([t.i,'\n.edit-box i[data-v-5616d9e3] {\n color: #999999;\n margin-left: 15px;\n cursor: pointer;\n}\n.edit-box i[data-v-5616d9e3]:hover {\n color: #ffa800;\n}\n#navigation_list[data-v-5616d9e3] {\n padding: 30px 20px 20px 20px;\n position: relative;\n}\n.page-head[data-v-5616d9e3] {\n display: flex;\n}\n.main-page-list[data-v-5616d9e3] {\n width: 100%;\n margin-top: 15px;\n}\n.main-page-list .ant-pagination[data-v-5616d9e3] {\n text-align: center;\n margin-top: 24px;\n}\n.table-box[data-v-5616d9e3] {\n font-weight: bold;\n}\n.content-head[data-v-5616d9e3] {\n display: flex;\n margin-top: 15px;\n background-color: #ffffff;\n}\n.content-head .left[data-v-5616d9e3] {\n position: relative;\n font-weight: bold;\n font-size: 16px;\n margin-left: 10px;\n display: flex;\n align-self: center;\n justify-self: center;\n flex: 1;\n}\n.content-head .left[data-v-5616d9e3]::before {\n content: "";\n width: 5px;\n height: 25px;\n position: absolute;\n top: 0;\n left: -10px;\n background: #29ba9c;\n}\n.content-head .right[data-v-5616d9e3] {\n display: flex;\n align-self: center;\n justify-self: center;\n align-items: center;\n flex: 0 0 100px;\n margin-right: 13px;\n}\n',""])}}]);
|