Skip to content

Commit 437090e

Browse files
author
shizhong
committed
� Conflicts: � yudao-ui-admin/yarn.lock
2 parents 9da8862 + caf33c8 commit 437090e

File tree

172 files changed

+4149
-2210
lines changed

Some content is hidden

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

172 files changed

+4149
-2210
lines changed

.eslintrc.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,6 @@ module.exports = {
1515
// add your custom rules here
1616
//it is base on https://github.com/vuejs/eslint-config-vue
1717
rules: {
18-
"vue/max-attributes-per-line": [2, {
19-
"singleline": 10,
20-
"multiline": {
21-
"max": 1,
22-
"allowFirstLine": false
23-
}
24-
}],
2518
"vue/singleline-html-element-content-newline": "off",
2619
"vue/multiline-html-element-content-newline":"off",
2720
"vue/name-property-casing": ["error", "PascalCase"],

build/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ if (process.env.npm_config_preview || rawArgv.includes('--preview')) {
1212
const port = 9526
1313
const publicPath = config.publicPath
1414

15-
var connect = require('connect')
16-
var serveStatic = require('serve-static')
15+
const connect = require('connect')
16+
const serveStatic = require('serve-static')
1717
const app = connect()
1818

1919
app.use(

package.json

Lines changed: 32 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -40,67 +40,65 @@
4040
"url": "https://github.com/YunaiV/ruoyi-vue-pro"
4141
},
4242
"dependencies": {
43+
"@babel/parser": "7.18.4",
4344
"@riophae/vue-treeselect": "0.4.0",
44-
"axios": "0.24.0",
45+
"axios": "0.27.2",
46+
"bpmn-js-token-simulation": "0.10.0",
4547
"clipboard": "2.0.8",
46-
"core-js": "^3.21.1",
48+
"core-js": "^3.26.0",
49+
"crypto-js": "^4.0.0",
4750
"echarts": "4.9.0",
48-
"element-ui": "2.15.8",
51+
"element-ui": "2.15.10",
4952
"file-saver": "2.0.5",
50-
"fuse.js": "6.4.3",
53+
"fuse.js": "6.6.2",
5154
"highlight.js": "9.18.5",
5255
"js-beautify": "1.13.0",
53-
"jsencrypt": "3.0.0-rc.1",
54-
"crypto-js": "^4.0.0",
56+
"jsencrypt": "3.3.1",
57+
"min-dash": "3.5.2",
5558
"nprogress": "0.2.0",
5659
"quill": "1.3.7",
5760
"screenfull": "5.0.2",
5861
"sortablejs": "1.10.2",
59-
"vue": "2.6.12",
62+
"throttle-debounce": "2.1.0",
63+
"vue": "2.7.0",
6064
"vue-count-to": "1.0.13",
61-
"vue-cropper": "0.5.5",
65+
"vue-cropper": "0.5.8",
6266
"vue-meta": "^2.4.0",
6367
"vue-router": "3.4.9",
6468
"vuedraggable": "2.24.3",
65-
"vuex": "3.6.0",
66-
"bpmn-js-token-simulation": "0.10.0",
67-
"min-dash": "3.5.2",
68-
"xml-js": "1.6.11",
69-
"@babel/parser": "7.7.4",
70-
"throttle-debounce": "2.1.0"
69+
"vuex": "3.6.2",
70+
"xml-js": "1.6.11"
7171
},
7272
"devDependencies": {
73-
"@vue/cli-plugin-babel": "4.4.6",
74-
"@vue/cli-plugin-eslint": "4.4.6",
75-
"@vue/cli-service": "4.4.6",
73+
"@vue/cli-plugin-babel": "4.5.18",
74+
"@vue/cli-plugin-eslint": "4.5.18",
75+
"@vue/cli-service": "4.5.18",
76+
"@vue/compiler-sfc": "^3.0.1",
77+
"@vue/eslint-config-prettier": "^5.0.0",
7678
"babel-eslint": "10.1.0",
79+
"bpmn-js": "8.9.0",
80+
"bpmn-js-properties-panel": "0.46.0",
7781
"chalk": "4.1.0",
7882
"compression-webpack-plugin": "5.0.2",
7983
"connect": "3.6.6",
8084
"eslint": "7.15.0",
81-
"eslint-plugin-vue": "7.2.0",
82-
"lint-staged": "10.5.3",
83-
"sass": "1.32.13",
85+
"eslint-config-airbnb-base": "^14.0.0",
86+
"eslint-plugin-import": "^2.26.0",
87+
"eslint-plugin-prettier": "^3.1.0",
88+
"eslint-plugin-vue": "9.0.0",
89+
"fs-extra": "^8.1.0",
90+
"lint-staged": "12.5.0",
8491
"runjs": "4.4.2",
85-
"sass-loader": "10.1.1",
92+
"sass": "1.3.0",
93+
"sass-loader": "10.2.0",
8694
"script-ext-html-webpack-plugin": "2.1.5",
8795
"svg-sprite-loader": "5.1.1",
88-
"vue-template-compiler": "2.6.12",
89-
"vue2-ace-editor": "^0.0.15",
90-
"@vue/compiler-sfc": "^3.0.1",
91-
"@vue/eslint-config-prettier": "^5.0.0",
92-
"bpmn-js": "8.9.0",
93-
"bpmn-js-properties-panel": "0.46.0",
94-
"eslint-plugin-prettier": "^3.1.0",
95-
"fs-extra": "^8.1.0",
9696
"terser-webpack-plugin": "^4.2.3",
97-
"webpack-bundle-analyzer": "^3.9.0",
98-
"eslint-config-airbnb-base": "^14.0.0",
99-
"eslint-plugin-import": "^2.20.0"
97+
"webpack-bundle-analyzer": "^3.9.0"
10098
},
10199
"engines": {
102-
"node": ">=8.9",
103-
"npm": ">= 3.0.0"
100+
"node": ">= 10.13.0",
101+
"npm": ">= 5.0.0"
104102
},
105103
"browserslist": [
106104
"> 1%",

src/App.vue

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
<template>
22
<div id="app">
33
<router-view />
4+
<theme-picker />
45
</div>
56
</template>
67

78
<script>
8-
export default {
9-
name: 'App',
9+
import ThemePicker from "@/components/ThemePicker";
10+
11+
export default {
12+
name: "App",
13+
components: { ThemePicker },
1014
metaInfo() {
1115
return {
1216
title: this.$store.state.settings.dynamicTitle && this.$store.state.settings.title,
@@ -15,5 +19,10 @@ export default {
1519
}
1620
}
1721
}
18-
}
22+
};
1923
</script>
24+
<style scoped>
25+
#app .theme-picker {
26+
display: none;
27+
}
28+
</style>

src/api/mall/CouponTemplete/CouponTemplete.js

Lines changed: 0 additions & 54 deletions
This file was deleted.

src/api/mall/product/property.js

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,25 @@ export function getPropertyPage(query) {
4343
})
4444
}
4545

46+
// 获得规格名称列表
47+
export function getPropertyList(query) {
48+
return request({
49+
url: '/product/property/list',
50+
method: 'get',
51+
params: query
52+
})
53+
}
54+
55+
// 获得规格名称列表
56+
export function getPropertyListAndValue(query) {
57+
return request({
58+
url: '/product/property/listAndValue',
59+
method: 'get',
60+
params: query
61+
})
62+
}
63+
64+
4665
// 导出规格名称 Excel
4766
export function exportPropertyExcel(query) {
4867
return request({
@@ -52,3 +71,49 @@ export function exportPropertyExcel(query) {
5271
responseType: 'blob'
5372
})
5473
}
74+
75+
// ------------------------ 规格名称值 -------------------
76+
77+
// 获得规格名称值分页
78+
export function getPropertyValuePage(query) {
79+
return request({
80+
url: '/product/property/value/page',
81+
method: 'get',
82+
params: query
83+
})
84+
}
85+
86+
// 获得规格名称值
87+
export function getPropertyValue(id) {
88+
return request({
89+
url: '/product/property/value/get?id=' + id,
90+
method: 'get'
91+
})
92+
}
93+
94+
95+
// 创建规格名称值
96+
export function createPropertyValue(data) {
97+
return request({
98+
url: '/product/property/value/create',
99+
method: 'post',
100+
data: data
101+
})
102+
}
103+
104+
// 更新规格名称值
105+
export function updatePropertyValue(data) {
106+
return request({
107+
url: '/product/property/value/update',
108+
method: 'put',
109+
data: data
110+
})
111+
}
112+
113+
// 删除规格名称
114+
export function deletePropertyValue(id) {
115+
return request({
116+
url: '/product/property/value/delete?id=' + id,
117+
method: 'delete'
118+
})
119+
}

src/api/mall/product/sku.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import request from '@/utils/request'
2+
3+
// 获得商品 SKU 选项的列表
4+
export function getSkuOptionList() {
5+
return request({
6+
url: '/product/sku/get-option-list',
7+
method: 'get',
8+
})
9+
}

src/api/mall/product/spu.js

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

3-
// 创建商品spu
3+
// 创建商品 SPU
44
export function createSpu(data) {
55
return request({
66
url: '/product/spu/create',
@@ -9,7 +9,7 @@ export function createSpu(data) {
99
})
1010
}
1111

12-
// 更新商品spu
12+
// 更新商品 SPU
1313
export function updateSpu(data) {
1414
return request({
1515
url: '/product/spu/update',
@@ -18,7 +18,7 @@ export function updateSpu(data) {
1818
})
1919
}
2020

21-
// 删除商品spu
21+
// 删除商品 SPU
2222
export function deleteSpu(id) {
2323
return request({
2424
url: '/product/spu/delete?id=' + id,
@@ -34,11 +34,27 @@ export function getSpu(id) {
3434
})
3535
}
3636

37-
// 获得商品spu分页
37+
// 获得商品 SPU 详情
38+
export function getSpuDetail(id) {
39+
return request({
40+
url: '/product/spu/get/detail?id=' + id,
41+
method: 'get'
42+
})
43+
}
44+
45+
// 获得商品 SPU 分页
3846
export function getSpuPage(query) {
3947
return request({
4048
url: '/product/spu/page',
4149
method: 'get',
4250
params: query
4351
})
4452
}
53+
54+
// 获得商品 SPU 精简列表
55+
export function getSpuSimpleList() {
56+
return request({
57+
url: '/product/spu/get-simple-list',
58+
method: 'get',
59+
})
60+
}

src/api/mall/promotion/coupon.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 deleteCoupon(id) {
5+
return request({
6+
url: '/promotion/coupon/delete?id=' + id,
7+
method: 'delete'
8+
})
9+
}
10+
11+
// 获得优惠劵分页
12+
export function getCouponPage(query) {
13+
return request({
14+
url: '/promotion/coupon/page',
15+
method: 'get',
16+
params: query
17+
})
18+
}

0 commit comments

Comments
 (0)