No description
  • Vue 58.1%
  • JavaScript 39%
  • Less 1.7%
  • TypeScript 1%
  • Python 0.1%
Find a file
wangtangke 845b43d366 Merge branch 'pre'
* pre: (58 commits)
  fix:  【资产地图】新加坡项目中F6和F7的地图默认大小不一致 #59358
  fix: 修复资产地图3d模式下-高阶模型加载问题
  Translated using Weblate (English)
  Translated using Weblate (English)
  Translated using Weblate (English)
  Translated using Weblate (English)
  Translated using Weblate (English)
  Translated using Weblate (English)
  Translated using Weblate (English)
  Translated using Weblate (English)
  fix: 修复资产地图3d模式下-高阶模型加载问题
  build: 新增 .cursorrules 忽略文件
  feat: 更新yushu-component-web版本为1.3.25
  feat: amc设备分组-暂存,刷新页面,新增的分类没有展示在页面中
  Translated using Weblate (English)
  fix: 【资产列表】编辑设备实例详情时,当表头没有设备名称,编辑时设备名称展示为-- #59366
  perf: 数据分析选择时间再优化一下~
  perf: 数据分析选择对象样式优化一下~
  feat:  优化文件管理-文件夹权限为空时候的展示
  perf: 对话框优化一下~
  ...
2025-12-16 10:10:59 +08:00
.husky/_ Merge commit '2cc11b5512' into dev 2024-08-01 16:43:45 +08:00
.vscode feat: 优化关联 2025-03-28 22:38:20 +08:00
env feat: 移除部分无效log 2025-09-16 11:28:39 +08:00
nodeScripts Merge branch 'dev' into new-dev1 2025-05-09 16:49:06 +08:00
public fix: 资产处置项目初始化 2024-04-02 15:49:18 +08:00
sh feat: GraphMVC模块下缺失的替换内容 2025-06-06 14:30:49 +08:00
src Merge branch '1001-fix' into test 2025-11-20 14:28:09 +08:00
.eslintignore fix: 资产处置项目初始化 2024-04-02 15:49:18 +08:00
.eslintrc.cjs feat: 接入详情 2025-03-10 18:14:51 +08:00
.gitignore build: 新增 .cursorrules 忽略文件 2025-11-06 11:09:05 +08:00
.npmrc build: 移除部分项目未使用依赖 2024-06-18 17:12:40 +08:00
.prettierrc.cjs feat: 调整env文件 2024-06-18 10:55:51 +08:00
commitlint.config.cjs fix: 调整脚手架 2024-04-08 19:18:37 +08:00
global.d.ts Merge commit '6fcf7badbb' into localization1 2025-04-15 15:53:20 +08:00
index.html build: 添加公共前缀-暂定 2025-07-04 09:59:25 +08:00
package.json feat: 更新yushu-component-web版本为1.3.25 2025-11-04 15:19:21 +08:00
pnpm-lock.yaml feat: 更新yushu-component-web版本为1.3.25 2025-11-04 15:19:21 +08:00
postcss-prefix-selector.js core:更新build构建方式 2025-07-04 09:59:51 +08:00
postcss.config.js core:更新build构建方式 2025-07-04 09:59:51 +08:00
README.md feat: 项目能独立运行 2025-06-30 14:42:13 +08:00
tsconfig.json Merge branch 'test' into feature-meoi 2024-08-16 20:42:52 +08:00
tsconfig.node.json fix: 资产处置项目初始化 2024-04-02 15:49:18 +08:00
vite.config.js feat: 打包时 保持 类名和函数名 不然会出错 2025-08-14 16:26:48 +08:00

基于 Vite3 + Vue3 + TypeScript 项目模版

运行

  • 初始化 git: git init (否则 husky 会报错, 后期修复)
  • 安装依赖pnpm install
  • 本地运行pnpm run dev
  • 打包: pnpm run build
  • 修复: pnpm run lint:fix
  • 打包分析: pnpm run report

安装

pnpm install

目录结构及相关功能说明

├── README.md 说明文档
├── asset-manage-web 构建后的静态资源
├── commitlint.config.cjs 提交规范
├── env 环境变量
├── global.d.ts
├── index.html
├── package.json npm相关信息
├── pnpm-lock.yaml pnpm 相关信息
├── public
│   └── vite.svg
├── src
│   ├── App.vue 主视图
│   ├── apis 请求方法合集
│   │   ├── assetDisposal.ts
│   │   ├── common.ts
│   │   ├── disposalprocess.ts
│   │   └── leavepost.ts
│   ├── assets
│   │   ├── font 字体图标库
│   │   │   ├── demo.css
│   │   │   ├── demo_index.html
│   │   │   ├── font-css.css
│   │   │   ├── iconfont.css
│   │   │   ├── iconfont.js
│   │   │   ├── iconfont.json
│   │   │   ├── iconfont.ttf
│   │   │   ├── iconfont.woff
│   │   │   └── iconfont.woff2
│   │   ├── imgs 静态图片文件
│   │   │   └── assetDisposal
│   │   │       ├── BFGH.svg
│   │   │       ├── LYAZ.svg
│   │   │       ├── SJGH.svg
│   │   │       ├── ZCFC.svg
│   │   │       ├── ZCQY.svg
│   │   │       ├── ZCXZ.svg
│   │   │       ├── add.svg
│   │   │       ├── bg.svg
│   │   │       └── download.svg
│   │   ├── svg
│   │   │   └── noData.svg
│   │   └── vue.svg
│   ├── config.js            配置信息 (暂时没用到)
│   ├── hooks
│   │   └── setupHelper.js   钩子函数 (暂时没用到)
│   ├── main.ts              入口文件 相关qiankun 加载,初始化
│   ├── router
│   │   ├── index.ts         路由配置
│   │   └── routes.ts       各个页面的router配置
│   ├── store
│   ├── store
│   │   ├── assetDisposalStore.ts   事项详情页面 store
│   │   ├── baseStore.ts            基础信息 store  (人员、项目、权限)
│   │   └── index.ts
│   ├── styles 默认的样式文件
│   │   ├── calendar.less
│   │   ├── common.css
│   │   ├── components.less
│   │   ├── font.less
│   │   ├── gap.less
│   │   ├── grid.less
│   │   ├── index.less
│   │   ├── utils.less
│   │   └── var.less
│   ├── types 常用类型文件
│   │   ├── AssetDisposal.ts
│   │   ├── Params.ts
│   │   ├── auto-imports.d.ts
│   │   ├── common.ts
│   │   ├── components.d.ts
│   │   ├── env.d.ts
│   │   └── vite-env.d.ts
│   ├── utils 常用公共方法
│   │   ├── bus.ts             事件总线基于mitt实例
│   │   ├── getTime.ts          通用时间对象
│   │   ├── globalVariables.ts  全局变量
│   │   ├── http.ts             通用请求方法
│   │   ├── handleNumToChinese.ts   处理数字金额为中文金额
│   │   ├── index.ts            主要导出函数
│   │   ├── persagyTools.ts    常用加密解密方法用于解密项目ID
│   │   ├── qiankun.js          qiankun 相关方法
│   │   └── tools.ts           工具方法
│   └── views
│       ├── assetDisposal 资产处置页面
│       │   ├── components 资产处置相关组件
│       │   │   ├── applyRecord
│       │   │   │   └── index.vue
│       │   │   ├── assetApply
│       │   │   │   ├── BFGH.vue
│       │   │   │   ├── LYAZ.vue
│       │   │   │   ├── SJGH.vue
│       │   │   │   ├── ZCFC.vue
│       │   │   │   ├── ZCQY.vue
│       │   │   │   ├── ZCXZ.vue
│       │   │   │   ├── addDevices.vue
│       │   │   │   ├── index.vue
│       │   │   │   ├── left_read_info.vue
│       │   │   │   ├── readOnly_left.vue
│       │   │   │   ├── stepRight.vue
│       │   │   │   └── technicalUpload.vue
│       │   │   ├── assetDisposalCard
│       │   │   │   ├── confirmModal
│       │   │   │   │   └── index.vue
│       │   │   │   ├── index.less
│       │   │   │   ├── index.vue
│       │   │   │   └── matterDetails
│       │   │   │       ├── index.less
│       │   │   │       └── index.vue
│       │   │   ├── assetDisposalHeader
│       │   │   │   ├── index.less
│       │   │   │   └── index.vue
│       │   │   └── assetMatter
│       │   │       ├── index.less
│       │   │       └── index.vue
│       │   ├── index.less
│       │   └── index.vue
│       ├── dimissionAssetManage  离岗资产清单
│       │   ├── components      离岗资产清单相关组件
│       │   │   ├── addEquip.vue
│       │   │   └── assetDetails.vue
│       │   └── index.vue
│       └── disposalProcess   处置流程
│           ├── components    处置流程相关组件
│           │   ├── addProcess.vue
│           │   ├── processBox.vue
│           │   ├── processContent.vue
│           │   ├── processHeader.vue
│           │   ├── steps.vue
│           │   └── tag.vue
│           └── index.vue
├── tsconfig.json  typescript相关配置
├── tsconfig.node.json  typescript相关配置
└── vite.config.ts  Vite 相关配置

开发调试

1.pnpm run dev 2.获取对应得qiankun porps 对象(页面加载完成后会在控制台打印出来) 4.访问页面

开发环境和生产环境的差异

  • 1、挂载的DOM 生产从props 中获取,开发环境默 #asset-web-app
  • 2、createWebHistory方法中的base 参数。生产从props 中获取,开发环境默认 "/"
  • 3、axios 中的baseURL,生产从props 中获取,开发环境默认 "/"

特殊注意

  • 1.调用的运维系统的格式和其他接口不一致需要转换为 Content-Type:application/x-www-form-urlencoded ,且需要将数据放到jsonString的属性中 在 http.ts 中实现
  • 2.文件上传的的时候会先上传到mid-frame-server 中,然后再调用的 /mid-frame-server/synchronize 进行同步到文件服务器