user.js 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865
  1. const tokens = {
  2. admin: {
  3. token: 'admin-token'
  4. },
  5. editor: {
  6. token: 'editor-token'
  7. }
  8. }
  9. const users = {
  10. 'admin-token': {
  11. roles: ['admin'],
  12. introduction: 'I am a super administrator',
  13. avatar: 'https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif',
  14. name: 'Super Admin'
  15. },
  16. 'editor-token': {
  17. roles: ['editor'],
  18. introduction: 'I am an editor',
  19. avatar: 'https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif',
  20. name: 'Normal Editor'
  21. }
  22. }
  23. module.exports = [
  24. // user login
  25. {
  26. url: '/vue-element-admin/user/login',
  27. type: 'post',
  28. response: config => {
  29. /* const { username } = config.body
  30. const token = tokens[username]
  31. // mock error
  32. if (!token) {
  33. return {
  34. code: 60204,
  35. message: 'Account and password are incorrect.'
  36. }
  37. }
  38. return {
  39. code: 20000,
  40. data: token
  41. }*/
  42. return { code: 0, message: '', data: { token: '0ac9709d32945302ef5ce62d8a5a0324' }}
  43. }
  44. },
  45. // get user info
  46. {
  47. url: '/vue-element-admin/user/info\.*',
  48. type: 'get',
  49. response: config => {
  50. /* const { token } = config.query
  51. const info = users[token]
  52. // mock error
  53. if (!info) {
  54. return {
  55. code: 50008,
  56. message: 'Login failed, unable to get user details.'
  57. }
  58. }
  59. return {
  60. code: 20000,
  61. data: info
  62. }*/
  63. return { code: 0, message: 'ok', data: { user_name: 'youwl', nick_name: '游1', avatar: 'http:\/\/oss.bbshenqian.cn\/bbshenqian\/common\/2020\/0215\/logo.png', phone: '13555555555', is_super: 0, update_time: '2020-12-15T02:31:48.000000Z', create_time: '2016-05-11T11:06:16.000000Z' }}
  64. }
  65. },
  66. // user logout
  67. {
  68. url: '/vue-element-admin/user/logout',
  69. type: 'post',
  70. response: _ => {
  71. return {
  72. code: 0,
  73. data: 'success'
  74. }
  75. }
  76. },
  77. // getAdminList
  78. {
  79. url: '/vue-element-admin/user/get-admin-list',
  80. type: 'get',
  81. response: _ => {
  82. return {
  83. code: 0,
  84. message: 'ok',
  85. data: {
  86. current_page: 1,
  87. data: [
  88. {
  89. id: 1,
  90. company_id: 3,
  91. user_id: 3,
  92. user_name: '游文亮',
  93. nick_name: '游文亮',
  94. real_name: '游文亮',
  95. role_name: '角色',
  96. role_id: 2,
  97. phone: '13777777777',
  98. create_time: '2020-12-08 11:18:50',
  99. update_time: '2020-12-08 11:18:50'
  100. },
  101. {
  102. id: 2,
  103. company_id: 3,
  104. user_id: 3,
  105. user_name: '游文亮1',
  106. nick_name: '游文亮1',
  107. real_name: '游文亮1',
  108. role_name: '角色1',
  109. role_id: 1,
  110. phone: '13777777777',
  111. create_time: '2020-12-08 11:18:50',
  112. update_time: '2020-12-08 11:18:50'
  113. },
  114. {
  115. id: 3,
  116. company_id: 3,
  117. user_id: 3,
  118. user_name: '游文亮2',
  119. nick_name: '游文亮3',
  120. real_name: '游文亮3',
  121. role_name: '角色3',
  122. role_id: 3,
  123. phone: '13777777777',
  124. create_time: '2020-12-08 11:18:50',
  125. update_time: '2020-12-08 11:18:50'
  126. }
  127. ],
  128. from: 1,
  129. last_page: 1,
  130. per_page: '10',
  131. to: 8,
  132. total: 12
  133. }
  134. }
  135. }
  136. },
  137. // role-lest
  138. {
  139. url: '/vue-element-admin/user/role-lest',
  140. type: 'get',
  141. response: _ => {
  142. return {
  143. code: 0,
  144. message: 'ok',
  145. data: {
  146. current_page: 1,
  147. data: [
  148. { id: 1, role_name: '管理猿', create_time: '2016-05-11 03:06:16', status: 0 },
  149. { id: 2, role_name: '运营猿', create_time: '2016-05-11 03:06:16', status: 0 },
  150. { id: 3, role_name: '低级管理猿', create_time: '2016-05-11 03:06:16', status: 0 }
  151. ],
  152. from: 0,
  153. last_page: 1,
  154. per_page: 10,
  155. to: 3,
  156. total: 3
  157. }
  158. }
  159. }
  160. },
  161. // 公司账号列表
  162. {
  163. url: '/vue-element-admin/user/get-company-list',
  164. type: 'get',
  165. response: _ => {
  166. return {
  167. 'code': 0,
  168. 'message': 'ok',
  169. 'data': {
  170. 'current_page': 1,
  171. 'data': [
  172. {
  173. 'id': 10313,
  174. 'name': '游文亮',
  175. 'phone': '',
  176. 'address': '',
  177. 'update_time': '2016-03-15 10:45:52',
  178. 'create_time': '2016-03-15 10:40:37',
  179. 'status': '0',
  180. 'active_time': '2016-03-15 00:00:00',
  181. 'invalid_time': '2020-12-23 00:00:00',
  182. 'type_id': 1,
  183. 'bind_app': '[{"id":"4","vers":["8"]},{"id":"6","vers":["11","13","14","19"]},{"id":"9","vers":["15"]},{"id":"27","vers":["18"]}]',
  184. 'agent_id': 1,
  185. 'is_login_code': 0,
  186. 'login_code_mobile': '',
  187. 'province': '',
  188. 'city': '',
  189. 'domain': '',
  190. 'user_type_id': 0,
  191. 'sub_user_count': 10,
  192. 'website_count': '50'
  193. },
  194. {
  195. 'id': 10314,
  196. 'name': '厦门聚百客科技有限公司',
  197. 'phone': '',
  198. 'address': '',
  199. 'update_time': '2020-04-05 12:16:49',
  200. 'create_time': '2020-03-10 03:39:15',
  201. 'status': '0',
  202. 'active_time': '2020-02-01 00:00:00',
  203. 'invalid_time': '2029-12-31 00:00:00',
  204. 'type_id': 0,
  205. 'bind_app': '[{"id":"4","vers":["8"]},{"id":"6","vers":["11","13","14","19"]},{"id":"9","vers":["15"]},{"id":"27","vers":["18"]}]',
  206. 'agent_id': 1,
  207. 'is_login_code': 0,
  208. 'login_code_mobile': '',
  209. 'province': '',
  210. 'city': '',
  211. 'domain': '',
  212. 'user_type_id': 0,
  213. 'sub_user_count': 5,
  214. 'website_count': '50'
  215. },
  216. {
  217. 'id': 10315,
  218. 'name': '科勒尔',
  219. 'phone': '',
  220. 'address': '',
  221. 'update_time': '2020-04-05 12:16:28',
  222. 'create_time': '2020-03-30 05:45:08',
  223. 'status': '0',
  224. 'active_time': '2020-03-30 00:00:00',
  225. 'invalid_time': '2021-12-31 00:00:00',
  226. 'type_id': 0,
  227. 'bind_app': '',
  228. 'agent_id': 1,
  229. 'is_login_code': 0,
  230. 'login_code_mobile': '',
  231. 'province': '',
  232. 'city': '',
  233. 'domain': '',
  234. 'user_type_id': 0,
  235. 'sub_user_count': 5,
  236. 'website_count': '7'
  237. },
  238. {
  239. 'id': 10316,
  240. 'name': 'CBME童装展-新英富曼集团',
  241. 'phone': '',
  242. 'address': '',
  243. 'update_time': '2020-04-05 12:02:21',
  244. 'create_time': '2020-04-05 12:02:21',
  245. 'status': '0',
  246. 'active_time': '2020-04-05 00:00:00',
  247. 'invalid_time': '2021-12-31 00:00:00',
  248. 'type_id': 0,
  249. 'bind_app': '',
  250. 'agent_id': 1,
  251. 'is_login_code': 0,
  252. 'login_code_mobile': '',
  253. 'province': '',
  254. 'city': '',
  255. 'domain': '',
  256. 'user_type_id': 0,
  257. 'sub_user_count': 5,
  258. 'website_count': '1'
  259. },
  260. {
  261. 'id': 10317,
  262. 'name': '东网电力',
  263. 'phone': '',
  264. 'address': '',
  265. 'update_time': '2020-04-05 12:06:37',
  266. 'create_time': '2020-04-05 12:06:37',
  267. 'status': '0',
  268. 'active_time': '2020-04-05 00:00:00',
  269. 'invalid_time': '2021-12-31 00:00:00',
  270. 'type_id': 0,
  271. 'bind_app': '',
  272. 'agent_id': 1,
  273. 'is_login_code': 0,
  274. 'login_code_mobile': '',
  275. 'province': '',
  276. 'city': '',
  277. 'domain': '',
  278. 'user_type_id': 0,
  279. 'sub_user_count': 5,
  280. 'website_count': '4'
  281. },
  282. {
  283. 'id': 10318,
  284. 'name': '悦容整形',
  285. 'phone': '',
  286. 'address': '',
  287. 'update_time': '2020-04-05 12:09:44',
  288. 'create_time': '2020-04-05 12:09:44',
  289. 'status': '0',
  290. 'active_time': '2020-04-05 00:00:00',
  291. 'invalid_time': '2021-12-01 00:00:00',
  292. 'type_id': 0,
  293. 'bind_app': '',
  294. 'agent_id': 1,
  295. 'is_login_code': 0,
  296. 'login_code_mobile': '',
  297. 'province': '',
  298. 'city': '',
  299. 'domain': '',
  300. 'user_type_id': 0,
  301. 'sub_user_count': 5,
  302. 'website_count': '3'
  303. },
  304. {
  305. 'id': 10319,
  306. 'name': 'china-homecare',
  307. 'phone': '',
  308. 'address': '',
  309. 'update_time': '2020-04-15 02:10:21',
  310. 'create_time': '2020-04-15 02:09:01',
  311. 'status': '0',
  312. 'active_time': '0000-11-30 00:00:00',
  313. 'invalid_time': '2021-04-15 00:00:00',
  314. 'type_id': 0,
  315. 'bind_app': '',
  316. 'agent_id': 1,
  317. 'is_login_code': 0,
  318. 'login_code_mobile': '',
  319. 'province': '13',
  320. 'city': '',
  321. 'domain': '',
  322. 'user_type_id': 0,
  323. 'sub_user_count': 5,
  324. 'website_count': '2'
  325. },
  326. {
  327. 'id': 10320,
  328. 'name': '翡翠侠',
  329. 'phone': '',
  330. 'address': '',
  331. 'update_time': '2020-04-28 14:28:06',
  332. 'create_time': '2020-04-28 14:28:06',
  333. 'status': '0',
  334. 'active_time': '2020-04-28 00:00:00',
  335. 'invalid_time': '2021-12-31 00:00:00',
  336. 'type_id': 0,
  337. 'bind_app': '',
  338. 'agent_id': 1,
  339. 'is_login_code': 0,
  340. 'login_code_mobile': '',
  341. 'province': '',
  342. 'city': '',
  343. 'domain': '',
  344. 'user_type_id': 0,
  345. 'sub_user_count': 1,
  346. 'website_count': '1'
  347. },
  348. {
  349. 'id': 10323,
  350. 'name': '苏凯欣',
  351. 'phone': '',
  352. 'address': '',
  353. 'update_time': '2020-06-24 01:36:54',
  354. 'create_time': '2020-06-24 01:36:54',
  355. 'status': '0',
  356. 'active_time': '2020-06-23 00:00:00',
  357. 'invalid_time': '2022-04-01 00:00:00',
  358. 'type_id': 1,
  359. 'bind_app': '',
  360. 'agent_id': 1,
  361. 'is_login_code': 0,
  362. 'login_code_mobile': '',
  363. 'province': '',
  364. 'city': '',
  365. 'domain': '',
  366. 'user_type_id': 0,
  367. 'sub_user_count': 5,
  368. 'website_count': '50'
  369. },
  370. {
  371. 'id': 10325,
  372. 'name': 'standard ME',
  373. 'phone': '',
  374. 'address': '',
  375. 'update_time': '2020-09-01 07:41:16',
  376. 'create_time': '2020-09-01 07:41:16',
  377. 'status': '0',
  378. 'active_time': '2020-09-01 00:00:00',
  379. 'invalid_time': '2029-12-31 00:00:00',
  380. 'type_id': 1,
  381. 'bind_app': '',
  382. 'agent_id': 1,
  383. 'is_login_code': 0,
  384. 'login_code_mobile': '',
  385. 'province': '',
  386. 'city': '',
  387. 'domain': '',
  388. 'user_type_id': 0,
  389. 'sub_user_count': 5,
  390. 'website_count': '50'
  391. }
  392. ],
  393. 'from': 0,
  394. 'last_page': 2,
  395. 'per_page': 10,
  396. 'to': 10,
  397. 'total': 15
  398. }
  399. }
  400. }
  401. },
  402. // 省份列表
  403. {
  404. url: '/vue-element-admin/user/get-province-list',
  405. type: 'get',
  406. response: _ => {
  407. return {
  408. 'code': 0,
  409. 'message': 'ok',
  410. 'data': [
  411. {
  412. 'id': 1,
  413. 'province': '直辖市'
  414. },
  415. {
  416. 'id': 2,
  417. 'province': '河北省'
  418. },
  419. {
  420. 'id': 3,
  421. 'province': '江西省'
  422. },
  423. {
  424. 'id': 4,
  425. 'province': '山东省'
  426. },
  427. {
  428. 'id': 5,
  429. 'province': '山西省'
  430. },
  431. {
  432. 'id': 6,
  433. 'province': '内蒙古自治区'
  434. },
  435. {
  436. 'id': 7,
  437. 'province': '河南省'
  438. },
  439. {
  440. 'id': 8,
  441. 'province': '辽宁省'
  442. },
  443. {
  444. 'id': 9,
  445. 'province': '湖北省'
  446. },
  447. {
  448. 'id': 10,
  449. 'province': '吉林省'
  450. },
  451. {
  452. 'id': 11,
  453. 'province': '湖南省'
  454. },
  455. {
  456. 'id': 12,
  457. 'province': '黑龙江'
  458. },
  459. {
  460. 'id': 13,
  461. 'province': '广东省'
  462. },
  463. {
  464. 'id': 14,
  465. 'province': '江苏省'
  466. },
  467. {
  468. 'id': 15,
  469. 'province': '广西壮族自治区'
  470. },
  471. {
  472. 'id': 16,
  473. 'province': '海南省'
  474. },
  475. {
  476. 'id': 17,
  477. 'province': '四川省'
  478. },
  479. {
  480. 'id': 18,
  481. 'province': '浙江省'
  482. },
  483. {
  484. 'id': 19,
  485. 'province': '贵州省'
  486. },
  487. {
  488. 'id': 20,
  489. 'province': '安徽省'
  490. },
  491. {
  492. 'id': 21,
  493. 'province': '云南省'
  494. },
  495. {
  496. 'id': 22,
  497. 'province': '福建省'
  498. },
  499. {
  500. 'id': 23,
  501. 'province': '澳门特别行政区'
  502. },
  503. {
  504. 'id': 24,
  505. 'province': '甘肃省'
  506. },
  507. {
  508. 'id': 25,
  509. 'province': '黑龙江省'
  510. },
  511. {
  512. 'id': 26,
  513. 'province': '宁夏回族自治区'
  514. },
  515. {
  516. 'id': 27,
  517. 'province': '青海省'
  518. },
  519. {
  520. 'id': 28,
  521. 'province': '陕西省'
  522. },
  523. {
  524. 'id': 29,
  525. 'province': '台湾省'
  526. },
  527. {
  528. 'id': 30,
  529. 'province': '西藏自治区'
  530. },
  531. {
  532. 'id': 31,
  533. 'province': '香港特别行政区'
  534. },
  535. {
  536. 'id': 32,
  537. 'province': '新疆维吾尔自治区'
  538. },
  539. {
  540. 'id': 33,
  541. 'province': 'asdfasd'
  542. },
  543. {
  544. 'id': 34,
  545. 'province': '加利福尼亚州'
  546. },
  547. {
  548. 'id': 35,
  549. 'province': 'abcdefg'
  550. },
  551. {
  552. 'id': 36,
  553. 'province': '新泽西州'
  554. }
  555. ]
  556. }
  557. }
  558. },
  559. // 城市列表
  560. {
  561. url: '/vue-element-admin/user/get-city-list',
  562. type: 'get',
  563. response: _ => {
  564. return {
  565. 'code': 0,
  566. 'message': 'ok',
  567. 'data|5': [
  568. {
  569. 'id|+1': 1,
  570. 'province_id|+1': 2,
  571. 'city|1': ['张家口市', '沧州市', '承德市', '邯郸市', '衡水市', '廊坊市'],
  572. 'area_code|+1': '0313',
  573. 'province': '河北省'
  574. }
  575. ]
  576. }
  577. }
  578. },
  579. // 公司详情
  580. {
  581. url: '/vue-element-admin/user/get-company',
  582. type: 'get',
  583. response: _ => {
  584. return {
  585. 'code': 0,
  586. 'message': 'ok',
  587. 'data': {
  588. 'id': 10333,
  589. 'name': 'jy',
  590. 'phone': '13311111111',
  591. 'address': '厦门市思明区xxxxxxx',
  592. 'update_time': '2020-12-22 09:17:27',
  593. 'create_time': '2020-12-22 07:57:23',
  594. 'status': 0,
  595. 'active_time': '2016-03-15 00:00:00',
  596. 'invalid_time': '2020-12-23 00:00:00',
  597. 'type_id': 1,
  598. 'bind_app': '',
  599. 'agent_id': 1,
  600. 'is_login_code': 0,
  601. 'login_code_mobile': '',
  602. 'province': 22,
  603. 'city': 1,
  604. 'domain': '',
  605. 'user_type_id': 0,
  606. 'sub_user_count': 5,
  607. 'website_count': null
  608. }
  609. }
  610. }
  611. },
  612. // 公司授权应用详情
  613. {
  614. url: '/vue-element-admin/user/get-user-soft-bind',
  615. type: 'get',
  616. response: _ => {
  617. return {
  618. 'code': 0,
  619. 'message': 'ok',
  620. 'data': {
  621. 'id': 10333,
  622. 'name': '李肖明2',
  623. 'phone': '13311111111',
  624. 'address': '集美区',
  625. 'update_time': '2020-12-22 09:42:44',
  626. 'create_time': '2020-12-22 07:57:23',
  627. 'status': 1,
  628. 'active_time': '2016-03-15 00:00:00',
  629. 'invalid_time': '2020-12-23 00:00:00',
  630. 'type_id': 1,
  631. 'bind_app': '',
  632. 'agent_id': 1,
  633. 'is_login_code': 0,
  634. 'login_code_mobile': '',
  635. 'province': '22',
  636. 'city': '261',
  637. 'domain': '',
  638. 'user_type_id': 0,
  639. 'sub_user_count': 5,
  640. 'website_count': null,
  641. 'bind_apps': [
  642. {
  643. 'id': 5942,
  644. 'bind_user': 10333,
  645. 'app_id': 1,
  646. 'ver_id': 32,
  647. 'ver_func': '',
  648. 'start_time': '2016-03-15 09:42:44',
  649. 'end_time': '2020-12-23 09:42:44',
  650. 'status': 0,
  651. 'create_time': '2020-12-23 06:07:40',
  652. 'update_time': '2020-12-23 07:12:20'
  653. },
  654. {
  655. 'id': 5945,
  656. 'bind_user': 10333,
  657. 'app_id': 2,
  658. 'ver_id': 33,
  659. 'ver_func': [93, 96],
  660. 'start_time': '2016-03-15 09:42:44',
  661. 'end_time': '2020-12-28 09:42:44',
  662. 'status': 0,
  663. 'create_time': '2020-12-23 06:35:33',
  664. 'update_time': '2020-12-23 07:12:20'
  665. }
  666. ]
  667. }
  668. }
  669. }
  670. },
  671. // 获取公司应用管理菜单\功能权限列表详情
  672. {
  673. url: '/vue-element-admin/user/get-app-menus-list',
  674. type: 'get',
  675. response: _ => {
  676. return {
  677. 'code': 0,
  678. 'message': 'ok',
  679. 'data': {
  680. 'current_page': 1,
  681. 'data': [
  682. {
  683. 'id': 1,
  684. 'menus_name': '展会管理',
  685. 'sort': 1,
  686. 'role_name': '',
  687. 'role_key': '',
  688. 'pid': 0,
  689. 'icon': '',
  690. 'app_id': 1,
  691. 'is_default': 0,
  692. 'status': 0,
  693. 'update_time': '2019-08-24 11:24:39',
  694. 'create_time': null,
  695. 'name': '展会系统',
  696. 'p_name': ''
  697. },
  698. {
  699. 'id': 2,
  700. 'menus_name': '创建展会',
  701. 'sort': 1,
  702. 'role_name': 'MNU-SYS-EXHIBITION',
  703. 'role_key': 'Account.Index.index',
  704. 'pid': 1,
  705. 'icon': 'fa fa-slideshare',
  706. 'app_id': 1,
  707. 'is_default': 0,
  708. 'status': 0,
  709. 'update_time': '2019-08-24 11:18:00',
  710. 'create_time': null,
  711. 'name': '展会系统',
  712. 'p_name': '展会管理'
  713. },
  714. {
  715. 'id': 3,
  716. 'menus_name': '测试菜单',
  717. 'sort': 0,
  718. 'role_name': 'cs',
  719. 'role_key': 'Account.Index.cs',
  720. 'pid': 2,
  721. 'icon': '',
  722. 'app_id': 1,
  723. 'is_default': 0,
  724. 'status': 0,
  725. 'update_time': '2020-12-15 10:34:01',
  726. 'create_time': null,
  727. 'name': '展会系统',
  728. 'p_name': '创建展会'
  729. },
  730. {
  731. 'id': 4,
  732. 'menus_name': '页面',
  733. 'sort': 0,
  734. 'role_name': 'Page',
  735. 'role_key': 'page',
  736. 'pid': 0,
  737. 'icon': 'fa fa-slideshare',
  738. 'app_id': 1,
  739. 'is_default': 0,
  740. 'status': 0,
  741. 'update_time': '2020-12-18 09:53:45',
  742. 'create_time': null,
  743. 'name': '展会系统',
  744. 'p_name': ''
  745. },
  746. {
  747. 'id': 5,
  748. 'menus_name': '页面',
  749. 'sort': 1,
  750. 'role_name': 'PageIdex',
  751. 'role_key': 'page.pageindex',
  752. 'pid': 4,
  753. 'icon': '',
  754. 'app_id': 1,
  755. 'is_default': 0,
  756. 'status': 0,
  757. 'update_time': '2020-12-18 09:53:54',
  758. 'create_time': null,
  759. 'name': '展会系统',
  760. 'p_name': '页面'
  761. }
  762. ],
  763. 'from': 0,
  764. 'last_page': 1,
  765. 'per_page': 10,
  766. 'to': 5,
  767. 'total': 5
  768. }
  769. }
  770. }
  771. },
  772. // 新增公司
  773. {
  774. url: '/vue-element-admin/user/add-company',
  775. type: 'post',
  776. response: config => {
  777. return {
  778. 'code': 0,
  779. 'message': 'ok',
  780. 'data': 10333
  781. }
  782. }
  783. },
  784. // 修改公司状态
  785. {
  786. url: '/vue-element-admin/user/ban-company',
  787. type: 'post',
  788. response: config => {
  789. return {
  790. 'code': 0,
  791. 'message': 'ok',
  792. 'data': 10333
  793. }
  794. }
  795. },
  796. // 公司授权应用提交
  797. {
  798. url: '/vue-element-admin/user/save-user-soft-bind',
  799. type: 'post',
  800. response: config => {
  801. return {
  802. 'code': 0,
  803. 'message': 'ok',
  804. 'data': 10333
  805. }
  806. }
  807. },
  808. // 新增后台账号
  809. {
  810. url: '/vue-element-admin/user/add-admin-user',
  811. type: 'post',
  812. response: config => {
  813. return {
  814. 'code': 0,
  815. 'message': 'ok',
  816. 'data': 10333
  817. }
  818. }
  819. },
  820. // 编辑后台账号
  821. {
  822. url: '/vue-element-admin/user/edit-admin-user',
  823. type: 'post',
  824. response: config => {
  825. return {
  826. 'code': 0,
  827. 'message': 'ok',
  828. 'data': 10333
  829. }
  830. }
  831. },
  832. // 修改后台账号状态
  833. {
  834. url: '/vue-element-admin/user/ban-admin-userr',
  835. type: 'post',
  836. response: config => {
  837. return {
  838. 'code': 0,
  839. 'message': 'ok',
  840. 'data': 10333
  841. }
  842. }
  843. },
  844. // 修改角色状态
  845. {
  846. url: '/vue-element-admin/user/add-role',
  847. type: 'post',
  848. response: config => {
  849. return {
  850. 'code': 0,
  851. 'message': 'ok',
  852. 'data': 10333
  853. }
  854. }
  855. }
  856. ]