index.js 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598
  1. import { post, fetch } from '@/until/http.js'
  2. export default {
  3. //获取版本
  4. versions(data) {
  5. return post('/core/system-info', data)
  6. },
  7. //钉钉登录获取状态
  8. Dinglogin(data) {
  9. return post('/common/login/get-ddscancode', data)
  10. },
  11. //发送短信验证码 暂时未使用
  12. // Phonepin(data) {
  13. // return post('https://api2.teammodel.net/service/sandsms/pin', data)
  14. // },
  15. //验证手机号和验证 暂时未使用
  16. // verifyCode(data) {
  17. // return post('https://api2.teammodel.net/oauth2/login', data)
  18. // },
  19. //手机验证码都通过后,进行绑定操作 暂时未使用
  20. // bindUserid(data) {
  21. // return post('/common/login/set-bind ', data)
  22. // },
  23. //正常醍摩豆账号或者手机号登录 暂时未使用
  24. // loginUser(data) {
  25. // return post('https://api2.teammodel.cn/oauth2/login', data)
  26. // },
  27. //获取组织架构
  28. getorganization(data) {
  29. return post('/dd/get-deptlist', data)
  30. },
  31. //正常醍摩豆/手机号码登录后 获取id_token,通过id_token获取人物信息
  32. teacherinfo(data) {
  33. return post('/common/login/get-teacherinfo', data)
  34. },
  35. //获取所有的附加权限表
  36. getAllpermission(data) {
  37. return post('/batchschool/get-teacher-authoritybilist', data)
  38. },
  39. //教室管理
  40. //人员管理
  41. getEveryinfo(data) {
  42. return post('/tabledd/get-ddusers', data)
  43. },
  44. //人员权限管理 *** Headers[x-auth-authtoken]
  45. updateManege(data) {
  46. return post('/tabledd/set-permissions', data)
  47. },
  48. //根据部门ID获取部门下的人员
  49. getDeparttotal(data) {
  50. return post('/tabledd/get-dddeptiduser', data)
  51. },
  52. //设置系统管理员 Headers[x-auth-authtoken]
  53. setisAdmin(data) {
  54. return post('/tabledd/set-backend', data)
  55. },
  56. //同步某个人员信息 已完善 V2.0
  57. updateAlone(data) {
  58. return post('/tabledd/set-usettmdinfo', data)
  59. },
  60. //为用户设置关联学校或删除
  61. setAistschool(data) {
  62. return post('/schoolcheck/set-aistschool', data)
  63. },
  64. //获取区域内的微能力点
  65. getCapacity(data) {
  66. return post('/batcharea/get-areas', data)
  67. },
  68. //创建区域 *** Headers[x-auth-authtoken]
  69. createAreas(data) {
  70. return post('/batcharea/batch-area', data)
  71. },
  72. //创建学校-根据手机号查询相关用户信息
  73. getUserdata(data) {
  74. return post('/biservers/get-mobileuserinfo', data)
  75. },
  76. //创建学校 *** Headers[x-auth-authtoken]
  77. createdSchools(data) {
  78. return post('/batchschool/batch-school', data)
  79. },
  80. //批量创校的数据验证
  81. verifyContent(data) {
  82. return post('/batchschool/get-checkexists', data)
  83. },
  84. //获取学校简码
  85. getSchoolcode(data) {
  86. return post('/batchschool/get-schoolcode', data)
  87. },
  88. //修改学区简码 or 苏格拉底频道简码
  89. updateAreacode(data){
  90. return post('/batcharea/upd-area',data)
  91. },
  92. //区域管理和微能力点管理
  93. //切换为能力点 *** Headers[x-auth-authtoken]
  94. changeCutstandard(data) {
  95. return post('/batcharea/cut-standard', data)
  96. },
  97. //根据方案获取册别(方案下的所有微能力点,例A1 A2 A3)
  98. getProjectAbility(data) {
  99. return post('/biabilitymgmt/get-abilitys', data)
  100. },
  101. //册别详情(例 A1详情和自我检测试卷内容)
  102. getAbilityInfo(data) {
  103. return post('/biabilitymgmt/get-abulityid', data)
  104. },
  105. //册别下的章节tree
  106. getAbilityDeatils(data) {
  107. return post('/biabilitytask/get-abilitytasksid', data)
  108. },
  109. //册别删除(删除某个能力点) *** Headers[x-auth-authtoken]
  110. delAbility(data) {
  111. return post('/biabilitymgmt/del-ability', data)
  112. },
  113. //调整微能力点的必修、选修 *** Headers[x-auth-authtoken]
  114. saveAbility(data) {
  115. return post('/biabilitymgmt/upd-currency', data)
  116. },
  117. //同步微能力点
  118. getSynchronize(data) {
  119. return post('/batcharea/cut-full-statndard', data)
  120. },
  121. //获取未加入区域的学校
  122. // getNotjoinSchool(data) {
  123. // return post('/schoolcheck/get-notarea', data)
  124. // },
  125. //未加入学区 新API
  126. getNotjoinSchool(data) {
  127. return post('/schoolcheck/get-nojoinsc', data)
  128. },
  129. //获取目前区域内拥有的学校
  130. getForareaSchool(data) {
  131. return post('/area/get-areaschools', data)
  132. },
  133. //区域内加入学校 *** Headers[x-auth-authtoken]
  134. areaAddSchool(data) {
  135. return post('/schoolcheck/set-schooljoinarea', data)
  136. },
  137. //区域内移除学校 *** Headers[x-auth-authtoken]
  138. areaDeleSchool(data) {
  139. return post('/area/set-areashiftschool', data)
  140. },
  141. //学区内增加管理员
  142. areaAddadmins(data) {
  143. return post('/area/set-manage', data)
  144. },
  145. //获取学区的管理员列表
  146. getAreadmin(data) {
  147. return post('/area/get-manage', data)
  148. },
  149. //删除学区管理员
  150. deleteAdmin(data) {
  151. return post('/area/del-manage', data)
  152. },
  153. //管理员所管理学校
  154. adminRelevanceschool(data) {
  155. return post('/schoolcheck/get-managescs', data)
  156. },
  157. //添加管理员所管理的学校(人员管理-管理学校)
  158. adminAddschool(data) {
  159. return post('/schoolcheck/set-batchmageage', data)
  160. },
  161. //学校管理
  162. //获取所有学校或 单独某个学校信息
  163. getSchooldata(data) {
  164. return post('/batchschool/get-schoolsinfo', data)
  165. },
  166. //获取所有学校信息 V2.0
  167. getSchool(data) {
  168. return post('/school/get-scinfos', data)
  169. },
  170. //进入学校管理,获取所有顾问列表(目前是说去 研发中心B)(也可替代其他 组织架构,一层人员的获取。)
  171. getAllassist(data) {
  172. return post('/dd/get-tmdandddusers', data)
  173. },
  174. //对学校编辑提交更改 *** Headers[x-auth-authtoken] 接口已对接 已完善V2.0
  175. updateSchoolinfo(data) {
  176. return post('/batchschool/upd-schoolassist', data)
  177. },
  178. //获取当前学校的学段管理数据
  179. getNowscholl(data) {
  180. return post('/schoolcheck/get-schoolid', data)
  181. },
  182. //修改学段管理内容 Headers[x-auth-authtoken] 接口已对接
  183. updateSchoolphase(data) {
  184. return post('/schoolcheck/upd-school', data)
  185. },
  186. //当前学校授权内容
  187. getschoolAuthorization(data) {
  188. return post('/product/get-school', data)
  189. },
  190. //绑定和解绑教室序列号
  191. operateClassroom(data) {
  192. return post('/schoolroom/set-bind', data)
  193. },
  194. //删除学校
  195. removeSchool(data) {
  196. return post('/schoolcheck/set-del', data)
  197. },
  198. //获取学校管理员列表
  199. getSchooladmin(data) {
  200. return post('/schoolcheck/get-scmanage', data)
  201. },
  202. //添加学校管理
  203. setSchooladmin(data) {
  204. return post('/schoolcheck/set-manage', data)
  205. },
  206. //删除学校管理员
  207. deleteSchooladmin(data) {
  208. return post('/schoolcheck/del-manage', data)
  209. },
  210. //获取简易学校列表,数据本地化核验使用 或后端查询学校是否存在
  211. getsimpleSchool(data) {
  212. return post('/schoolcheck/get-scsimple', data)
  213. },
  214. //获取所有学校(所有)
  215. getallSchool(data) {
  216. return post('/batchschool/get-allscinfo', data)
  217. },
  218. //首页dashboard数据接口
  219. //获取各城市的学校数量(bar)
  220. getEachSchool(data) {
  221. return post('/homestatis/get-cityschool', data)
  222. },
  223. //根据城市code获取 下面的学生、老师、学校数量
  224. getSchoolDetails(data) {
  225. return post('/homestatis/get-districtstics', data)
  226. },
  227. //获取全部教师数量、学生数量、创校数量、空间大小 总和
  228. geteachTotal(data) {
  229. return post('/homestatis/get-allnumber', data)
  230. },
  231. //地图 获取各个省的数据统计
  232. getEachProvince(data) {
  233. return post('/homestatis/get-provincestics', data)
  234. },
  235. //统计空间类型占比
  236. getSpacetype(data) {
  237. return post('/homestatis/get-datatypestics', data)
  238. },
  239. //各个模组的数据情况
  240. getModuledata(data) {
  241. return post('/product/get-allcount', data)
  242. },
  243. //强制刷新人员名单(从DD服务器拉取) *** Headers[x-auth-authtoken]
  244. getStaffList(data) {
  245. return post('/tabledd/get-dingdingusers', data)
  246. },
  247. //微能力点编辑
  248. //tree增加子节点 *** Headers[x-auth-authtoken]
  249. addChild(data) {
  250. return post('/biabilitytask/upd-abilitytask', data)
  251. },
  252. //tree删除父节点(一级@章节) *** Headers[x-auth-authtoken]
  253. removeChildnodes(data) {
  254. return post('/biabilitytask/del-abilitytask', data)
  255. },
  256. //新增或编辑当前册别 (同时也支持添加实践任务) Headers[x-auth-authtoken] /**参数结构有所更改需要和后端对接、BI文档已更新。**/ 你这里有重复API
  257. redactOraddAbility(data) {
  258. return post('/biabilitymgmt/upd-ability', data)
  259. },
  260. //操作日志类
  261. //获取所有日志
  262. getAlllog(data) {
  263. return post('/operatelog/get-record', data)
  264. },
  265. //查询工具类
  266. //根据选择类型查询数据
  267. searchTypedata(data) {
  268. return post('/jointly/get-info', data)
  269. },
  270. //区域服务
  271. //获取全区的数据(基础数据)
  272. getAlldata(data) {
  273. return post('/activity/get-all', data)
  274. },
  275. //统计所有的评量、投票、问卷、作业
  276. getclassify(data) {
  277. return post('/activity/get-allactivity', data)
  278. },
  279. //获取课例活动数据
  280. getClassData(data) {
  281. return post('/lesson/get-allarea', data)
  282. },
  283. //获取课例活跃
  284. getClassLively(data) {
  285. return post('/lesson/get-weekcount', data)
  286. },
  287. //获取所有学区列表
  288. getAreaList(data) {
  289. return post('/activity/get-areasanls', data)
  290. },
  291. //获取某个学区的数据统计
  292. getSchoolStatistics(data) {
  293. return post('/activity/get-areastics', data)
  294. },
  295. //获取数据占比 总数据、上周、本月
  296. getResearchdata(data) {
  297. return post('/lesson/get-schoolan', data)
  298. },
  299. //获取空间使用率和明细
  300. getEmploySizes(data) {
  301. return post('/bloblog/get-area', data)
  302. },
  303. //获取某个学区内的顾问人员列表
  304. getCounselorlist(data) {
  305. return post('/area/get-assists', data)
  306. },
  307. //获取某个学区内的学校列表
  308. getAreaSchoolList(data) {
  309. return post('/area/get-schools', data)
  310. },
  311. //系统配置
  312. //站点配置
  313. getSystemConfig(data) {
  314. return post('/syscfg/get-allconfig', data)
  315. },
  316. //修改系统配置信息or添加新站点
  317. updateSystemconfig(data) {
  318. return post('/syscfg/set-singleconfig', data)
  319. },
  320. //搜素人员
  321. searchPersonnel(data) {
  322. return post('/biservers/get-coreinfo', data)
  323. },
  324. //移除管理员
  325. // removeAdmin(data) {
  326. // return post('/tabledd/set-backend', data)
  327. // },
  328. //切换站点
  329. cutSitesInfo(data) {
  330. return post('/syscfg/cut-site', data)
  331. },
  332. //添加系统管理员
  333. addAdmin(data) {
  334. return post('/tabledd/set-tmdadmin', data)
  335. },
  336. //变更BI权限和身份
  337. setRolesandPower(data) {
  338. return post('/tabledd/set-rolesper', data)
  339. },
  340. //API管理内 当天的API访问情况
  341. getNowapi(data) {
  342. return post('/analyse/get-dayapi', data)
  343. },
  344. //API列表
  345. getApiInfo(data) {
  346. return post('/analyse/get-dayapi', data)
  347. },
  348. //查询当前人员管理的学校列表
  349. adminMangeSchool(data) {
  350. return post('/schoolcheck/get-managescs', data)
  351. },
  352. //首页运维数据
  353. //首页基础数据统计
  354. getAllcount(data) {
  355. return post('/online/get-count', data)
  356. },
  357. //获得在线人数
  358. getOnline(data) {
  359. return post('/online/get-trend', data)
  360. },
  361. //获取课例活跃和Hiteach开课
  362. getLessontrend(data) {
  363. return post('/online/get-lessontrend', data)
  364. },
  365. //获取版本占比
  366. getVersions(data) {
  367. return post('/online/get-edition', data)
  368. },
  369. //区校掌握
  370. //基础数据以及排行
  371. getBasicsData(data) {
  372. return post('/schoolcheck/get-assisscbase', data)
  373. },
  374. //获取当前所有学校所有月份的数据(课例、活动、互动)
  375. getAllaspects(data) {
  376. return post('/schoolcheck/get-assissc', data)
  377. },
  378. //获取课例、活动、互动数据 同比较,以及line图
  379. getaspects(data) {
  380. return post('/schoolcheck/get-assissccnt', data)
  381. },
  382. //获取某个学校的详细信息
  383. schoolDetails(data) {
  384. return post('/schoolcheck/get-analyse', data)
  385. },
  386. //获取所有管理的学校服务模块和各个版本占比
  387. getServiceandVersions(data) {
  388. return post('/schoolcheck/get-proded', data)
  389. },
  390. //统计某个学校的年级、科目数据
  391. getGradeandSubjects(data) {
  392. return post('/schoolcheck/get-ratio', data)
  393. },
  394. //获取所有学区的数据 V2.1
  395. getAllarea(data) {
  396. return post('/school/get-allscstats ', data)
  397. },
  398. //获取某个学区内的数据 V2.1
  399. getoneselfArea(data) {
  400. return post('/school/get-areastats', data)
  401. },
  402. //获取所有学校数据 (区校掌握-学校情况)V2.1
  403. acquireAllschool(data) {
  404. return post('/school/get-rolestats', data)
  405. },
  406. //获取某个学校的详细信息 V2.1
  407. schooloneDetails(data) {
  408. return post('/school/get-scstats', data)
  409. },
  410. //获取某个学校的资源数和课堂数量
  411. classroomDatas(data) {
  412. return post('/school/get-leseoncnt', data)
  413. },
  414. //顾问使用(我参与的)
  415. //学校管理 数据统计
  416. schoolStatistics(data) {
  417. return post('/schoolcheck/get-schoolcnt', data)
  418. },
  419. //课例数据占比
  420. proportionData(data) {
  421. return post('/schoolcheck/get-schooldate', data)
  422. },
  423. //获取试卷资源
  424. getExaminations(data) {
  425. return post('/paper/get-list', data)
  426. },
  427. //根据不同学校获取 相应的sas
  428. getSchoolsas(data) {
  429. return post('/biservers/get-cntrkey', data)
  430. },
  431. //访问试卷信息
  432. getExamintionpaper(url) {
  433. return fetch(url, '')
  434. },
  435. //获取所有学校进行筛选(试卷拷贝功能)
  436. getschoolIntegration(data) {
  437. return post('/schoolcheck/get-schools', data)
  438. },
  439. //拷贝试卷
  440. copypaperTo(data) {
  441. return post('/paper/copy-infos', data)
  442. },
  443. //消息通知(端外通知)
  444. informSearch(data) {
  445. return post('/notice/get-info', data)
  446. },
  447. //发送端外通知(消息通知)
  448. sendMsgs(data) {
  449. return post('notice/push-info', data)
  450. },
  451. //获取消息列表
  452. getMsglist(data) {
  453. return post('/notice/get-infos', data)
  454. },
  455. //端外通知 v2
  456. sendPushnotify(data) {
  457. return post('https://api2.teammodel.net/service/PushNotify',data)
  458. },
  459. //第三方相关API(BI)
  460. //创建or保存 第三方信息
  461. // setThirdparty(data) {
  462. // return post('/business/set-info', data)
  463. // },
  464. // //获取所有第三方企业信息
  465. // getAllthirdparty(data) {
  466. // return post('/business/get-info', data)
  467. // },
  468. // //查询企业相关的学校列表
  469. // relevanceSchool(data) {
  470. // return post('/business/get-companyschool', data)
  471. // },
  472. // //企业关联学校
  473. // correlationSchool(data) {
  474. // return post('/business/set-companyschool', data)
  475. // },
  476. // //重新生成token和密码
  477. // produceCipher(data) {
  478. // return post('/business/reset-bus', data)
  479. // },
  480. // //企业移除关联学校
  481. // enterpriseRemoveSchool(data) {
  482. // return post('/business/del-companysc', data)
  483. // },
  484. //7.1更正API
  485. //获取企业列表
  486. getAllenterprise(data) {
  487. return post('/bizconfig/get-infos', data)
  488. },
  489. //创建企业或修改企业信息
  490. updateThirdparty(data) {
  491. return post('/bizconfig/set-info', data)
  492. },
  493. //重新生成企业token秘钥
  494. generateToken(data) {
  495. return post('/bizconfig/reset-secretkey', data)
  496. },
  497. //企业添加或删除 关联学校
  498. addorremoveSchool(data) {
  499. return post('/bizconfig/rel-school', data)
  500. },
  501. //获取学校列表进行关联
  502. getschoolCorrelation(data) {
  503. return post('/bizconfig/get-schools', data)
  504. },
  505. //根据企业ID获取 用户列表
  506. getUserarr(data) {
  507. return post('/bizuser/get-bizid', data)
  508. },
  509. //根据手机号查询企业用户
  510. searchphoneUser(data) {
  511. return post('/bizuser/get-mobileuser', data)
  512. },
  513. //关联用户到企业
  514. getCorrelationUser(data) {
  515. return post('/bizuser/rel-biz', data)
  516. },
  517. //删除企业
  518. deleEnterprise(data) {
  519. return post('/bizconfig/del-info',data)
  520. },
  521. /*产品使用分析*/
  522. //搜索数据
  523. getUseproduct(data) {
  524. return post('/prodanalysis/get-iotstics', data)
  525. },
  526. //根据省、市、学区 获取相应其下的所有学校
  527. getfilterSchool(data) {
  528. return post('/prodanalysis/get-school', data)
  529. },
  530. /*产品使用分析end*/
  531. //获取地址location
  532. getlocation(key, location) {
  533. return fetch('https://restapi.amap.com/v3/ip?key=' + key + '&ip=' + location)
  534. },
  535. //获取天气的API
  536. getWeather(key, location) {
  537. return fetch('https://devapi.qweather.com/v7/weather/now?location=' + location + '&key=' + key)
  538. },
  539. //创建学校 BB验证数据,以及BB搜索学校信息s
  540. verifyDatainbb(data) {
  541. return post('https://bb.teammodel.net/ies5/search-cs-school', data)
  542. },
  543. //测试站
  544. verifyDatainbbrc(data) {
  545. return post('https://bb-rc.teammodel.net/ies5/search-cs-school', data)
  546. },
  547. //创建学校成功,数据回传BB
  548. successBack(data) {
  549. return post('https://bb.teammodel.net/ies5/create-cs-school ', data)
  550. },
  551. /*ID查询 相关*/
  552. getUserdatas(data) {
  553. return post('/tmid/get-tmidstics',data)
  554. },
  555. /*優惠券相關*/
  556. // 建立優惠券
  557. crtCoupon(data) {
  558. return post('/coupon/create-coupon',data)
  559. },
  560. // 歸戶
  561. consolidationCoupon(data) {
  562. return post('/coupon/consolidation-coupon',data)
  563. },
  564. /*簡版通知*/
  565. // 發送
  566. pushNotify(data) {
  567. return post('/coupon/push-notify',data)
  568. }
  569. }