1.0.9 • Published 4 years ago

web-niu-mamform v1.0.9

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

new-app-base

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Run your tests

npm run test

Lints and fixes files

npm run lint

Customize configuration

See Configuration Reference.

Vue.use(newappbase.default,{$store});

需要校验的表单获取数据暴露出来的方法

筛选数据【不对表单进行校验】暴露出来的方法

上传文件和上传图片用的baseurl 是 process.env.VUE_APP_URL

帮助框组件

属性介绍类型默认值
helpType帮助框类型 user, dept 需要在provide属性中声明 user【用户帮助框】dept【部门帮助框】stringuser
actionTypetab框标签类型 1:按组织架构搜索, 2:按角色类别搜索,3:按岗位类别搜索, 4:当前所述部门 需要在provide属性中声明array1,2,3,4
echoData数据回显对象[{name: 'AAA', id: 'w3eeed343434'}...]array[]
helpTitlenav显示标题string帮助框

梳理一下业务逻辑

  • 父级多选 下级 置灰不让进行点击
  • 底部 已选择 可点击,点击弹出一个 drawer,相当于一个购物车
  • 多选不做父子级关联,因为数据是异步获取

帮助框类型分析

一.人员帮助框

二.部门帮助框

部门帮助框需要两个接口

  • data/help/current/org 获取根节点 id
  • data/help/org/default 获取节点下的子节点 是一棵树