vue2-client 1.3.4 → 1.3.7
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.
- package/CHANGELOG.md +1 -1
- package/package.json +1 -1
- package/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox.vue +1 -1
- package/src/base-client/components/common/CreateQuery/CreateQueryItem.vue +1 -1
- package/src/base-client/components/common/CreateSimpleFormQuery/CreateSimpleFormQueryItem.vue +1 -1
- package/src/base-client/components/common/FormGroupQuery/FormGroupQuery.vue +1 -1
- package/src/base-client/components/common/XAddForm/XAddForm.vue +1 -1
- package/src/base-client/components/common/XAddNativeForm/XAddNativeForm.vue +3 -2
- package/src/base-client/components/common/XForm/XForm.vue +1 -1
- package/src/base-client/components/common/XForm/XFormItem.vue +6 -6
- package/src/base-client/components/common/XFormTable/XFormTable.vue +1 -1
- package/src/base-client/components/common/XTable/XTable.vue +2 -2
- package/src/base-client/components/system/QueryParamsDetailsView/QueryParamsDetailsView.vue +2 -2
- package/src/base-client/components/ticket/TicketDetailsView/TicketDetailsView.vue +2 -2
- package/src/base-client/components/ticket/TicketSubmitSuccessView/TicketSubmitSuccessView.vue +1 -1
- package/src/layouts/header/HeaderNotice.vue +1 -1
- package/src/layouts/header/InstitutionDetail.vue +2 -2
- package/src/pages/CreateQueryPage.vue +4 -4
- package/src/pages/system/dictionary/index.vue +1 -1
- package/src/pages/system/file/index.vue +2 -2
- package/src/pages/system/queryParams/index.vue +1 -1
- package/src/router/async/router.map.js +1 -1
- package/src/services/api/DictionaryDetailsViewApi.js +1 -1
- package/src/services/api/LogDetailsViewApi.js +3 -3
- package/src/services/api/QueryParamsDetailsViewApi.js +1 -1
- package/src/services/api/TicketDetailsViewApi.js +15 -23
- package/src/services/api/common.js +7 -7
- package/src/services/api/commonTempTable.js +3 -3
- package/src/services/api/manage.js +2 -2
- package/vue.config.js +1 -16
- package/vue2-client.iml +9 -0
- package/src/base-client/components/common/ScrollList/ScrollList.vue +0 -113
- package/src/base-client/components/common/ScrollList/index.js +0 -3
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -141,7 +141,7 @@ export default {
|
|
|
141
141
|
if (value !== '') {
|
|
142
142
|
const logicName = this.attr.keyName
|
|
143
143
|
const logic = logicName.substring(6)
|
|
144
|
-
post('/af-system/' + logic, value).then(res => {
|
|
144
|
+
post('/af-system/logic/' + logic, value).then(res => {
|
|
145
145
|
callback(res)
|
|
146
146
|
})
|
|
147
147
|
}
|
|
@@ -685,7 +685,7 @@ export default {
|
|
|
685
685
|
// 获取所有仓库
|
|
686
686
|
getStocks () {
|
|
687
687
|
if (this.stockList.length === 0) {
|
|
688
|
-
post('/af-system/getFilesStock', {}).then(res => {
|
|
688
|
+
post('/af-system/logic/getFilesStock', {}).then(res => {
|
|
689
689
|
this.stockList = res.sort((a, b) => b.progress - a.progress)
|
|
690
690
|
}).catch(e => {})
|
|
691
691
|
}
|
package/src/base-client/components/common/CreateSimpleFormQuery/CreateSimpleFormQueryItem.vue
CHANGED
|
@@ -502,7 +502,7 @@ export default {
|
|
|
502
502
|
// 获取所有仓库
|
|
503
503
|
getStocks () {
|
|
504
504
|
if (this.stockList.length === 0) {
|
|
505
|
-
post('/af-system/getFilesStock', {}).then(res => {
|
|
505
|
+
post('/af-system/logic/getFilesStock', {}).then(res => {
|
|
506
506
|
this.stockList = res.sort((a, b) => b.progress - a.progress)
|
|
507
507
|
}).catch(e => {})
|
|
508
508
|
}
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
|
|
40
40
|
<script>
|
|
41
41
|
import { mapState } from 'vuex'
|
|
42
|
-
import CreateSimpleFormQuery from '
|
|
42
|
+
import CreateSimpleFormQuery from '@vue2-client/base-client/components/common/CreateSimpleFormQuery'
|
|
43
43
|
|
|
44
44
|
export default {
|
|
45
45
|
name: 'FormGroupQuery',
|
|
@@ -159,7 +159,7 @@ export default {
|
|
|
159
159
|
if (item.groupIndex === 1) {
|
|
160
160
|
if (item.keyName.substring(0, 6) === 'logic@') {
|
|
161
161
|
// 请求logic
|
|
162
|
-
post('/af-system/' + item.keyName.substring(6), {}).then(res => {
|
|
162
|
+
post('/af-system/logic/' + item.keyName.substring(6), {}).then(res => {
|
|
163
163
|
this.SelectsArray[item.group][item.groupIndex] = res
|
|
164
164
|
this.SelectsArray = JSON.parse(JSON.stringify(this.SelectsArray))
|
|
165
165
|
})
|
|
@@ -136,7 +136,7 @@ export default {
|
|
|
136
136
|
if (item.groupIndex === 1) {
|
|
137
137
|
if (item.keyName.substring(0, 6) === 'logic@') {
|
|
138
138
|
// 请求logic
|
|
139
|
-
post('/af-system/' + item.keyName.substring(6), {}).then(res => {
|
|
139
|
+
post('/af-system/logic/' + item.keyName.substring(6), {}).then(res => {
|
|
140
140
|
this.SelectsArray[item.group][item.groupIndex] = res
|
|
141
141
|
this.SelectsArray = JSON.parse(JSON.stringify(this.SelectsArray))
|
|
142
142
|
})
|
|
@@ -288,7 +288,8 @@ export default {
|
|
|
288
288
|
})
|
|
289
289
|
},
|
|
290
290
|
async getSilenceSource (silenceSource, requestParameters) {
|
|
291
|
-
|
|
291
|
+
const result = await post('/af-system/logic/' + silenceSource, requestParameters)
|
|
292
|
+
return result
|
|
292
293
|
},
|
|
293
294
|
getModifyModelData () {
|
|
294
295
|
for (let i = 0; i < this.realJsonData.length; i++) {
|
|
@@ -135,7 +135,7 @@ export default {
|
|
|
135
135
|
if (item.groupIndex === 1) {
|
|
136
136
|
if (item.keyName.substring(0, 6) === 'logic@') {
|
|
137
137
|
// 请求logic
|
|
138
|
-
post('/af-system/' + item.keyName.substring(6), {}).then(res => {
|
|
138
|
+
post('/af-system/logic/' + item.keyName.substring(6), {}).then(res => {
|
|
139
139
|
this.SelectsArray[item.group][item.groupIndex] = res
|
|
140
140
|
this.SelectsArray = JSON.parse(JSON.stringify(this.SelectsArray))
|
|
141
141
|
})
|
|
@@ -245,11 +245,11 @@
|
|
|
245
245
|
|
|
246
246
|
import { post } from '@vue2-client/services/api'
|
|
247
247
|
import { debounce } from 'ant-design-vue/lib/vc-table/src/utils'
|
|
248
|
-
import XFormCol from '
|
|
249
|
-
import XBadge from '
|
|
250
|
-
import CitySelect from '
|
|
251
|
-
import PersonSetting from '
|
|
252
|
-
import AddressSearchCombobox from '
|
|
248
|
+
import XFormCol from '@vue2-client/base-client/components/common/XFormCol'
|
|
249
|
+
import XBadge from '@vue2-client/base-client/components/common/XBadge'
|
|
250
|
+
import CitySelect from '@vue2-client/base-client/components/common/CitySelect'
|
|
251
|
+
import PersonSetting from '@vue2-client/base-client/components/common/PersonSetting'
|
|
252
|
+
import AddressSearchCombobox from '@vue2-client/base-client/components/common/AddressSearchCombobox'
|
|
253
253
|
|
|
254
254
|
export default {
|
|
255
255
|
name: 'XFormItem',
|
|
@@ -366,7 +366,7 @@ export default {
|
|
|
366
366
|
if (value !== '') {
|
|
367
367
|
const logicName = this.attr.keyName
|
|
368
368
|
const logic = logicName.substring(6)
|
|
369
|
-
post('/af-system/' + logic, value).then(res => {
|
|
369
|
+
post('/af-system/logic/' + logic, value).then(res => {
|
|
370
370
|
callback(res)
|
|
371
371
|
})
|
|
372
372
|
}
|
|
@@ -65,7 +65,7 @@ import { indexedDB } from '@vue2-client/utils/indexedDB'
|
|
|
65
65
|
import { mapState } from 'vuex'
|
|
66
66
|
import { Modal } from 'ant-design-vue'
|
|
67
67
|
import { post } from '@vue2-client/services/api/restTools'
|
|
68
|
-
import { CommonTempTable } from '
|
|
68
|
+
import { CommonTempTable } from '@vue2-client/services/api/commonTempTable'
|
|
69
69
|
|
|
70
70
|
export default {
|
|
71
71
|
name: 'XFormTable',
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
import { Ellipsis, STable } from '@vue2-client/components'
|
|
73
73
|
import { formatDate } from '@vue2-client/utils/util'
|
|
74
74
|
import { exportJson } from '@vue2-client/utils/excel/Export2Excel'
|
|
75
|
-
import CustomColumnsDrawer from '
|
|
76
|
-
import XBadge from '
|
|
75
|
+
import CustomColumnsDrawer from '@vue2-client/base-client/components/common/CustomColumnsDrawer'
|
|
76
|
+
import XBadge from '@vue2-client/base-client/components/common/XBadge'
|
|
77
77
|
|
|
78
78
|
export default {
|
|
79
79
|
name: 'XTable',
|
|
@@ -76,7 +76,7 @@ import JsonViewer from 'vue-json-viewer'
|
|
|
76
76
|
import { mapGetters, mapState } from 'vuex'
|
|
77
77
|
import { post, QueryParamsDetailsViewApi } from '@vue2-client/services/api'
|
|
78
78
|
import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable'
|
|
79
|
-
import CreateQuery from '
|
|
79
|
+
import CreateQuery from '@vue2-client/base-client/components/common/CreateQuery'
|
|
80
80
|
|
|
81
81
|
export default {
|
|
82
82
|
name: 'QueryParamsDetailsView',
|
|
@@ -182,7 +182,7 @@ export default {
|
|
|
182
182
|
},
|
|
183
183
|
// 存储查询配置信息
|
|
184
184
|
saveQueryParams (source) {
|
|
185
|
-
return post('/af-system/updateQueryParamsData', {
|
|
185
|
+
return post('/af-system/logic/updateQueryParamsData', {
|
|
186
186
|
id: this.id,
|
|
187
187
|
source: source
|
|
188
188
|
}).then(res => {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
:before-upload="beforeUpload"
|
|
37
37
|
:file-list="fileList"
|
|
38
38
|
:remove="remove"
|
|
39
|
-
action="/af-system/upload"
|
|
39
|
+
action="/af-system/file/upload"
|
|
40
40
|
list-type="picture-card"
|
|
41
41
|
name="avatar"
|
|
42
42
|
@change="handleChange"
|
|
@@ -202,7 +202,7 @@
|
|
|
202
202
|
import { mapState } from 'vuex'
|
|
203
203
|
import TicketDetailsFlow from './part/TicketDetailsFlow'
|
|
204
204
|
import moment from 'moment'
|
|
205
|
-
import XFormItem from '
|
|
205
|
+
import XFormItem from '@vue2-client/base-client/components/common/XForm/XFormItem'
|
|
206
206
|
|
|
207
207
|
function getBase64 (file) {
|
|
208
208
|
return new Promise((resolve, reject) => {
|
|
@@ -77,7 +77,7 @@ export default {
|
|
|
77
77
|
this.institutionDetailVisible = false
|
|
78
78
|
try {
|
|
79
79
|
if (this.$login.f.name) {
|
|
80
|
-
post('/af-system/getTodo', { name: this.$login.f.name }).then(res => {
|
|
80
|
+
post('/af-system/logic/getTodo', { name: this.$login.f.name }).then(res => {
|
|
81
81
|
this.backlog = [...res]
|
|
82
82
|
if (this.backlog.length > 0) {
|
|
83
83
|
const key = `open${Date.now()}`
|
|
@@ -81,7 +81,7 @@ export default {
|
|
|
81
81
|
return
|
|
82
82
|
}
|
|
83
83
|
const otherFiles = []
|
|
84
|
-
post('/af-system/getInstitutionDetail', {
|
|
84
|
+
post('/af-system/logic/getInstitutionDetail', {
|
|
85
85
|
id: this.institutionId
|
|
86
86
|
}).then(res => {
|
|
87
87
|
res.files.forEach(item => {
|
|
@@ -116,7 +116,7 @@ export default {
|
|
|
116
116
|
a.click()
|
|
117
117
|
},
|
|
118
118
|
confirm_institution () {
|
|
119
|
-
post('/af-system/affirmInstitution', {
|
|
119
|
+
post('/af-system/logic/affirmInstitution', {
|
|
120
120
|
data: {
|
|
121
121
|
tobe: [
|
|
122
122
|
{
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
|
|
17
17
|
<script>
|
|
18
18
|
import { post } from '@vue2-client/services/api/restTools'
|
|
19
|
-
import CreateQuery from '
|
|
20
|
-
import CreateSimpleFormQuery from '
|
|
19
|
+
import CreateQuery from '@vue2-client/base-client/components/common/CreateQuery'
|
|
20
|
+
import CreateSimpleFormQuery from '@vue2-client/base-client/components/common/CreateSimpleFormQuery'
|
|
21
21
|
|
|
22
22
|
export default {
|
|
23
23
|
name: 'CreateQueryPage',
|
|
@@ -40,7 +40,7 @@ export default {
|
|
|
40
40
|
},
|
|
41
41
|
// 存储查询配置信息
|
|
42
42
|
saveQueryParams (source) {
|
|
43
|
-
return post('/af-system/addOrEditQueryParams', {
|
|
43
|
+
return post('/af-system/logic/addOrEditQueryParams', {
|
|
44
44
|
source: source
|
|
45
45
|
}).then(res => {
|
|
46
46
|
this.$message.success('保存查询配置成功')
|
|
@@ -50,7 +50,7 @@ export default {
|
|
|
50
50
|
},
|
|
51
51
|
// 存储基础表单配置信息
|
|
52
52
|
saveSimpleFormQueryParams (source) {
|
|
53
|
-
return post('/af-system/addOrEditSimpleFormQueryParams', {
|
|
53
|
+
return post('/af-system/logic/addOrEditSimpleFormQueryParams', {
|
|
54
54
|
source: source
|
|
55
55
|
}).then(res => {
|
|
56
56
|
this.$message.success('保存基础表单配置成功')
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
<script>
|
|
17
17
|
import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable'
|
|
18
|
-
import DictionaryDetailsView from '
|
|
18
|
+
import DictionaryDetailsView from '@vue2-client/base-client/components/system/DictionaryDetailsView'
|
|
19
19
|
|
|
20
20
|
export default {
|
|
21
21
|
name: 'Dictionary',
|
|
@@ -195,10 +195,10 @@ export default {
|
|
|
195
195
|
getStockList () {
|
|
196
196
|
this.loading = true
|
|
197
197
|
// 请求仓库列表
|
|
198
|
-
post('/af-system/getFilesStock', {}).then(res => {
|
|
198
|
+
post('/af-system/logic/getFilesStock', {}).then(res => {
|
|
199
199
|
this.data = res.sort((a, b) => a.progress - b.progress)
|
|
200
200
|
// 请求仓库列表
|
|
201
|
-
post('/af-system/getFilesColl', {}).then(res => {
|
|
201
|
+
post('/af-system/logic/getFilesColl', {}).then(res => {
|
|
202
202
|
this.coll = res
|
|
203
203
|
this.loading = false
|
|
204
204
|
})
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
<script>
|
|
17
17
|
import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable'
|
|
18
|
-
import QueryParamsDetailsView from '
|
|
18
|
+
import QueryParamsDetailsView from '@vue2-client/base-client/components/system/QueryParamsDetailsView'
|
|
19
19
|
|
|
20
20
|
export default {
|
|
21
21
|
name: 'QueryParams',
|
|
@@ -18,7 +18,7 @@ routerResource.dictionaryManage = () => import(/* webpackChunkName: "dictionary"
|
|
|
18
18
|
// 查询配置管理
|
|
19
19
|
routerResource.queryParamsManage = () => import(/* webpackChunkName: "queryParams" */ '@vue2-client/pages/system/queryParams')
|
|
20
20
|
// 文件管理
|
|
21
|
-
routerResource.fileManager = () => import('
|
|
21
|
+
routerResource.fileManager = () => import('@vue2-client/pages/system/file')
|
|
22
22
|
// 系统问题反馈工单
|
|
23
23
|
routerResource.submitTicket = () => import(/* webpackChunkName: "submitTicket" */ '@vue2-client/pages/system/ticket')
|
|
24
24
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
const LogDetailsViewApi = {
|
|
2
2
|
// 查询:获取日志详情
|
|
3
|
-
getLogDetails: '/af-system/foreignaidGetLogDetails',
|
|
3
|
+
getLogDetails: '/af-system/logic/foreignaidGetLogDetails',
|
|
4
4
|
// 查询:获取日志维护记录
|
|
5
|
-
getLogRecordList: '/af-system/foreignaidGetRecordList',
|
|
5
|
+
getLogRecordList: '/af-system/logic/foreignaidGetRecordList',
|
|
6
6
|
// 操作:更新日志状态
|
|
7
|
-
updateLogStatusData: '/af-system/foreignaidUpdateLogStatus'
|
|
7
|
+
updateLogStatusData: '/af-system/logic/foreignaidUpdateLogStatus'
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
export { LogDetailsViewApi }
|
|
@@ -1,42 +1,34 @@
|
|
|
1
1
|
const TicketDetailsViewApi = {
|
|
2
2
|
// 查询:获取工单流转详情
|
|
3
|
-
getTicketWorkFlowDetails: '/af-system/getTicketWorkFlowDetails',
|
|
3
|
+
getTicketWorkFlowDetails: '/af-system/logic/getTicketWorkFlowDetails',
|
|
4
4
|
// 查询:获取工单详情
|
|
5
|
-
getTicketDetails: '/af-system/getTicketDetails',
|
|
5
|
+
getTicketDetails: '/af-system/logic/getTicketDetails',
|
|
6
6
|
// 手动关闭工单
|
|
7
|
-
manualCloseTicket: '/af-system/manualCloseTicket',
|
|
7
|
+
manualCloseTicket: '/af-system/logic/manualCloseTicket',
|
|
8
8
|
// 转交工单给其他人
|
|
9
|
-
transferTicketToOthers: '/af-system/transferTicketToOthers',
|
|
9
|
+
transferTicketToOthers: '/af-system/logic/transferTicketToOthers',
|
|
10
10
|
// 确认工单,开始处理
|
|
11
|
-
confirmTicket: '/af-system/confirmTicket',
|
|
12
|
-
// 获取工单序号
|
|
13
|
-
getTicketSerialNumber: '/af-system/getTicketSerialNumber',
|
|
14
|
-
// 新增工单
|
|
15
|
-
addTicket: '/af-system/addTicket',
|
|
11
|
+
confirmTicket: '/af-system/logic/confirmTicket',
|
|
16
12
|
// 查询:获取订单详情用于订单追踪
|
|
17
|
-
getTicketDetailsForUploader: '/af-system/getTicketDetailsForUploader',
|
|
13
|
+
getTicketDetailsForUploader: '/af-system/logic/getTicketDetailsForUploader',
|
|
18
14
|
// 更新:将工单优先级增加
|
|
19
|
-
rushTicket: '/af-system/rushTicket',
|
|
15
|
+
rushTicket: '/af-system/logic/rushTicket',
|
|
20
16
|
// 客户手动关闭工单
|
|
21
|
-
manualCloseTicketByCustomer: '/af-system/manualCloseTicketByCustomer',
|
|
22
|
-
// 上传图片
|
|
23
|
-
uploadImage: '/af-system/upload',
|
|
24
|
-
// 获取工单类别字典
|
|
25
|
-
getTicketCategoryDictionary: '/af-system/getTicketCategoryDictionary',
|
|
17
|
+
manualCloseTicketByCustomer: '/af-system/logic/manualCloseTicketByCustomer',
|
|
26
18
|
// 在工单提交页面删除照片
|
|
27
|
-
revocationImage: '/af-system/revocationImage',
|
|
19
|
+
revocationImage: '/af-system/logic/revocationImage',
|
|
28
20
|
// 在工单提交页面删除照片
|
|
29
|
-
getTicketImages: '/af-system/getTicketImages',
|
|
21
|
+
getTicketImages: '/af-system/logic/getTicketImages',
|
|
30
22
|
// 用户填写附加信息时取消了操作,将已上传的照片清空
|
|
31
|
-
removeAllImages: '/af-system/removeAllImages',
|
|
23
|
+
removeAllImages: '/af-system/logic/removeAllImages',
|
|
32
24
|
// 提交用户填写附加信息
|
|
33
|
-
AddonDescriptionToTicket: '/af-system/AddonDescriptionToTicket',
|
|
25
|
+
AddonDescriptionToTicket: '/af-system/logic/AddonDescriptionToTicket',
|
|
34
26
|
// 获取用户填写附加信息
|
|
35
|
-
getAddonDescription: '/af-system/getAddonDescription',
|
|
27
|
+
getAddonDescription: '/af-system/logic/getAddonDescription',
|
|
36
28
|
// 发起售后工单流程
|
|
37
|
-
createTicket: '/af-system/createTicket',
|
|
29
|
+
createTicket: '/af-system/logic/createTicket',
|
|
38
30
|
// 查询:获取所有员工名,供前端展示备选项
|
|
39
|
-
getAllEmployeeName: '/af-system/getAllEmployeeName'
|
|
31
|
+
getAllEmployeeName: '/af-system/logic/getAllEmployeeName'
|
|
40
32
|
}
|
|
41
33
|
|
|
42
34
|
export { TicketDetailsViewApi }
|
|
@@ -3,19 +3,19 @@ import { indexedDB } from '@vue2-client/utils/indexedDB'
|
|
|
3
3
|
|
|
4
4
|
const commonApi = {
|
|
5
5
|
// 获取表格列配置
|
|
6
|
-
getColumnsJson: '/af-system/getColumns',
|
|
6
|
+
getColumnsJson: '/af-system/logic/getColumns',
|
|
7
7
|
// 通用查询
|
|
8
|
-
query: 'commonQuery',
|
|
8
|
+
query: 'logic/commonQuery',
|
|
9
9
|
// 表单查询
|
|
10
|
-
queryWithResource: 'commonQueryWithResource',
|
|
10
|
+
queryWithResource: 'logic/commonQueryWithResource',
|
|
11
11
|
// 通用新增/修改
|
|
12
|
-
addOrModify: 'commonAddOrModify',
|
|
12
|
+
addOrModify: 'logic/commonAddOrModify',
|
|
13
13
|
// 通用删除
|
|
14
|
-
delete: 'commonDelete',
|
|
14
|
+
delete: 'logic/commonDelete',
|
|
15
15
|
// 获取字典键列表
|
|
16
|
-
getDictionaryParam: '/af-system/getDictionaryParam',
|
|
16
|
+
getDictionaryParam: '/af-system/logic/getDictionaryParam',
|
|
17
17
|
// 获取所有员工及其部门的级联菜单数据
|
|
18
|
-
getEmpTree: '/af-system/getEmpTree',
|
|
18
|
+
getEmpTree: '/af-system/logic/getEmpTree',
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
const CommonTempTable = {
|
|
2
2
|
// 初始化子表
|
|
3
|
-
initApplySubTable: '/af-system/initApplySubTable',
|
|
3
|
+
initApplySubTable: '/af-system/logic/initApplySubTable',
|
|
4
4
|
// 创建临时表,根据配置文件动态生成
|
|
5
|
-
createTempTable: '/af-system/createTempTable',
|
|
5
|
+
createTempTable: '/af-system/logic/createTempTable',
|
|
6
6
|
// 向临时表中插入数据
|
|
7
|
-
insertDataToTempTable: '/af-system/insertDataToTempTable'
|
|
7
|
+
insertDataToTempTable: '/af-system/logic/insertDataToTempTable'
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
export { CommonTempTable }
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const manageApi = {
|
|
2
2
|
// 查询:获取字典键列表
|
|
3
|
-
getDictionaryValue: '/af-system/getDictionaryValue',
|
|
3
|
+
getDictionaryValue: '/af-system/logic/getDictionaryValue',
|
|
4
4
|
// 查询:获取省市区街道三级分类
|
|
5
|
-
getDivisionsOhChina: '/af-system/getDivisionsOhChina'
|
|
5
|
+
getDivisionsOhChina: '/af-system/logic/getDivisionsOhChina'
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
export { manageApi }
|
package/vue.config.js
CHANGED
|
@@ -23,23 +23,8 @@ module.exports = {
|
|
|
23
23
|
ws: false,
|
|
24
24
|
changeOrigin: true
|
|
25
25
|
},
|
|
26
|
-
'/af-system/entity': {
|
|
27
|
-
pathRewrite: { '^/af-system/entity': '/rs/entity' },
|
|
28
|
-
target: local,
|
|
29
|
-
changeOrigin: true
|
|
30
|
-
},
|
|
31
|
-
'/af-system/upload': {
|
|
32
|
-
pathRewrite: { '^/af-system/upload': '/rs/file/upload' },
|
|
33
|
-
target: local,
|
|
34
|
-
changeOrigin: true
|
|
35
|
-
},
|
|
36
|
-
'/af-system/resource': {
|
|
37
|
-
pathRewrite: { '^/af-system/resource': '/rs/resource' },
|
|
38
|
-
target: local,
|
|
39
|
-
changeOrigin: true
|
|
40
|
-
},
|
|
41
26
|
'/af-system': {
|
|
42
|
-
pathRewrite: { '^/af-system': '/rs
|
|
27
|
+
pathRewrite: { '^/af-system': '/rs' },
|
|
43
28
|
target: local,
|
|
44
29
|
changeOrigin: true
|
|
45
30
|
}
|
package/vue2-client.iml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<module type="WEB_MODULE" version="4">
|
|
3
|
+
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
|
4
|
+
<exclude-output />
|
|
5
|
+
<content url="file://$MODULE_DIR$" />
|
|
6
|
+
<orderEntry type="inheritedJdk" />
|
|
7
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
|
8
|
+
</component>
|
|
9
|
+
</module>
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<a-list
|
|
3
|
-
:data-source="model.rows"
|
|
4
|
-
:bordered="bordered"
|
|
5
|
-
v-infinite-scroll="handleInfiniteOnLoad"
|
|
6
|
-
class="srcoll-list-infinite-container"
|
|
7
|
-
:infinite-scroll-disabled="busy"
|
|
8
|
-
:infinite-scroll-distance="distance"
|
|
9
|
-
>
|
|
10
|
-
<a-list-item slot="renderItem" class="srcoll_list_li" slot-scope="item,index" @click="selectItem(index,item)">
|
|
11
|
-
<slot :item="item" :index="index" >
|
|
12
|
-
</slot>
|
|
13
|
-
</a-list-item>
|
|
14
|
-
<div v-if="loading && !busy" class="srcoll-list-loading-container">
|
|
15
|
-
<a-spin />
|
|
16
|
-
</div>
|
|
17
|
-
</a-list>
|
|
18
|
-
</template>
|
|
19
|
-
|
|
20
|
-
<script>
|
|
21
|
-
import infiniteScroll from 'vue-infinite-scroll'
|
|
22
|
-
import { post } from '@vue2-client/services/api/restTools'
|
|
23
|
-
|
|
24
|
-
export default {
|
|
25
|
-
name: 'SrcollList1',
|
|
26
|
-
directives: { infiniteScroll },
|
|
27
|
-
props: {
|
|
28
|
-
'busy': { // 是否执行回调
|
|
29
|
-
type: Boolean,
|
|
30
|
-
default: false
|
|
31
|
-
},
|
|
32
|
-
'distance': { // 距底部多少像素触发回调
|
|
33
|
-
type: Number,
|
|
34
|
-
default: 1
|
|
35
|
-
},
|
|
36
|
-
'bordered': { // 是否显示列表边框
|
|
37
|
-
type: Boolean,
|
|
38
|
-
default: true
|
|
39
|
-
},
|
|
40
|
-
'model': {
|
|
41
|
-
type: Object,
|
|
42
|
-
default: () => {
|
|
43
|
-
return {}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
data () {
|
|
48
|
-
return {
|
|
49
|
-
selectRow: {},
|
|
50
|
-
loading: false
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
mounted () {
|
|
54
|
-
},
|
|
55
|
-
methods: {
|
|
56
|
-
selectItem (index, item) {
|
|
57
|
-
this.$emit('selectItem', index, item)
|
|
58
|
-
},
|
|
59
|
-
handleInfiniteOnLoad () {
|
|
60
|
-
this.loading = true
|
|
61
|
-
if (this.model.pageNo < this.model.totalPage || this.model.pageNo == 0) {
|
|
62
|
-
this.model.pageNo = this.model.pageNo + 1
|
|
63
|
-
post(this.model.url, { data: this.model }).then((res) => {
|
|
64
|
-
this.model.rows = this.model.rows.concat(res.data).map((item, index) => ({ ...item, index }))
|
|
65
|
-
this.loading = false
|
|
66
|
-
this.model.totalPage = res.totalPage
|
|
67
|
-
this.model.totalCount = res.totalCount
|
|
68
|
-
})
|
|
69
|
-
} else {
|
|
70
|
-
this.loading = false
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
search () {
|
|
74
|
-
this.model.pageNo = 0
|
|
75
|
-
this.model.rows = []
|
|
76
|
-
this.handleInfiniteOnLoad()
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
</script>
|
|
81
|
-
|
|
82
|
-
<style scoped>
|
|
83
|
-
.srcoll-list-infinite-container {
|
|
84
|
-
border-radius: 4px;
|
|
85
|
-
height: 100%;
|
|
86
|
-
overflow-y: scroll;
|
|
87
|
-
}
|
|
88
|
-
/*滚动条样式*/
|
|
89
|
-
.srcoll-list-infinite-container::-webkit-scrollbar {
|
|
90
|
-
width: 4px;
|
|
91
|
-
/*height: 4px;*/
|
|
92
|
-
}
|
|
93
|
-
.srcoll-list-infinite-container::-webkit-scrollbar-thumb {
|
|
94
|
-
border-radius: 10px;
|
|
95
|
-
-webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
|
|
96
|
-
background: rgba(0,0,0,0.2);
|
|
97
|
-
}
|
|
98
|
-
.srcoll-list-infinite-container::-webkit-scrollbar-track {
|
|
99
|
-
-webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
|
|
100
|
-
border-radius: 0;
|
|
101
|
-
background: rgba(0,0,0,0.1);
|
|
102
|
-
|
|
103
|
-
}
|
|
104
|
-
.srcoll-list-loading-container {
|
|
105
|
-
position: absolute;
|
|
106
|
-
bottom: 10%;
|
|
107
|
-
width: 100%;
|
|
108
|
-
text-align: center;
|
|
109
|
-
}
|
|
110
|
-
.srcoll_list_li:hover{
|
|
111
|
-
background-color: rgb(203,234,241);
|
|
112
|
-
}
|
|
113
|
-
</style>
|