beehole-store-server
Version:
www.bee-hole.com
1 lines • 7.71 kB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7bcd06f0"],{"19c5":function(t,e,n){"use strict";n.d(e,"g",(function(){return o})),n.d(e,"f",(function(){return s})),n.d(e,"a",(function(){return i})),n.d(e,"i",(function(){return a})),n.d(e,"c",(function(){return u})),n.d(e,"e",(function(){return c})),n.d(e,"b",(function(){return d})),n.d(e,"d",(function(){return l})),n.d(e,"h",(function(){return h}));var r=n("b775");function o(t){return Object(r["b"])({url:"/system/sysPortlet/list",method:"get",params:t})}function s(t){return Object(r["b"])({url:"/system/sysPortlet/"+t,method:"get"})}function i(t){return Object(r["b"])({url:"/system/sysPortlet",method:"post",data:t})}function a(t){return Object(r["b"])({url:"/system/sysPortlet",method:"put",data:t})}function u(t){return Object(r["b"])({url:"/system/sysPortlet/"+t,method:"delete"})}function c(){return Object(r["b"])({url:"/system/sysPortlet/findMaxSort",method:"get"})}function d(t,e){return void 0===t&&(t=""),Object(r["b"])({url:"/system/sysPortlet/checkCodeUnique/"+e+"/"+t,method:"get"})}function l(t){return Object(r["b"])({url:"/system/sysPortlet/export",method:"get",params:t})}function h(t){return Object(r["b"])({url:"/system/sysPortlet/getSysPortletByRoleId",method:"get",params:t})}},3528:function(t,e,n){"use strict";n.d(e,"l",(function(){return o})),n.d(e,"k",(function(){return s})),n.d(e,"a",(function(){return i})),n.d(e,"o",(function(){return a})),n.d(e,"n",(function(){return u})),n.d(e,"f",(function(){return c})),n.d(e,"c",(function(){return d})),n.d(e,"g",(function(){return l})),n.d(e,"i",(function(){return h})),n.d(e,"e",(function(){return m})),n.d(e,"d",(function(){return f})),n.d(e,"j",(function(){return p})),n.d(e,"b",(function(){return b})),n.d(e,"h",(function(){return y})),n.d(e,"m",(function(){return g}));var r=n("b775");function o(t){return Object(r["b"])({url:"/role/list",method:"get",params:t})}function s(t){return Object(r["b"])({url:"/role/view"+t,method:"get",params:{id:t}})}function i(t){return Object(r["b"])({url:"/role/edit",method:"post",data:t})}function a(t){return Object(r["b"])({url:"/role/edit",method:"post",data:t})}function u(t){return Object(r["b"])({url:"/role/post_edit",method:"post",data:t})}function c(t){return Object(r["b"])({url:"/role/dataScope",method:"post",data:t})}function d(t,e){var n={id:t,status:e};return Object(r["b"])({url:"/role/changeStatus",method:"post",data:n})}function l(t){return Object(r["b"])({url:"/role/delete",method:"post",params:{id:t}})}function h(t){return Object(r["b"])({url:"/role/export",method:"get",params:t})}function m(t){return Object(r["b"])({url:"/system/role/checkRoleNameUnique",method:"get",params:t})}function f(t){return Object(r["b"])({url:"/system/role/checkRoleKeyUnique",method:"get",params:t})}function p(){return Object(r["b"])({url:"/system/role/findMaxSort",method:"get"})}function b(t){return Object(r["b"])({url:"/system/role/batchSave",method:"post",data:t})}function y(t,e){return Object(r["b"])({url:"/system/role/delete_role_user/",method:"post",params:{id:t,member_id:e}})}function g(t){return Object(r["b"])({url:"/role/saveRolePortlet",method:"post",data:t})}},"83d5":function(t,e,n){"use strict";n("a349")},a349:function(t,e,n){},a3dd:function(t,e,n){"use strict";n.r(e);n("99af");var r=function(){var t=this,e=t._self._c;return e("div",[e("a-card",{attrs:{bordered:!1}},[e("advance-table",{attrs:{title:"工作台小页管理",pagination:{current:t.queryParam.pageNum,pageSize:t.queryParam.pageSize,total:t.total,showSizeChanger:!0,showLessItems:!0,showQuickJumper:!0,showTotal:function(t,e){return"第 ".concat(e[0],"-").concat(e[1]," 条,总计 ").concat(t," 条")},onChange:t.changeSize,onShowSizeChange:t.onShowSizeChange},scroll:{y:"calc(100vh - 360px)"},rowKey:"id",size:"middle",columns:t.columns,"data-source":t.sysPortletList,loading:t.loading,"format-conditions":!0,isShowSetBtn:!1,"row-selection":{selectedRowKeys:t.selectedRowKeys,onChange:t.onSelectChange}},on:{refresh:t.getList},scopedSlots:t._u([{key:"menuId",fn:function(n){var r=n.text,o=n.record;return e("span",{},[e("a-popconfirm",{attrs:{"ok-text":"是","cancel-text":"否"},on:{confirm:function(e){return t.confirmHandleAuth(o)}}},[e("span",{attrs:{slot:"title"},slot:"title"},[t._v("确认"),e("b",[t._v(t._s(null!==o.menuId?"取消":"给"))]),t._v("该小页授权吗?")]),e("a-switch",{attrs:{checked:""!==r&&null!==r}})],1)],1)}}])},[e("div",{staticClass:"table-operations",attrs:{slot:"button"},slot:"button"},[e("a-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:sysPortlet:add"],expression:"['system:sysPortlet:add']"}],attrs:{type:"primary"},on:{click:function(e){return t.handleBatchScope("add")}}},[e("a-icon",{attrs:{type:"plus"}}),t._v("授权 ")],1),e("a-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:sysPortlet:remove"],expression:"['system:sysPortlet:remove']"}],attrs:{type:"danger"},on:{click:function(e){return t.handleBatchScope("del")}}},[e("a-icon",{attrs:{type:"delete"}}),t._v("取消授权 ")],1)],1)])],1)],1)},o=[],s=(n("d81d"),n("4de4"),n("d3b7"),n("19c5")),i=n("3528"),a=n("5d9e"),u={name:"SysPortlet",components:{AdvanceTable:a["a"]},data:function(){return{selectRoleId:"",loading:!1,ids:[],addIds:[],selectedRowKeys:[],selectedRows:[],advanced:!1,single:!0,multiple:!0,total:0,labelCol:{span:6},wrapperCol:{span:18},sysPortletList:[],showTitleOptions:[],isAllowDragOptions:[],statusOptions:[],queryParam:{pageNum:1,pageSize:10,name:void 0,code:void 0},columns:[{title:"小页名称",dataIndex:"name",ellipsis:!0,width:"30%"},{title:"小页编码",dataIndex:"code",ellipsis:!0,width:"30%"},{title:"是否已授权",dataIndex:"menuId",ellipsis:!0,width:"30%",scopedSlots:{customRender:"menuId"}}]}},created:function(){},methods:{resetData:function(){this.ids=[],this.addIds=[],this.selectedRowKeys=[],this.selectedRows=[]},loadPortlet:function(t){this.selectRoleId=t,this.getList()},getList:function(){var t=this;this.resetData(),this.loading=!0,this.queryParam.roleId=this.selectRoleId,Object(s["h"])(this.queryParam).then((function(e){t.sysPortletList=e.data.list,t.total=e.data.total,t.loading=!1}))},handleQuery:function(){this.queryParam.pageNum=1,this.getList()},resetQuery:function(){this.queryParam={pageNum:1,pageSize:10,name:void 0,code:void 0},this.handleQuery()},onShowSizeChange:function(t,e){this.queryParam.pageSize=e,this.getList()},onSizeChange:function(t,e){this.queryParam.pageNum=1,this.queryParam.pageSize=e,this.getList()},changeSize:function(t,e){this.queryParam.pageNum=t,this.queryParam.pageSize=e,this.getList()},onSelectChange:function(t,e){this.selectedRowKeys=t,this.selectedRows=e,this.ids=this.selectedRows.map((function(t){return t.id})),this.addIds=this.selectedRows.map((function(t){return null===t.menuId?t.id:""})),this.single=1!==t.length,this.multiple=!t.length},handleBatchScope:function(t){var e=this,n=this.ids;"add"===t&&(n=this.addIds.filter((function(t){return""!==t})));var r={id:this.selectRoleId,menuIds:n,option:t},o="add"===t?"授权":"取消授权";this.$confirm({title:"确认为所选中数据"+o+"?",onOk:function(){Object(i["m"])(r).then((function(){e.$message.success(o+"成功",3),e.getList()})).catch((function(){e.$message.error(o+"异常",3)}))},onCancel:function(){}})},confirmHandleAuth:function(t){var e=this,n=null!==t.menuId?"取消授权":"授权",r=null!==t.menuId?"del":"add",o=[t.id],s={id:this.selectRoleId,menuIds:o,option:r};Object(i["m"])(s).then((function(){e.$message.success(n+"成功",3),e.getList()})).catch((function(){this.$message.error(n+"异常",3)}))}}},c=u,d=(n("83d5"),n("2877")),l=Object(d["a"])(c,r,o,!1,null,"4746e074",null);e["default"]=l.exports}}]);