diff --git a/src/views/Security/doorControl.vue b/src/views/Security/doorControl.vue new file mode 100644 index 0000000..cdcdb52 --- /dev/null +++ b/src/views/Security/doorControl.vue @@ -0,0 +1,414 @@ + + + + + + + + + + 故障 + + + + {{ device.name }} + + 运行状态: + + {{ device.status }} + + + + 设备类型: + {{ device.type }} + + + 安装位置: + {{ device.position }} + + + 最近操作: + {{ device.lastOperation }} + + + + + + 开启 + + + 关闭 + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/system/config/index.vue b/src/views/system/config/index.vue new file mode 100644 index 0000000..77d9f5a --- /dev/null +++ b/src/views/system/config/index.vue @@ -0,0 +1,316 @@ + + + + + + + + + + + + + + + + + + + 搜索 + 重置 + + + + + + 新增 + + + 修改 + + + 删除 + + + 导出 + + + 刷新缓存 + + + + + + + + + + + + + + + + + + + {{ parseTime(scope.row.createTime) }} + + + + + 修改 + 删除 + + + + + + + + + + + + + + + + + + + + + {{ dict.label }} + + + + + + + + + + + + + + diff --git a/src/views/system/dept/index.vue b/src/views/system/dept/index.vue new file mode 100644 index 0000000..5eb99cd --- /dev/null +++ b/src/views/system/dept/index.vue @@ -0,0 +1,283 @@ + + + + + + + + + + + + + 搜索 + 重置 + + + + + + 新增 + + + 展开/折叠 + + + + + + + + + + + + + + + {{ parseTime(scope.row.createTime) }} + + + + + 修改 + 新增 + 删除 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ dict.label }} + + + + + + + + + + + + + diff --git a/src/views/system/dict/data.vue b/src/views/system/dict/data.vue new file mode 100644 index 0000000..eb98606 --- /dev/null +++ b/src/views/system/dict/data.vue @@ -0,0 +1,362 @@ + + + + + + + + + + + + + + + + + + 搜索 + 重置 + + + + + + 新增 + + + 修改 + + + 删除 + + + 导出 + + + 关闭 + + + + + + + + + + {{ scope.row.dictLabel }} + {{ scope.row.dictLabel }} + + + + + + + + + + + + + {{ parseTime(scope.row.createTime) }} + + + + + 修改 + 删除 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ dict.label }} + + + + + + + + + + + + + + diff --git a/src/views/system/dict/index.vue b/src/views/system/dict/index.vue new file mode 100644 index 0000000..0d3dfd5 --- /dev/null +++ b/src/views/system/dict/index.vue @@ -0,0 +1,323 @@ + + + + + + + + + + + + + + + + + + + 搜索 + 重置 + + + + + + 新增 + + + 修改 + + + 删除 + + + 导出 + + + 刷新缓存 + + + + + + + + + + + + {{ scope.row.dictType }} + + + + + + + + + + + + {{ parseTime(scope.row.createTime) }} + + + + + 修改 + 删除 + + + + + + + + + + + + + + + + + + {{ dict.label }} + + + + + + + + + + + + + + diff --git a/src/views/system/log/index.vue b/src/views/system/log/index.vue new file mode 100644 index 0000000..8dacc4d --- /dev/null +++ b/src/views/system/log/index.vue @@ -0,0 +1,209 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + 查询 + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/system/menu/index.vue b/src/views/system/menu/index.vue new file mode 100644 index 0000000..78c49cf --- /dev/null +++ b/src/views/system/menu/index.vue @@ -0,0 +1,452 @@ + + + + + + + + + + + + + 搜索 + 重置 + + + + + + 新增 + + + 展开/折叠 + + + + + + + + + + + + + + + + + + + + + + {{ parseTime(scope.row.createTime) }} + + + + + 修改 + 新增 + 删除 + + + + + + + + + + + + + + + + + 目录 + 菜单 + 按钮 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 路由名称 + + + + + + + + + + + + 是否外链 + + + + 是 + 否 + + + + + + + + + + + 路由地址 + + + + + + + + + + + + + 组件路径 + + + + + + + + + + + + + + 权限字符 + + + + + + + + + + + + + 路由参数 + + + + + + + + + + + + 是否缓存 + + + + 缓存 + 不缓存 + + + + + + + + + + + 显示状态 + + + + {{ dict.label }} + + + + + + + + + + + 菜单状态 + + + + {{ dict.label }} + + + + + + + + + + + + + diff --git a/src/views/system/notice/index.vue b/src/views/system/notice/index.vue new file mode 100644 index 0000000..96dadcc --- /dev/null +++ b/src/views/system/notice/index.vue @@ -0,0 +1,292 @@ + + + + + + + + + + + + + + + + 搜索 + 重置 + + + + + + 新增 + + + 修改 + + + 删除 + + + + + + + + + + + + + + + + + + + + + + {{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }} + + + + + 修改 + 删除 + + + + + + + + + + + + + + + + + + + + + + + + + + {{ dict.label }} + + + + + + + + + + + + + + + + + + diff --git a/src/views/system/post/index.vue b/src/views/system/post/index.vue new file mode 100644 index 0000000..2608669 --- /dev/null +++ b/src/views/system/post/index.vue @@ -0,0 +1,287 @@ + + + + + + + + + + + + + + + + 搜索 + 重置 + + + + + + 新增 + + + 修改 + + + 删除 + + + 导出 + + + + + + + + + + + + + + + + + + {{ parseTime(scope.row.createTime) }} + + + + + 修改 + 删除 + + + + + + + + + + + + + + + + + + + + + {{ dict.label }} + + + + + + + + + + + + + + diff --git a/src/views/system/role/authUser.vue b/src/views/system/role/authUser.vue new file mode 100644 index 0000000..20be11c --- /dev/null +++ b/src/views/system/role/authUser.vue @@ -0,0 +1,179 @@ + + + + + + + + + + + + 搜索 + 重置 + + + + + + 添加用户 + + + 批量取消授权 + + + 关闭 + + + + + + + + + + + + + + + + + + {{ parseTime(scope.row.createTime) }} + + + + + 取消授权 + + + + + + + + + + diff --git a/src/views/system/role/index.vue b/src/views/system/role/index.vue new file mode 100644 index 0000000..dd7aedf --- /dev/null +++ b/src/views/system/role/index.vue @@ -0,0 +1,590 @@ + + + + + + + + + + + + + + + + + + + 搜索 + 重置 + + + + + 新增 + + + 修改 + + + 删除 + + + + + + + + + + + + + + + + + + + {{ parseTime(scope.row.createTime) }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 权限字符 + + + + + + + + + + {{ dict.label }} + + + + 展开/折叠 + 全选/全不选 + 父子联动 + + + + + + + + + + + + + + + + + + + + + + + + + + + 展开/折叠 + 全选/全不选 + 父子联动 + + + + + + + + + + + diff --git a/src/views/system/role/selectUser.vue b/src/views/system/role/selectUser.vue new file mode 100644 index 0000000..3e3d8aa --- /dev/null +++ b/src/views/system/role/selectUser.vue @@ -0,0 +1,144 @@ + + + + + + + + + + + + 搜索 + 重置 + + + + + + + + + + + + + + + + + {{ parseTime(scope.row.createTime) }} + + + + + + + + + + + + diff --git a/src/views/system/user/authRole.vue b/src/views/system/user/authRole.vue new file mode 100644 index 0000000..3935ab1 --- /dev/null +++ b/src/views/system/user/authRole.vue @@ -0,0 +1,123 @@ + + + 基本信息 + + + + + + + + + + + + + + + + 角色信息 + + + + {{ (pageNum - 1) * pageSize + scope.$index + 1 }} + + + + + + + + + {{ parseTime(scope.row.createTime) }} + + + + + + + + + 提交 + 返回 + + + + + + diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue new file mode 100644 index 0000000..e7fb84a --- /dev/null +++ b/src/views/system/user/index.vue @@ -0,0 +1,481 @@ + + + + + + + + + + + + + + + + + 查询 + + + 新增 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ dict.label }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/system/user/profile/index.vue b/src/views/system/user/profile/index.vue new file mode 100644 index 0000000..df23125 --- /dev/null +++ b/src/views/system/user/profile/index.vue @@ -0,0 +1,94 @@ + + + + + + + + 个人信息 + + + + + + + + + 用户名称 + {{ state.user.userName }} + + + 手机号码 + {{ state.user.phonenumber }} + + + 用户邮箱 + {{ state.user.email }} + + + 所属部门 + {{ state.user.dept.deptName }} / {{ state.postGroup }} + + + 所属角色 + {{ state.roleGroup }} + + + 创建日期 + {{ state.user.createTime }} + + + + + + + + + + 基本资料 + + + + + + + + + + + + + + + + + diff --git a/src/views/system/user/profile/resetPwd.vue b/src/views/system/user/profile/resetPwd.vue new file mode 100644 index 0000000..308229a --- /dev/null +++ b/src/views/system/user/profile/resetPwd.vue @@ -0,0 +1,59 @@ + + + + + + + + + + + + + 保存 + 关闭 + + + + + diff --git a/src/views/system/user/profile/userAvatar.vue b/src/views/system/user/profile/userAvatar.vue new file mode 100644 index 0000000..9dc42dd --- /dev/null +++ b/src/views/system/user/profile/userAvatar.vue @@ -0,0 +1,180 @@ + + + + + + + + + + + + + + + + + + + + 选择 + + + + + + + + + + + + + + + + + + 提 交 + + + + + + + + + \ No newline at end of file diff --git a/src/views/system/user/profile/userInfo.vue b/src/views/system/user/profile/userInfo.vue new file mode 100644 index 0000000..77f6924 --- /dev/null +++ b/src/views/system/user/profile/userInfo.vue @@ -0,0 +1,67 @@ + + + + + + + + + + + + + + 男 + 女 + + + + 保存 + 关闭 + + + + + diff --git a/src/views/tool/build/CodeTypeDialog.vue b/src/views/tool/build/CodeTypeDialog.vue new file mode 100644 index 0000000..de0beb7 --- /dev/null +++ b/src/views/tool/build/CodeTypeDialog.vue @@ -0,0 +1,71 @@ + + + + + + + {{ item.label }} + + + + + + + + + + 取消 + 确定 + + + + + \ No newline at end of file diff --git a/src/views/tool/build/DraggableItem.vue b/src/views/tool/build/DraggableItem.vue new file mode 100644 index 0000000..9ae2354 --- /dev/null +++ b/src/views/tool/build/DraggableItem.vue @@ -0,0 +1,68 @@ + + + + + + + {{ element.componentName }} + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/tool/build/IconsDialog.vue b/src/views/tool/build/IconsDialog.vue new file mode 100644 index 0000000..98d9c13 --- /dev/null +++ b/src/views/tool/build/IconsDialog.vue @@ -0,0 +1,115 @@ + + + + + 选择图标 + + + + + + + + + {{ icon }} + + + + + + + + diff --git a/src/views/tool/build/RightPanel.vue b/src/views/tool/build/RightPanel.vue new file mode 100644 index 0000000..5fe80fb --- /dev/null +++ b/src/views/tool/build/RightPanel.vue @@ -0,0 +1,906 @@ + + + + + + + + + + + + + + + + + + + + + {{ item.label }} + + + + + + + + + {{ activeData.componentName }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 选择 + + + + + + + + + 选择 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 默认 + + + 右侧 + + + + + + + 个字符 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text + + + picture + + + picture-card + + + + + + + + + + + + + + + + + 选项 + + + + + + + + + + + + + + + + + + + 添加选项 + + + + + + + 选项 + + + + 动态数据 + + + 静态数据 + + + + + + + + + + + + + + + + + + + + 添加父级 + + + + + + + + + 默认 + + + 按钮 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 较大 + + + 默认 + + + 较小 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 布局结构树 + + + + + {{ node.label }} + + + + + + + 正则校验 + + + + + + + + + + + + + + + + 添加规则 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/tool/build/TreeNodeDialog.vue b/src/views/tool/build/TreeNodeDialog.vue new file mode 100644 index 0000000..372d3af --- /dev/null +++ b/src/views/tool/build/TreeNodeDialog.vue @@ -0,0 +1,93 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/tool/build/index.vue b/src/views/tool/build/index.vue new file mode 100644 index 0000000..60159b0 --- /dev/null +++ b/src/views/tool/build/index.vue @@ -0,0 +1,653 @@ + + + + + + Form Generator + + + + + + 输入型组件 + + + + + + + {{ element.label }} + + + + + + 选择型组件 + + + + + + + {{ element.label }} + + + + + + 布局型组件 + + + + + + + {{ element.label }} + + + + + + + + + + + 导出vue文件 + + + 复制代码 + + + 清空 + + + + + + + + + + + + 从左侧拖入或点选组件进行表单设计 + + + + + + + + + + + + + + + diff --git a/src/views/tool/gen/basicInfoForm.vue b/src/views/tool/gen/basicInfoForm.vue new file mode 100644 index 0000000..8bfc373 --- /dev/null +++ b/src/views/tool/gen/basicInfoForm.vue @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/tool/gen/createTable.vue b/src/views/tool/gen/createTable.vue new file mode 100644 index 0000000..ef6f8f3 --- /dev/null +++ b/src/views/tool/gen/createTable.vue @@ -0,0 +1,46 @@ + + + + 创建表语句(支持多个建表语句): + + + + + + + + diff --git a/src/views/tool/gen/editTable.vue b/src/views/tool/gen/editTable.vue new file mode 100644 index 0000000..f0a832c --- /dev/null +++ b/src/views/tool/gen/editTable.vue @@ -0,0 +1,211 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ dict.dictName }} + {{ dict.dictType }} + + + + + + + + + + + + + 提交 + 返回 + + + + + + diff --git a/src/views/tool/gen/genInfoForm.vue b/src/views/tool/gen/genInfoForm.vue new file mode 100644 index 0000000..b416a89 --- /dev/null +++ b/src/views/tool/gen/genInfoForm.vue @@ -0,0 +1,305 @@ + + + + + + 生成模板 + + + + + + + + + + + 前端类型 + + + + + + + + + + + 生成包路径 + + + + + + + + + + + + 生成模块名 + + + + + + + + + + + + 生成业务名 + + + + + + + + + + + + 生成功能名 + + + + + + + + + + + + 生成代码方式 + + + + + zip压缩包 + 自定义路径 + + + + + + + 上级菜单 + + + + + + + + + + + + 自定义路径 + + + + + + + + + 最近路径快速选择 + + + + + 恢复默认的生成基础路径 + + + + + + + + + + + 其他信息 + + + + + 树编码字段 + + + + + + + + + + + + + 树父编码字段 + + + + + + + + + + + + + 树名称字段 + + + + + + + + + + + + + + 关联信息 + + + + + 关联子表的表名 + + + + + + + + + + + + + 子表关联的外键名 + + + + + + + + + + + + + + + + diff --git a/src/views/tool/gen/importTable.vue b/src/views/tool/gen/importTable.vue new file mode 100644 index 0000000..23dbf28 --- /dev/null +++ b/src/views/tool/gen/importTable.vue @@ -0,0 +1,126 @@ + + + + + + + + + + + + 搜索 + 重置 + + + + + + + + + + + + + + + + + + + diff --git a/src/views/tool/gen/index.vue b/src/views/tool/gen/index.vue new file mode 100644 index 0000000..d179f09 --- /dev/null +++ b/src/views/tool/gen/index.vue @@ -0,0 +1,308 @@ + + + + + + + + + + + + + + 搜索 + 重置 + + + + + + 生成 + + + 创建 + + + 导入 + + + 修改 + + + 删除 + + + + + + + + + {{(queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1}} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 复制 + {{ value }} + + + + + + + + + diff --git a/src/views/tool/swagger/index.vue b/src/views/tool/swagger/index.vue new file mode 100644 index 0000000..f29c40f --- /dev/null +++ b/src/views/tool/swagger/index.vue @@ -0,0 +1,9 @@ + + + + + diff --git a/vite/plugins/auto-import.js b/vite/plugins/auto-import.js new file mode 100644 index 0000000..ba51689 --- /dev/null +++ b/vite/plugins/auto-import.js @@ -0,0 +1,12 @@ +import autoImport from 'unplugin-auto-import/vite' + +export default function createAutoImport() { + return autoImport({ + imports: [ + 'vue', + 'vue-router', + 'pinia' + ], + dts: false + }) +} diff --git a/vite/plugins/compression.js b/vite/plugins/compression.js new file mode 100644 index 0000000..9767308 --- /dev/null +++ b/vite/plugins/compression.js @@ -0,0 +1,28 @@ +import compression from 'vite-plugin-compression' + +export default function createCompression(env) { + const { VITE_BUILD_COMPRESS } = env + const plugin = [] + if (VITE_BUILD_COMPRESS) { + const compressList = VITE_BUILD_COMPRESS.split(',') + if (compressList.includes('gzip')) { + // http://doc.ruoyi.vip/ruoyi-vue/other/faq.html#使用gzip解压缩静态文件 + plugin.push( + compression({ + ext: '.gz', + deleteOriginFile: false + }) + ) + } + if (compressList.includes('brotli')) { + plugin.push( + compression({ + ext: '.br', + algorithm: 'brotliCompress', + deleteOriginFile: false + }) + ) + } + } + return plugin +} diff --git a/vite/plugins/index.js b/vite/plugins/index.js new file mode 100644 index 0000000..7715adc --- /dev/null +++ b/vite/plugins/index.js @@ -0,0 +1,15 @@ +import vue from '@vitejs/plugin-vue' + +import createAutoImport from './auto-import' +import createSvgIcon from './svg-icon' +import createCompression from './compression' +import createSetupExtend from './setup-extend' + +export default function createVitePlugins(viteEnv, isBuild = false) { + const vitePlugins = [vue()] + vitePlugins.push(createAutoImport()) + vitePlugins.push(createSetupExtend()) + vitePlugins.push(createSvgIcon(isBuild)) + isBuild && vitePlugins.push(...createCompression(viteEnv)) + return vitePlugins +} diff --git a/vite/plugins/setup-extend.js b/vite/plugins/setup-extend.js new file mode 100644 index 0000000..eac072c --- /dev/null +++ b/vite/plugins/setup-extend.js @@ -0,0 +1,5 @@ +import setupExtend from 'unplugin-vue-setup-extend-plus/vite' + +export default function createSetupExtend() { + return setupExtend({}) +} diff --git a/vite/plugins/svg-icon.js b/vite/plugins/svg-icon.js new file mode 100644 index 0000000..f23beff --- /dev/null +++ b/vite/plugins/svg-icon.js @@ -0,0 +1,10 @@ +import { createSvgIconsPlugin } from 'vite-plugin-svg-icons' +import path from 'path' + +export default function createSvgIcon(isBuild) { + return createSvgIconsPlugin({ + iconDirs: [path.resolve(process.cwd(), 'src/assets/icons/svg')], + symbolId: 'icon-[dir]-[name]', + svgoOptions: isBuild + }) +}
{{ value }}