# che-admin-frontend

> 基石系统PC端

Latest version **1.0.1** (published 2024-11-29) · 0 weekly downloads

## Install

```sh
npm install che-admin-frontend
pnpm add che-admin-frontend
yarn add che-admin-frontend
bun add che-admin-frontend
```

## Health

**Score 25/100 (F)** — status: maintenance-mode.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2024-11-29 |
| First published | 2024-11-29 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=12.0.0 |
| Dependencies | 28 |
| Unpacked size | 7.5 MB |
| Known vulnerabilities | 0 (+6 in 3 direct dependencies) |
| Install scripts | yes |
| Maintainers | stcy |

## Links

- npm: https://www.npmjs.com/package/che-admin-frontend
- npm.io page: https://npm.io/package/che-admin-frontend

## Dependencies (28)

- [qs](https://npm.io/package/qs.md) ^6.12.0
- [antd](https://npm.io/package/antd.md) ^5.15.3
- [react](https://npm.io/package/react.md) ^18.2.0
- [lodash](https://npm.io/package/lodash.md) ^4.17.21
- [moment](https://npm.io/package/moment.md) ^2.30.1
- [echarts](https://npm.io/package/echarts.md) ^5.5.0
- [numeral](https://npm.io/package/numeral.md) ^2.0.6
- [omit.js](https://npm.io/package/omit.js.md) ^2.0.2
- [qiankun](https://npm.io/package/qiankun.md) ^2.10.13
- [rc-util](https://npm.io/package/rc-util.md) ^5.38.1
- [showdown](https://npm.io/package/showdown.md) ^2.1.0
- [crypto-js](https://npm.io/package/crypto-js.md) 3.3.0
- [react-dom](https://npm.io/package/react-dom.md) ^18.2.0
- [react-svg](https://npm.io/package/react-svg.md) ^16.1.33
- [classnames](https://npm.io/package/classnames.md) ^2.5.1
- [file-loader](https://npm.io/package/file-loader.md) ^6.2.0
- [html2canvas](https://npm.io/package/html2canvas.md) ^1.4.1
- [querystring](https://npm.io/package/querystring.md) ^0.2.1
- [jssip-emicnet](https://npm.io/package/jssip-emicnet.md) 2.1.2
- [react-fittext](https://npm.io/package/react-fittext.md) ^1.0.0
- [path-to-regexp](https://npm.io/package/path-to-regexp.md) ^6.2.1
- [@ant-design/icons](https://npm.io/package/@ant-design/icons.md) ^4.8.1
- [copy-to-clipboard](https://npm.io/package/copy-to-clipboard.md) ^3.3.3
- [echarts-for-react](https://npm.io/package/echarts-for-react.md) ^3.0.2
- [@umijs/route-utils](https://npm.io/package/@umijs/route-utils.md) ^2.2.2
- [react-dev-inspector](https://npm.io/package/react-dev-inspector.md) ^1.1.1
- [@ant-design/pro-components](https://npm.io/package/@ant-design/pro-components.md) ^2.6.44
- [@ant-design/use-emotion-css](https://npm.io/package/@ant-design/use-emotion-css.md) 1.0.4

## Recent versions

- 1.0.1 (latest) — 2024-11-29

## README

# Ant Design Pro

This project is initialized with [Ant Design Pro](https://pro.ant.design). Follow is the quick guide for how to use.

## Environment Prepare

Initial git sub modules

```bash
$  git submodule init
$  git submodule update --recursive --remote
```

Install `node_modules`:

```bash
npm install
```

or

```bash
yarn
```

## Provided Scripts

Ant Design Pro provides some useful script to help you quick start and build with web project, code style check and test.

Scripts provided in `package.json`. It's safe to modify or add additional script:

### Start project

```bash
npm start
```

### Build project

```bash
npm run build
```

### Check code style

```bash
npm run lint
```

You can also use script to auto fix some lint error:

```bash
npm run lint:fix
```

### Test code

```bash
npm test
```

## More

You can view full document on our [official website](https://pro.ant.design). And welcome any feedback in our [github](https://github.com/ant-design/ant-design-pro).

## 开发规范

- 所有列表页面继续使用 dva model, 同时优化 searchForm 组件支持
- 由于存在 tab 分页模式，所有详情页面都不再使用 dva model。

慢慢的补充一下页面、组件、业务逻辑等的相关说明

## components 文件夹

## Todo List

此列表为将要优化的地方，优化后删除

### form-fields

由于之前写的 form-fields 组件分化的较多，其实是过渡设计了，需要进行删减有一些组件可以进行合并，现在只是先完成了功能，随后进行功能的合并，使之用起来更方便这几个组件都支持传 action 参数和 options 参数 action 包括 params 和 method

- Select 下拉选择组件，支持传入 action 或者 options
- Input 文本输入组件
- Cascader 级联选择组件
- Tree 树单选组件
- TreeSelect 树多选组件

### SearchForm 功能迭代

现在 searchForm 组件的入参有些不直观，component,label,name 是一定必传的字段，是不是可以优化成

```
  const searchFields = [
    [component, label, name, fieldProps]
  ]
  可以直观的看到配置的是什么，不需要写那么多父节点了
```

### form-snippet

移动出单参数文件夹中的 form-snippet 到公共区域，同时优化各部分的功能，提高可维护性 0323: 本期先做没有的，复用原来的，下期慢慢移动 0323: 关系人实现的不好，这次把这个组件先行优化到此处，下个版本替换掉出单参数中的同名文件

### 字段数据进行缓存

目前字段接口都是重复请求的，不好看，所有字典数据都可以进行必要的缓存，可以在项目刚加载时进行缓存

### 出单页面 form field 组件化

OCR 识别可以抽取成组件品牌型号选择抽取成组件需要脱敏的组件抽取成组件另外寻找 ProFormDependency 组件的替代者，最好把展示层和逻辑层进行分离，减少展示层的冗余代码

---
_Source: https://npm.io/package/che-admin-frontend · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
