index.js 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447
  1. import { post, fetch } from '@/until/http.js'
  2. export default {
  3. //钉钉登录获取状态
  4. Dinglogin(data) {
  5. return post('/common/login/get-ddscancode', data)
  6. },
  7. //发送短信验证码 暂时未使用
  8. // Phonepin(data) {
  9. // return post('https://api2.teammodel.net/service/sandsms/pin', data)
  10. // },
  11. //验证手机号和验证 暂时未使用
  12. // verifyCode(data) {
  13. // return post('https://api2.teammodel.net/oauth2/login', data)
  14. // },
  15. //手机验证码都通过后,进行绑定操作 暂时未使用
  16. // bindUserid(data) {
  17. // return post('/common/login/set-bind ', data)
  18. // },
  19. //正常醍摩豆账号或者手机号登录 暂时未使用
  20. // loginUser(data) {
  21. // return post('https://api2.teammodel.cn/oauth2/login', data)
  22. // },
  23. //获取组织架构
  24. getorganization(data) {
  25. return post('/dd/get-deptlist', data)
  26. },
  27. //正常醍摩豆/手机号码登录后 获取id_token,通过id_token获取人物信息
  28. teacherinfo(data) {
  29. return post('/common/login/get-teacherinfo', data)
  30. },
  31. //获取所有的附加权限表
  32. getAllpermission(data) {
  33. return post('/batchschool/get-teacher-authoritybilist', data)
  34. },
  35. //教室管理
  36. //人员管理
  37. getEveryinfo(data) {
  38. return post('/tabledd/get-ddusers', data)
  39. },
  40. //人员权限管理 *** Headers[x-auth-authtoken]
  41. updateManege(data) {
  42. return post('/tabledd/set-permissions', data)
  43. },
  44. //根据部门ID获取部门下的人员
  45. getDeparttotal(data) {
  46. return post('/tabledd/get-dddeptiduser', data)
  47. },
  48. //设置系统管理员 Headers[x-auth-authtoken]
  49. setisAdmin(data) {
  50. return post('/tabledd/set-backend', data)
  51. },
  52. //为用户设置关联学校或删除
  53. setAistschool(data) {
  54. return post('/schoolcheck/set-aistschool', data)
  55. },
  56. //获取区域内的微能力点
  57. getCapacity(data) {
  58. return post('/batcharea/get-areas', data)
  59. },
  60. //创建区域 *** Headers[x-auth-authtoken]
  61. createAreas(data) {
  62. return post('/batcharea/batch-area', data)
  63. },
  64. //创建学校-根据手机号查询相关用户信息
  65. getUserdata(data) {
  66. return post('/biservers/get-mobileuserinfo', data)
  67. },
  68. //创建学校 *** Headers[x-auth-authtoken]
  69. createdSchools(data) {
  70. return post('/batchschool/batch-school', data)
  71. },
  72. //批量创校的数据验证
  73. verifyContent(data){
  74. return post('/batchschool/get-checlkexist',data)
  75. },
  76. //区域管理和微能力点管理
  77. //切换为能力点 *** Headers[x-auth-authtoken]
  78. changeCutstandard(data) {
  79. return post('/batcharea/cut-standard', data)
  80. },
  81. //根据方案获取册别(方案下的所有微能力点,例A1 A2 A3)
  82. getProjectAbility(data) {
  83. return post('/biabilitymgmt/get-abilitys', data)
  84. },
  85. //册别详情(例 A1详情和自我检测试卷内容)
  86. getAbilityInfo(data) {
  87. return post('/biabilitymgmt/get-abulityid', data)
  88. },
  89. //册别下的章节tree
  90. getAbilityDeatils(data) {
  91. return post('/biabilitytask/get-abilitytasksid', data)
  92. },
  93. //册别删除(删除某个能力点) *** Headers[x-auth-authtoken]
  94. delAbility(data) {
  95. return post('/biabilitymgmt/del-ability', data)
  96. },
  97. //调整微能力点的必修、选修 *** Headers[x-auth-authtoken]
  98. saveAbility(data) {
  99. return post('/biabilitymgmt/upd-currency', data)
  100. },
  101. //获取未加入区域的学校
  102. getNotjoinSchool(data) {
  103. return post('/schoolcheck/get-notarea', data)
  104. },
  105. //获取目前区域内拥有的学校
  106. getForareaSchool(data) {
  107. return post('/area/get-areaschools', data)
  108. },
  109. //区域内加入学校 *** Headers[x-auth-authtoken]
  110. areaAddSchool(data) {
  111. return post('/schoolcheck/set-schooljoinarea', data)
  112. },
  113. //区域内移除学校 *** Headers[x-auth-authtoken]
  114. areaDeleSchool(data) {
  115. return post('/area/set-areashiftschool', data)
  116. },
  117. //学区内增加管理员
  118. areaAddadmins(data) {
  119. return post('/area/set-manage', data)
  120. },
  121. //获取学区的管理员列表
  122. getAreadmin(data) {
  123. return post('/area/get-manage', data)
  124. },
  125. //删除学区管理员
  126. deleteAdmin(data) {
  127. return post('/area/del-manage', data)
  128. },
  129. //管理员所管理学校
  130. adminRelevanceschool(data){
  131. return post('/schoolcheck/get-managescs',data)
  132. },
  133. //添加管理员所管理的学校(人员管理-管理学校)
  134. adminAddschool(data){
  135. return post('/schoolcheck/set-batchmageage',data)
  136. },
  137. //学校管理
  138. //获取所有学校或 单独某个学校信息
  139. getSchooldata(data) {
  140. return post('/batchschool/get-schoolsinfo', data)
  141. },
  142. //进入学校管理,获取所有顾问列表(目前是说去 研发中心B)(也可替代其他 组织架构,一层人员的获取。)
  143. getAllassist(data) {
  144. return post('/dd/get-tmdandddusers', data)
  145. },
  146. //对学校编辑提交更改 *** Headers[x-auth-authtoken] 接口已对接
  147. updateSchoolinfo(data) {
  148. return post('/batchschool/upd-schoolassist', data)
  149. },
  150. //获取当前学校的学段管理数据
  151. getNowscholl(data) {
  152. return post('/schoolcheck/get-schoolid', data)
  153. },
  154. //修改学段管理内容 Headers[x-auth-authtoken] 接口已对接
  155. updateSchoolphase(data) {
  156. return post('/schoolcheck/upd-school', data)
  157. },
  158. //当前学校授权内容
  159. getschoolAuthorization(data) {
  160. return post('/product/get-school', data)
  161. },
  162. //绑定和解绑教室序列号
  163. operateClassroom(data) {
  164. return post('/schoolroom/set-bind', data)
  165. },
  166. //删除学校
  167. removeSchool(data) {
  168. return post('/schoolcheck/set-del', data)
  169. },
  170. //获取学校管理员列表
  171. getSchooladmin(data) {
  172. return post('/schoolcheck/get-scmanage', data)
  173. },
  174. //添加学校管理
  175. setSchooladmin(data) {
  176. return post('/schoolcheck/set-manage', data)
  177. },
  178. //删除学校管理员
  179. deleteSchooladmin(data) {
  180. return post('/schoolcheck/del-manage', data)
  181. },
  182. //首页dashboard数据接口
  183. //获取各城市的学校数量(bar)
  184. getEachSchool(data) {
  185. return post('/homestatis/get-cityschool', data)
  186. },
  187. //根据城市code获取 下面的学生、老师、学校数量
  188. getSchoolDetails(data) {
  189. return post('/homestatis/get-districtstics', data)
  190. },
  191. //获取全部教师数量、学生数量、创校数量、空间大小 总和
  192. geteachTotal(data) {
  193. return post('/homestatis/get-allnumber', data)
  194. },
  195. //地图 获取各个省的数据统计
  196. getEachProvince(data) {
  197. return post('/homestatis/get-provincestics', data)
  198. },
  199. //统计空间类型占比
  200. getSpacetype(data) {
  201. return post('/homestatis/get-datatypestics', data)
  202. },
  203. //各个模组的数据情况
  204. getModuledata(data) {
  205. return post('/product/get-allcount', data)
  206. },
  207. //强制刷新人员名单(从DD服务器拉取) *** Headers[x-auth-authtoken]
  208. getStaffList(data) {
  209. return post('/tabledd/get-dingdingusers', data)
  210. },
  211. //微能力点编辑
  212. //tree增加子节点 *** Headers[x-auth-authtoken]
  213. addChild(data) {
  214. return post('/biabilitytask/upd-abilitytask', data)
  215. },
  216. //tree删除父节点(一级@章节) *** Headers[x-auth-authtoken]
  217. removeChildnodes(data) {
  218. return post('/biabilitytask/del-abilitytask', data)
  219. },
  220. //新增或编辑当前册别 (同时也支持添加实践任务) Headers[x-auth-authtoken] /**参数结构有所更改需要和后端对接、BI文档已更新。**/ 你这里有重复API
  221. redactOraddAbility(data) {
  222. return post('/biabilitymgmt/upd-ability', data)
  223. },
  224. //操作日志类
  225. //获取所有日志
  226. getAlllog(data) {
  227. return post('/operatelog/get-record', data)
  228. },
  229. //查询工具类
  230. //根据选择类型查询数据
  231. searchTypedata(data) {
  232. return post('/jointly/get-info', data)
  233. },
  234. //区域服务
  235. //获取全区的数据(基础数据)
  236. getAlldata(data) {
  237. return post('/activity/get-all', data)
  238. },
  239. //统计所有的评量、投票、问卷、作业
  240. getclassify(data) {
  241. return post('/activity/get-allactivity', data)
  242. },
  243. //获取课例活动数据
  244. getClassData(data) {
  245. return post('/lesson/get-allarea', data)
  246. },
  247. //获取课例活跃
  248. getClassLively(data) {
  249. return post('/lesson/get-weekcount', data)
  250. },
  251. //获取所有学区列表
  252. getAreaList(data) {
  253. return post('/activity/get-areasanls', data)
  254. },
  255. //获取某个学区的数据统计
  256. getSchoolStatistics(data) {
  257. return post('/activity/get-areastics', data)
  258. },
  259. //获取数据占比 总数据、上周、本月
  260. getResearchdata(data) {
  261. return post('/lesson/get-schoolan', data)
  262. },
  263. //获取空间使用率和明细
  264. getEmploySizes(data) {
  265. return post('/bloblog/get-area', data)
  266. },
  267. //获取某个学区内的顾问人员列表
  268. getCounselorlist(data) {
  269. return post('/area/get-assists', data)
  270. },
  271. //获取某个学区内的学校列表
  272. getAreaSchoolList(data) {
  273. return post('/area/get-schools', data)
  274. },
  275. //系统配置
  276. //站点配置
  277. getSystemConfig(data) {
  278. return post('/syscfg/get-allconfig', data)
  279. },
  280. //修改系统配置信息or添加新站点
  281. updateSystemconfig(data) {
  282. return post('/syscfg/set-singleconfig', data)
  283. },
  284. //搜素人员
  285. searchPersonnel(data) {
  286. return post('/biservers/get-coreinfo', data)
  287. },
  288. //移除管理员
  289. // removeAdmin(data) {
  290. // return post('/tabledd/set-backend', data)
  291. // },
  292. //切换站点
  293. cutSitesInfo(data) {
  294. return post('/syscfg/cut-site', data)
  295. },
  296. //添加系统管理员
  297. addAdmin(data) {
  298. return post('/tabledd/set-tmdadmin', data)
  299. },
  300. //变更BI权限和身份
  301. setRolesandPower(data) {
  302. return post('/tabledd/set-rolesper', data)
  303. },
  304. //API管理内 当天的API访问情况
  305. getNowapi(data) {
  306. return post('/analyse/get-dayapi', data)
  307. },
  308. //API列表
  309. getApiInfo(data) {
  310. return post('/analyse/get-dayapi', data)
  311. },
  312. //查询当前人员管理的学校列表
  313. adminMangeSchool(data){
  314. return post('/schoolcheck/get-managescs',data)
  315. },
  316. //首页运维数据
  317. //首页基础数据统计
  318. getAllcount(data) {
  319. return post('/online/get-count', data)
  320. },
  321. //获得在线人数
  322. getOnline(data) {
  323. return post('/online/get-trend', data)
  324. },
  325. //获取课例活跃和Hiteach开课
  326. getLessontrend(data) {
  327. return post('/online/get-lessontrend', data)
  328. },
  329. //获取版本占比
  330. getVersions(data) {
  331. return post('/online/get-edition', data)
  332. },
  333. //区校掌握
  334. //基础数据以及排行
  335. getBasicsData(data) {
  336. return post('/schoolcheck/get-assisscbase', data)
  337. },
  338. //获取当前所有学校所有月份的数据(课例、活动、互动)
  339. getAllaspects(data) {
  340. return post('/schoolcheck/get-assissc', data)
  341. },
  342. //获取课例、活动、互动数据 同比较,以及line图
  343. getaspects(data) {
  344. return post('/schoolcheck/get-assissccnt', data)
  345. },
  346. //获取某个学校的详细信息
  347. schoolDetails(data) {
  348. return post('/schoolcheck/get-analyse', data)
  349. },
  350. //获取所有管理的学校服务模块和各个版本占比
  351. getServiceandVersions(data) {
  352. return post('/schoolcheck/get-proded', data)
  353. },
  354. //统计某个学校的年级、科目数据
  355. getGradeandSubjects(data) {
  356. return post('/schoolcheck/get-ratio', data)
  357. },
  358. //顾问使用(我参与的)
  359. //学校管理 数据统计
  360. schoolStatistics(data) {
  361. return post('/schoolcheck/get-schoolcnt', data)
  362. },
  363. //课例数据占比
  364. proportionData(data) {
  365. return post('schoolcheck/get-schooldate', data)
  366. },
  367. //第三方相关API(BI)
  368. //创建or保存 第三方信息
  369. // setThirdparty(data) {
  370. // return post('/business/set-info', data)
  371. // },
  372. // //获取所有第三方企业信息
  373. // getAllthirdparty(data) {
  374. // return post('/business/get-info', data)
  375. // },
  376. // //查询企业相关的学校列表
  377. // relevanceSchool(data) {
  378. // return post('/business/get-companyschool', data)
  379. // },
  380. // //企业关联学校
  381. // correlationSchool(data) {
  382. // return post('/business/set-companyschool', data)
  383. // },
  384. // //重新生成token和密码
  385. // produceCipher(data) {
  386. // return post('/business/reset-bus', data)
  387. // },
  388. // //企业移除关联学校
  389. // enterpriseRemoveSchool(data) {
  390. // return post('/business/del-companysc', data)
  391. // },
  392. //7.1更正API
  393. //获取企业列表
  394. getAllenterprise(data) {
  395. return post('/bizconfig/get-infos', data)
  396. },
  397. //创建企业或修改企业信息
  398. updateThirdparty(data) {
  399. return post('/bizconfig/set-info', data)
  400. },
  401. //重新生成企业token秘钥
  402. generateToken(data) {
  403. return post('/bizconfig/reset-secretkey', data)
  404. },
  405. //企业添加或删除 关联学校
  406. addorremoveSchool(data) {
  407. return post('/bizconfig/rel-school', data)
  408. },
  409. //获取学校列表进行关联
  410. getschoolCorrelation(data) {
  411. return post('/bizconfig/get-schools', data)
  412. },
  413. //获取地址location
  414. getlocation(key, location) {
  415. return fetch('https://restapi.amap.com/v3/ip?key=' + key + '&ip=' + location)
  416. },
  417. //获取天气的API
  418. getWeather(key, location) {
  419. return fetch('https://devapi.qweather.com/v7/weather/now?location=' + location + '&key=' + key)
  420. },
  421. }