feat(web): 添加 sm-crypto 库支持 SM3 加密及导出功能

- 在登录模块中增加 SM3 加密调用逻辑
- 新增导出按钮和相关处理逻辑,支持统计分析数据导出
- 调整多个页面样式布局,优化组件结构与代码可读性
- 更新设备类型配置,新增“冷机”和“网关”类型
- 添加 download 工具函数,支持通过 URL 下载文件
- 配置 webpack 代理,支持文件下载路径转发
```
This commit is contained in:
zhoumengru
2025-09-23 14:19:36 +08:00
parent ee98556eec
commit 65d1ad93ef
15 changed files with 192 additions and 93 deletions

View File

@@ -51,7 +51,7 @@ import { ExclamationCircleOutlined } from '@ant-design/icons-vue'
import { createVNode } from 'vue'
import searchBox from '@/components/SearchBox.vue'
import { deviceTypeList } from '@/utils/config'
import { deviceTypeList } from '@/utils/config.js'
export default {
name: '',
components: {
@@ -112,8 +112,9 @@ export default {
},
//获取设备类型
getType(type) {
const deviceType = this.deviceTypeList.find((item) => item.value == type).label || ''
return deviceType
const device = this.deviceTypeList.find((item) => item.value == type) || null
if (device) return device.label
return type
},
async getList() {
this.$refs.comTable.loading = true
@@ -223,11 +224,11 @@ export default {
<style lang="scss" scoped>
.device {
height: 100%;
padding: 0 20px;
padding: 20px;
.content-table {
width: 100%;
height: calc(100% - 90px);
height: calc(100% - 52px);
}
}
</style>

View File

@@ -146,7 +146,6 @@ export default {
console.log(data)
},
operateForm(type, record = {}) {
console.log(type, record)
this.formStatus = type
switch (type) {
@@ -232,10 +231,10 @@ export default {
.policy {
// width: 100%;
height: 100%;
padding: 0 20px;
padding: 20px;
.content-table {
width: 100%;
height: calc(100% - 90px);
height: calc(100% - 52px);
}
}
</style>

View File

@@ -375,9 +375,9 @@ export default {
.role {
height: 100%;
padding: 0 20px;
padding: 20px;
.content-table {
height: calc(100% - 92px);
height: calc(100% - 52px);
}
}
</style>

View File

@@ -243,9 +243,9 @@ export default {
<style lang="scss" scoped>
.service {
height: 100%;
padding: 0 20px;
padding: 20px;
.content-table {
height: calc(100% - 92px);
height: calc(100% - 52px);
}
}
</style>

View File

@@ -277,9 +277,9 @@ export default {
.station {
height: 100%;
padding: 0 20px;
padding: 20px;
.content-table {
height: calc(100% - 92px);
height: calc(100% - 52px);
}
}
</style>

View File

@@ -211,9 +211,9 @@ export default {
<style lang="scss" scoped>
.user {
height: 100%;
padding: 0 20px;
padding: 20px;
.content-table {
height: calc(100% - 92px);
height: calc(100% - 52px);
}
}
</style>