diff --git a/yudao-ui-admin/build/index.js b/yudao-ui-admin/build/index.js index 0c57de2aad..520489588b 100644 --- a/yudao-ui-admin/build/index.js +++ b/yudao-ui-admin/build/index.js @@ -12,8 +12,8 @@ if (process.env.npm_config_preview || rawArgv.includes('--preview')) { const port = 9526 const publicPath = config.publicPath - var connect = require('connect') - var serveStatic = require('serve-static') + const connect = require('connect') + const serveStatic = require('serve-static') const app = connect() app.use( diff --git a/yudao-ui-admin/package.json b/yudao-ui-admin/package.json index 96463a8f57..0bf0ed7b83 100644 --- a/yudao-ui-admin/package.json +++ b/yudao-ui-admin/package.json @@ -89,8 +89,8 @@ "fs-extra": "^8.1.0", "lint-staged": "10.5.3", "runjs": "4.4.2", - "sass": "1.32.13", - "sass-loader": "10.1.1", + "sass": "1.56.0", + "sass-loader": "13.1.0", "script-ext-html-webpack-plugin": "2.1.5", "svg-sprite-loader": "5.1.1", "terser-webpack-plugin": "^4.2.3", diff --git a/yudao-ui-admin/src/components/Breadcrumb/index.vue b/yudao-ui-admin/src/components/Breadcrumb/index.vue index 85cde81c0f..f0129a4c15 100644 --- a/yudao-ui-admin/src/components/Breadcrumb/index.vue +++ b/yudao-ui-admin/src/components/Breadcrumb/index.vue @@ -2,7 +2,7 @@ - {{ item.meta.title }} + {{ item.meta.title }} {{ item.meta.title }} diff --git a/yudao-ui-admin/src/components/Crontab/day.vue b/yudao-ui-admin/src/components/Crontab/day.vue index fe3eaf0c4c..d6c74fade5 100644 --- a/yudao-ui-admin/src/components/Crontab/day.vue +++ b/yudao-ui-admin/src/components/Crontab/day.vue @@ -103,25 +103,25 @@ export default { }, // 周期两个值变化时 cycleChange() { - if (this.radioValue == '3') { + if (this.radioValue === '3') { this.$emit('update', 'day', this.cycleTotal); } }, // 平均两个值变化时 averageChange() { - if (this.radioValue == '4') { + if (this.radioValue === '4') { this.$emit('update', 'day', this.averageTotal); } }, // 最近工作日值变化时 workdayChange() { - if (this.radioValue == '5') { + if (this.radioValue === '5') { this.$emit('update', 'day', this.workdayCheck + 'W'); } }, // checkbox值变化时 checkboxChange() { - if (this.radioValue == '7') { + if (this.radioValue === '7') { this.$emit('update', 'day', this.checkboxString); } } @@ -148,13 +148,12 @@ export default { }, // 计算工作日格式 workdayCheck: function () { - const workday = this.checkNum(this.workday, 1, 31) - return workday; + return this.checkNum(this.workday, 1, 31); }, // 计算勾选的checkbox值合集 checkboxString: function () { let str = this.checkboxList.join(); - return str == '' ? '*' : str; + return str === '' ? '*' : str; } } } diff --git a/yudao-ui-admin/src/components/Crontab/hour.vue b/yudao-ui-admin/src/components/Crontab/hour.vue index 4b1f1fcdb3..3b890273b6 100644 --- a/yudao-ui-admin/src/components/Crontab/hour.vue +++ b/yudao-ui-admin/src/components/Crontab/hour.vue @@ -68,19 +68,19 @@ export default { }, // 周期两个值变化时 cycleChange() { - if (this.radioValue == '2') { + if (this.radioValue === '2') { this.$emit('update', 'hour', this.cycleTotal); } }, // 平均两个值变化时 averageChange() { - if (this.radioValue == '3') { + if (this.radioValue === '3') { this.$emit('update', 'hour', this.averageTotal); } }, // checkbox值变化时 checkboxChange() { - if (this.radioValue == '4') { + if (this.radioValue === '4') { this.$emit('update', 'hour', this.checkboxString); } } @@ -107,7 +107,7 @@ export default { // 计算勾选的checkbox值合集 checkboxString: function () { let str = this.checkboxList.join(); - return str == '' ? '*' : str; + return str === '' ? '*' : str; } } } diff --git a/yudao-ui-admin/src/components/Crontab/index.vue b/yudao-ui-admin/src/components/Crontab/index.vue index 3963df28e6..f0bc856929 100644 --- a/yudao-ui-admin/src/components/Crontab/index.vue +++ b/yudao-ui-admin/src/components/Crontab/index.vue @@ -143,8 +143,8 @@ export default { props: ["expression", "hideComponent"], methods: { shouldHide(key) { - if (this.hideComponent && this.hideComponent.includes(key)) return false; - return true; + return !(this.hideComponent && this.hideComponent.includes(key)); + }, resolveExp() { // 反解析 表达式 @@ -215,10 +215,10 @@ export default { insValue = 4; this.$refs[refName].checkboxList = value.split(","); } - } else if (name == "day") { + } else if (name === "day") { if (value === "*") { insValue = 1; - } else if (value == "?") { + } else if (value === "?") { insValue = 2; } else if (value.indexOf("-") > -1) { let indexArr = value.split("-"); @@ -246,10 +246,10 @@ export default { this.$refs[refName].checkboxList = value.split(","); insValue = 7; } - } else if (name == "week") { + } else if (name === "week") { if (value === "*") { insValue = 1; - } else if (value == "?") { + } else if (value === "?") { insValue = 2; } else if (value.indexOf("-") > -1) { let indexArr = value.split("-"); @@ -275,10 +275,10 @@ export default { this.$refs[refName].checkboxList = value.split(","); insValue = 6; } - } else if (name == "year") { - if (value == "") { + } else if (name === "year") { + if (value === "") { insValue = 1; - } else if (value == "*") { + } else if (value === "*") { insValue = 2; } else if (value.indexOf("-") > -1) { insValue = 3; @@ -343,7 +343,7 @@ export default { obj.month + " " + obj.week + - (obj.year == "" ? "" : " " + obj.year); + (obj.year === "" ? "" : " " + obj.year); return str; }, }, diff --git a/yudao-ui-admin/src/components/Crontab/min.vue b/yudao-ui-admin/src/components/Crontab/min.vue index 43cab900d3..71a1fc17b4 100644 --- a/yudao-ui-admin/src/components/Crontab/min.vue +++ b/yudao-ui-admin/src/components/Crontab/min.vue @@ -69,19 +69,19 @@ export default { }, // 周期两个值变化时 cycleChange() { - if (this.radioValue == '2') { + if (this.radioValue === '2') { this.$emit('update', 'min', this.cycleTotal, 'min'); } }, // 平均两个值变化时 averageChange() { - if (this.radioValue == '3') { + if (this.radioValue === '3') { this.$emit('update', 'min', this.averageTotal, 'min'); } }, // checkbox值变化时 checkboxChange() { - if (this.radioValue == '4') { + if (this.radioValue === '4') { this.$emit('update', 'min', this.checkboxString, 'min'); } }, @@ -109,8 +109,8 @@ export default { // 计算勾选的checkbox值合集 checkboxString: function () { let str = this.checkboxList.join(); - return str == '' ? '*' : str; + return str === '' ? '*' : str; } } } - \ No newline at end of file + diff --git a/yudao-ui-admin/src/components/Crontab/month.vue b/yudao-ui-admin/src/components/Crontab/month.vue index fd0ac384fb..2539935e07 100644 --- a/yudao-ui-admin/src/components/Crontab/month.vue +++ b/yudao-ui-admin/src/components/Crontab/month.vue @@ -68,19 +68,19 @@ export default { }, // 周期两个值变化时 cycleChange() { - if (this.radioValue == '2') { + if (this.radioValue === '2') { this.$emit('update', 'month', this.cycleTotal); } }, // 平均两个值变化时 averageChange() { - if (this.radioValue == '3') { + if (this.radioValue === '3') { this.$emit('update', 'month', this.averageTotal); } }, // checkbox值变化时 checkboxChange() { - if (this.radioValue == '4') { + if (this.radioValue === '4') { this.$emit('update', 'month', this.checkboxString); } } @@ -107,7 +107,7 @@ export default { // 计算勾选的checkbox值合集 checkboxString: function () { let str = this.checkboxList.join(); - return str == '' ? '*' : str; + return str === '' ? '*' : str; } } } diff --git a/yudao-ui-admin/src/components/Crontab/result.vue b/yudao-ui-admin/src/components/Crontab/result.vue index aea6e0e461..605c8c9ff9 100644 --- a/yudao-ui-admin/src/components/Crontab/result.vue +++ b/yudao-ui-admin/src/components/Crontab/result.vue @@ -126,7 +126,7 @@ export default { // 如果到达最大值时 if (nDay > DDate[DDate.length - 1]) { resetDay(); - if (Mi == MDate.length - 1) { + if (Mi === MDate.length - 1) { resetMonth(); continue goYear; } @@ -141,9 +141,9 @@ export default { // 如果到达最大值时 if (nHour > hDate[hDate.length - 1]) { resetHour(); - if (Di == DDate.length - 1) { + if (Di === DDate.length - 1) { resetDay(); - if (Mi == MDate.length - 1) { + if (Mi === MDate.length - 1) { resetMonth(); continue goYear; } @@ -158,7 +158,7 @@ export default { continue goMonth; } // 如果日期规则中有值时 - if (this.dayRule == 'lastDay') { + if (this.dayRule === 'lastDay') { // 如果不是合法日期则需要将前将日期调到合法日期即月末最后一天 if (this.checkDate(YY + '-' + MM + '-' + thisDD + ' 00:00:00') !== true) { @@ -168,7 +168,7 @@ export default { thisDD = DD < 10 ? '0' + DD : DD; } } - } else if (this.dayRule == 'workDay') { + } else if (this.dayRule === 'workDay') { // 校验并调整如果是2月30号这种日期传进来时需调整至正常月底 if (this.checkDate(YY + '-' + MM + '-' + thisDD + ' 00:00:00') !== true) { while (DD > 0 && this.checkDate(YY + '-' + MM + '-' + thisDD + ' 00:00:00') !== true) { @@ -179,7 +179,7 @@ export default { // 获取达到条件的日期是星期X let thisWeek = this.formatDate(new Date(YY + '-' + MM + '-' + thisDD + ' 00:00:00'), 'week'); // 当星期日时 - if (thisWeek == 1) { + if (thisWeek === 1) { // 先找下一个日,并判断是否为月底 DD++; thisDD = DD < 10 ? '0' + DD : DD; @@ -187,7 +187,7 @@ export default { if (this.checkDate(YY + '-' + MM + '-' + thisDD + ' 00:00:00') !== true) { DD -= 3; } - } else if (thisWeek == 7) { + } else if (thisWeek === 7) { // 当星期6时只需判断不是1号就可进行操作 if (this.dayRuleSup !== 1) { DD--; @@ -195,16 +195,16 @@ export default { DD += 2; } } - } else if (this.dayRule == 'weekDay') { + } else if (this.dayRule === 'weekDay') { // 如果指定了是星期几 // 获取当前日期是属于星期几 let thisWeek = this.formatDate(new Date(YY + '-' + MM + '-' + DD + ' 00:00:00'), 'week'); // 校验当前星期是否在星期池(dayRuleSup)中 if (this.dayRuleSup.indexOf(thisWeek) < 0) { // 如果到达最大值时 - if (Di == DDate.length - 1) { + if (Di === DDate.length - 1) { resetDay(); - if (Mi == MDate.length - 1) { + if (Mi === MDate.length - 1) { resetMonth(); continue goYear; } @@ -212,7 +212,7 @@ export default { } continue; } - } else if (this.dayRule == 'assWeek') { + } else if (this.dayRule === 'assWeek') { // 如果指定了是第几周的星期几 // 获取每月1号是属于星期几 let thisWeek = this.formatDate(new Date(YY + '-' + MM + '-' + DD + ' 00:00:00'), 'week'); @@ -221,7 +221,7 @@ export default { } else { DD = this.dayRuleSup[0] * 7 + this.dayRuleSup[1] - thisWeek + 1; } - } else if (this.dayRule == 'lastWeek') { + } else if (this.dayRule === 'lastWeek') { // 如果指定了每月最后一个星期几 // 校验并调整如果是2月30号这种日期传进来时需调整至正常月底 if (this.checkDate(YY + '-' + MM + '-' + thisDD + ' 00:00:00') !== true) { @@ -249,11 +249,11 @@ export default { // 如果到达最大值时 if (nMin > mDate[mDate.length - 1]) { resetMin(); - if (hi == hDate.length - 1) { + if (hi === hDate.length - 1) { resetHour(); - if (Di == DDate.length - 1) { + if (Di === DDate.length - 1) { resetDay(); - if (Mi == MDate.length - 1) { + if (Mi === MDate.length - 1) { resetMonth(); continue goYear; } @@ -270,13 +270,13 @@ export default { // 如果到达最大值时 if (nSecond > sDate[sDate.length - 1]) { resetSecond(); - if (mi == mDate.length - 1) { + if (mi === mDate.length - 1) { resetMin(); - if (hi == hDate.length - 1) { + if (hi === hDate.length - 1) { resetHour(); - if (Di == DDate.length - 1) { + if (Di === DDate.length - 1) { resetDay(); - if (Mi == MDate.length - 1) { + if (Mi === MDate.length - 1) { resetMonth(); continue goYear; } @@ -297,17 +297,17 @@ export default { nums++; } // 如果条数满了就退出循环 - if (nums == 5) break goYear; + if (nums === 5) break goYear; // 如果到达最大值时 - if (si == sDate.length - 1) { + if (si === sDate.length - 1) { resetSecond(); - if (mi == mDate.length - 1) { + if (mi === mDate.length - 1) { resetMin(); - if (hi == hDate.length - 1) { + if (hi === hDate.length - 1) { resetHour(); - if (Di == DDate.length - 1) { + if (Di === DDate.length - 1) { resetDay(); - if (Mi == MDate.length - 1) { + if (Mi === MDate.length - 1) { resetMonth(); continue goYear; } @@ -326,7 +326,7 @@ export default { }//goMonth } // 判断100年内的结果条数 - if (resultArr.length == 0) { + if (resultArr.length === 0) { this.resultList = ['没有达到条件的结果!']; } else { this.resultList = resultArr; @@ -378,23 +378,23 @@ export default { // 获取"日"数组-主要为日期规则 getWeekArr(rule) { // 只有当日期规则的两个值均为“”时则表达日期是有选项的 - if (this.dayRule == '' && this.dayRuleSup == '') { + if (this.dayRule === '' && this.dayRuleSup === '') { if (rule.indexOf('-') >= 0) { this.dayRule = 'weekDay'; this.dayRuleSup = this.getCycleArr(rule, 7, false) } else if (rule.indexOf('#') >= 0) { this.dayRule = 'assWeek'; - let matchRule = rule.match(/[0-9]{1}/g); + let matchRule = rule.match(/[0-9]/g); this.dayRuleSup = [Number(matchRule[1]), Number(matchRule[0])]; this.dateArr[3] = [1]; - if (this.dayRuleSup[1] == 7) { + if (this.dayRuleSup[1] === 7) { this.dayRuleSup[1] = 0; } } else if (rule.indexOf('L') >= 0) { this.dayRule = 'lastWeek'; this.dayRuleSup = Number(rule.match(/[0-9]{1,2}/g)[0]); this.dateArr[3] = [31]; - if (this.dayRuleSup == 7) { + if (this.dayRuleSup === 7) { this.dayRuleSup = 0; } } else if (rule !== '*' && rule !== '?') { @@ -425,7 +425,7 @@ export default { } else if (rule !== '*' && rule !== '?') { this.dateArr[3] = this.getAssignArr(rule) this.dayRuleSup = 'null'; - } else if (rule == '*') { + } else if (rule === '*') { this.dayRuleSup = 'null'; } }, @@ -504,7 +504,7 @@ export default { } for (let i = min; i <= max; i++) { let add = 0; - if (status == false && i % limit == 0) { + if (status === false && i % limit === 0) { add = limit; } arr.push(Math.round(i % limit + add)) @@ -532,9 +532,9 @@ export default { let s = time.getSeconds(); let week = time.getDay(); // 如果传递了type的话 - if (type == undefined) { + if (type === undefined) { return Y + '-' + (M < 10 ? '0' + M : M) + '-' + (D < 10 ? '0' + D : D) + ' ' + (h < 10 ? '0' + h : h) + ':' + (m < 10 ? '0' + m : m) + ':' + (s < 10 ? '0' + s : s); - } else if (type == 'week') { + } else if (type === 'week') { // 在quartz中 1为星期日 return week + 1; } diff --git a/yudao-ui-admin/src/components/Crontab/second.vue b/yudao-ui-admin/src/components/Crontab/second.vue index e7b776171d..0b5df29c7e 100644 --- a/yudao-ui-admin/src/components/Crontab/second.vue +++ b/yudao-ui-admin/src/components/Crontab/second.vue @@ -68,19 +68,19 @@ export default { }, // 周期两个值变化时 cycleChange() { - if (this.radioValue == '2') { + if (this.radioValue === '2') { this.$emit('update', 'second', this.cycleTotal); } }, // 平均两个值变化时 averageChange() { - if (this.radioValue == '3') { + if (this.radioValue === '3') { this.$emit('update', 'second', this.averageTotal); } }, // checkbox值变化时 checkboxChange() { - if (this.radioValue == '4') { + if (this.radioValue === '4') { this.$emit('update', 'second', this.checkboxString); } } @@ -110,7 +110,7 @@ export default { // 计算勾选的checkbox值合集 checkboxString: function () { let str = this.checkboxList.join(); - return str == '' ? '*' : str; + return str === '' ? '*' : str; } } } diff --git a/yudao-ui-admin/src/components/Crontab/week.vue b/yudao-ui-admin/src/components/Crontab/week.vue index 1cec700e8b..c84f3b3b58 100644 --- a/yudao-ui-admin/src/components/Crontab/week.vue +++ b/yudao-ui-admin/src/components/Crontab/week.vue @@ -144,25 +144,25 @@ export default { // 周期两个值变化时 cycleChange() { - if (this.radioValue == '3') { + if (this.radioValue === '3') { this.$emit('update', 'week', this.cycleTotal); } }, // 平均两个值变化时 averageChange() { - if (this.radioValue == '4') { + if (this.radioValue === '4') { this.$emit('update', 'week', this.averageTotal); } }, // 最近工作日值变化时 weekdayChange() { - if (this.radioValue == '5') { + if (this.radioValue === '5') { this.$emit('update', 'week', this.weekday + 'L'); } }, // checkbox值变化时 checkboxChange() { - if (this.radioValue == '6') { + if (this.radioValue === '6') { this.$emit('update', 'week', this.checkboxString); } }, @@ -195,7 +195,7 @@ export default { // 计算勾选的checkbox值合集 checkboxString: function () { let str = this.checkboxList.join(); - return str == '' ? '*' : str; + return str === '' ? '*' : str; } } } diff --git a/yudao-ui-admin/src/components/Crontab/year.vue b/yudao-ui-admin/src/components/Crontab/year.vue index 5487a6c7fd..2c8eec327f 100644 --- a/yudao-ui-admin/src/components/Crontab/year.vue +++ b/yudao-ui-admin/src/components/Crontab/year.vue @@ -79,19 +79,19 @@ export default { }, // 周期两个值变化时 cycleChange() { - if (this.radioValue == '3') { + if (this.radioValue === '3') { this.$emit('update', 'year', this.cycleTotal); } }, // 平均两个值变化时 averageChange() { - if (this.radioValue == '4') { + if (this.radioValue === '4') { this.$emit('update', 'year', this.averageTotal); } }, // checkbox值变化时 checkboxChange() { - if (this.radioValue == '5') { + if (this.radioValue === '5') { this.$emit('update', 'year', this.checkboxString); } } diff --git a/yudao-ui-admin/src/components/PanThumb/index.vue b/yudao-ui-admin/src/components/PanThumb/index.vue index 1bcf41709c..38a2fafe88 100644 --- a/yudao-ui-admin/src/components/PanThumb/index.vue +++ b/yudao-ui-admin/src/components/PanThumb/index.vue @@ -108,7 +108,6 @@ export default { .pan-info p a { display: block; - color: #333; width: 80px; height: 80px; background: rgba(255, 255, 255, 0.3); diff --git a/yudao-ui-admin/src/components/RightToolbar/index.vue b/yudao-ui-admin/src/components/RightToolbar/index.vue index a6cd871e2c..4a9bcb95a2 100644 --- a/yudao-ui-admin/src/components/RightToolbar/index.vue +++ b/yudao-ui-admin/src/components/RightToolbar/index.vue @@ -62,7 +62,7 @@ export default { }, // 右侧列表元素变化 dataChange(data) { - for (var item in this.columns) { + for (let item in this.columns) { const key = this.columns[item].key; this.columns[item].visible = !data.includes(key); } diff --git a/yudao-ui-admin/src/components/TopNav/index.vue b/yudao-ui-admin/src/components/TopNav/index.vue index c9862433be..483a9f3fc1 100644 --- a/yudao-ui-admin/src/components/TopNav/index.vue +++ b/yudao-ui-admin/src/components/TopNav/index.vue @@ -69,7 +69,7 @@ export default { childrenMenus() { const childrenMenus = []; this.routers.map((router) => { - for (var item in router.children) { + for (let item in router.children) { if (router.children[item].parentPath === undefined) { if(router.path === "/") { router.children[item].path = "/" + router.children[item].path; @@ -135,10 +135,10 @@ export default { }, // 当前激活的路由 activeRoutes(key) { - var routes = []; + const routes = [] if (this.childrenMenus && this.childrenMenus.length > 0) { this.childrenMenus.map((item) => { - if (key == item.parentPath || (key == "index" && "" == item.path)) { + if (key === item.parentPath || (key === "index" && "" === item.path)) { routes.push(item); } }); diff --git a/yudao-ui-admin/src/components/Verifition/Verify.vue b/yudao-ui-admin/src/components/Verifition/Verify.vue index 19698782f4..b40682d69a 100644 --- a/yudao-ui-admin/src/components/Verifition/Verify.vue +++ b/yudao-ui-admin/src/components/Verifition/Verify.vue @@ -440,7 +440,6 @@ export default { right: 0; top: 0; bottom: 0; - background-size: cover; z-index: 9999; background-image: url("data:image/png;base64,iVBORw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yIXcfv1E57lvH8FH8NGWLV4DvAZ4DYiJ4a1GGGP3ix/jbSbUg3pQj759Reewj9ms9FJ6Kb1ee+3774JEJ2KM6QePQJoJlVIplXboIDrHj/q+Y1w7Y/yNNxRFURRl3rzv03PhYIzZjQtIMyEjGcnoeGsGdIpO0an6ejyP5/H8jBmWSkulpXL1atG5GGP65yI6gLN4rPyx8sfK6+qomqqpuvGdvUDfd4wbrAarwRoTY1lvWW9Zv2eP6FiMMefBI5BmUpxWnFacdukSLIElsOTMGVE5qJAKqfDaNfqKvqKvfvtby8uWly0vZ2aK/vkwxpwPF5BmRlfoCl1ZvlzMV7dawRd8wXfoUPWQekg9VFgo+ufBGHNe3EjYIhCly9Jl6fK+fRiFURgVHd1iXyoMwiDsiy9wOS7H5RERljaWNpY2FRWifwKMMefHI5AWQeT5pOeTnk8+/zy8C+/Cu7m5zf4lvv+8hgWGBYYFYWFcOBhjDxovoreQitqK2orae/d8Pvf53Ofzjz4CBAR0c6NiKqZiWcbNuBk3u7nd7+fT/r/aWqzHeqxftQpWwkpY+cILloWWhZaFNTWiv1/GWOvDU1gPWGBoYGhgqI+Py1cuX7l8NWEC7aW9tHfIELpO1+m6v3/jf4cP48P4cEUFvUPv0DvHjtF39B19l5LCmxoyxhzF/wKeYeMy/zPC/wAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxNy0xMi0xNVQxNTo1NzoyNyswODowMKIRvi8AAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTctMTItMTVUMTU6NTc6MjcrMDg6MDDTTAaTAAAATXRFWHRzdmc6YmFzZS11cmkAZmlsZTovLy9ob21lL2FkbWluL2ljb24tZm9udC90bXAvaWNvbl9jazFiemEwemo5ampkY3hyL3JpZ2h0LnN2Z7O3J80AAAAASUVORK5CYII="); background-size: contain; diff --git a/yudao-ui-admin/src/components/Verifition/Verify/VerifyPoints.vue b/yudao-ui-admin/src/components/Verifition/Verify/VerifyPoints.vue index aa8c16f9df..72a71d9aa2 100644 --- a/yudao-ui-admin/src/components/Verifition/Verify/VerifyPoints.vue +++ b/yudao-ui-admin/src/components/Verifition/Verify/VerifyPoints.vue @@ -58,7 +58,7 @@ * VerifyPoints * @description 点选 * */ -import { resetSize, _code_chars, _code_color1, _code_color2 } from './../utils/util' +import { resetSize } from './../utils/util' import { aesEncrypt } from '@/utils/ase' import { reqGet, reqCheck } from './../api/index' @@ -167,7 +167,7 @@ export default { setTimeout(() => { // var flag = this.comparePos(this.fontPos, this.checkPosArr); // 发送后端请求 - var captchaVerification = this.secretKey ? aesEncrypt(this.backToken + '---' + JSON.stringify(this.checkPosArr), this.secretKey) : this.backToken + '---' + JSON.stringify(this.checkPosArr) + const captchaVerification = this.secretKey ? aesEncrypt(this.backToken + '---' + JSON.stringify(this.checkPosArr), this.secretKey) : this.backToken + '---' + JSON.stringify(this.checkPosArr) const data = { captchaType: this.captchaType, 'pointJson': this.secretKey ? aesEncrypt(JSON.stringify(this.checkPosArr), this.secretKey) : JSON.stringify(this.checkPosArr), @@ -205,8 +205,8 @@ export default { // 获取坐标 getMousePos: function(obj, e) { - var x = e.offsetX - var y = e.offsetY + const x = e.offsetX + const y = e.offsetY return { x, y } }, // 创建坐标点 @@ -253,7 +253,7 @@ export default { }, // 坐标转换函数 pointTransfrom(pointArr, imgSize) { - var newPointArr = pointArr.map(p => { + const newPointArr = pointArr.map(p => { const x = Math.round(310 * p.x / parseInt(imgSize.imgWidth)) const y = Math.round(155 * p.y / parseInt(imgSize.imgHeight)) return { x, y } diff --git a/yudao-ui-admin/src/components/Verifition/Verify/VerifySlide.vue b/yudao-ui-admin/src/components/Verifition/Verify/VerifySlide.vue index b75db24ce3..0437e26056 100644 --- a/yudao-ui-admin/src/components/Verifition/Verify/VerifySlide.vue +++ b/yudao-ui-admin/src/components/Verifition/Verify/VerifySlide.vue @@ -193,7 +193,7 @@ export default { this.$parent.$emit('ready', this) }) - var _this = this + const _this = this window.removeEventListener('touchmove', function(e) { _this.move(e) @@ -228,11 +228,12 @@ export default { // 鼠标按下 start: function(e) { + let x e = e || window.event if (!e.touches) { // 兼容PC端 - var x = e.clientX + x = e.clientX } else { // 兼容移动端 - var x = e.touches[0].pageX + x = e.touches[0].pageX } this.startLeft = Math.floor(x - this.barArea.getBoundingClientRect().left) this.startMoveTime = +new Date() // 开始滑动的时间 @@ -247,15 +248,16 @@ export default { }, // 鼠标移动 move: function(e) { + let x e = e || window.event if (this.status && this.isEnd === false) { if (!e.touches) { // 兼容PC端 - var x = e.clientX + x = e.clientX } else { // 兼容移动端 - var x = e.touches[0].pageX + x = e.touches[0].pageX } - var bar_area_left = this.barArea.getBoundingClientRect().left - var move_block_left = x - bar_area_left // 小方块相对于父元素的left值 + const bar_area_left = this.barArea.getBoundingClientRect().left + let move_block_left = x - bar_area_left // 小方块相对于父元素的left值 if (move_block_left >= this.barArea.offsetWidth - parseInt(parseInt(this.blockSize.width) / 2) - 2) { move_block_left = this.barArea.offsetWidth - parseInt(parseInt(this.blockSize.width) / 2) - 2 } @@ -271,10 +273,10 @@ export default { // 鼠标松开 end: function() { this.endMovetime = +new Date() - var _this = this + const _this = this // 判断是否重合 if (this.status && this.isEnd === false) { - var moveLeftDistance = parseInt((this.moveBlockLeft || '').replace('px', '')) + const moveLeftDistance = parseInt((this.moveBlockLeft || '').replace('px', '')) moveLeftDistance = moveLeftDistance * 310 / parseInt(this.setSize.imgWidth) const data = { captchaType: this.captchaType, @@ -297,7 +299,10 @@ export default { } this.passFlag = true this.tipWords = `${((this.endMovetime - this.startMoveTime) / 1000).toFixed(2)}s验证成功` - var captchaVerification = this.secretKey ? aesEncrypt(this.backToken + '---' + JSON.stringify({ x: moveLeftDistance, y: 5.0 }), this.secretKey) : this.backToken + '---' + JSON.stringify({ x: moveLeftDistance, y: 5.0 }) + const captchaVerification = this.secretKey ? aesEncrypt(this.backToken + '---' + JSON.stringify({ + x: moveLeftDistance, + y: 5.0 + }), this.secretKey) : this.backToken + '---' + JSON.stringify({ x: moveLeftDistance, y: 5.0 }) setTimeout(() => { this.tipWords = '' this.$parent.closeBox() diff --git a/yudao-ui-admin/src/components/Verifition/utils/axios.js b/yudao-ui-admin/src/components/Verifition/utils/axios.js index 40ba2de78e..2f960bb541 100644 --- a/yudao-ui-admin/src/components/Verifition/utils/axios.js +++ b/yudao-ui-admin/src/components/Verifition/utils/axios.js @@ -21,8 +21,7 @@ service.interceptors.request.use( // response interceptor service.interceptors.response.use( response => { - const res = response.data - return res + return response.data }, error => { } diff --git a/yudao-ui-admin/src/components/bpmnProcessDesigner/package/designer/plugins/content-pad/contentPadProvider.js b/yudao-ui-admin/src/components/bpmnProcessDesigner/package/designer/plugins/content-pad/contentPadProvider.js index 447a99b311..979f5c72bc 100644 --- a/yudao-ui-admin/src/components/bpmnProcessDesigner/package/designer/plugins/content-pad/contentPadProvider.js +++ b/yudao-ui-admin/src/components/bpmnProcessDesigner/package/designer/plugins/content-pad/contentPadProvider.js @@ -49,14 +49,14 @@ export default function ContextPadProvider( } eventBus.on("create.end", 250, function(event) { - var context = event.context, - shape = context.shape; + const context = event.context, + shape = context.shape if (!hasPrimaryModifier(event) || !contextPad.isOpen(shape)) { return; } - var entries = contextPad.getEntries(shape); + const entries = contextPad.getEntries(shape) if (entries.replace) { entries.replace.action.click(event, shape); @@ -81,7 +81,7 @@ ContextPadProvider.$inject = [ ]; ContextPadProvider.prototype.getContextPadEntries = function(element) { - var contextPad = this._contextPad, + const contextPad = this._contextPad, modeling = this._modeling, elementFactory = this._elementFactory, connect = this._connect, @@ -90,15 +90,15 @@ ContextPadProvider.prototype.getContextPadEntries = function(element) { canvas = this._canvas, rules = this._rules, autoPlace = this._autoPlace, - translate = this._translate; + translate = this._translate - var actions = {}; + const actions = {} if (element.type === "label") { return actions; } - var businessObject = element.businessObject; + const businessObject = element.businessObject function startConnect(event, element) { connect.start(event, element); @@ -109,21 +109,21 @@ ContextPadProvider.prototype.getContextPadEntries = function(element) { } function getReplaceMenuPosition(element) { - var Y_OFFSET = 5; + const Y_OFFSET = 5 - var diagramContainer = canvas.getContainer(), - pad = contextPad.getPad(element).html; + const diagramContainer = canvas.getContainer(), + pad = contextPad.getPad(element).html - var diagramRect = diagramContainer.getBoundingClientRect(), - padRect = pad.getBoundingClientRect(); + const diagramRect = diagramContainer.getBoundingClientRect(), + padRect = pad.getBoundingClientRect() - var top = padRect.top - diagramRect.top; - var left = padRect.left - diagramRect.left; + const top = padRect.top - diagramRect.top + const left = padRect.left - diagramRect.left - var pos = { + const pos = { x: left, y: top + padRect.height + Y_OFFSET - }; + } return pos; } @@ -145,19 +145,19 @@ ContextPadProvider.prototype.getContextPadEntries = function(element) { } function appendStart(event, element) { - var shape = elementFactory.createShape(assign({ type: type }, options)); + const shape = elementFactory.createShape(assign({ type: type }, options)) create.start(event, shape, { source: element }); } - var append = autoPlace + const append = autoPlace ? function(event, element) { - var shape = elementFactory.createShape(assign({ type: type }, options)); + const shape = elementFactory.createShape(assign({ type: type }, options)) - autoPlace.append(element, shape); - } - : appendStart; + autoPlace.append(element, shape) + } + : appendStart return { group: "model", @@ -182,7 +182,7 @@ ContextPadProvider.prototype.getContextPadEntries = function(element) { } if (isAny(businessObject, ["bpmn:Lane", "bpmn:Participant"]) && isExpanded(businessObject)) { - var childLanes = getChildLanes(element); + const childLanes = getChildLanes(element) assign(actions, { "lane-insert-above": { @@ -302,9 +302,9 @@ ContextPadProvider.prototype.getContextPadEntries = function(element) { title: translate("Change type"), action: { click: function(event, element) { - var position = assign(getReplaceMenuPosition(element), { + const position = assign(getReplaceMenuPosition(element), { cursor: { x: event.x, y: event.y } - }); + }) popupMenu.open(element, "bpmn-replace", position); } @@ -350,7 +350,7 @@ ContextPadProvider.prototype.getContextPadEntries = function(element) { } // delete element entry, only show if allowed by rules - var deleteAllowed = rules.allowed("elements.delete", { elements: [element] }); + let deleteAllowed = rules.allowed('elements.delete', { elements: [element] }) if (isArray(deleteAllowed)) { // was the element returned as a deletion candidate? @@ -376,10 +376,10 @@ ContextPadProvider.prototype.getContextPadEntries = function(element) { // helpers ///////// function isEventType(eventBo, type, definition) { - var isType = eventBo.$instanceOf(type); - var isDefinition = false; + const isType = eventBo.$instanceOf(type) + let isDefinition = false - var definitions = eventBo.eventDefinitions || []; + const definitions = eventBo.eventDefinitions || [] forEach(definitions, function(def) { if (def.$type === definition) { isDefinition = true; diff --git a/yudao-ui-admin/src/components/bpmnProcessDesigner/package/designer/plugins/extension-moddle/activiti/activitiExtension.js b/yudao-ui-admin/src/components/bpmnProcessDesigner/package/designer/plugins/extension-moddle/activiti/activitiExtension.js index 1287e04178..48618f597b 100644 --- a/yudao-ui-admin/src/components/bpmnProcessDesigner/package/designer/plugins/extension-moddle/activiti/activitiExtension.js +++ b/yudao-ui-admin/src/components/bpmnProcessDesigner/package/designer/plugins/extension-moddle/activiti/activitiExtension.js @@ -1,12 +1,12 @@ "use strict"; -var some = require("min-dash").some; +const some = require('min-dash').some -var ALLOWED_TYPES = { - FailedJobRetryTimeCycle: ["bpmn:StartEvent", "bpmn:BoundaryEvent", "bpmn:IntermediateCatchEvent", "bpmn:Activity"], - Connector: ["bpmn:EndEvent", "bpmn:IntermediateThrowEvent"], - Field: ["bpmn:EndEvent", "bpmn:IntermediateThrowEvent"] -}; +const ALLOWED_TYPES = { + FailedJobRetryTimeCycle: ['bpmn:StartEvent', 'bpmn:BoundaryEvent', 'bpmn:IntermediateCatchEvent', 'bpmn:Activity'], + Connector: ['bpmn:EndEvent', 'bpmn:IntermediateThrowEvent'], + Field: ['bpmn:EndEvent', 'bpmn:IntermediateThrowEvent'] +} function is(element, type) { return element && typeof element.$instanceOf === "function" && element.$instanceOf(type); @@ -32,8 +32,8 @@ function anyType(element, types) { } function isAllowed(propName, propDescriptor, newElement) { - var name = propDescriptor.name, - types = ALLOWED_TYPES[name.replace(/activiti:/, "")]; + const name = propDescriptor.name, + types = ALLOWED_TYPES[name.replace(/activiti:/, '')] return name === propName && anyType(newElement, types); } @@ -42,8 +42,8 @@ function ActivitiModdleExtension(eventBus) { eventBus.on( "property.clone", function(context) { - var newElement = context.newElement, - propDescriptor = context.propertyDescriptor; + const newElement = context.newElement, + propDescriptor = context.propertyDescriptor this.canCloneProperty(newElement, propDescriptor); }, diff --git a/yudao-ui-admin/src/components/bpmnProcessDesigner/package/designer/plugins/extension-moddle/camunda/extension.js b/yudao-ui-admin/src/components/bpmnProcessDesigner/package/designer/plugins/extension-moddle/camunda/extension.js index a55236a3ab..77699c921c 100644 --- a/yudao-ui-admin/src/components/bpmnProcessDesigner/package/designer/plugins/extension-moddle/camunda/extension.js +++ b/yudao-ui-admin/src/components/bpmnProcessDesigner/package/designer/plugins/extension-moddle/camunda/extension.js @@ -1,17 +1,17 @@ "use strict"; -var isFunction = require("min-dash").isFunction, - isObject = require("min-dash").isObject, - some = require("min-dash").some; +const isFunction = require('min-dash').isFunction, + isObject = require('min-dash').isObject, + some = require('min-dash').some -var WILDCARD = "*"; +const WILDCARD = '*' function CamundaModdleExtension(eventBus) { - var self = this; + const self = this eventBus.on("moddleCopy.canCopyProperty", function(context) { - var property = context.property, - parent = context.parent; + const property = context.property, + parent = context.parent return self.canCopyProperty(property, parent); }); @@ -45,14 +45,14 @@ CamundaModdleExtension.prototype.canCopyProperty = function(property, parent) { CamundaModdleExtension.prototype.canHostInputOutput = function(parent) { // allowed in camunda:Connector - var connector = getParent(parent, "camunda:Connector"); + const connector = getParent(parent, 'camunda:Connector') if (connector) { return true; } // special rules inside bpmn:FlowNode - var flowNode = getParent(parent, "bpmn:FlowNode"); + const flowNode = getParent(parent, 'bpmn:FlowNode') if (!flowNode) { return false; @@ -62,15 +62,13 @@ CamundaModdleExtension.prototype.canHostInputOutput = function(parent) { return false; } - if (is(flowNode, "bpmn:SubProcess") && flowNode.get("triggeredByEvent")) { - return false; - } + return !(is(flowNode, "bpmn:SubProcess") && flowNode.get("triggeredByEvent")); + - return true; }; CamundaModdleExtension.prototype.canHostConnector = function(parent) { - var serviceTaskLike = getParent(parent, "camunda:ServiceTaskLike"); + const serviceTaskLike = getParent(parent, 'camunda:ServiceTaskLike') if (is(serviceTaskLike, "bpmn:MessageEventDefinition")) { // only allow on throw and end events @@ -81,13 +79,13 @@ CamundaModdleExtension.prototype.canHostConnector = function(parent) { }; CamundaModdleExtension.prototype.canHostIn = function(parent) { - var callActivity = getParent(parent, "bpmn:CallActivity"); + const callActivity = getParent(parent, 'bpmn:CallActivity') if (callActivity) { return true; } - var signalEventDefinition = getParent(parent, "bpmn:SignalEventDefinition"); + const signalEventDefinition = getParent(parent, 'bpmn:SignalEventDefinition') if (signalEventDefinition) { // only allow on throw and end events @@ -129,9 +127,9 @@ function getParent(element, type) { function isAllowedInParent(property, parent) { // (1) find property descriptor - var descriptor = property.$type && property.$model.getTypeDescriptor(property.$type); + const descriptor = property.$type && property.$model.getTypeDescriptor(property.$type) - var allowedIn = descriptor && descriptor.meta && descriptor.meta.allowedIn; + const allowedIn = descriptor && descriptor.meta && descriptor.meta.allowedIn if (!allowedIn || isWildcard(allowedIn)) { return true; diff --git a/yudao-ui-admin/src/components/bpmnProcessDesigner/package/designer/plugins/extension-moddle/flowable/flowableExtension.js b/yudao-ui-admin/src/components/bpmnProcessDesigner/package/designer/plugins/extension-moddle/flowable/flowableExtension.js index 4689024bda..b4ee875482 100644 --- a/yudao-ui-admin/src/components/bpmnProcessDesigner/package/designer/plugins/extension-moddle/flowable/flowableExtension.js +++ b/yudao-ui-admin/src/components/bpmnProcessDesigner/package/designer/plugins/extension-moddle/flowable/flowableExtension.js @@ -1,12 +1,12 @@ "use strict"; -var some = require("min-dash").some; +const some = require('min-dash').some -var ALLOWED_TYPES = { - FailedJobRetryTimeCycle: ["bpmn:StartEvent", "bpmn:BoundaryEvent", "bpmn:IntermediateCatchEvent", "bpmn:Activity"], - Connector: ["bpmn:EndEvent", "bpmn:IntermediateThrowEvent"], - Field: ["bpmn:EndEvent", "bpmn:IntermediateThrowEvent"] -}; +const ALLOWED_TYPES = { + FailedJobRetryTimeCycle: ['bpmn:StartEvent', 'bpmn:BoundaryEvent', 'bpmn:IntermediateCatchEvent', 'bpmn:Activity'], + Connector: ['bpmn:EndEvent', 'bpmn:IntermediateThrowEvent'], + Field: ['bpmn:EndEvent', 'bpmn:IntermediateThrowEvent'] +} function is(element, type) { return element && typeof element.$instanceOf === "function" && element.$instanceOf(type); @@ -32,8 +32,8 @@ function anyType(element, types) { } function isAllowed(propName, propDescriptor, newElement) { - var name = propDescriptor.name, - types = ALLOWED_TYPES[name.replace(/flowable:/, "")]; + const name = propDescriptor.name, + types = ALLOWED_TYPES[name.replace(/flowable:/, '')] return name === propName && anyType(newElement, types); } @@ -42,8 +42,8 @@ function FlowableModdleExtension(eventBus) { eventBus.on( "property.clone", function(context) { - var newElement = context.newElement, - propDescriptor = context.propertyDescriptor; + const newElement = context.newElement, + propDescriptor = context.propertyDescriptor this.canCloneProperty(newElement, propDescriptor); }, diff --git a/yudao-ui-admin/src/components/bpmnProcessDesigner/package/designer/plugins/palette/CustomPalette.js b/yudao-ui-admin/src/components/bpmnProcessDesigner/package/designer/plugins/palette/CustomPalette.js index f67cff951b..2967c33fec 100644 --- a/yudao-ui-admin/src/components/bpmnProcessDesigner/package/designer/plugins/palette/CustomPalette.js +++ b/yudao-ui-admin/src/components/bpmnProcessDesigner/package/designer/plugins/palette/CustomPalette.js @@ -10,18 +10,18 @@ F.prototype = PaletteProvider.prototype; // 核心,将父类的原型赋值给 // 利用中介函数重写原型链方法 F.prototype.getPaletteEntries = function() { - var actions = {}, + const actions = {}, create = this._create, elementFactory = this._elementFactory, spaceTool = this._spaceTool, lassoTool = this._lassoTool, handTool = this._handTool, globalConnect = this._globalConnect, - translate = this._translate; + translate = this._translate function createAction(type, group, className, title, options) { function createListener(event) { - var shape = elementFactory.createShape(assign({ type: type }, options)); + const shape = elementFactory.createShape(assign({ type: type }, options)) if (options) { shape.businessObject.di.isExpanded = options.isExpanded; @@ -30,7 +30,7 @@ F.prototype.getPaletteEntries = function() { create.start(event, shape); } - var shortType = type.replace(/^bpmn:/, ""); + const shortType = type.replace(/^bpmn:/, '') return { group: group, @@ -44,19 +44,19 @@ F.prototype.getPaletteEntries = function() { } function createSubprocess(event) { - var subProcess = elementFactory.createShape({ - type: "bpmn:SubProcess", + const subProcess = elementFactory.createShape({ + type: 'bpmn:SubProcess', x: 0, y: 0, isExpanded: true - }); + }) - var startEvent = elementFactory.createShape({ - type: "bpmn:StartEvent", + const startEvent = elementFactory.createShape({ + type: 'bpmn:StartEvent', x: 40, y: 82, parent: subProcess - }); + }) create.start(event, [subProcess, startEvent], { hints: { diff --git a/yudao-ui-admin/src/components/bpmnProcessDesigner/package/designer/plugins/palette/paletteProvider.js b/yudao-ui-admin/src/components/bpmnProcessDesigner/package/designer/plugins/palette/paletteProvider.js index e0c32380c2..a4d40f12bd 100644 --- a/yudao-ui-admin/src/components/bpmnProcessDesigner/package/designer/plugins/palette/paletteProvider.js +++ b/yudao-ui-admin/src/components/bpmnProcessDesigner/package/designer/plugins/palette/paletteProvider.js @@ -19,18 +19,18 @@ export default function PaletteProvider(palette, create, elementFactory, spaceTo PaletteProvider.$inject = ["palette", "create", "elementFactory", "spaceTool", "lassoTool", "handTool", "globalConnect", "translate"]; PaletteProvider.prototype.getPaletteEntries = function() { - var actions = {}, + const actions = {}, create = this._create, elementFactory = this._elementFactory, spaceTool = this._spaceTool, lassoTool = this._lassoTool, handTool = this._handTool, globalConnect = this._globalConnect, - translate = this._translate; + translate = this._translate function createAction(type, group, className, title, options) { function createListener(event) { - var shape = elementFactory.createShape(assign({ type: type }, options)); + const shape = elementFactory.createShape(assign({ type: type }, options)) if (options) { shape.businessObject.di.isExpanded = options.isExpanded; @@ -39,7 +39,7 @@ PaletteProvider.prototype.getPaletteEntries = function() { create.start(event, shape); } - var shortType = type.replace(/^bpmn:/, ""); + const shortType = type.replace(/^bpmn:/, '') return { group: group, @@ -53,19 +53,19 @@ PaletteProvider.prototype.getPaletteEntries = function() { } function createSubprocess(event) { - var subProcess = elementFactory.createShape({ - type: "bpmn:SubProcess", + const subProcess = elementFactory.createShape({ + type: 'bpmn:SubProcess', x: 0, y: 0, isExpanded: true - }); + }) - var startEvent = elementFactory.createShape({ - type: "bpmn:StartEvent", + const startEvent = elementFactory.createShape({ + type: 'bpmn:StartEvent', x: 40, y: 82, parent: subProcess - }); + }) create.start(event, [subProcess, startEvent], { hints: { diff --git a/yudao-ui-admin/src/components/bpmnProcessDesigner/package/penal/base/ElementBaseInfo.vue b/yudao-ui-admin/src/components/bpmnProcessDesigner/package/penal/base/ElementBaseInfo.vue index fecb42b09c..a032067cdc 100644 --- a/yudao-ui-admin/src/components/bpmnProcessDesigner/package/penal/base/ElementBaseInfo.vue +++ b/yudao-ui-admin/src/components/bpmnProcessDesigner/package/penal/base/ElementBaseInfo.vue @@ -76,7 +76,7 @@ export default { if (!value) { return; } - if (!value.match(/[a-zA-Z_][\-_.0-9_a-zA-Z$]*/)) { + if (!value.match(/[a-zA-Z_][\-_.0-9a-zA-Z$]*/)) { console.log('key 不满足 XML NCName 规则,所以不进行赋值'); return; } diff --git a/yudao-ui-admin/src/components/generator/js.js b/yudao-ui-admin/src/components/generator/js.js index 6f3c186811..f160593769 100644 --- a/yudao-ui-admin/src/components/generator/js.js +++ b/yudao-ui-admin/src/components/generator/js.js @@ -1,5 +1,5 @@ import { isArray } from 'util' -import { exportDefault, titleCase, deepClone } from '@/utils/index' +import { exportDefault, titleCase, deepClone } from '@/utils' import ruleTrigger from './ruleTrigger' const units = { diff --git a/yudao-ui-admin/src/directive/dialog/drag.js b/yudao-ui-admin/src/directive/dialog/drag.js index 83f8b65881..a19ae9afbe 100644 --- a/yudao-ui-admin/src/directive/dialog/drag.js +++ b/yudao-ui-admin/src/directive/dialog/drag.js @@ -5,7 +5,7 @@ export default { bind(el, binding, vnode, oldVnode) { const value = binding.value - if (value == false) return + if (value === false) return // 获取拖拽内容头部 const dialogHeaderEl = el.querySelector('.el-dialog__header'); const dragDom = el.querySelector('.el-dialog'); @@ -16,7 +16,7 @@ export default { dragDom.style.marginTop = 0; let width = dragDom.style.width; if (width.includes('%')) { - width = +document.body.clientWidth * (+width.replace(/\%/g, '') / 100); + width = +document.body.clientWidth * (+width.replace(/%/g, '') / 100); } else { width = +width.replace(/\px/g, ''); } @@ -32,12 +32,12 @@ export default { // 注意在ie中 第一次获取到的值为组件自带50% 移动之后赋值为px if (sty.left.includes('%')) { - styL = +document.body.clientWidth * (+sty.left.replace(/\%/g, '') / 100); - styT = +document.body.clientHeight * (+sty.top.replace(/\%/g, '') / 100); + styL = +document.body.clientWidth * (+sty.left.replace(/%/g, '') / 100); + styT = +document.body.clientHeight * (+sty.top.replace(/%/g, '') / 100); } else { styL = +sty.left.replace(/\px/g, ''); styT = +sty.top.replace(/\px/g, ''); - }; + } // 鼠标拖拽事件 document.onmousemove = function (e) { diff --git a/yudao-ui-admin/src/plugins/tab.js b/yudao-ui-admin/src/plugins/tab.js index cade9f75ca..00fd8fc0de 100644 --- a/yudao-ui-admin/src/plugins/tab.js +++ b/yudao-ui-admin/src/plugins/tab.js @@ -56,7 +56,7 @@ export default { }, // 添加tab页签 openPage(title, url, params) { - var obj = { path: url, meta: { title: title } } + const obj = { path: url, meta: { title: title } } store.dispatch('tagsView/addView', obj); return router.push({ path: url, query: params }); }, diff --git a/yudao-ui-admin/src/store/modules/permission.js b/yudao-ui-admin/src/store/modules/permission.js index caf99d59f1..4b53f7d8df 100644 --- a/yudao-ui-admin/src/store/modules/permission.js +++ b/yudao-ui-admin/src/store/modules/permission.js @@ -86,7 +86,7 @@ function filterAsyncRouter(asyncRouterMap, lastRouter = false, type = false) { } function filterChildren(childrenMap, lastRouter = false) { - var children = [] + let children = [] childrenMap.forEach((el, index) => { if (el.children && el.children.length) { if (el.component === 'ParentView' && !lastRouter) { diff --git a/yudao-ui-admin/src/store/modules/user.js b/yudao-ui-admin/src/store/modules/user.js index 7981df71c3..2e4ce999c2 100644 --- a/yudao-ui-admin/src/store/modules/user.js +++ b/yudao-ui-admin/src/store/modules/user.js @@ -1,4 +1,4 @@ -import {login, logout, getInfo, socialLogin, socialBindLogin, smsLogin} from '@/api/login' +import {login, logout, getInfo, socialLogin, smsLogin} from '@/api/login' import {setToken, removeToken} from '@/utils/auth' const user = { diff --git a/yudao-ui-admin/src/utils/index.js b/yudao-ui-admin/src/utils/index.js index 075fd5af4a..7a71498b52 100644 --- a/yudao-ui-admin/src/utils/index.js +++ b/yudao-ui-admin/src/utils/index.js @@ -4,14 +4,14 @@ import { parseTime } from './ruoyi' * 表格时间格式化 */ export function formatDate(cellValue) { - if (cellValue == null || cellValue == "") return ""; - var date = new Date(cellValue) - var year = date.getFullYear() - var month = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1 - var day = date.getDate() < 10 ? '0' + date.getDate() : date.getDate() - var hours = date.getHours() < 10 ? '0' + date.getHours() : date.getHours() - var minutes = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes() - var seconds = date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds() + if (cellValue == null || cellValue === "") return ""; + const date = new Date(cellValue) + const year = date.getFullYear() + const month = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1 + const day = date.getDate() < 10 ? '0' + date.getDate() : date.getDate() + const hours = date.getHours() < 10 ? '0' + date.getHours() : date.getHours() + const minutes = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes() + const seconds = date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds() return year + '-' + month + '-' + day + ' ' + hours + ':' + minutes + ':' + seconds } @@ -78,13 +78,13 @@ export function getQueryObject(url) { } /** - * @param {string} input value - * @returns {number} output value + * @param str + * @param str */ export function byteLength(str) { // returns the byte length of an utf8 string let s = str.length - for (var i = str.length - 1; i >= 0; i--) { + for (let i = str.length - 1; i >= 0; i--) { const code = str.charCodeAt(i) if (code > 0x7f && code <= 0x7ff) s++ else if (code > 0x7ff && code <= 0xffff) s += 2 @@ -136,8 +136,7 @@ export function param2Obj(url) { const index = v.indexOf('=') if (index !== -1) { const name = v.substring(0, index) - const val = v.substring(index + 1, v.length) - obj[name] = val + obj[name] = v.substring(index + 1, v.length) } }) return obj @@ -330,7 +329,7 @@ export function createUniqueString() { /** * Check if an element has a class - * @param {HTMLElement} elm + * @param ele * @param {string} cls * @returns {boolean} */ @@ -340,7 +339,7 @@ export function hasClass(ele, cls) { /** * Add class to element - * @param {HTMLElement} elm + * @param ele * @param {string} cls */ export function addClass(ele, cls) { @@ -349,7 +348,7 @@ export function addClass(ele, cls) { /** * Remove class from element - * @param {HTMLElement} elm + * @param ele * @param {string} cls */ export function removeClass(ele, cls) { diff --git a/yudao-ui-admin/src/utils/permission.js b/yudao-ui-admin/src/utils/permission.js index 1730e332c8..2c11f8a35b 100644 --- a/yudao-ui-admin/src/utils/permission.js +++ b/yudao-ui-admin/src/utils/permission.js @@ -15,10 +15,8 @@ export function checkPermi(value) { return all_permission === permission || permissionDatas.includes(permission) }) - if (!hasPermission) { - return false - } - return true + return hasPermission; + } else { console.error(`need roles! Like checkPermi="['system:user:add','system:user:edit']"`) return false @@ -40,12 +38,10 @@ export function checkRole(value) { return super_admin === role || permissionRoles.includes(role) }) - if (!hasRole) { - return false - } - return true + return hasRole; + } else { console.error(`need roles! Like checkRole="['admin','editor']"`) return false } -} \ No newline at end of file +} diff --git a/yudao-ui-admin/src/utils/request.js b/yudao-ui-admin/src/utils/request.js index b42cffd013..525155fe4f 100644 --- a/yudao-ui-admin/src/utils/request.js +++ b/yudao-ui-admin/src/utils/request.js @@ -49,12 +49,12 @@ service.interceptors.request.use(config => { let url = config.url + '?'; for (const propName of Object.keys(config.params)) { const value = config.params[propName]; - var part = encodeURIComponent(propName) + "="; + const part = encodeURIComponent(propName) + '=' if (value !== null && typeof(value) !== "undefined") { if (typeof value === 'object') { for (const key of Object.keys(value)) { let params = propName + '[' + key + ']'; - var subPart = encodeURIComponent(params) + "="; + const subPart = encodeURIComponent(params) + '=' url += subPart + encodeURIComponent(value[key]) + "&"; } } else { diff --git a/yudao-ui-admin/src/utils/ruoyi.js b/yudao-ui-admin/src/utils/ruoyi.js index 5920e39af2..fd5d109507 100644 --- a/yudao-ui-admin/src/utils/ruoyi.js +++ b/yudao-ui-admin/src/utils/ruoyi.js @@ -18,7 +18,7 @@ export function parseTime(time, pattern) { if ((typeof time === 'string') && (/^[0-9]+$/.test(time))) { time = parseInt(time) } else if (typeof time === 'string') { - time = time.replace(new RegExp(/-/gm), '/').replace('T', ' ').replace(new RegExp(/\.[\d]{3}/gm),''); + time = time.replace(new RegExp(/-/gm), '/').replace('T', ' ').replace(new RegExp(/\.\d{3}/gm),''); } if ((typeof time === 'number') && (time.toString().length === 10)) { time = time * 1000 @@ -34,7 +34,7 @@ export function parseTime(time, pattern) { s: date.getSeconds(), a: date.getDay() } - const time_str = format.replace(/{(y|m|d|h|i|s|a)+}/g, (result, key) => { + const time_str = format.replace(/{([ymdhisa])+}/g, (result, key) => { let value = formatObj[key] // Note: getDay() returns 0 on Sunday if (key === 'a') { @@ -102,9 +102,11 @@ export function addBeginAndEndTime(params, dateRange, propName) { // 字符串格式化(%s ) export function sprintf(str) { - var args = arguments, flag = true, i = 1; + const args = arguments + let flag = true + const i = 1 str = str.replace(/%s/g, function () { - var arg = args[i++]; + const arg = args[i++] if (typeof arg === 'undefined') { flag = false; return ''; @@ -116,7 +118,7 @@ export function sprintf(str) { // 转换字符串,undefined,null等转化为"" export function praseStrEmpty(str) { - if (!str || str == "undefined" || str == "null") { + if (!str || str === "undefined" || str === "null") { return ""; } return str; @@ -244,7 +246,7 @@ export function getPath(path) { * @returns */ export function divide(divisor, dividend) { - if(divisor == null || dividend == null || dividend == 0){ + if(divisor == null || dividend == null || dividend === 0){ return null; } return Math.floor(divisor/dividend*100)/100; diff --git a/yudao-ui-admin/src/utils/scroll-to.js b/yudao-ui-admin/src/utils/scroll-to.js index c5d8e04e07..132c65c11d 100644 --- a/yudao-ui-admin/src/utils/scroll-to.js +++ b/yudao-ui-admin/src/utils/scroll-to.js @@ -8,8 +8,10 @@ Math.easeInOutQuad = function(t, b, c, d) { } // requestAnimationFrame for Smart Animating http://goo.gl/sx5sts -var requestAnimFrame = (function() { - return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || function(callback) { window.setTimeout(callback, 1000 / 60) } +const requestAnimFrame = (function() { + return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || function(callback) { + window.setTimeout(callback, 1000 / 60) + } })() /** @@ -37,11 +39,11 @@ export function scrollTo(to, duration, callback) { const increment = 20 let currentTime = 0 duration = (typeof (duration) === 'undefined') ? 500 : duration - var animateScroll = function() { + const animateScroll = function() { // increment the time currentTime += increment // find the value with the quadratic in-out easing function - var val = Math.easeInOutQuad(currentTime, start, change, duration) + const val = Math.easeInOutQuad(currentTime, start, change, duration) // move the document.body move(val) // do the animation unless its over diff --git a/yudao-ui-admin/src/utils/validate.js b/yudao-ui-admin/src/utils/validate.js index adfa254250..60f9cb1f36 100644 --- a/yudao-ui-admin/src/utils/validate.js +++ b/yudao-ui-admin/src/utils/validate.js @@ -56,7 +56,7 @@ export function validAlphabets(str) { * @returns {Boolean} */ export function validEmail(email) { - const reg = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/ + const reg = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/ return reg.test(email) } @@ -65,10 +65,8 @@ export function validEmail(email) { * @returns {Boolean} */ export function isString(str) { - if (typeof str === 'string' || str instanceof String) { - return true - } - return false + return typeof str === 'string' || str instanceof String; + } /** diff --git a/yudao-ui-admin/src/views/bpm/definition/index.vue b/yudao-ui-admin/src/views/bpm/definition/index.vue index 0284fbd2f7..0ef67b2a3d 100644 --- a/yudao-ui-admin/src/views/bpm/definition/index.vue +++ b/yudao-ui-admin/src/views/bpm/definition/index.vue @@ -76,7 +76,6 @@