vue2-client 1.6.47 → 1.6.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/CHANGELOG.md +625 -622
  2. package/index.js +30 -30
  3. package/package.json +81 -81
  4. package/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox.vue +316 -316
  5. package/src/base-client/components/common/CitySelect/CitySelect.vue +247 -247
  6. package/src/base-client/components/common/CreateQuery/CreateQueryItem.vue +733 -733
  7. package/src/base-client/components/common/CreateSimpleFormQuery/CreateSimpleFormQueryItem.vue +508 -508
  8. package/src/base-client/components/common/FormGroupEdit/FormGroupEdit.vue +140 -140
  9. package/src/base-client/components/common/FormGroupQuery/FormGroupQuery.vue +165 -165
  10. package/src/base-client/components/common/JSONToTree/jsontotree.vue +275 -275
  11. package/src/base-client/components/common/Upload/Upload.vue +168 -168
  12. package/src/base-client/components/common/XAddForm/XAddForm.vue +325 -325
  13. package/src/base-client/components/common/XAddNativeForm/XAddNativeForm.vue +279 -279
  14. package/src/base-client/components/common/XCard/XCard.vue +64 -64
  15. package/src/base-client/components/common/XForm/XForm.vue +180 -180
  16. package/src/base-client/components/common/XForm/XFormItem.vue +513 -519
  17. package/src/base-client/components/common/XForm/XTreeSelect.vue +184 -184
  18. package/src/base-client/components/common/XFormCol/XFormCol.vue +18 -29
  19. package/src/base-client/components/common/XFormTable/XFormTable.vue +336 -336
  20. package/src/base-client/components/common/XFormTable/index.md +97 -97
  21. package/src/base-client/components/common/XImportExcel/XImportExcel.vue +132 -132
  22. package/src/base-client/components/common/XTable/XTable.vue +6 -5
  23. package/src/base-client/components/common/XTreeOne/XTreeOne.vue +111 -111
  24. package/src/base-client/components/system/QueryParamsDetailsView/QueryParamsDetailsView.vue +281 -281
  25. package/src/base-client/components/ticket/TicketDetailsView/TicketDetailsView.vue +807 -807
  26. package/src/base-client/components/ticket/TicketDetailsView/index.md +29 -29
  27. package/src/base-client/components/ticket/TicketDetailsView/part/TicketDetailsFlow.vue +260 -260
  28. package/src/base-client/components/ticket/TicketSubmitSuccessView/TicketSubmitSuccessView.vue +532 -532
  29. package/src/base-client/components/ticket/TicketSubmitSuccessView/index.md +29 -29
  30. package/src/base-client/plugins/AppData.js +76 -76
  31. package/src/base-client/plugins/GetLoginInfoService.js +179 -179
  32. package/src/base-client/plugins/PagedList.js +177 -177
  33. package/src/base-client/plugins/compatible/LoginServiceOA.js +20 -20
  34. package/src/base-client/plugins/i18n-extend.js +32 -32
  35. package/src/components/Ellipsis/Ellipsis.vue +65 -65
  36. package/src/components/Ellipsis/index.md +38 -38
  37. package/src/components/NumberInfo/index.md +43 -43
  38. package/src/components/STable/README.md +341 -341
  39. package/src/components/STable/index.js +318 -318
  40. package/src/components/Trend/index.md +45 -45
  41. package/src/components/checkbox/ColorCheckbox.vue +157 -157
  42. package/src/components/checkbox/ImgCheckbox.vue +163 -163
  43. package/src/components/exception/ExceptionPage.vue +70 -70
  44. package/src/components/form/FormRow.vue +52 -52
  45. package/src/components/index.js +36 -36
  46. package/src/components/menu/SideMenu.vue +62 -62
  47. package/src/components/menu/menu.js +273 -273
  48. package/src/components/page/header/index.less +40 -40
  49. package/src/components/setting/Setting.vue +235 -235
  50. package/src/components/table/StandardTable.vue +141 -141
  51. package/src/components/table/advance/ActionColumns.vue +158 -158
  52. package/src/components/table/advance/SearchArea.vue +355 -355
  53. package/src/components/tool/AStepItem.vue +60 -60
  54. package/src/components/tool/AvatarList.vue +68 -68
  55. package/src/components/tool/Drawer.vue +142 -142
  56. package/src/components/tool/TagSelect.vue +83 -83
  57. package/src/components/transition/PageToggleTransition.vue +97 -97
  58. package/src/config/CreateQueryConfig.js +307 -307
  59. package/src/config/default/admin.config.js +18 -18
  60. package/src/config/default/setting.config.js +46 -46
  61. package/src/config/replacer/resolve.config.js +67 -67
  62. package/src/layouts/CommonLayout.vue +42 -42
  63. package/src/layouts/ComponentLayoutOne.vue +47 -47
  64. package/src/layouts/PageLayout.vue +151 -151
  65. package/src/layouts/SinglePageView.vue +116 -116
  66. package/src/layouts/footer/PageFooter.vue +49 -49
  67. package/src/layouts/header/AdminHeader.vue +134 -134
  68. package/src/layouts/header/HeaderAvatar.vue +64 -64
  69. package/src/layouts/header/HeaderNotice.vue +176 -176
  70. package/src/layouts/header/HeaderSearch.vue +67 -67
  71. package/src/layouts/header/InstitutionDetail.vue +181 -181
  72. package/src/layouts/header/index.less +92 -92
  73. package/src/layouts/tabs/TabsHead.vue +190 -190
  74. package/src/layouts/tabs/TabsView.vue +379 -379
  75. package/src/mock/goods/index.js +108 -108
  76. package/src/pages/login/Login.vue +369 -366
  77. package/src/pages/report/ReportTable.js +124 -124
  78. package/src/pages/report/ReportTableHome.vue +28 -28
  79. package/src/pages/resourceManage/orgListManage.vue +98 -98
  80. package/src/pages/system/file/index.vue +317 -317
  81. package/src/pages/system/settings/index.vue +126 -126
  82. package/src/pages/system/settings/modifyPassword.vue +109 -109
  83. package/src/router/async/config.async.js +28 -28
  84. package/src/router/async/router.map.js +68 -68
  85. package/src/router/index.js +27 -27
  86. package/src/services/api/DictionaryDetailsViewApi.js +6 -6
  87. package/src/services/api/LogDetailsViewApi.js +10 -10
  88. package/src/services/api/QueryParamsDetailsViewApi.js +6 -6
  89. package/src/services/api/TicketDetailsViewApi.js +34 -34
  90. package/src/services/api/cas.js +79 -79
  91. package/src/services/api/common.js +9 -0
  92. package/src/services/api/commonTempTable.js +10 -10
  93. package/src/services/api/index.js +17 -17
  94. package/src/services/api/logininfor/index.js +6 -6
  95. package/src/services/api/manage.js +8 -8
  96. package/src/services/apiService.js +14 -14
  97. package/src/services/user.js +67 -67
  98. package/src/store/modules/index.js +4 -4
  99. package/src/theme/default/nprogress.less +76 -76
  100. package/src/theme/default/style.less +58 -58
  101. package/src/utils/EncryptUtil.js +53 -53
  102. package/src/utils/colors.js +107 -107
  103. package/src/utils/excel/Blob.js +180 -180
  104. package/src/utils/excel/Export2Excel.js +141 -141
  105. package/src/utils/formatter.js +68 -68
  106. package/src/utils/i18n.js +80 -80
  107. package/src/utils/map-utils.js +37 -37
  108. package/src/utils/theme-color-replacer-extend.js +91 -91
  109. package/src/utils/themeUtil.js +100 -100
  110. package/src/utils/util.js +230 -230
  111. package/vue.config.js +106 -106
@@ -1,27 +1,27 @@
1
- import { formatRoutes } from '@vue2-client/utils/routerUtil'
2
-
3
- // 不需要登录拦截的路由配置
4
- const loginIgnore = {
5
- names: ['404', '403'], // 根据路由名称匹配
6
- paths: ['/login', '/submitTicket'], // 根据路由fullPath匹配
7
- /**
8
- * 判断路由是否包含在该配置中
9
- * @param route vue-router 的 route 对象
10
- * @returns {boolean}
11
- */
12
- includes (route) {
13
- return this.names.includes(route.name) || this.paths.includes(route.path)
14
- }
15
- }
16
-
17
- /**
18
- * 初始化路由实例
19
- * @param isAsync 是否异步路由模式
20
- * @returns {RouterOptions}
21
- */
22
- function initRouter (isAsync) {
23
- const options = require('./async/config.async').default
24
- formatRoutes(options.routes)
25
- return options
26
- }
27
- export { loginIgnore, initRouter }
1
+ import { formatRoutes } from '@vue2-client/utils/routerUtil'
2
+
3
+ // 不需要登录拦截的路由配置
4
+ const loginIgnore = {
5
+ names: ['404', '403'], // 根据路由名称匹配
6
+ paths: ['/login', '/submitTicket'], // 根据路由fullPath匹配
7
+ /**
8
+ * 判断路由是否包含在该配置中
9
+ * @param route vue-router 的 route 对象
10
+ * @returns {boolean}
11
+ */
12
+ includes (route) {
13
+ return this.names.includes(route.name) || this.paths.includes(route.path)
14
+ }
15
+ }
16
+
17
+ /**
18
+ * 初始化路由实例
19
+ * @param isAsync 是否异步路由模式
20
+ * @returns {RouterOptions}
21
+ */
22
+ function initRouter (isAsync) {
23
+ const options = require('./async/config.async').default
24
+ formatRoutes(options.routes)
25
+ return options
26
+ }
27
+ export { loginIgnore, initRouter }
@@ -1,6 +1,6 @@
1
- const DictionaryDetailsViewApi = {
2
- // 查询:获取字典详情
3
- getDictionaryDetails: '/api/af-system/logic/getDictionaryDetails'
4
- }
5
-
6
- export { DictionaryDetailsViewApi }
1
+ const DictionaryDetailsViewApi = {
2
+ // 查询:获取字典详情
3
+ getDictionaryDetails: '/api/af-system/logic/getDictionaryDetails'
4
+ }
5
+
6
+ export { DictionaryDetailsViewApi }
@@ -1,10 +1,10 @@
1
- const LogDetailsViewApi = {
2
- // 查询:获取日志详情
3
- getLogDetails: '/api/af-system/logic/foreignaidGetLogDetails',
4
- // 查询:获取日志维护记录
5
- getLogRecordList: '/api/af-system/logic/foreignaidGetRecordList',
6
- // 操作:更新日志状态
7
- updateLogStatusData: '/api/af-system/logic/foreignaidUpdateLogStatus'
8
- }
9
-
10
- export { LogDetailsViewApi }
1
+ const LogDetailsViewApi = {
2
+ // 查询:获取日志详情
3
+ getLogDetails: '/api/af-system/logic/foreignaidGetLogDetails',
4
+ // 查询:获取日志维护记录
5
+ getLogRecordList: '/api/af-system/logic/foreignaidGetRecordList',
6
+ // 操作:更新日志状态
7
+ updateLogStatusData: '/api/af-system/logic/foreignaidUpdateLogStatus'
8
+ }
9
+
10
+ export { LogDetailsViewApi }
@@ -1,6 +1,6 @@
1
- const QueryParamsDetailsViewApi = {
2
- // 查询:获取查询配置详情
3
- getQueryParamsDetails: '/api/af-system/logic/getQueryParamsDetails'
4
- }
5
-
6
- export { QueryParamsDetailsViewApi }
1
+ const QueryParamsDetailsViewApi = {
2
+ // 查询:获取查询配置详情
3
+ getQueryParamsDetails: '/api/af-system/logic/getQueryParamsDetails'
4
+ }
5
+
6
+ export { QueryParamsDetailsViewApi }
@@ -1,34 +1,34 @@
1
- const TicketDetailsViewApi = {
2
- // 查询:获取工单流转详情
3
- getTicketWorkFlowDetails: '/api/af-system/logic/getTicketWorkFlowDetails',
4
- // 查询:获取工单详情
5
- getTicketDetails: '/api/af-system/logic/getTicketDetails',
6
- // 手动关闭工单
7
- manualCloseTicket: '/api/af-system/logic/manualCloseTicket',
8
- // 转交工单给其他人
9
- transferTicketToOthers: '/api/af-system/logic/transferTicketToOthers',
10
- // 确认工单,开始处理
11
- confirmTicket: '/api/af-system/logic/confirmTicket',
12
- // 查询:获取订单详情用于订单追踪
13
- getTicketDetailsForUploader: '/api/af-system/logic/getTicketDetailsForUploader',
14
- // 更新:将工单优先级增加
15
- rushTicket: '/api/af-system/logic/rushTicket',
16
- // 客户手动关闭工单
17
- manualCloseTicketByCustomer: '/api/af-system/logic/manualCloseTicketByCustomer',
18
- // 在工单提交页面删除照片
19
- revocationImage: '/api/af-system/logic/revocationImage',
20
- // 在工单提交页面删除照片
21
- getTicketImages: '/api/af-system/logic/getTicketImages',
22
- // 用户填写附加信息时取消了操作,将已上传的照片清空
23
- removeAllImages: '/api/af-system/logic/removeAllImages',
24
- // 提交用户填写附加信息
25
- AddonDescriptionToTicket: '/api/af-system/logic/AddonDescriptionToTicket',
26
- // 获取用户填写附加信息
27
- getAddonDescription: '/api/af-system/logic/getAddonDescription',
28
- // 发起售后工单流程
29
- createTicket: '/api/af-system/logic/createTicket',
30
- // 查询:获取所有员工名,供前端展示备选项
31
- getAllEmployeeName: '/api/af-system/logic/getAllEmployeeName'
32
- }
33
-
34
- export { TicketDetailsViewApi }
1
+ const TicketDetailsViewApi = {
2
+ // 查询:获取工单流转详情
3
+ getTicketWorkFlowDetails: '/api/af-system/logic/getTicketWorkFlowDetails',
4
+ // 查询:获取工单详情
5
+ getTicketDetails: '/api/af-system/logic/getTicketDetails',
6
+ // 手动关闭工单
7
+ manualCloseTicket: '/api/af-system/logic/manualCloseTicket',
8
+ // 转交工单给其他人
9
+ transferTicketToOthers: '/api/af-system/logic/transferTicketToOthers',
10
+ // 确认工单,开始处理
11
+ confirmTicket: '/api/af-system/logic/confirmTicket',
12
+ // 查询:获取订单详情用于订单追踪
13
+ getTicketDetailsForUploader: '/api/af-system/logic/getTicketDetailsForUploader',
14
+ // 更新:将工单优先级增加
15
+ rushTicket: '/api/af-system/logic/rushTicket',
16
+ // 客户手动关闭工单
17
+ manualCloseTicketByCustomer: '/api/af-system/logic/manualCloseTicketByCustomer',
18
+ // 在工单提交页面删除照片
19
+ revocationImage: '/api/af-system/logic/revocationImage',
20
+ // 在工单提交页面删除照片
21
+ getTicketImages: '/api/af-system/logic/getTicketImages',
22
+ // 用户填写附加信息时取消了操作,将已上传的照片清空
23
+ removeAllImages: '/api/af-system/logic/removeAllImages',
24
+ // 提交用户填写附加信息
25
+ AddonDescriptionToTicket: '/api/af-system/logic/AddonDescriptionToTicket',
26
+ // 获取用户填写附加信息
27
+ getAddonDescription: '/api/af-system/logic/getAddonDescription',
28
+ // 发起售后工单流程
29
+ createTicket: '/api/af-system/logic/createTicket',
30
+ // 查询:获取所有员工名,供前端展示备选项
31
+ getAllEmployeeName: '/api/af-system/logic/getAllEmployeeName'
32
+ }
33
+
34
+ export { TicketDetailsViewApi }
@@ -1,79 +1,79 @@
1
- import { post } from '@vue2-client/services/api/restTools'
2
- import notification from 'ant-design-vue/lib/notification'
3
- import { logout } from '@vue2-client/services/user'
4
- import Cookie from 'js-cookie'
5
-
6
- const casApi = {
7
- // 根据用户信息校验服务访问权限并生成ST
8
- createSTByUserInfo: '/api/af-sso/logic/createSTByUserInfo',
9
- // 根据TGC生成ST
10
- createSTByTGC: '/api/af-sso/logic/createSTByTGC',
11
- // 验证ST
12
- serviceValidate: '/api/af-sso/logic/serviceValidate',
13
- // 其他验证
14
- otherValidate: '/api/af-sso/logic'
15
- }
16
-
17
- function setTGTCookie (cookie) {
18
- return Cookie.set('TGT-Cookie', cookie)
19
- }
20
- function removeTGTCookie () {
21
- return Cookie.remove('TGT-Cookie')
22
- }
23
- export function getTGTCookie () {
24
- return Cookie.get('TGT-Cookie')
25
- }
26
-
27
- export function CASLoginByAuth (serviceKey) {
28
- return new Promise((resolve, reject) => {
29
- post(casApi.createSTByUserInfo, {
30
- serviceKey: serviceKey
31
- }).then(res => {
32
- setTGTCookie(res.tgc)
33
- resolve(res)
34
- }).catch(msg => {
35
- reject(msg)
36
- })
37
- })
38
- }
39
-
40
- export function CASLogin (serviceKey, inner) {
41
- // 从第三方跳转登录
42
- const tgc = getTGTCookie()
43
- if (tgc && !inner) {
44
- return new Promise((resolve, reject) => {
45
- post(casApi.createSTByTGC, {
46
- serviceKey: serviceKey,
47
- tgc: tgc
48
- }).then(res => {
49
- resolve(res)
50
- }).catch(msg => {
51
- if (msg === '当前操作没有权限') {
52
- removeTGTCookie()
53
- notification.error({
54
- message: '授权已过期,请重新登录',
55
- description: '2秒后自动跳转回登陆页面'
56
- })
57
- logout().then(() => {
58
- setTimeout(() => {
59
- window.location.href = '/login?serviceKey=' + serviceKey
60
- }, 1500)
61
- })
62
- } else {
63
- reject(msg)
64
- }
65
- })
66
- })
67
- } else {
68
- return CASLoginByAuth(serviceKey)
69
- }
70
- }
71
-
72
- export function doOtherValidate (logicName, st, serviceKey) {
73
- return post(casApi.otherValidate + '/' + logicName, {
74
- st: st,
75
- serviceKey: serviceKey
76
- }, null)
77
- }
78
-
79
- export default casApi
1
+ import { post } from '@vue2-client/services/api/restTools'
2
+ import notification from 'ant-design-vue/lib/notification'
3
+ import { logout } from '@vue2-client/services/user'
4
+ import Cookie from 'js-cookie'
5
+
6
+ const casApi = {
7
+ // 根据用户信息校验服务访问权限并生成ST
8
+ createSTByUserInfo: '/api/af-sso/logic/createSTByUserInfo',
9
+ // 根据TGC生成ST
10
+ createSTByTGC: '/api/af-sso/logic/createSTByTGC',
11
+ // 验证ST
12
+ serviceValidate: '/api/af-sso/logic/serviceValidate',
13
+ // 其他验证
14
+ otherValidate: '/api/af-sso/logic'
15
+ }
16
+
17
+ function setTGTCookie (cookie) {
18
+ return Cookie.set('TGT-Cookie', cookie)
19
+ }
20
+ function removeTGTCookie () {
21
+ return Cookie.remove('TGT-Cookie')
22
+ }
23
+ export function getTGTCookie () {
24
+ return Cookie.get('TGT-Cookie')
25
+ }
26
+
27
+ export function CASLoginByAuth (serviceKey) {
28
+ return new Promise((resolve, reject) => {
29
+ post(casApi.createSTByUserInfo, {
30
+ serviceKey: serviceKey
31
+ }).then(res => {
32
+ setTGTCookie(res.tgc)
33
+ resolve(res)
34
+ }).catch(msg => {
35
+ reject(msg)
36
+ })
37
+ })
38
+ }
39
+
40
+ export function CASLogin (serviceKey, inner) {
41
+ // 从第三方跳转登录
42
+ const tgc = getTGTCookie()
43
+ if (tgc && !inner) {
44
+ return new Promise((resolve, reject) => {
45
+ post(casApi.createSTByTGC, {
46
+ serviceKey: serviceKey,
47
+ tgc: tgc
48
+ }).then(res => {
49
+ resolve(res)
50
+ }).catch(msg => {
51
+ if (msg === '当前操作没有权限') {
52
+ removeTGTCookie()
53
+ notification.error({
54
+ message: '授权已过期,请重新登录',
55
+ description: '2秒后自动跳转回登陆页面'
56
+ })
57
+ logout().then(() => {
58
+ setTimeout(() => {
59
+ window.location.href = '/login?serviceKey=' + serviceKey
60
+ }, 1500)
61
+ })
62
+ } else {
63
+ reject(msg)
64
+ }
65
+ })
66
+ })
67
+ } else {
68
+ return CASLoginByAuth(serviceKey)
69
+ }
70
+ }
71
+
72
+ export function doOtherValidate (logicName, st, serviceKey) {
73
+ return post(casApi.otherValidate + '/' + logicName, {
74
+ st: st,
75
+ serviceKey: serviceKey
76
+ }, null)
77
+ }
78
+
79
+ export default casApi
@@ -23,6 +23,8 @@ const commonApi = {
23
23
  getEmpTree: '/api/af-system/logic/getEmpTree',
24
24
  // 导入数据
25
25
  importData: 'logic/importData',
26
+ // 导出数据
27
+ exportData: 'logic/commonExport',
26
28
  // 下载数据
27
29
  download: 'resource/download',
28
30
  // 通用上传
@@ -73,6 +75,13 @@ export function importData (parameter, serviceName = 'af-system') {
73
75
  return post('/api/' + serviceName + '/' + commonApi.importData, parameter, null)
74
76
  }
75
77
 
78
+ /**
79
+ * 通用导出
80
+ */
81
+ export function exportData (parameter, serviceName = 'af-system') {
82
+ return post('/api/' + serviceName + '/' + commonApi.exportData, parameter, null)
83
+ }
84
+
76
85
  /**
77
86
  * 通用上传
78
87
  */
@@ -1,10 +1,10 @@
1
- const CommonTempTable = {
2
- // 初始化子表
3
- initApplySubTable: '/api/af-system/logic/initApplySubTable',
4
- // 创建临时表,根据配置文件动态生成
5
- createTempTable: '/api/af-system/logic/createTempTable',
6
- // 向临时表中插入数据
7
- insertDataToTempTable: '/api/af-system/logic/insertDataToTempTable'
8
- }
9
-
10
- export { CommonTempTable }
1
+ const CommonTempTable = {
2
+ // 初始化子表
3
+ initApplySubTable: '/api/af-system/logic/initApplySubTable',
4
+ // 创建临时表,根据配置文件动态生成
5
+ createTempTable: '/api/af-system/logic/createTempTable',
6
+ // 向临时表中插入数据
7
+ insertDataToTempTable: '/api/af-system/logic/insertDataToTempTable'
8
+ }
9
+
10
+ export { CommonTempTable }
@@ -1,17 +1,17 @@
1
- import { commonApi, getColumnsJson, query, addOrModify, remove } from '@vue2-client/services/api/common'
2
- import { QueryParamsDetailsViewApi } from '@vue2-client/services/api/QueryParamsDetailsViewApi'
3
- import { DictionaryDetailsViewApi } from '@vue2-client/services/api/DictionaryDetailsViewApi'
4
- import { LogDetailsViewApi } from '@vue2-client/services/api/LogDetailsViewApi'
5
- import { manageApi } from '@vue2-client/services/api/manage'
6
- import { get, post } from '@vue2-client/services/api/restTools'
7
- import { TicketDetailsViewApi } from '@vue2-client/services/api/TicketDetailsViewApi'
8
-
9
- export {
10
- commonApi, getColumnsJson, query, addOrModify, remove,
11
- DictionaryDetailsViewApi,
12
- LogDetailsViewApi,
13
- manageApi,
14
- QueryParamsDetailsViewApi,
15
- get, post,
16
- TicketDetailsViewApi
17
- }
1
+ import { commonApi, getColumnsJson, query, addOrModify, remove } from '@vue2-client/services/api/common'
2
+ import { QueryParamsDetailsViewApi } from '@vue2-client/services/api/QueryParamsDetailsViewApi'
3
+ import { DictionaryDetailsViewApi } from '@vue2-client/services/api/DictionaryDetailsViewApi'
4
+ import { LogDetailsViewApi } from '@vue2-client/services/api/LogDetailsViewApi'
5
+ import { manageApi } from '@vue2-client/services/api/manage'
6
+ import { get, post } from '@vue2-client/services/api/restTools'
7
+ import { TicketDetailsViewApi } from '@vue2-client/services/api/TicketDetailsViewApi'
8
+
9
+ export {
10
+ commonApi, getColumnsJson, query, addOrModify, remove,
11
+ DictionaryDetailsViewApi,
12
+ LogDetailsViewApi,
13
+ manageApi,
14
+ QueryParamsDetailsViewApi,
15
+ get, post,
16
+ TicketDetailsViewApi
17
+ }
@@ -1,6 +1,6 @@
1
- const loginforApi = {
2
- // 查询:获取系统访问记录
3
- query: '/api/af-system/logic/getLogininfor'
4
- }
5
-
6
- export { loginforApi }
1
+ const loginforApi = {
2
+ // 查询:获取系统访问记录
3
+ query: '/api/af-system/logic/getLogininfor'
4
+ }
5
+
6
+ export { loginforApi }
@@ -1,8 +1,8 @@
1
- const manageApi = {
2
- // 查询:获取字典键列表
3
- getDictionaryValue: '/api/af-system/logic/getDictionaryValue',
4
- // 查询:获取省市区街道三级分类
5
- getDivisionsOhChina: '/api/af-system/logic/getDivisionsOhChina'
6
- }
7
-
8
- export { manageApi }
1
+ const manageApi = {
2
+ // 查询:获取字典键列表
3
+ getDictionaryValue: '/api/af-system/logic/getDictionaryValue',
4
+ // 查询:获取省市区街道三级分类
5
+ getDivisionsOhChina: '/api/af-system/logic/getDivisionsOhChina'
6
+ }
7
+
8
+ export { manageApi }
@@ -1,14 +1,14 @@
1
- // 跨域代理前缀
2
- // const API_PROXY_PREFIX='/api'
3
- // const BASE_URL = process.env.NODE_ENV === 'production' ? process.env.VUE_APP_API_BASE_URL : API_PROXY_PREFIX
4
-
5
- module.exports = {
6
- LOGIN: `/rs/logic/getLogin`,
7
- MODIFY_PASSWORD: '/rs/user/modifypwd',
8
- V4_LOGIN: '/auth/login',
9
- V4_LOGOUT: '/auth/logout',
10
- ROUTES: `/rs/user/userLogin`,
11
- SEARCH: `/rs/search`,
12
- GOODS: `/goods`,
13
- GOODS_COLUMNS: `/columns`
14
- }
1
+ // 跨域代理前缀
2
+ // const API_PROXY_PREFIX='/api'
3
+ // const BASE_URL = process.env.NODE_ENV === 'production' ? process.env.VUE_APP_API_BASE_URL : API_PROXY_PREFIX
4
+
5
+ module.exports = {
6
+ LOGIN: `/rs/logic/getLogin`,
7
+ MODIFY_PASSWORD: '/rs/user/modifypwd',
8
+ V4_LOGIN: '/auth/login',
9
+ V4_LOGOUT: '/auth/logout',
10
+ ROUTES: `/rs/user/userLogin`,
11
+ SEARCH: `/rs/search`,
12
+ GOODS: `/goods`,
13
+ GOODS_COLUMNS: `/columns`
14
+ }
@@ -1,67 +1,67 @@
1
- import { LOGIN, MODIFY_PASSWORD, ROUTES, V4_GET_INFO, V4_LOGIN, V4_LOGOUT } from '@vue2-client/services/apiService'
2
- import { request, METHOD, removeAuthorization } from '@vue2-client/utils/request'
3
- import EncryptUtil from '@vue2-client/utils/EncryptUtil'
4
-
5
- /**
6
- * 登录服务
7
- * @param name 账户名
8
- * @param password 账户密码
9
- * @returns {Promise<AxiosResponse<T>>}
10
- */
11
- export async function login (name, password) {
12
- let data = {
13
- name: name,
14
- password: password
15
- }
16
- data = '$' + EncryptUtil.RSAEncrypt(JSON.stringify(data))
17
- return request(LOGIN, METHOD.POST, data)
18
- }
19
-
20
- export async function modifyPassword (name, password, newPassword) {
21
- return request(MODIFY_PASSWORD, METHOD.POST, {
22
- data: {
23
- ename: name,
24
- password: password,
25
- newpassword: newPassword,
26
- affirmpassword: newPassword
27
- }
28
- })
29
- }
30
-
31
- export async function V4Login (name, password) {
32
- return request(V4_LOGIN, METHOD.POST, {
33
- username: name,
34
- password: password
35
- })
36
- }
37
-
38
- export async function V4GetInfo () {
39
- return request(V4_GET_INFO, METHOD.POST, {})
40
- }
41
-
42
- export async function getRoutesConfig (value, routeName = '智慧燃气') {
43
- return request(ROUTES + '/' + routeName, METHOD.POST, value)
44
- }
45
-
46
- /**
47
- * 退出登录
48
- */
49
- export function logout () {
50
- return new Promise((resolve, reject) => {
51
- request(V4_LOGOUT, METHOD.DELETE, {}).then(() => {
52
- resolve()
53
- }).catch(error => {
54
- reject(error)
55
- }).finally(() => {
56
- localStorage.removeItem(process.env.VUE_APP_ROUTES_KEY)
57
- localStorage.removeItem(process.env.VUE_APP_PERMISSIONS_KEY)
58
- localStorage.removeItem(process.env.VUE_APP_ROLES_KEY)
59
- removeAuthorization()
60
- })
61
- })
62
- }
63
- export default {
64
- login,
65
- logout,
66
- getRoutesConfig
67
- }
1
+ import { LOGIN, MODIFY_PASSWORD, ROUTES, V4_GET_INFO, V4_LOGIN, V4_LOGOUT } from '@vue2-client/services/apiService'
2
+ import { request, METHOD, removeAuthorization } from '@vue2-client/utils/request'
3
+ import EncryptUtil from '@vue2-client/utils/EncryptUtil'
4
+
5
+ /**
6
+ * 登录服务
7
+ * @param name 账户名
8
+ * @param password 账户密码
9
+ * @returns {Promise<AxiosResponse<T>>}
10
+ */
11
+ export async function login (name, password) {
12
+ let data = {
13
+ name: name,
14
+ password: password
15
+ }
16
+ data = '$' + EncryptUtil.RSAEncrypt(JSON.stringify(data))
17
+ return request(LOGIN, METHOD.POST, data)
18
+ }
19
+
20
+ export async function modifyPassword (name, password, newPassword) {
21
+ return request(MODIFY_PASSWORD, METHOD.POST, {
22
+ data: {
23
+ ename: name,
24
+ password: password,
25
+ newpassword: newPassword,
26
+ affirmpassword: newPassword
27
+ }
28
+ })
29
+ }
30
+
31
+ export async function V4Login (name, password) {
32
+ return request(V4_LOGIN, METHOD.POST, {
33
+ username: name,
34
+ password: password
35
+ })
36
+ }
37
+
38
+ export async function V4GetInfo () {
39
+ return request(V4_GET_INFO, METHOD.POST, {})
40
+ }
41
+
42
+ export async function getRoutesConfig (value, routeName = '智慧燃气') {
43
+ return request(ROUTES + '/' + routeName, METHOD.POST, value)
44
+ }
45
+
46
+ /**
47
+ * 退出登录
48
+ */
49
+ export function logout () {
50
+ return new Promise((resolve, reject) => {
51
+ request(V4_LOGOUT, METHOD.DELETE, {}).then(() => {
52
+ resolve()
53
+ }).catch(error => {
54
+ reject(error)
55
+ }).finally(() => {
56
+ localStorage.removeItem(process.env.VUE_APP_ROUTES_KEY)
57
+ localStorage.removeItem(process.env.VUE_APP_PERMISSIONS_KEY)
58
+ localStorage.removeItem(process.env.VUE_APP_ROLES_KEY)
59
+ removeAuthorization()
60
+ })
61
+ })
62
+ }
63
+ export default {
64
+ login,
65
+ logout,
66
+ getRoutesConfig
67
+ }
@@ -1,4 +1,4 @@
1
- import account from './account'
2
- import setting from './setting'
3
-
4
- export default { account, setting }
1
+ import account from './account'
2
+ import setting from './setting'
3
+
4
+ export default { account, setting }