Skip to content

Commit e4fc1c5

Browse files
YunaiVgitee-org
authored andcommitted
!291 升级 vue2 && 完善 vue3 vxe demo
Merge pull request !291 from xingyu/dev
2 parents f384b79 + 2db662f commit e4fc1c5

File tree

113 files changed

+3834
-4201
lines changed

Some content is hidden

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

113 files changed

+3834
-4201
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: 29 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -40,63 +40,61 @@
4040
"url": "https://github.com/YunaiV/ruoyi-vue-pro"
4141
},
4242
"dependencies": {
43+
"@babel/parser": "7.7.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",
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",
8290
"lint-staged": "10.5.3",
83-
"sass": "1.32.13",
8491
"runjs": "4.4.2",
85-
"sass-loader": "10.1.1",
92+
"sass": "1.56.0",
93+
"sass-loader": "13.1.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": {
102100
"node": ">=8.9",

src/components/Breadcrumb/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<el-breadcrumb class="app-breadcrumb" separator="/">
33
<transition-group name="breadcrumb">
44
<el-breadcrumb-item v-for="(item,index) in levelList" :key="item.path">
5-
<span v-if="item.redirect==='noRedirect'||index==levelList.length-1" class="no-redirect">{{ item.meta.title }}</span>
5+
<span v-if="item.redirect==='noRedirect'||index===levelList.length-1" class="no-redirect">{{ item.meta.title }}</span>
66
<a v-else @click.prevent="handleLink(item)">{{ item.meta.title }}</a>
77
</el-breadcrumb-item>
88
</transition-group>

src/components/Crontab/day.vue

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -103,25 +103,25 @@ export default {
103103
},
104104
// 周期两个值变化时
105105
cycleChange() {
106-
if (this.radioValue == '3') {
106+
if (this.radioValue === '3') {
107107
this.$emit('update', 'day', this.cycleTotal);
108108
}
109109
},
110110
// 平均两个值变化时
111111
averageChange() {
112-
if (this.radioValue == '4') {
112+
if (this.radioValue === '4') {
113113
this.$emit('update', 'day', this.averageTotal);
114114
}
115115
},
116116
// 最近工作日值变化时
117117
workdayChange() {
118-
if (this.radioValue == '5') {
118+
if (this.radioValue === '5') {
119119
this.$emit('update', 'day', this.workdayCheck + 'W');
120120
}
121121
},
122122
// checkbox值变化时
123123
checkboxChange() {
124-
if (this.radioValue == '7') {
124+
if (this.radioValue === '7') {
125125
this.$emit('update', 'day', this.checkboxString);
126126
}
127127
}
@@ -148,13 +148,12 @@ export default {
148148
},
149149
// 计算工作日格式
150150
workdayCheck: function () {
151-
const workday = this.checkNum(this.workday, 1, 31)
152-
return workday;
151+
return this.checkNum(this.workday, 1, 31);
153152
},
154153
// 计算勾选的checkbox值合集
155154
checkboxString: function () {
156155
let str = this.checkboxList.join();
157-
return str == '' ? '*' : str;
156+
return str === '' ? '*' : str;
158157
}
159158
}
160159
}

src/components/Crontab/hour.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,19 +68,19 @@ export default {
6868
},
6969
// 周期两个值变化时
7070
cycleChange() {
71-
if (this.radioValue == '2') {
71+
if (this.radioValue === '2') {
7272
this.$emit('update', 'hour', this.cycleTotal);
7373
}
7474
},
7575
// 平均两个值变化时
7676
averageChange() {
77-
if (this.radioValue == '3') {
77+
if (this.radioValue === '3') {
7878
this.$emit('update', 'hour', this.averageTotal);
7979
}
8080
},
8181
// checkbox值变化时
8282
checkboxChange() {
83-
if (this.radioValue == '4') {
83+
if (this.radioValue === '4') {
8484
this.$emit('update', 'hour', this.checkboxString);
8585
}
8686
}
@@ -107,7 +107,7 @@ export default {
107107
// 计算勾选的checkbox值合集
108108
checkboxString: function () {
109109
let str = this.checkboxList.join();
110-
return str == '' ? '*' : str;
110+
return str === '' ? '*' : str;
111111
}
112112
}
113113
}

src/components/Crontab/index.vue

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ export default {
143143
props: ["expression", "hideComponent"],
144144
methods: {
145145
shouldHide(key) {
146-
if (this.hideComponent && this.hideComponent.includes(key)) return false;
147-
return true;
146+
return !(this.hideComponent && this.hideComponent.includes(key));
147+
148148
},
149149
resolveExp() {
150150
// 反解析 表达式
@@ -215,10 +215,10 @@ export default {
215215
insValue = 4;
216216
this.$refs[refName].checkboxList = value.split(",");
217217
}
218-
} else if (name == "day") {
218+
} else if (name === "day") {
219219
if (value === "*") {
220220
insValue = 1;
221-
} else if (value == "?") {
221+
} else if (value === "?") {
222222
insValue = 2;
223223
} else if (value.indexOf("-") > -1) {
224224
let indexArr = value.split("-");
@@ -246,10 +246,10 @@ export default {
246246
this.$refs[refName].checkboxList = value.split(",");
247247
insValue = 7;
248248
}
249-
} else if (name == "week") {
249+
} else if (name === "week") {
250250
if (value === "*") {
251251
insValue = 1;
252-
} else if (value == "?") {
252+
} else if (value === "?") {
253253
insValue = 2;
254254
} else if (value.indexOf("-") > -1) {
255255
let indexArr = value.split("-");
@@ -275,10 +275,10 @@ export default {
275275
this.$refs[refName].checkboxList = value.split(",");
276276
insValue = 6;
277277
}
278-
} else if (name == "year") {
279-
if (value == "") {
278+
} else if (name === "year") {
279+
if (value === "") {
280280
insValue = 1;
281-
} else if (value == "*") {
281+
} else if (value === "*") {
282282
insValue = 2;
283283
} else if (value.indexOf("-") > -1) {
284284
insValue = 3;
@@ -343,7 +343,7 @@ export default {
343343
obj.month +
344344
" " +
345345
obj.week +
346-
(obj.year == "" ? "" : " " + obj.year);
346+
(obj.year === "" ? "" : " " + obj.year);
347347
return str;
348348
},
349349
},

src/components/Crontab/min.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,19 +69,19 @@ export default {
6969
},
7070
// 周期两个值变化时
7171
cycleChange() {
72-
if (this.radioValue == '2') {
72+
if (this.radioValue === '2') {
7373
this.$emit('update', 'min', this.cycleTotal, 'min');
7474
}
7575
},
7676
// 平均两个值变化时
7777
averageChange() {
78-
if (this.radioValue == '3') {
78+
if (this.radioValue === '3') {
7979
this.$emit('update', 'min', this.averageTotal, 'min');
8080
}
8181
},
8282
// checkbox值变化时
8383
checkboxChange() {
84-
if (this.radioValue == '4') {
84+
if (this.radioValue === '4') {
8585
this.$emit('update', 'min', this.checkboxString, 'min');
8686
}
8787
},
@@ -109,8 +109,8 @@ export default {
109109
// 计算勾选的checkbox值合集
110110
checkboxString: function () {
111111
let str = this.checkboxList.join();
112-
return str == '' ? '*' : str;
112+
return str === '' ? '*' : str;
113113
}
114114
}
115115
}
116-
</script>
116+
</script>

src/components/Crontab/month.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,19 +68,19 @@ export default {
6868
},
6969
// 周期两个值变化时
7070
cycleChange() {
71-
if (this.radioValue == '2') {
71+
if (this.radioValue === '2') {
7272
this.$emit('update', 'month', this.cycleTotal);
7373
}
7474
},
7575
// 平均两个值变化时
7676
averageChange() {
77-
if (this.radioValue == '3') {
77+
if (this.radioValue === '3') {
7878
this.$emit('update', 'month', this.averageTotal);
7979
}
8080
},
8181
// checkbox值变化时
8282
checkboxChange() {
83-
if (this.radioValue == '4') {
83+
if (this.radioValue === '4') {
8484
this.$emit('update', 'month', this.checkboxString);
8585
}
8686
}
@@ -107,7 +107,7 @@ export default {
107107
// 计算勾选的checkbox值合集
108108
checkboxString: function () {
109109
let str = this.checkboxList.join();
110-
return str == '' ? '*' : str;
110+
return str === '' ? '*' : str;
111111
}
112112
}
113113
}

0 commit comments

Comments
 (0)