var defaultParams={sys:{id:""},strategyName:"",userName:"",limit:5,offset:0,order:"",sort:""},lib=window.getDirewolfLibrary(),msSecurityStrategyConfigListContentVm=new Vue({el:"#msSecurityStrategyConfigListContent",data:{searchParams:JSON.parse(JSON.stringify(defaultParams)),msSecurityStrategyConfigTablePage:{},editType:GetQueryString("editType"),msSysList:[],pageLoading:!1,sysLoading:!1,pageToken:"",msSecurityStrategyConfigTableLoading:!1},computed:{formBaseUrl:function(){return getRelativePath()+"msSecurityStrategyConfigForm.html?editType="},requestPrefix:function(){return this.msConfig.gatewayRoute+this.msConfig.adminPath},inViewMode:function(){return"view"===this.editType||!(this.hasPermission("edit")&&this.hasPermission("del")&&this.hasPermission("add"))}},methods:{hasPermission:function(e){return lib.$$utils.permission.hasPermission("platman:msSecurityStrategyConfig:"+e)},refreshTable:function(){var e=this.requestPrefix+"/platman/msSecurityStrategyConfig/getMsSecurityStrategyConfigList?"+lib.$$utils.stringifyQueryParams(this.searchParams),t="获取安全策略信息记录",s=this;s.msSecurityStrategyConfigTableLoading=!0,axios.get(e).then(function(e){s.msSecurityStrategyConfigTablePage=getDataFromAxiosResponse(e,t),s.msSecurityStrategyConfigTableLoading=!1}).catch(function(e){axiosErrorTips(e,t+"异常")})},resetSearchParam:function(){this.searchParams=JSON.parse(JSON.stringify(defaultParams)),this.refreshTable()},handleRowClick:function(e,t,s){eleTableClickSelection(this.$refs.msSecurityStrategyConfigTable,e,s)},handleTableSizeChange:function(e){this.searchParams.limit=e,this.refreshTable()},handleTableCurrentChange:function(e){this.searchParams.offset=this.searchParams.limit*(e-1),this.refreshTable()},handleSortChange:function(e){null===e.prop||null===e.order?(this.searchParams.sort=defaultParams.sort,this.searchParams.order=defaultParams.order):("sysName"===e.prop?this.searchParams.sort="sysId":this.searchParams.sort=e.prop,this.searchParams.order=e.order.split("ending")[0]),this.refreshTable()},addNewMsSecurityStrategyConfig:function(){var e=this.formBaseUrl+"add",t=this;openDialog("新增安全策略信息",e,{width:"700px",height:"350px",callback:function(){t.refreshTable()}})},deleteSelectedMsSecurityStrategyConfig:function(){var i=this,r=i.$refs.msSecurityStrategyConfigTable.selection;0!==r.length?direwolfCommonConfirm({message:'删除前请点击右侧按钮确认无网关引用选中的安全策略,否则将导致网关访问错误
确认继续删除吗?',title:"删除提醒"},function(){var e,t,s="";r.forEach(function(e){e.id&&(s+=e.id+",")}),1