소스 검색

😎代码清理

zuohuaijun 1 년 전
부모
커밋
3a388917dd

+ 0 - 3
Admin.NET/Admin.NET.Core/Logging/DatabaseLoggingWriter.cs

@@ -51,9 +51,6 @@ public class DatabaseLoggingWriter : IDatabaseLoggingWriter, IDisposable
             return;
         }
 
-        var loggingMonitor1 = JSON.Deserialize<JObject>(jsonStr);
-        // 不记录数据校验日志
-        if (loggingMonitor1["validation"] != null) return;
         var loggingMonitor = JSON.Deserialize<dynamic>(jsonStr);
         // 不记录数据校验日志
         if (loggingMonitor.validation != null) return;

+ 19 - 19
Web/src/components/scEcharts/index.vue

@@ -1,5 +1,5 @@
 <template>
-	<div ref="scEcharts" :style="{height:height, width:width}"></div>
+	<div ref="scEcharts" :style="{ height: height, width: width }"></div>
 </template>
 
 <script>
@@ -11,40 +11,40 @@ const unwarp = (obj) => obj && (obj.__v_raw || obj.valueOf() || obj);
 
 export default {
 	...echarts,
-	name: "scEcharts",
+	name: 'scEcharts',
 	props: {
-		height: {type: String, default: "100%"},
-		width: {type: String, default: "100%"},
-		nodata: {type: Boolean, default: false},
+		height: { type: String, default: '100%' },
+		width: { type: String, default: '100%' },
+		nodata: { type: Boolean, default: false },
 		option: {
-			type: Object, default: () => {
-			}
-		}
+			type: Object,
+			default: () => {},
+		},
 	},
 	data() {
 		return {
 			isActivat: false,
-			myChart: null
-		}
+			myChart: null,
+		};
 	},
 	watch: {
 		option: {
 			deep: true,
 			handler(v) {
 				unwarp(this.myChart).setOption(v);
-			}
-		}
+			},
+		},
 	},
 	computed: {
 		myOptions: function () {
 			return this.option || {};
-		}
+		},
 	},
 	activated() {
 		if (!this.isActivat) {
 			this.$nextTick(() => {
-				this.myChart.resize()
-			})
+				this.myChart.resize();
+			});
 		}
 	},
 	deactivated() {
@@ -54,7 +54,7 @@ export default {
 		this.isActivat = true;
 		this.$nextTick(() => {
 			this.draw();
-		})
+		});
 	},
 	methods: {
 		draw() {
@@ -62,7 +62,7 @@ export default {
 			myChart.setOption(this.myOptions);
 			this.myChart = myChart;
 			window.addEventListener('resize', () => myChart.resize());
-		}
-	}
-}
+		},
+	},
+};
 </script>

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 21 - 283
Web/src/views/home/index.vue


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 291 - 0
Web/src/views/home/temp.vue


+ 0 - 35
Web/src/views/home/test.vue

@@ -1,35 +0,0 @@
-<template>
-	<div v-if="pageLoading">
-		<el-main>
-			<el-card shadow="never">
-				<el-skeleton :rows="1"></el-skeleton>
-			</el-card>
-			<el-card shadow="never" style="margin-top: 15px">
-				<el-skeleton></el-skeleton>
-			</el-card>
-		</el-main>
-	</div>
-	<div v-else>
-		<widgets></widgets>
-	</div>
-</template>
-
-<script setup lang='ts' name='homepage'>
-import { defineAsyncComponent, onMounted, reactive } from 'vue';
-// import { useHomepage } from 'src/stores/homepage';
-const widgets = defineAsyncComponent(() => import('./widgets/index.vue'));
-// const homepageStore = useHomepage();
-
-const state = reactive({
-	name: 'dashboard',
-	pageLoading: true,
-	dashboard: '0',
-});
-
-onMounted(() => {
-	state.pageLoading = false;
-});
-</script>
-
-<style>
-</style>

+ 21 - 14
Web/src/views/home/widgets/components/about.vue

@@ -1,27 +1,34 @@
 <template>
 	<el-card shadow="hover" header="关于项目" class="item-background">
-		<p>高性能 / 精致 / 优雅。基于Vue3 + Element-Plus 的中后台前端解决方案,如果喜欢就点个星星支持一下。</p>
 		<p>
-			<a href='https://gitee.com/pi3b/Admin.NET.git' target="_blank">
-				<img src='https://gitee.com/pi3b/Admin.NET/badge/star.svg?theme=dark' alt='star' style="vertical-align: middle">
+			基于 .NET6 (Furion/SqlSugar) 实现的通用权限开发框架,前端采用
+			Vue3+Element-plus+Vite5,整合众多优秀技术和框架,模块插件式开发。集成多租户、缓存、数据校验、鉴权、事件总线、动态API、通讯、远程请求、任务调度、打印等众多黑科技。代码结构简单清晰,注释详尽,易于上手与二次开发,即便是复杂业务逻辑也能迅速实现,真正实现“开箱即用”。
+		</p>
+		<p>
+			<a href="https://gitee.com/zuohuaijun/Admin.NET.git" target="_blank">
+				<img src="https://gitee.com/zuohuaijun/Admin.NET/badge/star.svg?theme=dark" alt="star" style="vertical-align: middle" />
+				<img src="https://gitee.com/zuohuaijun/Admin.NET/badge/fork.svg?theme=dark" alt="fork" style="vertical-align: middle" />
+				<img src="https://img.shields.io/badge/license-MIT-yellow" alt="license" style="vertical-align: middle" />
 			</a>
 		</p>
 	</el-card>
 </template>
 
 <script>
-	export default {
-		title: "关于项目",
-		icon: "el-icon-setting",
-		description: "点个星星支持一下",
-		data() {
-			return {
-				
-			}
-		}
-	}
+export default {
+	title: '关于项目',
+	icon: 'el-icon-setting',
+	description: '点个星星支持一下',
+	data() {
+		return {};
+	},
+};
 </script>
 
 <style scoped>
-	.item-background p {color: #999;margin-top:10px;line-height: 1.8;}
+.item-background p {
+	color: #999;
+	margin-top: 10px;
+	line-height: 1.8;
+}
 </style>

+ 77 - 78
Web/src/views/home/widgets/components/echarts.vue

@@ -5,94 +5,93 @@
 </template>
 
 <script>
-	import scEcharts from '/@/components/scEcharts/index.vue';
+import scEcharts from '/@/components/scEcharts/index.vue';
 
-	export default {
-		title: "实时收入",
-		icon: "el-icon-data-line",
-		description: "Echarts组件演示",
-		components: {
-			scEcharts
-		},
-		data() {
-			return {
-				loading: true,
-				option: {}
-			}
-		},
-		created() {
-			var _this = this;
-			setTimeout(function() {
-				_this.loading = false
-			}, 500);
+export default {
+	title: '实时收入',
+	icon: 'el-icon-data-line',
+	description: 'Echarts组件演示',
+	components: {
+		scEcharts,
+	},
+	data() {
+		return {
+			loading: true,
+			option: {},
+		};
+	},
+	created() {
+		var _this = this;
+		setTimeout(function () {
+			_this.loading = false;
+		}, 500);
 
-			var option = {
-				tooltip: {
-					trigger: 'axis'
+		var option = {
+			tooltip: {
+				trigger: 'axis',
+			},
+			xAxis: {
+				boundaryGap: false,
+				type: 'category',
+				data: (function () {
+					var now = new Date();
+					var res = [];
+					var len = 30;
+					while (len--) {
+						res.unshift(now.toLocaleTimeString().replace(/^\D*/, ''));
+						now = new Date(now - 2000);
+					}
+					return res;
+				})(),
+			},
+			yAxis: [
+				{
+					type: 'value',
+					name: '价格',
+					splitLine: {
+						show: false,
+					},
 				},
-				xAxis: {
-					boundaryGap: false,
-					type: 'category',
-					data: (function (){
-						var now = new Date();
+			],
+			series: [
+				{
+					name: '收入',
+					type: 'line',
+					symbol: 'none',
+					lineStyle: {
+						width: 1,
+						color: '#409EFF',
+					},
+					areaStyle: {
+						opacity: 0.1,
+						color: '#79bbff',
+					},
+					data: (function () {
 						var res = [];
 						var len = 30;
 						while (len--) {
-							res.unshift(now.toLocaleTimeString().replace(/^\D*/,''));
-							now = new Date(now - 2000);
+							res.push(Math.round(Math.random() * 0));
 						}
 						return res;
-					})()
+					})(),
 				},
-				yAxis: [{
-					type: 'value',
-					name: '价格',
-					"splitLine": {
-						"show": false
-					}
-				}],
-				series: [
-					{
-						name: '收入',
-						type: 'line',
-						symbol: 'none',
-						lineStyle: {
-							width: 1,
-							color: '#409EFF'
-						},
-						areaStyle: {
-							opacity: 0.1,
-							color: '#79bbff'
-						},
-						data: (function (){
-							var res = [];
-							var len = 30;
-							while (len--) {
-								res.push(Math.round(Math.random() * 0));
-							}
-							return res;
-						})()
-					},
-				],
-			};
-			this.option = option;
-
-		},
-		mounted(){
-			 var _this = this;
-			setInterval(function (){
-				var o = _this.option;
-
-				o.series[0].data.shift()
-				o.series[0].data.push(Math.round(Math.random() * 100));
-
-				o.xAxis.data.shift();
-				o.xAxis.data.push((new Date()).toLocaleTimeString().replace(/^\D*/, ''));
+			],
+		};
+		this.option = option;
+	},
+	mounted() {
+		var _this = this;
+		setInterval(function () {
+			var o = _this.option;
 
+			o.series[0].data.shift();
+			o.series[0].data.push(Math.round(Math.random() * 100));
 
-				//_this.$refs.c1.myChart.setOption(o)
-			},2100)
+			o.xAxis.data.shift();
+			o.xAxis.data.push(new Date().toLocaleTimeString().replace(/^\D*/, ''));
 
-		},
-	}
+			//_this.$refs.c1.myChart.setOption(o)
+		}, 2100);
+	},
+};
 </script>

+ 7 - 8
Web/src/views/home/widgets/components/index.js

@@ -1,9 +1,8 @@
-import {markRaw} from 'vue';
-const resultComps = {}
-let requireComponent = import.meta.glob('./*.vue',{eager: true})
-Object.keys(requireComponent).forEach(fileName => {
+import { markRaw } from 'vue';
+const resultComps = {};
+let requireComponent = import.meta.glob('./*.vue', { eager: true });
+Object.keys(requireComponent).forEach((fileName) => {
 	//replace(/(\.\/|\.js)/g, '')
-	resultComps[fileName.replace(/^\.\/(.*)\.\w+$/, '$1')] = requireComponent[fileName].default
-})
-export default markRaw(resultComps)
-
+	resultComps[fileName.replace(/^\.\/(.*)\.\w+$/, '$1')] = requireComponent[fileName].default;
+});
+export default markRaw(resultComps);

+ 2 - 1
Web/src/views/home/widgets/components/myapp.vue

@@ -54,6 +54,7 @@
 import draggable from 'vuedraggable';
 import tool from '../tool';
 import { useRequestOldRoutes } from '/@/stores/requestOldRoutes';
+
 export default {
 	title: '快捷入口',
 	icon: 'el-icon-monitor',
@@ -113,7 +114,7 @@ export default {
 };
 </script>
 
-<style scoped lang='scss'>
+<style scoped lang="scss">
 .myMods {
 	list-style: none;
 	margin: -10px;

+ 21 - 17
Web/src/views/home/widgets/components/progress.vue

@@ -3,30 +3,34 @@
 		<div class="progress">
 			<el-progress type="dashboard" :percentage="85.5" :width="160">
 				<template #default="{ percentage }">
-				    <div class="percentage-value">{{ percentage }}%</div>
-				    <div class="percentage-label">当前进度</div>
-				  </template>
+					<div class="percentage-value">{{ percentage }}%</div>
+					<div class="percentage-label">当前进度</div>
+				</template>
 			</el-progress>
 		</div>
-
 	</el-card>
 </template>
 
 <script>
-	export default {
-		title: "进度环",
-		icon: "el-icon-odometer",
-		description: "进度环原子组件演示",
-		data() {
-			return {
-
-			}
-		}
-	}
+export default {
+	title: '进度环',
+	icon: 'el-icon-odometer',
+	description: '进度环原子组件演示',
+	data() {
+		return {};
+	},
+};
 </script>
 
 <style scoped>
-	.progress {text-align: center;}
-	.progress .percentage-value {font-size: 28px;}
-	.progress .percentage-label {font-size: 12px;margin-top: 10px;}
+.progress {
+	text-align: center;
+}
+.progress .percentage-value {
+	font-size: 28px;
+}
+.progress .percentage-label {
+	font-size: 12px;
+	margin-top: 10px;
+}
 </style>

+ 1 - 0
Web/src/views/home/widgets/components/time.vue

@@ -9,6 +9,7 @@
 
 <script>
 import tool from '../tool';
+
 export default {
 	title: '时钟',
 	icon: 'el-icon-clock',

+ 17 - 17
Web/src/views/home/widgets/components/ver.vue

@@ -1,11 +1,11 @@
 <template>
 	<el-card shadow="hover" header="版本信息">
-		<div style="height: 210px;text-align: center;">
-			<img src="/@/assets/img/ver.svg" style="height:140px" />
-			<h2 style="margin-top: 15px;">admin.net </h2>
-			<p style="margin-top: 5px;">最新版本 {{ ver }}</p>
+		<div style="height: 210px; text-align: center">
+			<img src="/@/assets/img/ver.svg" style="height: 140px" />
+			<h2 style="margin-top: 15px">Admin.Net</h2>
+			<p style="margin-top: 5px">最新版本 {{ ver }}</p>
 		</div>
-		<div style="margin-top: 20px;">
+		<div style="margin-top: 20px">
 			<el-button type="primary" plain round @click="golog">更新日志</el-button>
 			<el-button type="primary" plain round @click="gogit">gitee</el-button>
 		</div>
@@ -15,28 +15,28 @@
 <script>
 // import demo from '@/api/model/demo.js'
 export default {
-	title: "版本信息",
-	icon: "el-icon-monitor",
-	description: "当前项目版本信息",
+	title: '版本信息',
+	icon: 'el-icon-monitor',
+	description: '当前项目版本信息',
 	data() {
 		return {
-			ver: 'loading...'
-		}
+			ver: 'loading...',
+		};
 	},
 	mounted() {
-		this.getVer()
+		this.getVer();
 	},
 	methods: {
 		async getVer() {
 			// const ver = await demo.ver.get()
-			this.ver = '11'
+			this.ver = '11';
 		},
 		golog() {
-			window.open("https://gitee.com/pi3b/Admin.NET/issues")
+			window.open('https://gitee.com/zuohuaijun/Admin.NET/issues');
 		},
 		gogit() {
-			window.open("https://gitee.com/pi3b/Admin.NET.git")
-		}
-	}
-}
+			window.open('https://gitee.com/zuohuaijun/Admin.NET.git');
+		},
+	},
+};
 </script>

+ 19 - 17
Web/src/views/home/widgets/components/welcome.vue

@@ -2,20 +2,26 @@
 	<el-card shadow="hover" header="欢迎">
 		<div class="welcome">
 			<div class="logo">
-				<img src="/@/assets/logo.png">
-				<h2>欢迎体验myhomepage</h2>
+				<!-- <img src="/@/assets/logo.png" style="height: 150px;"/> -->
+				<h2>欢迎使用 Admin.NET</h2>
 			</div>
 			<div class="tips">
 				<div class="tips-item">
-					<div class="tips-item-icon"><el-icon><el-icon-menu /></el-icon></div>
+					<div class="tips-item-icon">
+						<el-icon><el-icon-menu /></el-icon>
+					</div>
 					<div class="tips-item-message">这里是项目控制台,你可以点击右上方的“自定义”按钮来添加移除或者移动部件。</div>
 				</div>
 				<div class="tips-item">
-					<div class="tips-item-icon"><el-icon><el-icon-promotion /></el-icon></div>
+					<div class="tips-item-icon">
+						<el-icon><el-icon-promotion /></el-icon>
+					</div>
 					<div class="tips-item-message">在提高前端算力、减少带宽请求和代码执行力上多次优化,并且持续着。</div>
 				</div>
 				<div class="tips-item">
-					<div class="tips-item-icon"><el-icon><el-icon-milk-tea /></el-icon></div>
+					<div class="tips-item-icon">
+						<el-icon><el-icon-milk-tea /></el-icon>
+					</div>
 					<div class="tips-item-message">项目目的:让前端工作更快乐</div>
 				</div>
 			</div>
@@ -28,25 +34,21 @@
 
 <script>
 export default {
-	title: "欢迎",
-	icon: "el-icon-present",
-	description: "项目特色以及文档链接",
+	title: '欢迎',
+	icon: 'el-icon-present',
+	description: '项目特色以及文档链接',
 	data() {
-		return {
-
-		}
+		return {};
 	},
 	methods: {
 		godoc() {
-			window.open("https://gitee.com/pi3b/Admin.NET.git")
-		}
-	}
-}
+			window.open('https://gitee.com/zuohuaijun/Admin.NET.git');
+		},
+	},
+};
 </script>
 
 <style scoped>
-.welcome {}
-
 .welcome .logo {
 	text-align: center;
 }

+ 10 - 14
Web/src/views/home/widgets/index.vue

@@ -106,7 +106,6 @@
 </template>
 
 <script>
-import { ConsoleLogger } from '@microsoft/signalr/dist/esm/Utils';
 import draggable from 'vuedraggable';
 import allComps from './components';
 import tool from './tool';
@@ -120,9 +119,9 @@ export default {
 			allComps: allComps,
 			selectLayout: [],
 			defaultGrid: {
-				//默认分栏数量和宽度 例如 [24] [18,6] [8,8,8] [6,12,6]
+				// 默认分栏数量和宽度 例如 [24] [18,6] [8,8,8] [6,12,6]
 				layout: [12, 6, 6],
-				//小组件分布,com取值:views/home/components 文件名
+				// 小组件分布,com取值:views/home/components 文件名
 				copmsList: [['welcome'], ['about', 'ver'], ['time', 'progress']],
 			},
 			grid: [],
@@ -153,8 +152,7 @@ export default {
 					return item === comp.key;
 				});
 				if (_item) {
-					//如果界面有,则右边不可选
-					comp.disabled = true;
+					comp.disabled = true; // 如果界面有,则右边不可选
 				}
 			}
 			return allCompsList;
@@ -171,7 +169,7 @@ export default {
 		},
 	},
 	methods: {
-		//开启自定义
+		// 开启自定义
 		custom() {
 			this.customizing = true;
 			const oldWidth = this.$refs.widgets.offsetWidth;
@@ -180,7 +178,7 @@ export default {
 				this.$refs.widgets.style.setProperty('transform', `scale(${scale})`);
 			});
 		},
-		//设置布局
+		// 设置布局
 		setLayout(layout) {
 			this.grid.layout = layout;
 			if (layout.join(',') == '24') {
@@ -189,12 +187,12 @@ export default {
 				this.grid.copmsList[2] = [];
 			}
 		},
-		//追加
+		// 追加
 		push(item) {
 			let target = this.grid.copmsList[0];
 			target.push(item.key);
 		},
-		//隐藏组件
+		// 隐藏组件
 		remove(item) {
 			var newCopmsList = this.grid.copmsList;
 			newCopmsList.forEach((obj, index) => {
@@ -202,20 +200,20 @@ export default {
 				newCopmsList[index] = newObj;
 			});
 		},
-		//保存
+		// 保存
 		save() {
 			this.customizing = false;
 			this.$refs.widgets.style.removeProperty('transform');
 			tool.data.set('grid', this.grid);
 		},
-		//恢复默认
+		// 恢复默认
 		backDefaul() {
 			this.customizing = false;
 			this.$refs.widgets.style.removeProperty('transform');
 			this.grid = JSON.parse(JSON.stringify(this.defaultGrid));
 			tool.data.remove('grid');
 		},
-		//关闭
+		// 关闭
 		close() {
 			this.customizing = false;
 			this.$refs.widgets.style.removeProperty('transform');
@@ -345,8 +343,6 @@ export default {
 	background: var(--el-button-hover-color);
 }
 
-.widgets-list {
-}
 .widgets-list-item {
 	display: flex;
 	flex-direction: row;

+ 95 - 93
Web/src/views/home/widgets/tool.js

@@ -7,53 +7,53 @@
 
 // import CryptoJS from 'crypto-js';
 
-const tool = {}
+const tool = {};
 
 /* localStorage */
 tool.data = {
 	set(key, data, datetime = 0) {
-        let cacheValue = {
-            content: data,
-            datetime: parseInt(datetime) === 0 ? 0 : new Date().getTime() + parseInt(datetime) * 1000
-        }
-        return localStorage.setItem(key, JSON.stringify(cacheValue))
+		let cacheValue = {
+			content: data,
+			datetime: parseInt(datetime) === 0 ? 0 : new Date().getTime() + parseInt(datetime) * 1000,
+		};
+		return localStorage.setItem(key, JSON.stringify(cacheValue));
 	},
 	get(key) {
-        try {
-            const value = JSON.parse(localStorage.getItem(key))
-            if (value) {
-                let nowTime = new Date().getTime()
-                if (nowTime > value.datetime && value.datetime != 0) {
-                    localStorage.removeItem(key)
-                    return null;
-                }
-                return value.content
-            }
-            return null
-        } catch (err) {
-            return null
-        }
+		try {
+			const value = JSON.parse(localStorage.getItem(key));
+			if (value) {
+				let nowTime = new Date().getTime();
+				if (nowTime > value.datetime && value.datetime != 0) {
+					localStorage.removeItem(key);
+					return null;
+				}
+				return value.content;
+			}
+			return null;
+		} catch (err) {
+			return null;
+		}
 	},
 	remove(key) {
-		return localStorage.removeItem(key)
+		return localStorage.removeItem(key);
 	},
 	clear() {
-		return localStorage.clear()
-	}
-}
+		return localStorage.clear();
+	},
+};
 
 /*sessionStorage*/
 tool.session = {
 	set(table, settings) {
-		var _set = JSON.stringify(settings)
+		var _set = JSON.stringify(settings);
 		return sessionStorage.setItem(table, _set);
 	},
 	get(table) {
 		var data = sessionStorage.getItem(table);
 		try {
-			data = JSON.parse(data)
+			data = JSON.parse(data);
 		} catch (err) {
-			return null
+			return null;
 		}
 		return data;
 	},
@@ -62,113 +62,115 @@ tool.session = {
 	},
 	clear() {
 		return sessionStorage.clear();
-	}
-}
+	},
+};
 
 /*cookie*/
 tool.cookie = {
-	set(name, value, config={}) {
+	set(name, value, config = {}) {
 		var cfg = {
 			expires: null,
 			path: null,
 			domain: null,
 			secure: false,
 			httpOnly: false,
-			...config
-		}
-		var cookieStr = `${name}=${escape(value)}`
-		if(cfg.expires){
-			var exp = new Date()
-			exp.setTime(exp.getTime() + parseInt(cfg.expires) * 1000)
-			cookieStr += `;expires=${exp.toGMTString()}`
+			...config,
+		};
+		var cookieStr = `${name}=${escape(value)}`;
+		if (cfg.expires) {
+			var exp = new Date();
+			exp.setTime(exp.getTime() + parseInt(cfg.expires) * 1000);
+			cookieStr += `;expires=${exp.toGMTString()}`;
 		}
-		if(cfg.path){
-			cookieStr += `;path=${cfg.path}`
+		if (cfg.path) {
+			cookieStr += `;path=${cfg.path}`;
 		}
-		if(cfg.domain){
-			cookieStr += `;domain=${cfg.domain}`
+		if (cfg.domain) {
+			cookieStr += `;domain=${cfg.domain}`;
 		}
-		document.cookie = cookieStr
+		document.cookie = cookieStr;
 	},
-	get(name){
-		var arr = document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)"))
-		if(arr != null){
-			return unescape(arr[2])
-		}else{
-			return null
+	get(name) {
+		var arr = document.cookie.match(new RegExp('(^| )' + name + '=([^;]*)(;|$)'));
+		if (arr != null) {
+			return unescape(arr[2]);
+		} else {
+			return null;
 		}
 	},
-	remove(name){
-		var exp = new Date()
-		exp.setTime(exp.getTime() - 1)
-		document.cookie = `${name}=;expires=${exp.toGMTString()}`
-	}
-}
+	remove(name) {
+		var exp = new Date();
+		exp.setTime(exp.getTime() - 1);
+		document.cookie = `${name}=;expires=${exp.toGMTString()}`;
+	},
+};
 
 /* Fullscreen */
 tool.screen = function (element) {
 	var isFull = !!(document.webkitIsFullScreen || document.mozFullScreen || document.msFullscreenElement || document.fullscreenElement);
-	if(isFull){
-		if(document.exitFullscreen) {
+	if (isFull) {
+		if (document.exitFullscreen) {
 			document.exitFullscreen();
-		}else if (document.msExitFullscreen) {
+		} else if (document.msExitFullscreen) {
 			document.msExitFullscreen();
-		}else if (document.mozCancelFullScreen) {
+		} else if (document.mozCancelFullScreen) {
 			document.mozCancelFullScreen();
-		}else if (document.webkitExitFullscreen) {
+		} else if (document.webkitExitFullscreen) {
 			document.webkitExitFullscreen();
 		}
-	}else{
-		if(element.requestFullscreen) {
+	} else {
+		if (element.requestFullscreen) {
 			element.requestFullscreen();
-		}else if(element.msRequestFullscreen) {
+		} else if (element.msRequestFullscreen) {
 			element.msRequestFullscreen();
-		}else if(element.mozRequestFullScreen) {
+		} else if (element.mozRequestFullScreen) {
 			element.mozRequestFullScreen();
-		}else if(element.webkitRequestFullscreen) {
+		} else if (element.webkitRequestFullscreen) {
 			element.webkitRequestFullscreen();
 		}
 	}
-}
+};
 
 /* 复制对象 */
 tool.objCopy = function (obj) {
 	return JSON.parse(JSON.stringify(obj));
-}
+};
 
 /* 日期格式化 */
-tool.dateFormat = function (date, fmt='yyyy-MM-dd hh:mm:ss') {
-	date = new Date(date)
+tool.dateFormat = function (date, fmt = 'yyyy-MM-dd hh:mm:ss') {
+	date = new Date(date);
 	var o = {
-		"M+" : date.getMonth()+1,                 //月份
-		"d+" : date.getDate(),                    //日
-		"h+" : date.getHours(),                   //小时
-		"m+" : date.getMinutes(),                 //分
-		"s+" : date.getSeconds(),                 //秒
-		"q+" : Math.floor((date.getMonth()+3)/3), //季度
-		"S"  : date.getMilliseconds()             //毫秒
+		'M+': date.getMonth() + 1, //月份
+		'd+': date.getDate(), //日
+		'h+': date.getHours(), //小时
+		'm+': date.getMinutes(), //分
+		's+': date.getSeconds(), //秒
+		'q+': Math.floor((date.getMonth() + 3) / 3), //季度
+		S: date.getMilliseconds(), //毫秒
 	};
-	if(/(y+)/.test(fmt)) {
-		fmt=fmt.replace(RegExp.$1, (date.getFullYear()+"").substr(4 - RegExp.$1.length));
+	if (/(y+)/.test(fmt)) {
+		fmt = fmt.replace(RegExp.$1, (date.getFullYear() + '').substr(4 - RegExp.$1.length));
 	}
-	for(var k in o) {
-		if(new RegExp("("+ k +")").test(fmt)){
-			fmt = fmt.replace(RegExp.$1, (RegExp.$1.length==1) ? (o[k]) : (("00"+ o[k]).substr((""+ o[k]).length)));
+	for (var k in o) {
+		if (new RegExp('(' + k + ')').test(fmt)) {
+			fmt = fmt.replace(RegExp.$1, RegExp.$1.length == 1 ? o[k] : ('00' + o[k]).substr(('' + o[k]).length));
 		}
 	}
 	return fmt;
-}
+};
 
 /* 千分符 */
 tool.groupSeparator = function (num) {
 	num = num + '';
-	if(!num.includes('.')){
-		num += '.'
+	if (!num.includes('.')) {
+		num += '.';
 	}
-	return num.replace(/(\d)(?=(\d{3})+\.)/g, function ($0, $1) {
-		return $1 + ',';
-	}).replace(/\.$/, '');
-}
+	return num
+		.replace(/(\d)(?=(\d{3})+\.)/g, function ($0, $1) {
+			return $1 + ',';
+		})
+		.replace(/\.$/, '');
+};
 
 // /* 常用加解密 */
 // tool.crypto = {
@@ -212,13 +214,13 @@ tool.groupSeparator = function (num) {
 // 查找树
 tool.treeFind = (tree, func) => {
 	for (const data of tree) {
-		if (func(data)) return data
+		if (func(data)) return data;
 		if (data.children) {
-			const res = tool.treeFind(data.children, func)
-			if (res) return res
+			const res = tool.treeFind(data.children, func);
+			if (res) return res;
 		}
 	}
-	return null
-}
+	return null;
+};
 
-export default tool
+export default tool;

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.