app.config(['$stateProvider', function ($stateProvider) { $stateProvider /*公共资源库列表页*/ .state('publicResource', { cache: false, url: '/publicResource', templateUrl: 'modules/resourceLibrary/views/publicResource.html', controller: 'publicResourceCtrl', resolve: { publicResource: function (LoadJsService) { return LoadJsService.loadSequence("publicResourceeArgs"); } }, params: {reclibid: 0, libtype: 0, name: "", modlibid: 0} }) /*私人资源库列表页*/ .state('privateResource', { cache: false, url: '/privateResource/:groupid/:restype/:privateName', templateUrl: 'modules/resourceLibrary/views/privateResource.html', controller: 'privateResourceCtrl', resolve: { privateResource: function (LoadJsService) { return LoadJsService.loadSequence("privateResourceArgs"); } }, params: { res: {}, groupid: 0, privateName: "", restype: 0, privateContent: "", authority: false, category: '', filterList: '', MoreData:'', capacityparams:'', checkedsort:'' } }) .state('resourceLibrarySendMessage', { cache: false, url: '/resourceLibrarySendMessage/:parentid/:libtype', templateUrl: 'modules/resourceLibrary/views/resourceLibrarySendMessage.html', controller: 'resourceLibrarySendMessageCtrl', resolve: { resourceLibrarySendMessage: function (LoadJsService) { return LoadJsService.loadSequence("resourceLibrarySendMessageArgs"); } }, params: { reclib: {}, libtype: 0, privateName: "", modlibid: 0, privateContent: "", authority: false, category: '', parentid: 0 } }) /*本地资源库列表页*/ .state('resourceList', { cache: false, url: '/resourceList', templateUrl: 'modules/resourceLibrary/views/resourceList.html', controller: 'resourceListCtrl', resolve: { resourceList: function (LoadJsService) { return LoadJsService.loadSequence("resourceListCtrl"); } }, params: {reclibid: "", libtype: 0, privateName: "", name: "", modlibid: 0, isCloud: -1} }) .state('wujingTechnical', { cache: false, url: '/wujingTechnical', templateUrl: 'modules/resourceLibrary/views/wujingTechnical.html', controller: 'wujingTechnicalCtrl', resolve: { wujingTechnical: function (LoadJsService) { return LoadJsService.loadSequence("wujingTechnicalCtrl"); } }, params: {reclibc: ''}, }) .state('resourceLabelList', { cache: false, url: '/resourceLabelList', templateUrl: 'modules/resourceLibrary/views/resourceLabelList.html', controller: 'resourceLabelListCtrl', resolve: { resourceLabelList: function (LoadJsService) { return LoadJsService.loadSequence("resourceLabelListCtrl"); } }, params: {resourceList: '', labelName: ''}, }) .state('wujingTeacher', { cache: false, url: '/wujingTeacher', templateUrl: 'modules/resourceLibrary/views/wujingTeacher.html', controller: 'wujingTeacherCtrl', resolve: { wujingTeacher: function (LoadJsService) { return LoadJsService.loadSequence("wujingTeacherCtrl"); } }, params: {reclibc: ''} }) .state('wujingTechnicalDetail', { cache: false, url: '/wujingTechnicalDetail', templateUrl: 'modules/resourceLibrary/views/wujingTechnicalDetail.html', controller: 'wujingTechnicalDetailCtrl', resolve: { wujingTechnicalDetail: function (LoadJsService) { return LoadJsService.loadSequence("wujingTechnicalDetailCtrl"); } }, params: {resource: ''} }) /*公共资源库详情页*/ .state('resourceDetails', { cache: false, url: '/resourceDetails', templateUrl: 'modules/resourceLibrary/views/resourceDetails.html', controller: 'resourceDetailsCtrl', resolve: { resourceDetails: function (LoadJsService) { return LoadJsService.loadSequence("resourceDetailsArgs"); } }, params: { recourceid: 0, recourcetype: "", recourcecomefrom: "", categorylabel: "", order: 0, comfrom: '', reclib: {}, filterList: '', reclibid: 0, moduleid: 0 } }) /*私人资源详情页*/ .state('resourcePrivateDetails', { cache: false, url: '/resourcePrivateDetails', templateUrl: 'modules/resourceLibrary/views/resourcePrivateDetails.html', controller: 'resourcePrivateDetailsCtrl', resolve: { resourcePrivateDetails: function (LoadJsService) { return LoadJsService.loadSequence("resourcePrivateDetailsArgs"); } }, params: { recourceid: 0, recourcetype: "", recourcecomefrom: "", categorylabel: "", authorityid: 0, authoritycomefrom: "", creator: 0 } }) /*本地资源详情页*/ .state('resourceLocalDetails', { cache: false, url: '/resourceLocalDetails', templateUrl: 'modules/resourceLibrary/views/resourceLocalDetails.html', controller: 'resourceLocalDetailsCtrl', resolve: { resourceLocalDetails: function (LoadJsService) { return LoadJsService.loadSequence("resourceLocalDetailsCtrl"); } }, params: { recourceid: 0, recourcetype: "", recourcecomefrom: "", categorylabel: "", creator: 0 } }) /*关联信息详情页*/ .state('relativeDetails', { cache: false, url: '/relativeDetails', templateUrl: 'modules/resourceLibrary/views/relativeDetails.html', controller: 'relativeDetailsCtrl', resolve: { relativeDetails: function (LoadJsService) { return LoadJsService.loadSequence("relativeDetailsArgs"); } }, params: {recourceid: 0, recourcetype: "", recourcecomefrom: "", categorylabel: ""} }) /*新建资源库信息*/ .state('buildResourceList', { cache: false, url: '/buildResourceList', templateUrl: 'modules/resourceLibrary/views/buildResourceList.html', controller: 'buildResourceListCtrl', resolve: { buildResourceList: function (LoadJsService) { return LoadJsService.loadSequence("buildResourceListCtrl"); } } }) /*新建资源库信息初始页*/ .state('buildResourceInit', { cache: false, url: '/buildResourceInit', templateUrl: 'modules/resourceLibrary/views/buildResourceInitAchievement.html', controller: 'buildResourceInitCtrl', resolve: { buildResourceInit: function (LoadJsService) { return LoadJsService.loadSequence("buildResourceInitCtrl"); } } }) /*选择行业领域页*/ .state('IndustryField', { cache: false, url: '/IndustryField', templateUrl: 'modules/resourceLibrary/views/IndustryField.html', controller: 'IndustryFieldCtrl', resolve: { IndustryField: function (LoadJsService) { return LoadJsService.loadSequence("IndustryFieldCtrl"); } } }) /*分享到指定资源库页*/ .state('chooseShareResource', { cache: false, url: '/chooseShareResource', templateUrl: 'modules/resourceLibrary/views/chooseShareResource.html', controller: 'chooseShareResourceCtrl', resolve: { chooseShareResource: function (LoadJsService) { return LoadJsService.loadSequence("chooseShareResourceArgs"); } }, params: {chereslist: [], folderid: 0, isCloud: -1, recourcetype: 0, recourcecomefrom: 0} }) /*回复评论的页*/ .state('resourceCommentReply', { cache: false, url: '/resourceCommentReply', templateUrl: 'modules/resourceLibrary/views/resourceCommentReply.html', controller: 'resourceCommentReplyCtrl', resolve: { resourceCommentReply: function (LoadJsService) { return LoadJsService.loadSequence("resourceCommentReplyCtrl"); } }, params: {comment: {}, infoid: 0, infotype: 0, recourcecomefrom: "", isedit: false} }) /*评论点赞人员列表页*/ .state('resourceCommentReplyClickDetail', { cache: false, url: '/resourceCommentReplyClickDetail', templateUrl: 'modules/resourceLibrary/views/resourceCommentReplyClickDetail.html', controller: 'resourceCommentReplyClickDetailCtrl', resolve: { resourceCommentReply: function (LoadJsService) { return LoadJsService.loadSequence("resourceCommentReplyClickDetailCtrl"); } }, params: {dianzanlist: {}} }) /*资源库搜索页*/ .state('resourceSearch', { cache: false, url: '/resourceSearch', templateUrl: 'modules/resourceLibrary/views/resourceSearch.html', controller: 'resourceSearchCtrl', resolve: { resourceSearch: function (LoadJsService) { return LoadJsService.loadSequence("resourceSearchCtrl"); } }, params: {resourcetype: 0, reclibid: 0, tabindex: 1} }) /*资源库搜索结果页*/ .state('resourceSearchResult', { cache: true, url: '/resourceSearchResult', templateUrl: 'modules/resourceLibrary/views/resourceSearchResult.html', controller: 'resourceSearchResultCtrl', resolve: { resourceSearchResult: function (LoadJsService) { return LoadJsService.loadSequence("resourceSearchResultArgs"); } }, params: { key: "", tabindex: 1, resourcetype: 0, infoid: 0, infotype: 0, searchtype: 0, reclibid: 0, isedit: false } }) /*资源库申请权限查看页*/ .state('resourceApply', { cache: true, url: '/resourceApply', templateUrl: 'modules/resourceLibrary/views/resourceApply.html', controller: 'resourceApplyCtrl', resolve: { resourceApply: function (LoadJsService) { return LoadJsService.loadSequence("resourceApplyCtrl"); } }, params: {authoritydata: {}} }) .state('tongluPermissionApply', { cache: true, url: '/tongluPermissionApply', templateUrl: 'modules/resourceLibrary/views/tongluPermissionApply.html', controller: 'tongluPermissionApplyCtrl', resolve: { tongluPermissionApply: function (LoadJsService) { return LoadJsService.loadSequence("tongluPermissionApplyCtrl"); } }, params: {resource: {}} }) /*设置资源库页*/ .state('resourceSet', { cache: true, url: '/resourceSet', templateUrl: 'modules/resourceLibrary/views/resourceSet.html', controller: 'resourceSetCtrl', resolve: { resourceSet: function (LoadJsService) { return LoadJsService.loadSequence("resourceSetCtrl"); } } }) /*匹配结果资源页*/ .state('resourceMatch', { cache: true, url: '/resourceMatch', templateUrl: 'modules/resourceLibrary/views/resourceMatch.html', controller: 'resourceMatchCtrl', resolve: { resourceMatch: function (LoadJsService) { return LoadJsService.loadSequence("resourceMatchCtrl"); } }, params: {type: 0, title: "", categorylabel: "", unique: "", recordid: ""} }) /*匹配结果搜索页*/ .state('resourceMatchSearch', { cache: true, url: '/resourceMatchSearch', templateUrl: 'modules/resourceLibrary/views/resourceMatchSearch.html', controller: 'resourceMatchSearchCtrl', resolve: { resourceMatchSearch: function (LoadJsService) { return LoadJsService.loadSequence("resourceMatchSearchArgs"); } }, params: {type: 0, title: "", categorylabel: "", unique: "", recordid: ""} }) /*私人资源库详情页编辑*/ .state('editResourcePrivateDetails', { cache: false, url: '/editResourcePrivateDetails', templateUrl: 'modules/resourceLibrary/views/editResourcePrivateDetails.html', controller: 'editResourcePrivateDetailsCtrl', resolve: { editResourcePrivateDetails: function (LoadJsService) { return LoadJsService.loadSequence("editResourcePrivateDetailsCtrl"); } }, params: {resource: {}, type: 0} }) /*打开私人资源库*/ .state('resourceLibraryPrivate', { cache: false, url: '/resourceLibraryPrivate', templateUrl: 'modules/resourceLibrary/views/resourceLibraryPrivate.html', controller: 'resourceLibraryPrivateCtrl', resolve: { resourceSet: function (LoadJsService) { return LoadJsService.loadSequence("resourceLibraryPrivateArgs"); } }, params: {reclib: {}} }) /*本地资源库详情页*/ .state('resourceLibraryLocalType', { cache: false, url: '/resourceLibraryLocalType', templateUrl: 'modules/resourceLibrary/views/resourceLibraryLocalType.html', controller: 'resourceLibraryLocalTypeCtrl', resolve: { resourceLibraryLocalType: function (LoadJsService) { return LoadJsService.loadSequence("resourceLibraryLocalTypeCtrl"); } }, params: {reclib: {}} }) /*选择节点*/ .state('chooseNodeIndex', { cache: false, url: '/chooseNodeIndex', templateUrl: 'modules/resourceLibrary/views/chooseNodeIndex.html', controller: 'chooseNodeIndexCtrl', resolve: { chooseNodeIndex: function (LoadJsService) { return LoadJsService.loadSequence("chooseNodeIndexArgs"); } }, params: {comefrom: ''} }) /*资源发布者列表*/ .state('resourcePublisherAccount', { cache: false, url: '/resourcePublisherAccount', templateUrl: 'modules/resourceLibrary/views/resourcePublisherAccount.html', controller: 'resourcePublisherAccountCtrl', resolve: { resourcePublisherAccount: function (LoadJsService) { return LoadJsService.loadSequence("resourcePublisherAccountCtrl"); } }, params: { userlist: [] } }) /*设置谁可以看*/ .state('selectWhoSee', { cache: false, url: '/selectWhoSee', templateUrl: 'modules/resourceLibrary/views/selectWhoSee.html', controller: 'selectWhoSeeCtrl', resolve: { selectWhoSee: function (LoadJsService) { return LoadJsService.loadSequence("selectWhoSeeArgs"); } }, params: { authorityid: 0, authname: "", ispublic: 2, creator: 0, updater: 0, resid: 0, rescode: "" } }) /*设置群组*/ .state('setAuthorityGroup', { cache: false, url: '/setAuthorityGroup', templateUrl: 'modules/resourceLibrary/views/setAuthorityGroup.html', controller: 'setAuthorityGroupCtrl', resolve: { setAuthorityGroup: function (LoadJsService) { return LoadJsService.loadSequence("setAuthorityGroupArgs"); } }, params: {groupDetail: {}} }) /*选择成员*/ .state('selectAuthorityMember', { cache: false, url: '/selectAuthorityMember', templateUrl: 'modules/resourceLibrary/views/selectAuthorityMember.html', controller: 'selectAuthorityMemberCtrl', resolve: { selectAuthorityMember: function (LoadJsService) { return LoadJsService.loadSequence("selectAuthorityMemberArgs"); } }, params: {sourcefrom: 1, userlist: []}//来源,已有用户列表 }) /*选择群组导入成员*/ .state('selectGroupImport', { cache: false, url: '/selectGroupImport', templateUrl: 'modules/resourceLibrary/views/selectGroupImport.html', controller: 'selectGroupImportCtrl', resolve: { selectGroupImport: function (LoadJsService) { return LoadJsService.loadSequence("selectGroupImportCtrl"); } } }) /*选择字段来设置权限*/ .state('selectFieldsToSet', { cache: false, url: '/selectFieldsToSet', templateUrl: 'modules/resourceLibrary/views/selectFieldsToSet.html', controller: 'selectFieldsToSetCtrl', resolve: { selectFieldsToSet: function (LoadJsService) { return LoadJsService.loadSequence("selectFieldsToSetArgs"); } }, params: { typecodemap: {}, resid: 0, typecode: 0, comfrom: '', title: '', node: '', templettype: '', pagetitle: '' } }) /*设置权限有效期*/ .state('setValidityData', { cache: false, url: '/setValidityData', templateUrl: 'modules/resourceLibrary/views/setValidityData.html', controller: 'setValidityDataCtrl', resolve: { setValidityData: function (LoadJsService) { return LoadJsService.loadSequence("setValidityDataCtrl"); } } }) /*资源库信息公用页面A(机构、人才、专家)*/ .state('resourceCommonDetailsPage', { cache: false, url: '/resourceCommonDetailsPage/:recourceid/:recourcetype/:recourcecomefrom/:title/:privateName', templateUrl: 'modules/resourceLibrary/views/resourceCommonDetailsPage.html', controller: 'resourceCommonDetailsPageCtrl', resolve: { resourceCommonDetailsPage: function (LoadJsService) { return LoadJsService.loadSequence("resourceCommonDetailsPageArgs"); } }, params: { recourceid: 0, recourcetype: "", recourcecomefrom: "", creator: 0, isCache: false, // 是否要强制刷新 title: '', templettype: 0, orgtype: 0, comfrom: '', pagecode: '', label: '', order: 0, reclib: {}, filterList: '', groupid: 0, restype: 0, privateName:'', MoreData:'', capacityparams:'', checkedsort:'', row:'' } }) /*走访详情页*/ .state('resourceCommonInfoDetailsPage', { cache: false, url: '/resourceCommonInfoDetailsPage/:resid/:pagecode/:node/:comfrom/:orgtype/:templettype', templateUrl: 'modules/resourceLibrary/views/resourceCommonInfoDetailsPage.html', controller: 'resourceCommonInfoDetailsPageCtrl', resolve: { resourceCommonInfoDetailsPage: function (LoadJsService) { return LoadJsService.loadSequence("resourceCommonInfoDetailsPageArgs"); } }, params: { resid: 0, isAllVisitor: 1, isCache: false, // 是否要强制刷新 pagecode: 0, node: '', comfrom: '', orgtype: 0, templettype: 0, label: '' } }) /*走访记录详情页2*/ .state('resourceCommonInfoDetailsRepeatPage', { cache: false, url: '/resourceCommonInfoDetailsRepeatPage/:resid/:comfrom/:templettype/:node', templateUrl: 'modules/resourceLibrary/views/resourceCommonInfoDetailsRepeatPage.html', controller: 'resourceCommonInfoDetailsRepeatPageCtrl', resolve: { resourceCommonInfoDetailsRepeatPage: function (LoadJsService) { return LoadJsService.loadSequence("resourceCommonInfoDetailsRepeatPageArgs"); } }, params: { resid: 0, isAllVisitor: 1, isCache: false, // 是否要强制刷新 pagecode: 0, node: '', comfrom: '', orgtype: 0, templettype: 0, label: '' } }) /*选择常驻节点*/ .state('selectResidentNodes', { cache: true, url: '/selectResidentNodes', templateUrl: 'modules/resourceLibrary/views/selectResidentNodes.html', controller: 'selectResidentNodesCtrl', resolve: { selectResidentNodes: function (LoadJsService) { return LoadJsService.loadSequence("selectResidentNodesArgs"); } } }) /*2019武进人工智能外籍院士列表*/ .state('academician', { cache: true, url: '/academician', templateUrl: 'modules/resourceLibrary/views/academician.html', controller: 'academicianCtrl', resolve: { academician: function (LoadJsService) { return LoadJsService.loadSequence("academicianCtrl"); } } }) .state('suzheng', { cache: true, url: '/suzheng', templateUrl: 'modules/resourceLibrary/views/suzheng.html', controller: 'suzhengCtrl', resolve: { suzheng: function (LoadJsService) { return LoadJsService.loadSequence("suzhengCtrl"); } } }) /*2019武进人工智能外籍院士详情*/ .state('academicianDetail', { cache: true, url: '/academicianDetail', templateUrl: 'modules/resourceLibrary/views/academicianDetail.html', controller: 'academicianDetailCtrl', resolve: { academicianDetail: function (LoadJsService) { return LoadJsService.loadSequence("academicianDetailArgs"); } }, params: { content: "", summary: "", title: "", logo: "", domain: "" } }); }]);