vue2-client 1.6.35 → 1.6.37
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 +7 -0
- package/index.js +30 -30
- package/package.json +1 -1
- package/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox.vue +317 -317
- package/src/base-client/components/common/AmapMarker/AmapPointRendering.vue +120 -120
- package/src/base-client/components/common/AmapMarker/index.js +3 -3
- package/src/base-client/components/common/CitySelect/CitySelect.vue +247 -247
- package/src/base-client/components/common/CreateQuery/CreateQueryItem.vue +733 -733
- package/src/base-client/components/common/CreateSimpleFormQuery/CreateSimpleFormQueryItem.vue +508 -508
- package/src/base-client/components/common/FormGroupEdit/FormGroupEdit.vue +140 -140
- package/src/base-client/components/common/FormGroupQuery/FormGroupQuery.vue +165 -165
- package/src/base-client/components/common/JSONToTree/jsontotree.vue +275 -275
- package/src/base-client/components/common/Upload/Upload.vue +168 -168
- package/src/base-client/components/common/XAddForm/XAddForm.vue +326 -326
- package/src/base-client/components/common/XCard/XCard.vue +64 -64
- package/src/base-client/components/common/XForm/XForm.vue +180 -180
- package/src/base-client/components/common/XForm/XFormItem.vue +473 -591
- package/src/base-client/components/common/XForm/XTreeSelect.vue +184 -0
- package/src/base-client/components/common/XFormTable/XFormTable.vue +336 -336
- package/src/base-client/components/common/XFormTable/index.md +97 -97
- package/src/base-client/components/common/XTreeOne/XTreeOne.vue +111 -111
- package/src/base-client/components/system/QueryParamsDetailsView/QueryParamsDetailsView.vue +281 -281
- package/src/base-client/components/ticket/TicketDetailsView/TicketDetailsView.vue +807 -807
- package/src/base-client/components/ticket/TicketDetailsView/index.md +29 -29
- package/src/base-client/components/ticket/TicketDetailsView/part/TicketDetailsFlow.vue +260 -260
- package/src/base-client/components/ticket/TicketSubmitSuccessView/TicketSubmitSuccessView.vue +532 -532
- package/src/base-client/components/ticket/TicketSubmitSuccessView/index.md +29 -29
- package/src/base-client/plugins/AppData.js +76 -76
- package/src/base-client/plugins/GetLoginInfoService.js +179 -179
- package/src/base-client/plugins/PagedList.js +177 -177
- package/src/base-client/plugins/compatible/LoginServiceOA.js +20 -20
- package/src/base-client/plugins/i18n-extend.js +32 -32
- package/src/components/Ellipsis/Ellipsis.vue +65 -65
- package/src/components/Ellipsis/index.md +38 -38
- package/src/components/NumberInfo/index.md +43 -43
- package/src/components/STable/README.md +341 -341
- package/src/components/STable/index.js +318 -318
- package/src/components/Trend/index.md +45 -45
- package/src/components/checkbox/ColorCheckbox.vue +157 -157
- package/src/components/checkbox/ImgCheckbox.vue +163 -163
- package/src/components/exception/ExceptionPage.vue +70 -70
- package/src/components/form/FormRow.vue +52 -52
- package/src/components/index.js +36 -36
- package/src/components/menu/SideMenu.vue +62 -62
- package/src/components/menu/menu.js +273 -273
- package/src/components/page/header/index.less +40 -40
- package/src/components/setting/Setting.vue +235 -235
- package/src/components/table/StandardTable.vue +141 -141
- package/src/components/table/advance/ActionColumns.vue +158 -158
- package/src/components/table/advance/SearchArea.vue +355 -355
- package/src/components/tool/AStepItem.vue +60 -60
- package/src/components/tool/AvatarList.vue +68 -68
- package/src/components/tool/Drawer.vue +142 -142
- package/src/components/tool/TagSelect.vue +83 -83
- package/src/components/transition/PageToggleTransition.vue +97 -97
- package/src/config/default/admin.config.js +18 -18
- package/src/config/default/setting.config.js +46 -46
- package/src/config/replacer/resolve.config.js +67 -67
- package/src/layouts/CommonLayout.vue +42 -42
- package/src/layouts/ComponentLayoutOne.vue +47 -47
- package/src/layouts/PageLayout.vue +151 -151
- package/src/layouts/SinglePageView.vue +116 -116
- package/src/layouts/footer/PageFooter.vue +49 -49
- package/src/layouts/header/AdminHeader.vue +134 -134
- package/src/layouts/header/HeaderAvatar.vue +64 -64
- package/src/layouts/header/HeaderNotice.vue +176 -176
- package/src/layouts/header/HeaderSearch.vue +67 -67
- package/src/layouts/header/InstitutionDetail.vue +181 -181
- package/src/layouts/header/index.less +92 -92
- package/src/layouts/tabs/TabsHead.vue +190 -190
- package/src/layouts/tabs/TabsView.vue +379 -379
- package/src/mock/goods/index.js +108 -108
- package/src/pages/login/Login.vue +365 -365
- package/src/pages/report/ReportTable.js +124 -124
- package/src/pages/report/ReportTableHome.vue +28 -28
- package/src/pages/resourceManage/orgListManage.vue +98 -98
- package/src/pages/system/file/index.vue +317 -317
- package/src/pages/system/settings/index.vue +126 -126
- package/src/pages/system/settings/modifyPassword.vue +109 -109
- package/src/router/async/config.async.js +28 -28
- package/src/router/async/router.map.js +68 -68
- package/src/router/index.js +27 -27
- package/src/services/api/DictionaryDetailsViewApi.js +6 -6
- package/src/services/api/LogDetailsViewApi.js +10 -10
- package/src/services/api/QueryParamsDetailsViewApi.js +6 -6
- package/src/services/api/TicketDetailsViewApi.js +34 -34
- package/src/services/api/cas.js +79 -79
- package/src/services/api/commonTempTable.js +10 -10
- package/src/services/api/index.js +17 -17
- package/src/services/api/logininfor/index.js +6 -6
- package/src/services/api/manage.js +8 -8
- package/src/services/apiService.js +14 -14
- package/src/services/user.js +64 -64
- package/src/store/modules/index.js +4 -4
- package/src/theme/default/nprogress.less +76 -76
- package/src/theme/default/style.less +58 -58
- package/src/utils/colors.js +107 -107
- package/src/utils/excel/Blob.js +180 -180
- package/src/utils/excel/Export2Excel.js +141 -141
- package/src/utils/formatter.js +68 -68
- package/src/utils/i18n.js +80 -80
- package/src/utils/map-utils.js +37 -37
- package/src/utils/request.js +311 -311
- package/src/utils/theme-color-replacer-extend.js +91 -91
- package/src/utils/themeUtil.js +100 -100
- package/src/utils/util.js +230 -230
- package/vue.config.js +106 -106
package/src/mock/goods/index.js
CHANGED
|
@@ -1,108 +1,108 @@
|
|
|
1
|
-
import Mock from 'mockjs'
|
|
2
|
-
import '@vue2-client/mock/extend'
|
|
3
|
-
import { parseUrlParams } from '@vue2-client/utils/request'
|
|
4
|
-
|
|
5
|
-
const current = new Date().getTime()
|
|
6
|
-
|
|
7
|
-
const goodsList = Mock.mock({
|
|
8
|
-
'list|100': [{
|
|
9
|
-
'id|+1': 0,
|
|
10
|
-
'name': '@GOODS',
|
|
11
|
-
'orderId': `${current}-@integer(1,100)`,
|
|
12
|
-
'status|1-4': 1,
|
|
13
|
-
'send': '@BOOLEAN',
|
|
14
|
-
'sendTime': '@DATETIME',
|
|
15
|
-
'orderDate': '@DATE',
|
|
16
|
-
'auditTime': '@TIME'
|
|
17
|
-
}]
|
|
18
|
-
})
|
|
19
|
-
|
|
20
|
-
Mock.mock(RegExp(`${process.env.VUE_APP_API_BASE_URL}/goods` + '.*'), 'get', ({ url }) => {
|
|
21
|
-
const params = parseUrlParams(decodeURI(url))
|
|
22
|
-
let { page, pageSize } = params
|
|
23
|
-
// eslint-disable-next-line no-eval
|
|
24
|
-
page = eval(page) - 1 || 0
|
|
25
|
-
// eslint-disable-next-line no-eval
|
|
26
|
-
pageSize = eval(pageSize) || 10
|
|
27
|
-
delete params.page
|
|
28
|
-
delete params.pageSize
|
|
29
|
-
let result = goodsList.list.filter(item => {
|
|
30
|
-
for (const [key, value] of Object.entries(params)) {
|
|
31
|
-
if (item[key] !== value) {
|
|
32
|
-
return false
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
return true
|
|
36
|
-
})
|
|
37
|
-
const total = result.length
|
|
38
|
-
if ((page) * pageSize > total) {
|
|
39
|
-
result = []
|
|
40
|
-
} else {
|
|
41
|
-
result = result.slice(page * pageSize, (page + 1) * pageSize)
|
|
42
|
-
}
|
|
43
|
-
return {
|
|
44
|
-
code: 0,
|
|
45
|
-
message: 'success',
|
|
46
|
-
data: {
|
|
47
|
-
page: page + 1,
|
|
48
|
-
pageSize,
|
|
49
|
-
total,
|
|
50
|
-
list: result
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
})
|
|
54
|
-
|
|
55
|
-
const columnsConfig = [
|
|
56
|
-
{
|
|
57
|
-
title: '商品名称',
|
|
58
|
-
dataIndex: 'name',
|
|
59
|
-
searchAble: true
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
title: '订单号',
|
|
63
|
-
dataIndex: 'orderId'
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
searchAble: true,
|
|
67
|
-
dataIndex: 'status',
|
|
68
|
-
dataType: 'select',
|
|
69
|
-
slots: { title: 'statusTitle' },
|
|
70
|
-
scopedSlots: { customRender: 'status' },
|
|
71
|
-
search: {
|
|
72
|
-
selectOptions: [
|
|
73
|
-
{ title: '已下单', value: 1 },
|
|
74
|
-
{ title: '已付款', value: 2 },
|
|
75
|
-
{ title: '已审核', value: 3 }
|
|
76
|
-
// {title: '已发货', value: 4}
|
|
77
|
-
]
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
title: '发货',
|
|
82
|
-
searchAble: true,
|
|
83
|
-
dataIndex: 'send',
|
|
84
|
-
dataType: 'boolean',
|
|
85
|
-
scopedSlots: { customRender: 'send' }
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
title: '发货时间',
|
|
89
|
-
dataIndex: 'sendTime',
|
|
90
|
-
dataType: 'datetime'
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
title: '下单日期',
|
|
94
|
-
searchAble: true,
|
|
95
|
-
dataIndex: 'orderDate',
|
|
96
|
-
dataType: 'date',
|
|
97
|
-
visible: false
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
title: '审核时间',
|
|
101
|
-
dataIndex: 'auditTime',
|
|
102
|
-
dataType: 'time'
|
|
103
|
-
}
|
|
104
|
-
]
|
|
105
|
-
|
|
106
|
-
Mock.mock(`${process.env.VUE_APP_API_BASE_URL}/columns`, 'get', () => {
|
|
107
|
-
return columnsConfig
|
|
108
|
-
})
|
|
1
|
+
import Mock from 'mockjs'
|
|
2
|
+
import '@vue2-client/mock/extend'
|
|
3
|
+
import { parseUrlParams } from '@vue2-client/utils/request'
|
|
4
|
+
|
|
5
|
+
const current = new Date().getTime()
|
|
6
|
+
|
|
7
|
+
const goodsList = Mock.mock({
|
|
8
|
+
'list|100': [{
|
|
9
|
+
'id|+1': 0,
|
|
10
|
+
'name': '@GOODS',
|
|
11
|
+
'orderId': `${current}-@integer(1,100)`,
|
|
12
|
+
'status|1-4': 1,
|
|
13
|
+
'send': '@BOOLEAN',
|
|
14
|
+
'sendTime': '@DATETIME',
|
|
15
|
+
'orderDate': '@DATE',
|
|
16
|
+
'auditTime': '@TIME'
|
|
17
|
+
}]
|
|
18
|
+
})
|
|
19
|
+
|
|
20
|
+
Mock.mock(RegExp(`${process.env.VUE_APP_API_BASE_URL}/goods` + '.*'), 'get', ({ url }) => {
|
|
21
|
+
const params = parseUrlParams(decodeURI(url))
|
|
22
|
+
let { page, pageSize } = params
|
|
23
|
+
// eslint-disable-next-line no-eval
|
|
24
|
+
page = eval(page) - 1 || 0
|
|
25
|
+
// eslint-disable-next-line no-eval
|
|
26
|
+
pageSize = eval(pageSize) || 10
|
|
27
|
+
delete params.page
|
|
28
|
+
delete params.pageSize
|
|
29
|
+
let result = goodsList.list.filter(item => {
|
|
30
|
+
for (const [key, value] of Object.entries(params)) {
|
|
31
|
+
if (item[key] !== value) {
|
|
32
|
+
return false
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return true
|
|
36
|
+
})
|
|
37
|
+
const total = result.length
|
|
38
|
+
if ((page) * pageSize > total) {
|
|
39
|
+
result = []
|
|
40
|
+
} else {
|
|
41
|
+
result = result.slice(page * pageSize, (page + 1) * pageSize)
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
code: 0,
|
|
45
|
+
message: 'success',
|
|
46
|
+
data: {
|
|
47
|
+
page: page + 1,
|
|
48
|
+
pageSize,
|
|
49
|
+
total,
|
|
50
|
+
list: result
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
})
|
|
54
|
+
|
|
55
|
+
const columnsConfig = [
|
|
56
|
+
{
|
|
57
|
+
title: '商品名称',
|
|
58
|
+
dataIndex: 'name',
|
|
59
|
+
searchAble: true
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
title: '订单号',
|
|
63
|
+
dataIndex: 'orderId'
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
searchAble: true,
|
|
67
|
+
dataIndex: 'status',
|
|
68
|
+
dataType: 'select',
|
|
69
|
+
slots: { title: 'statusTitle' },
|
|
70
|
+
scopedSlots: { customRender: 'status' },
|
|
71
|
+
search: {
|
|
72
|
+
selectOptions: [
|
|
73
|
+
{ title: '已下单', value: 1 },
|
|
74
|
+
{ title: '已付款', value: 2 },
|
|
75
|
+
{ title: '已审核', value: 3 }
|
|
76
|
+
// {title: '已发货', value: 4}
|
|
77
|
+
]
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
title: '发货',
|
|
82
|
+
searchAble: true,
|
|
83
|
+
dataIndex: 'send',
|
|
84
|
+
dataType: 'boolean',
|
|
85
|
+
scopedSlots: { customRender: 'send' }
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
title: '发货时间',
|
|
89
|
+
dataIndex: 'sendTime',
|
|
90
|
+
dataType: 'datetime'
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
title: '下单日期',
|
|
94
|
+
searchAble: true,
|
|
95
|
+
dataIndex: 'orderDate',
|
|
96
|
+
dataType: 'date',
|
|
97
|
+
visible: false
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
title: '审核时间',
|
|
101
|
+
dataIndex: 'auditTime',
|
|
102
|
+
dataType: 'time'
|
|
103
|
+
}
|
|
104
|
+
]
|
|
105
|
+
|
|
106
|
+
Mock.mock(`${process.env.VUE_APP_API_BASE_URL}/columns`, 'get', () => {
|
|
107
|
+
return columnsConfig
|
|
108
|
+
})
|