123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667 |
- import http from "@/api/http.js"
- /* 部门管理模块 */
- const departInterence = {
- //系统用户详情
- systemUserInfo:params=>{
- return http.get('/system/sysuser/detail',{})
- },
- //获取系统用户(树形格式)
- getSystemUser:params=>{
- return http.get("/system/department/user_tree",params)
- },
- /**
- * AdminId
- * Enabled 0 1
- */
- statusChange: params => {
- return http.post('/system/sysuser/editEnabled',params)
- },
- /* 审批配置详情 */
- approvalFlowDetail:params=>{
- return http.get('/system/flow/detail',params)
- },
- /* 添加审批人搜索 */
- approvalUserSearch:params=>{
- return http.get('/system/flow/user',params)
- },
- /* 审批配置保存/编辑 */
- approvalFlowSave:params=>{
- return http.post('/system/flow/edit',params)
- },
- /* 新增部门接口
- "DepartmentName": "string" */
- addDepart: params => {
- return http.post('/system/department/add',params)
- },
- /* 删除部门
- DepartmentId int */
- delDepart: params => {
- return http.post('/system/department/delete',params)
- },
- /* 修改部门
- "DepartmentId": int,
- "DepartmentName": "string" */
- editDepart: params => {
- return http.post('/system/department/edit',params)
- },
- /* 获取部门列表 */
- getDepartList: params => {
- return http.get('/system/department/list',params)
- },
- /* 新增分组
- "DepartmentId": int,
- "GroupName": "string"
- */
- addGroup: params => {
- return http.post('/system/group/add',params)
- },
- /* 新增二级分组接口
- "DepartmentId": int,
- "GroupName": "string"
- */
- addTeamGroup: params => {
- return http.post('/system/team/add',params)
- },
- /* 删除分组
- "GroupId": int
- */
- delGroup: params => {
- return http.post('/system/group/delete',params)
- },
- /* 删除分组接口
- "GroupId": int
- */
- delTeamGroup: params => {
- return http.post('/system/team/delete',params)
- },
- /* 修改分组
- "GroupId": int,
- "GroupName": "string"
- DepartmentId int*/
- editGroup: params => {
- return http.post('/system/group/edit',params)
- },
- /* 修改分组
- "GroupId": int,
- "GroupName": "string"
- DepartmentId int*/
- editTeamGroup: params => {
- return http.post('/system/team/edit',params)
- },
- /* 新增用户
- "AdminName": "string",
- "Authority": 0,
- "DepartmentId": 0,
- "GroupId": 0,
- "Mobile": "string",
- "Password": "string",
- "Position": "string",
- "RealName": "string",
- "RoleId": 0*/
- addUser: params => {
- return http.post('/system/sysuser/add',params)
- },
- /* 修改用户
- "AdminId": 0,
- "AdminName": "string",
- "Authority": 0,
- "DepartmentId": 0,
- "GroupId": 0,
- "Mobile": "string",
- "Password": "string",
- "Position": "string",
- "RealName": "string",
- "RoleId": 0 */
- editUser: params => {
- return http.post('/system/sysuser/edit',params)
- },
- /* 删除用户
- AdminId */
- delUser: params => {
- return http.post('/system/sysuser/delete',params)
- },
- /* 获取用户列表
- PageSize int
- CurrentIndex int
- DepartmentId int
- GroupId int
- KeyWord */
- getUserList: params => {
- return http.get('/system/sysuser/list',params)
- },
- //获取menu
- getMenu:params => {
- return http.get('/system/menu/list',params)
- },
- /* 获取所有已添加角色 */
- getRole:params => {
- return http.get('/system/role/all',params)
- },
- /* 新增角色
- "RoleName": "string" */
- addRole: params => {
- return http.post('/system/role/add',params)
- },
- /* 删除角色
- "RoleId": 0 */
- delRole: params => {
- return http.post('/system/role/delete',params)
- },
- /* 修改角色
- "RoleId": 0 int,
- "RoleName": "string" */
- editRole: params => {
- return http.post('/system/role/edit',params)
- },
- /* 获取角色列表
- PageSize int
- CurrentIndex int
- KeyWord */
- getRoleList: params => {
- return http.get('/system/role/list',params)
- },
- /* 新增角色菜单权限 crm14.1上线后弃用
- MenuIdStr
- "RoleId"
- MenuButtonIdStr
- */
- saveAuth:params => {
- return http.post('/system/role/menu/add',params)
- },
- /* 获取菜单权限,crm14.1上线后弃用
- RoleId */
- getAuthList:params => {
- return http.get('/system/role/menu/list',params)
- },
- /* 获取所有功能权限 */
- getBtnAuth:params => {
- return http.get('/system/menu/buttons',params)
- },
- /* 获取研究方向分组列表 */
- getResearchGroupList:params => {
- return http.get('/system/research_group/list',params)
- },
- /* 获取研究员的研究方向 */
- getResearchGroupByAdminId:params => {
- return http.get('/system/research_group/admin_group',params)
- },
- /* 获取需要配置的账号列表 */
- getQuestionAdminList:params =>{
- return http.get('/system/role/seller/list',params)
- },
- /* 新增运营管理员(批量)*/
- addQuestionAdmins:params=>{
- return http.post('/system/role/admin/add',params)
- },
- /* 删除运营管理员(单个) RoleTypeCode:yb_question_admin*/
- deleteQuestionAdmin:params=>{
- return http.post('/system/role/admin/del',params)
- },
- /* 已绑定的管理员列表
- RoleTypeCode:yb_comment_admin/yb_question_admin
- */
- getRoleAdminList:params=>{
- return http.get('/system/role/admin/list',params)
- },
- /* 获取标签库数据
- IncludeDisableMember:1包含禁用的研究员
- */
- getTagTree:params=>{
- return http.get('/taglib/variety_tag/tag_tree',params)
- },
- /* 同步每刻
- */
- syncCompanyProfile:params=>{
- return http.post('/maycur/company_profile/sync',params)
- },
- /**
- * 移动用户分组
- * AdminId
- * DepartmentId
- * GroupId
- * TeamId
- */
- moveSysuser:params=>{
- return http.post('/system/sysuser/move',params)
- },
- /**
- * 重置用户密码
- * AdminId
- * Password 密码是经过md5加密后的字符串
- * RePassword 两次的密码要一样
- */
- resetSysuserPass:params=>{
- return http.post('/system/sysuser/reset_pass',params)
- },
- /**
- * 部门移动排序
- * DepartmentIds 移动的是一级部门时,移动后的排序
- * GroupIds 移动的是二级部门时,移动后的排序
- * TeamIds 移动的是三级部门时,移动后的排序
- */
- sortDepart:params=>{
- return http.post('/system/group/set_sort',params)
- },
- // 获取跳转到CRM系统的code
- getToCRMSysCode:()=>{
- return http.get('/sysuser/get_crm_auth_code',{})
- },
- //从其他系统跳转来用code换token
- useCodeLogin:params=>{
- return http.get('/sysuser/auth_code_login',params)
- },
- //获取角色的权限信息,包括菜单和功能 (crm14.1)
- //RoleId
- getRoleAuth:params=>{
- return http.get('/system/role/menu/auth_list',params)
- },
- //保存角色菜单权限 (crm14.1)
- //RoleId
- //MenuIds
- //HalfMenuIds
- saveRoleAuth:params=>{
- return http.post('/system/role/menu/auth_save',params)
- },
- //获取用户所有的按钮权限
- getRoleBtnAuth:params=>{
- return http.get('/system/role/menu/buttons',params)
- },
- /**
- * 获取图形验证码 返回Base64格式数据
- * @returns
- */
- getCodePic:params=>{
- return http.get('/user_login/get_captcha',params)
- },
- /**
- * 获取短信/邮箱验证码
- * @param {Number} VerifyType 验证方式: 1-手机号; 2-邮箱
- * @param {String} CaptchaId 图形验证码ID
- * @param {String} CaptchaCode 图形验证码的值
- * @param {String} Mobile 手机号 验证方式为1时必填
- * @param {String} Email 邮箱 验证方式为2时必填
- * @param {String} TelAreaCode 手机区号
- * @param {Number} Source 来源:1-登录;3-忘记密码
- * @returns
- */
- getCodeVerify:params=>{
- return http.post('/user_login/verify_code',params)
- },
- /**
- * ETA1.4后,用户登录
- * @param {Number} LoginType 登录方式: 1-账号; 2-手机号; 3-邮箱
- * @param {String} Username 用户名
- * @param {String} Password 密码
- * @param {String} Mobile 手机号
- * @param {String} Email 邮箱
- * @param {String} VerifyCode 手机号/邮箱的验证码
- * @returns
- */
- userLogin:params=>{
- return http.post('/user_login/login',params)
- },
- /**
- * 忘记密码账号校验,获取账号信息
- * @param {String} CaptchaId 图形验证码ID
- * @param {String} CaptchaCode 图形验证码
- * @param {String} UserName 账号
- * @returns
- */
- accountCheck:params=>{
- return http.post('/user_login/forget/account_get',params)
- },
- /**
- * 忘记密码-手机/邮箱的验证码校验
- * @param {Number} FindType 密码找回方式:1-手机号;2-邮箱
- * @param {String} VerifyCode 验证码
- * @param {String} UserName 用户名
- * @param {String} Mobile 找回方式为手机号时必填
- * @param {String} Email 找回方式为邮箱时必填
- * @returns
- */
- checkCodeVerify:params=>{
- return http.post('/user_login/forget/code_verify',params)
- },
- /**
- * 忘记密码-重置密码
- * @param {String} UserName
- * @param {String} Password
- * @param {String} RePassword
- * @returns
- */
- resetPass:params=>{
- return http.post('/user_login/forget/reset_pass',params)
- },
- /**
- * 获取手机号区号
- * @returns
- */
- getPhoneAreaCode:params=>{
- return http.get('/user_login/area_code/list',params)
- },
- // 判断用户是否为域用户
- checkUserIsLdap:params=>{
- return http.post('/user_login/ldap/user_check',params)
- },
- /**
- * 获取登录页的信息
- * @returns ETATitle登录标题 Icp备案信息
- */
- getBaseInfo:params=>{
- return http.get('/user_login/base_info',params)
- }
- }
- /* 视频管理 */
- const videoInterence = {
- /* 上传视频接口 file */
- upload: params => {
- return http.post('/resource/video/upload',params);
- },
- /* 删除视频 VideoId */
- delVideo: params => {
- return http.post('/video/delete',params)
- },
- /* 编辑视频
- "PlaySeconds": 0,
- "TagsIdStr": "string",
- "Title": "string",
- "VideoCoverUrl": "string",
- "VideoId": 0,
- "VideoUrl": "string" */
- editVideo: params => {
- return http.post('/video/edit',params)
- },
- /* 视频列表
- PageSize *
- CurrentIndex *
- KeyWord **/
- getVideoList: params => {
- return http.get('/video/list',params)
- },
- /* 发布 "VideoIds": "string" */
- publish: params => {
- return http.post('/video/publish',params)
- },
- /* 取消发布 "VideoIds": "string"*/
- cancelPublish: params => {
- return http.post('/video/publish/cancel',params)
- },
- /* 新增视频
- "PlaySeconds": 0,
- "TagsIdStr": "string",
- "Title": "string",
- "VideoCoverUrl": "string",
- "VideoUrl": "string" */
- saveVideo: params => {
- return http.post('/video/save',params)
- },
- /* 标签 */
- tagList: params => {
- return http.get('/video/tags/list',params)
- },
- }
- /* 互动管理 */
- const InteractionInterence = {
- /* 问答列表 */
- getQuestionList:params => {
- return http.get('/yb/community/question/list',params)
- },
- /* 分配回复人 */
- distributeAnswer:params => {
- return http.post('/yb/community/question/distribute',params)
- },
- /* 删除问答 */
- deleteQuestion:params => {
- return http.post('/yb/community/question/delete',params)
- },
- /* 推送分配消息 */
- sendMsg:params =>{
- return http.post('/yb/community/question/send_template_msg',params)
- },
- /* 编辑问题描述 */
- editQuestion:params=>{
- return http.post('/yb/community/question/edit',params)
- },
- /* 查询点击量详情列表 */
- questionClickLogs:params=>{
- return http.get('yb/community/question/click/logs',params)
- },
- /* 提问者详情 */
- questionUser:params=>{
- return http.get('yb/community/question/user',params)
- },
- questionDetail:params=>{
- return http.get('yb/community/question/detail',params)
- },
- // 转移问题
- questionTransfer:params=>{
- return http.post('yb/community/question/transfer',params)
- }
- }
- /* 数据操作权限 */
- const operateAuthInterface = {
- /**
- * 列表
- * @param {*} params
- * Source=5&UserId=11&CurrentIndex=1&PageSize=10 Keyword
- * @returns
- */
- list: params => {
- return http.get('/datamanage/edb_chart/list',params)
- },
- /**
- * 修改权限所属
- * @param {*} params
- * Source DataIdList NewUserId
- * @returns
- */
- authEdit: params => {
- return http.post('/datamanage/edb_chart/change_user',params)
- },
- /**
- * 修改权限所属
- * @param {*} params.Source - string -来源 :1:手工数据指标 2:钢联化工数据库 3:ETA指标库 4:ETA预测指标 5:图库
- * @returns
- */
- getClassificationBySource: params => {
- return http.get('/datamanage/edb_chart/classify',params)
- },
- /**
- * 获取指标无权限列表
- * @param {*} params EdbInfoId
- * @returns
- */
- getEdbNoAuthList: params => {
- return http.get('/datamanage/edb_no_permission/list',params)
- },
- /**
- * 设置无权限用户
- * @param {*} params EdbInfoId AdminIdList:[]
- * @returns
- */
- edbNoAuthSet: params => {
- return http.post('/datamanage/edb_no_permission/modify',params)
- },
- /**
- * 删除指标无权限 EdbInfoId AdminId
- * @param {*} params
- * @returns
- */
- edbNoAuthDel: params => {
- return http.post('/datamanage/edb_no_permission/delete',params)
- },
- /**
- * 批量配置无权限用户
- * @param {*} params EdbInfoIdList AdminIdList
- * @returns
- */
- edbNoAuthBatchSet: params => {
- return http.post('/datamanage/edb_no_permission/batch_add',params)
- },
- /**
- * 全量资产转移
- * @param {*} params Source NewUserId OldUserId
- */
- transferAllData: params => {
- return http.post('/datamanage/edb_chart/all/change_user',params)
- },
- /**
- * 获取用户的资产数量统计
- * @param {*} params UserId
- * @returns
- */
- getUserStatistic: params => {
- return http.get('/datamanage/edb_chart/count',params)
- },
- /**
- * 设置涉密分类
- * @param {*} params
- * "Source": 3,
- "SubSource": 0,
- "ClassifyIdList": []
- * @returns
- */
- setPermissionClassify: params => {
- return http.post('/datamanage/edb_chart/classify/permission/is_permission/set',params)
- },
- /**
- * 设置分类权限
- * @param {*} params
- * Source SubSource UserList[] ClassifyIdList[]
- * @returns
- */
- setClassifyAuth: params => {
- return http.post('/datamanage/edb_chart/classify/permission/set',params)
- },
- /**
- * 设置数据权限
- * @param {*} params
- * Source
- * SubSource
- * UserId
- * DataIdList
- * NoDataIdList
- * UserList
- * IsSelectAll
- * ClassifyId
- * Keyword
- */
- setDataAuth: params => {
- return http.post('/datamanage/edb_chart/permission/set',params)
- },
- /**
- * 根据用户获取权限分类
- * @param {*} params Source SubSource UserId
- * @returns
- */
- getSecretClassifyByUser: params => {
- return http.get('/datamanage/edb_chart/classify/permission/show_by_user',params)
- },
-
- /**
- * 根据数据获取权限用户
- * @param {*} params Source SubSource DataId
- * @returns
- */
- getAuthUserByData: params => {
- return http.get('/datamanage/edb_chart/permission/show_by_data',params)
- },
- /**
- * 获取消息列表
- * @param {*} params
- * @returns
- */
- getNoticeList: params => {
- return http.get('/datamanage/message/list',params)
- },
- /**
- * 标记已读
- * @param {*} params MessageId
- * @returns
- */
- redMessage: params => {
- return http.post('/datamanage/message/read',params)
- },
- /**
- * 消息详情
- * @param {*} params
- * MessageId Source SubSource PageSize CurrentIndex
- * @returns
- */
- getNoticeDetail: params => {
- return http.get('/datamanage/message/detail',params)
- },
- /**
- * 获取所有私密分类
- * @param {*} params Source SubSource
- * @returns
- */
- getSecretClassify: params => {
- return http.get('/datamanage/edb_chart/classify/secret',params)
- },
- /**
- * 消息通知 所有未读
- * @param {*} params
- * @returns
- */
- getAllUnread: params => {
- return http.get('/message/unread/num')
- }
- }
- /* 英文权限管理 */
- const enAuthInterence = {
- /* 英文权限列表 */
- getAuthList:params=>{
- return http.get('/english_report/auth/list',params)
- },
- /* 英文权限详情 AdminId*/
- getAuthDetail:params=>{
- return http.get('/english_report/auth/detail',params)
- },
- /* 英文权限批量新增 AdminIds*/
- addAuthAdmins:params=>{
- return http.post('/english_report/auth/batch_add',params)
- },
- /* 英文权限编辑 AdminId RoleTypeCodes*/
- editAuthAdmin:params=>{
- return http.post('/english_report/auth/edit',params)
- },
- /* 英文权限 删除 AdminId*/
- deleteAuthAdmin:params=>{
- return http.post('/english_report/auth/del',params)
- }
- }
- export {
- departInterence,
- videoInterence,
- InteractionInterence,
- operateAuthInterface,
- enAuthInterence
- }
|