Skip to content

Commit 3fce66b

Browse files
author
shizhong
committed
� Conflicts: � yudao-ui-admin/yarn.lock
2 parents 437090e + 2a362a3 commit 3fce66b

File tree

43 files changed

+1751
-716
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+1751
-716
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "yudao-ui-admin",
3-
"version": "1.6.4-snapshot",
3+
"version": "1.6.5-snapshot",
44
"description": "芋道管理系统",
55
"author": "芋道",
66
"license": "MIT",
@@ -47,7 +47,7 @@
4747
"clipboard": "2.0.8",
4848
"core-js": "^3.26.0",
4949
"crypto-js": "^4.0.0",
50-
"echarts": "4.9.0",
50+
"echarts": "5.4.0",
5151
"element-ui": "2.15.10",
5252
"file-saver": "2.0.5",
5353
"fuse.js": "6.6.2",
@@ -60,7 +60,7 @@
6060
"screenfull": "5.0.2",
6161
"sortablejs": "1.10.2",
6262
"throttle-debounce": "2.1.0",
63-
"vue": "2.7.0",
63+
"vue": "2.7.14",
6464
"vue-count-to": "1.0.13",
6565
"vue-cropper": "0.5.8",
6666
"vue-meta": "^2.4.0",
@@ -89,7 +89,7 @@
8989
"fs-extra": "^8.1.0",
9090
"lint-staged": "12.5.0",
9191
"runjs": "4.4.2",
92-
"sass": "1.3.0",
92+
"sass": "1.32.13",
9393
"sass-loader": "10.2.0",
9494
"script-ext-html-webpack-plugin": "2.1.5",
9595
"svg-sprite-loader": "5.1.1",

src/api/login.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,5 +126,23 @@ export function authorize(responseType, clientId, redirectUri, state,
126126
})
127127
}
128128

129+
// 获取验证图片 以及token
130+
export function reqGet(data) {
131+
return request({
132+
url: 'system/captcha/get',
133+
method: 'post',
134+
data
135+
})
136+
}
137+
138+
// 滑动或者点选验证
139+
export function reqCheck(data) {
140+
return request({
141+
url: '/system/captcha/check',
142+
method: 'post',
143+
data
144+
})
145+
}
146+
129147
export class socialBindLogin {
130148
}

src/api/mall/product/property.js

Lines changed: 19 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import request from '@/utils/request'
22

3-
// 创建规格名称
3+
// ------------------------ 属性项 -------------------
4+
5+
// 创建属性项
46
export function createProperty(data) {
57
return request({
68
url: '/product/property/create',
@@ -9,7 +11,7 @@ export function createProperty(data) {
911
})
1012
}
1113

12-
// 更新规格名称
14+
// 更新属性项
1315
export function updateProperty(data) {
1416
return request({
1517
url: '/product/property/update',
@@ -18,23 +20,23 @@ export function updateProperty(data) {
1820
})
1921
}
2022

21-
// 删除规格名称
23+
// 删除属性项
2224
export function deleteProperty(id) {
2325
return request({
2426
url: '/product/property/delete?id=' + id,
2527
method: 'delete'
2628
})
2729
}
2830

29-
// 获得规格名称
31+
// 获得属性项
3032
export function getProperty(id) {
3133
return request({
3234
url: '/product/property/get?id=' + id,
3335
method: 'get'
3436
})
3537
}
3638

37-
// 获得规格名称分页
39+
// 获得属性项分页
3840
export function getPropertyPage(query) {
3941
return request({
4042
url: '/product/property/page',
@@ -43,7 +45,7 @@ export function getPropertyPage(query) {
4345
})
4446
}
4547

46-
// 获得规格名称列表
48+
// 获得属性项列表
4749
export function getPropertyList(query) {
4850
return request({
4951
url: '/product/property/list',
@@ -52,29 +54,18 @@ export function getPropertyList(query) {
5254
})
5355
}
5456

55-
// 获得规格名称列表
57+
// 获得属性项列表
5658
export function getPropertyListAndValue(query) {
5759
return request({
58-
url: '/product/property/listAndValue',
60+
url: '/product/property/get-value-list',
5961
method: 'get',
6062
params: query
6163
})
6264
}
6365

66+
// ------------------------ 属性值 -------------------
6467

65-
// 导出规格名称 Excel
66-
export function exportPropertyExcel(query) {
67-
return request({
68-
url: '/product/property/export-excel',
69-
method: 'get',
70-
params: query,
71-
responseType: 'blob'
72-
})
73-
}
74-
75-
// ------------------------ 规格名称值 -------------------
76-
77-
// 获得规格名称值分页
68+
// 获得属性值分页
7869
export function getPropertyValuePage(query) {
7970
return request({
8071
url: '/product/property/value/page',
@@ -83,7 +74,7 @@ export function getPropertyValuePage(query) {
8374
})
8475
}
8576

86-
// 获得规格名称值
77+
// 获得属性值
8778
export function getPropertyValue(id) {
8879
return request({
8980
url: '/product/property/value/get?id=' + id,
@@ -92,7 +83,7 @@ export function getPropertyValue(id) {
9283
}
9384

9485

95-
// 创建规格名称值
86+
// 创建属性值
9687
export function createPropertyValue(data) {
9788
return request({
9889
url: '/product/property/value/create',
@@ -101,7 +92,7 @@ export function createPropertyValue(data) {
10192
})
10293
}
10394

104-
// 更新规格名称值
95+
// 更新属性值
10596
export function updatePropertyValue(data) {
10697
return request({
10798
url: '/product/property/value/update',
@@ -110,10 +101,13 @@ export function updatePropertyValue(data) {
110101
})
111102
}
112103

113-
// 删除规格名称
104+
// 删除属性值
114105
export function deletePropertyValue(id) {
115106
return request({
116107
url: '/product/property/value/delete?id=' + id,
117108
method: 'delete'
118109
})
119110
}
111+
112+
export class exportPropertyExcel {
113+
}

src/api/mall/product/spu.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,10 @@ export function deleteSpu(id) {
2626
})
2727
}
2828

29-
// 获得商品spu
30-
export function getSpu(id) {
31-
return request({
32-
url: '/product/spu/get?id=' + id,
33-
method: 'get'
34-
})
35-
}
36-
3729
// 获得商品 SPU 详情
3830
export function getSpuDetail(id) {
3931
return request({
40-
url: '/product/spu/get/detail?id=' + id,
32+
url: '/product/spu/get-detail?id=' + id,
4133
method: 'get'
4234
})
4335
}
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
import request from '@/utils/request'
2+
3+
// 创建秒杀活动
4+
export function createSeckillActivity(data) {
5+
return request({
6+
url: '/promotion/seckill-activity/create',
7+
method: 'post',
8+
data: data
9+
})
10+
}
11+
12+
// 更新秒杀活动
13+
export function updateSeckillActivity(data) {
14+
return request({
15+
url: '/promotion/seckill-activity/update',
16+
method: 'put',
17+
data: data
18+
})
19+
}
20+
21+
// 关闭限时折扣活动
22+
export function closeSeckillActivity(id) {
23+
return request({
24+
url: '/promotion/seckill-activity/close?id=' + id,
25+
method: 'put'
26+
})
27+
}
28+
29+
// 删除秒杀活动
30+
export function deleteSeckillActivity(id) {
31+
return request({
32+
url: '/promotion/seckill-activity/delete?id=' + id,
33+
method: 'delete'
34+
})
35+
}
36+
37+
// 获得秒杀活动
38+
export function getSeckillActivity(id) {
39+
return request({
40+
url: '/promotion/seckill-activity/get?id=' + id,
41+
method: 'get'
42+
})
43+
}
44+
45+
// 获得秒杀活动分页
46+
export function getSeckillActivityPage(query) {
47+
return request({
48+
url: '/promotion/seckill-activity/page',
49+
method: 'get',
50+
params: query
51+
})
52+
}

src/api/mall/promotion/seckillTime.js

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
import request from '@/utils/request'
2+
3+
// 创建秒杀时段
4+
export function createSeckillTime(data) {
5+
return request({
6+
url: '/promotion/seckill-time/create',
7+
method: 'post',
8+
data: data
9+
})
10+
}
11+
12+
// 更新秒杀时段
13+
export function updateSeckillTime(data) {
14+
return request({
15+
url: '/promotion/seckill-time/update',
16+
method: 'put',
17+
data: data
18+
})
19+
}
20+
21+
// 删除秒杀时段
22+
export function deleteSeckillTime(id) {
23+
return request({
24+
url: '/promotion/seckill-time/delete?id=' + id,
25+
method: 'delete'
26+
})
27+
}
28+
29+
// 获得秒杀时段
30+
export function getSeckillTime(id) {
31+
return request({
32+
url: '/promotion/seckill-time/get?id=' + id,
33+
method: 'get'
34+
})
35+
}
36+
37+
// 获得秒杀时段分页
38+
export function getSeckillTimePage(query) {
39+
return request({
40+
url: '/promotion/seckill-time/page',
41+
method: 'get',
42+
params: query
43+
})
44+
}
45+
46+
// 获取所有的秒杀时段
47+
export function getSeckillTimeList() {
48+
return request({
49+
url: '/promotion/seckill-time/list',
50+
method: 'get'
51+
})
52+
}
53+
54+
// 导出秒杀时段 Excel
55+
export function exportSeckillTimeExcel(query) {
56+
return request({
57+
url: '/promotion/seckill-time/export-excel',
58+
method: 'get',
59+
params: query,
60+
responseType: 'blob'
61+
})
62+
}

src/api/mall/trade/afterSale.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import request from '@/utils/request'
2+
3+
// 获得交易售后
4+
export function getAfterSale(id) {
5+
return request({
6+
url: '/trade/after-sale/get?id=' + id,
7+
method: 'get'
8+
})
9+
}
10+
11+
// 获得交易售后分页
12+
export function getAfterSalePage(query) {
13+
return request({
14+
url: '/trade/after-sale/page',
15+
method: 'get',
16+
params: query
17+
})
18+
}

src/api/mall/trade/order.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import request from '@/utils/request'
2+
3+
// 获得交易订单分页
4+
export function getOrderPage(query) {
5+
return request({
6+
url: '/trade/order/page',
7+
method: 'get',
8+
params: query
9+
})
10+
}
11+
12+
// 获得交易订单详情
13+
export function getOrderDetail(id) {
14+
return request({
15+
url: '/trade/order/get-detail?id=' + id,
16+
method: 'get',
17+
})
18+
}

src/api/system/area.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import request from '@/utils/request'
2+
3+
// 获得地区树
4+
export function getAreaTree() {
5+
return request({
6+
url: '/system/area/tree',
7+
method: 'get'
8+
})
9+
}
10+
11+
// 获得 IP 对应的地区名
12+
export function getAreaByIp(ip) {
13+
return request({
14+
url: '/system/area/get-by-ip?ip=' + ip,
15+
method: 'get'
16+
})
17+
}

src/assets/styles/ruoyi.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@
6060
color: inherit;
6161
}
6262

63+
.el-message-box__status + .el-message-box__message{
64+
word-break: break-word;
65+
}
66+
6367
.el-dialog:not(.is-fullscreen) {
6468
margin-top: 6vh !important;
6569
}

0 commit comments

Comments
 (0)