(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b880b806"],{7311:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"app-container"},[n("el-card",{staticClass:"box-card"},[n("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[n("span",[t._v("导航管理")])]),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],attrs:{data:t.list,"element-loading-text":"Loading",fit:"","highlight-current-row":""}},[n("el-table-column",{attrs:{label:"导航名称",prop:"title",width:"200"}}),n("el-table-column",{attrs:{label:"跳转链接"},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.link_type?n("span",[t._v(t._s(e.row.page_cn))]):n("span",[t._v(t._s(e.row.url))])]}}])}),n("el-table-column",{attrs:{label:"打开方式",width:"200"},scopedSlots:t._u([{key:"default",fn:function(e){return["_blank"==e.row.target?n("span",[t._v("新窗口")]):t._e(),"_self"==e.row.target?n("span",[t._v("原窗口")]):t._e()]}}])}),n("el-table-column",{attrs:{align:"center",label:"显示状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.is_display?n("el-tag",{attrs:{type:"success"}},[t._v("显示")]):n("el-tag",{attrs:{type:"danger"}},[t._v("不显示")])]}}])}),n("el-table-column",{attrs:{label:"排序",prop:"sort_id"}}),n("el-table-column",{attrs:{fixed:"right",label:"操作",width:"220"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(n){return t.funEdit(e.$index,e.row)}}},[t._v(" 编辑 ")]),n("el-button",{attrs:{size:"small",type:"danger"},on:{click:function(n){return t.funDelete(e.$index,e.row)}}},[t._v(" 删除 ")])]}}])})],1),n("div",{staticClass:"spaceline"}),n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:8}},[n("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return t.$router.push("/sys/basic/nav/add")}}},[t._v(" 添加导航 ")])],1)],1)],1)],1)},r=[],l=n("c476"),s={data:function(){return{list:null,listLoading:!0}},created:function(){this.fetchData()},methods:{fetchData:function(){var t=this;this.listLoading=!0,Object(l["d"])({}).then((function(e){t.list=e.data,t.listLoading=!1}))},funEdit:function(t,e){this.$router.push({path:"/sys/basic/nav/edit",query:{id:e.id}})},funDelete:function(t,e){var n=this;n.$confirm("此操作将永久删除该数据, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var t={id:[e.id]};Object(l["b"])(t).then((function(t){return n.$message.success(t.message),n.fetchData(),!0}))})).catch((function(){}))}}},i=s,o=n("2877"),u=Object(o["a"])(i,a,r,!1,null,null,null);e["default"]=u.exports},c476:function(t,e,n){"use strict";n.d(e,"d",(function(){return l})),n.d(e,"a",(function(){return s})),n.d(e,"c",(function(){return i})),n.d(e,"b",(function(){return o}));var a=n("b775"),r=n("d722");function l(t){return Object(a["a"])({url:r["a"].navList,method:"get",params:t})}function s(t){return Object(a["a"])({url:r["a"].navAdd,method:"post",data:t})}function i(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"post";return"post"==e?Object(a["a"])({url:r["a"].navEdit,method:e,data:t}):Object(a["a"])({url:r["a"].navEdit,method:e,params:t})}function o(t){return Object(a["a"])({url:r["a"].navDelete,method:"post",data:t})}}}]);