Selaa lähdekoodia

😎代码清理及升级npm包依赖

zuohuaijun 2 vuotta sitten
vanhempi
commit
ea396c2947

+ 5 - 5
Web/package.json

@@ -15,7 +15,7 @@
 		"@microsoft/signalr": "^8.0.0",
 		"@vue-office/docx": "^1.6.0",
 		"@vue-office/excel": "^1.7.1",
-		"@vue-office/pdf": "^1.6.4",
+		"@vue-office/pdf": "^1.6.5",
 		"@wangeditor/editor": "^5.1.23",
 		"@wangeditor/editor-for-vue": "^5.1.12",
 		"animate.css": "^4.1.1",
@@ -58,15 +58,15 @@
 	},
 	"devDependencies": {
 		"@types/lodash-es": "^4.17.12",
-		"@types/node": "^20.11.28",
+		"@types/node": "^20.11.30",
 		"@types/nprogress": "^0.2.3",
 		"@types/sortablejs": "^1.15.8",
-		"@typescript-eslint/eslint-plugin": "^7.2.0",
-		"@typescript-eslint/parser": "^7.2.0",
+		"@typescript-eslint/eslint-plugin": "^7.3.1",
+		"@typescript-eslint/parser": "^7.3.1",
 		"@vitejs/plugin-vue": "^5.0.4",
 		"@vitejs/plugin-vue-jsx": "^3.1.0",
 		"@vue/compiler-sfc": "^3.4.21",
-		"code-inspector-plugin": "^0.10.0",
+		"code-inspector-plugin": "^0.10.1",
 		"eslint": "^8.57.0",
 		"eslint-plugin-vue": "^9.23.0",
 		"less": "^4.2.0",

+ 53 - 52
Web/src/components/table/modifyRecord.vue

@@ -1,56 +1,57 @@
 <template>
-    <el-popover placement="bottom" width="280" trigger="hover">
-        <template #reference>
-            <el-text type="primary" class="cursor-default">
-                <el-icon><ele-InfoFilled /></el-icon>详情
-            </el-text>
-        </template>
-        <el-descriptions direction="vertical" :column="2" border>
-            <el-descriptions-item width="140">
-                <template #label>
-                    <el-text>
-                        <el-icon><ele-UserFilled /></el-icon>创建者
-                    </el-text>
-                </template>
-                <el-tag>{{ props.data.createUserName ?? '无' }}</el-tag>
-            </el-descriptions-item>
-            <el-descriptions-item>
-                <template #label>
-                    <el-text>
-                        <el-icon><ele-Calendar /></el-icon>创建时间
-                    </el-text>
-                </template>
-                <el-tag>{{ props.data.createTime ?? '无' }}</el-tag>
-            </el-descriptions-item>
-            <el-descriptions-item>
-                <template #label>
-                    <el-text>
-                        <el-icon><ele-UserFilled /></el-icon>修改者
-                    </el-text>
-                </template>
-                <el-tag>{{ props.data.updateUserName ?? '无' }}</el-tag>
-            </el-descriptions-item>
-            <el-descriptions-item>
-                <template #label>
-                    <el-text>
-                        <el-icon><ele-Calendar /></el-icon>修改时间
-                    </el-text>
-                </template>
-                <el-tag>{{ props.data.updateTime ?? '无' }}</el-tag>
-            </el-descriptions-item>
-            <el-descriptions-item>
-                <template #label>
-                    <el-text>
-                        <el-icon><ele-Tickets /></el-icon>备注
-                    </el-text>
-                </template>
-                {{ props.data.remark ?? '无' }}
-            </el-descriptions-item>
-        </el-descriptions>
-    </el-popover>
+	<el-popover placement="bottom" width="280" trigger="hover">
+		<template #reference>
+			<el-text type="primary" class="cursor-default">
+				<el-icon><ele-InfoFilled /></el-icon>详情
+			</el-text>
+		</template>
+		<el-descriptions direction="vertical" :column="2" border>
+			<el-descriptions-item width="140">
+				<template #label>
+					<el-text>
+						<el-icon><ele-UserFilled /></el-icon>创建者
+					</el-text>
+				</template>
+				<el-tag>{{ props.data.createUserName ?? '无' }}</el-tag>
+			</el-descriptions-item>
+			<el-descriptions-item>
+				<template #label>
+					<el-text>
+						<el-icon><ele-Calendar /></el-icon>创建时间
+					</el-text>
+				</template>
+				<el-tag>{{ props.data.createTime ?? '无' }}</el-tag>
+			</el-descriptions-item>
+			<el-descriptions-item>
+				<template #label>
+					<el-text>
+						<el-icon><ele-UserFilled /></el-icon>修改者
+					</el-text>
+				</template>
+				<el-tag>{{ props.data.updateUserName ?? '无' }}</el-tag>
+			</el-descriptions-item>
+			<el-descriptions-item>
+				<template #label>
+					<el-text>
+						<el-icon><ele-Calendar /></el-icon>修改时间
+					</el-text>
+				</template>
+				<el-tag>{{ props.data.updateTime ?? '无' }}</el-tag>
+			</el-descriptions-item>
+			<el-descriptions-item>
+				<template #label>
+					<el-text>
+						<el-icon><ele-Tickets /></el-icon>备注
+					</el-text>
+				</template>
+				{{ props.data.remark ?? '无' }}
+			</el-descriptions-item>
+		</el-descriptions>
+	</el-popover>
 </template>
+
 <script lang="ts" setup>
 const props = defineProps<{
-    data: ModifyRecord
-}>()
-</script>
+	data: ModifyRecord;
+}>();
+</script>

+ 1 - 1
Web/src/types/views.d.ts

@@ -364,4 +364,4 @@ declare type ModifyRecord = {
 	updateUserName?: string | null;
 	updateTime?: string | null;
 	remark?: string | null;
-};
+};

+ 0 - 1
Web/src/views/system/config/index.vue

@@ -31,7 +31,6 @@
 <script lang="ts" setup name="sysConfig">
 import { onMounted, onUnmounted, reactive, ref, defineAsyncComponent, nextTick } from 'vue';
 import { ElMessageBox, ElMessage } from 'element-plus';
-import mittBus from '/@/utils/mitt';
 import EditConfig from '/@/views/system/config/component/editConfig.vue';
 import ModifyRecord from '/@/components/table/modifyRecord.vue';