refactor: 优化系统监控、代码生成、任务调度相关代码

This commit is contained in:
2024-11-17 14:22:08 +08:00
parent 4edbe54fe3
commit 0bd0ff5e21
122 changed files with 365 additions and 338 deletions

View File

@@ -291,7 +291,7 @@ onMounted(() => {
})
</script>
<style lang="scss" scoped>
<style scoped lang="scss">
.logo {
width: 50px;
height: 50px;

View File

@@ -172,7 +172,7 @@ onMounted(() => {
})
</script>
<style lang="scss" scoped>
<style scoped lang="scss">
:deep(.arco-form-item.arco-form-item-has-help) {
margin-bottom: 5px;
}

View File

@@ -229,7 +229,7 @@ onMounted(() => {
})
</script>
<style lang="scss" scoped>
<style scoped lang="scss">
.input-width {
width: 196px;
}

View File

@@ -168,4 +168,4 @@ const onUpdate = async (id: string) => {
defineExpose({ onAdd, onUpdate })
</script>
<style lang="scss" scoped></style>
<style scoped lang="scss"></style>

View File

@@ -169,4 +169,4 @@ const onUpdate = (record: DeptResp) => {
}
</script>
<style lang="scss" scoped></style>
<style scoped lang="scss"></style>

View File

@@ -130,4 +130,4 @@ const onUpdate = async (id: string) => {
defineExpose({ onAdd, onUpdate })
</script>
<style lang="scss" scoped></style>
<style scoped lang="scss"></style>

View File

@@ -129,7 +129,10 @@ const reset = () => {
// 删除
const onDelete = (record: DictItemResp) => {
return handleDelete(() => deleteDictItem(record.id), { content: `是否确定删除 [${record.label}]`, showModal: true })
return handleDelete(() => deleteDictItem(record.id), {
content: `是否确定删除字典「${record.label}」?`,
showModal: true,
})
}
// 根据选中字典查询
@@ -150,7 +153,7 @@ const onUpdate = (record: DictItemResp) => {
}
</script>
<style lang="scss" scoped>
<style scoped lang="scss">
.page_header {
flex: 0 0 auto;
}

View File

@@ -97,4 +97,4 @@ const onUpdate = async (id: string) => {
defineExpose({ onAdd, onUpdate })
</script>
<style lang="scss" scoped></style>
<style scoped lang="scss"></style>

View File

@@ -34,7 +34,7 @@ const onClick = (mode: string) => {
}
</script>
<style lang="scss" scoped>
<style scoped lang="scss">
:deep(.arco-menu-inner) {
padding: 4px;

View File

@@ -149,7 +149,7 @@ onMounted(() => {
})
</script>
<style lang="scss" scoped>
<style scoped lang="scss">
:deep(.arco-tree-node) {
line-height: normal;
border-radius: var(--border-radius-medium);

View File

@@ -82,7 +82,7 @@ const close = () => {
}
</script>
<style lang="scss" scoped>
<style scoped lang="scss">
.audio-box {
width: 300px;
position: fixed;

View File

@@ -30,4 +30,4 @@ const form = reactive({
defineExpose({ formRef })
</script>
<style lang="scss" scoped></style>
<style scoped lang="scss"></style>

View File

@@ -23,4 +23,4 @@ onMounted(() => {
})
</script>
<style lang="scss" scoped></style>
<style scoped lang="scss"></style>

View File

@@ -16,7 +16,7 @@ import FileMain from './main/FileMain/index.vue'
defineOptions({ name: 'SystemFile' })
</script>
<style lang="scss" scoped>
<style scoped lang="scss">
.file-manage {
flex: 1;
padding: $margin;

View File

@@ -46,7 +46,7 @@ const onClickItem = (item: FileTypeListItem) => {
}
</script>
<style lang="scss" scoped>
<style scoped lang="scss">
:deep(.arco-card) {
.arco-card-header {
border-bottom-style: dashed;

View File

@@ -109,7 +109,7 @@ onMounted(() => {
})
</script>
<style lang="scss" scoped>
<style scoped lang="scss">
.statistic-space {
display: flex;
justify-content: center;

View File

@@ -84,7 +84,7 @@ const handleRightMenuClick = (mode: string, item: FileItem) => {
}
</script>
<style lang="scss" scoped>
<style scoped lang="scss">
.file-grid {
flex: 1;
margin-top: 12px;

View File

@@ -32,7 +32,7 @@ const getFileImg = computed<string>(() => {
})
</script>
<style lang="scss" scoped>
<style scoped lang="scss">
.file-image {
width: 100%;
height: 100%;

View File

@@ -115,7 +115,7 @@ const handleRightMenuClick = (mode: string, item: FileItem) => {
}
</script>
<style lang="scss" scoped>
<style scoped lang="scss">
:deep(.arco-table-td .arco-table-cell) {
padding-top: 0;
padding-bottom: 0;

View File

@@ -30,7 +30,7 @@ const onClickItem = (mode: string) => {
}
</script>
<style lang="scss" scoped>
<style scoped lang="scss">
.shadow {
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 0 6px rgba(0, 0, 0, 0.04);
border-radius: 4px;

View File

@@ -260,7 +260,7 @@ onMounted(() => {
})
</script>
<style lang="scss" scoped>
<style scoped lang="scss">
.file-main {
height: 100%;
background: var(--color-bg-1);

View File

@@ -246,4 +246,4 @@ const onUpdate = async (id: string) => {
defineExpose({ onAdd, onUpdate })
</script>
<style lang="scss" scoped></style>
<style scoped lang="scss"></style>

View File

@@ -191,4 +191,4 @@ const onUpdate = (record: MenuResp) => {
}
</script>
<style lang="scss" scoped></style>
<style scoped lang="scss"></style>

View File

@@ -62,7 +62,7 @@ const reset = () => {
defineExpose({ onDetail })
</script>
<style lang="scss" scoped>
<style scoped lang="scss">
.arco-link {
color: rgb(var(--gray-8));
}

View File

@@ -96,7 +96,7 @@ onUnmounted(() => {
})
</script>
<style lang="scss" scoped>
<style scoped lang="scss">
.container {
height: 100%;
width: 100%;

View File

@@ -62,7 +62,7 @@ onUnmounted(() => {
})
</script>
<style lang="scss" scoped>
<style scoped lang="scss">
.container {
height: 100%;
width: 100%;

View File

@@ -132,4 +132,4 @@ const onDetail = (record: NoticeResp) => {
}
</script>
<style lang="scss" scoped></style>
<style scoped lang="scss"></style>

View File

@@ -260,7 +260,7 @@ const onOpen = async () => {
defineExpose({ onOpen })
</script>
<style lang="scss" scoped>
<style scoped lang="scss">
fieldset {
padding: 15px 15px 0 15px;
margin-bottom: 10px;

View File

@@ -66,4 +66,4 @@ const onOpen = async (id: string) => {
defineExpose({ onOpen })
</script>
<style lang="scss" scoped></style>
<style scoped lang="scss"></style>

View File

@@ -87,7 +87,7 @@ const onOpen = async (id: string) => {
defineExpose({ onOpen })
</script>
<style lang="scss" scoped>
<style scoped lang="scss">
.permission :deep(.arco-descriptions-item-label-block) {
padding-right: 0;
}

View File

@@ -222,7 +222,7 @@ const onOpen = async (id: string) => {
defineExpose({ onOpen })
</script>
<style lang="scss" scoped>
<style scoped lang="scss">
fieldset {
padding: 15px 15px 0 15px;
margin-bottom: 15px;

View File

@@ -158,4 +158,4 @@ const onAssign = (record: RoleResp) => {
}
</script>
<style lang="scss" scoped></style>
<style scoped lang="scss"></style>

View File

@@ -104,7 +104,7 @@ const columns: TableInstanceColumns[] = [
{ title: '名称', dataIndex: 'name', slotName: 'name', width: 140, ellipsis: true, tooltip: true },
{ title: '编码', dataIndex: 'code', ellipsis: true, tooltip: true },
{ title: '状态', dataIndex: 'status', slotName: 'status', align: 'center' },
{ title: '类型', dataIndex: 'type', slotName: 'type', align: 'center' },
{ title: '类型', dataIndex: 'type', slotName: 'type', align: 'center', ellipsis: true, tooltip: true },
{ title: '访问密钥', dataIndex: 'accessKey', ellipsis: true, tooltip: true },
{ title: '终端节点', dataIndex: 'endpoint', ellipsis: true, tooltip: true },
{ title: '桶名称', dataIndex: 'bucketName', ellipsis: true, tooltip: true },
@@ -152,4 +152,4 @@ const onUpdate = (record: StorageResp) => {
}
</script>
<style lang="scss" scoped></style>
<style scoped lang="scss"></style>

View File

@@ -226,4 +226,4 @@ const onUpdate = async (id: string) => {
defineExpose({ onAdd, onUpdate })
</script>
<style lang="scss" scoped></style>
<style scoped lang="scss"></style>

View File

@@ -54,4 +54,4 @@ const onOpen = async (id: string) => {
defineExpose({ onOpen })
</script>
<style lang="scss" scoped></style>
<style scoped lang="scss"></style>

View File

@@ -186,7 +186,7 @@ const onOpen = () => {
defineExpose({ onOpen })
</script>
<style lang="scss" scoped>
<style scoped lang="scss">
fieldset {
padding: 15px 15px 0 15px;
margin-bottom: 15px;

View File

@@ -70,4 +70,4 @@ const onOpen = (id: string) => {
defineExpose({ onOpen })
</script>
<style lang="scss" scoped></style>
<style scoped lang="scss"></style>

View File

@@ -89,4 +89,4 @@ const onOpen = async (id: string) => {
defineExpose({ onOpen })
</script>
<style lang="scss" scoped></style>
<style scoped lang="scss"></style>

View File

@@ -100,7 +100,7 @@ onMounted(() => {
})
</script>
<style lang="scss" scoped>
<style scoped lang="scss">
:deep(.arco-tree-node-title-text) {
width: 100%;
white-space: nowrap;

View File

@@ -268,7 +268,7 @@ const onUpdateRole = (record: UserResp) => {
}
</script>
<style lang="scss" scoped>
<style scoped lang="scss">
.page_header {
flex: 0 0 auto;
}