new-app-base
v0.3.1
Published
## Project setup ``` npm install ```
Readme
new-app-base
Project setup
npm installCompiles and hot-reloads for development
npm run serveCompiles and minifies for production
npm run buildRun your tests
npm run testLints and fixes files
npm run lintCustomize configuration
Vue.use(newappbase.default,{$store});
需要校验的表单获取数据暴露出来的方法
筛选数据【不对表单进行校验】暴露出来的方法
上传文件和上传图片用的baseurl 是 process.env.VUE_APP_URL
帮助框组件
属性 |介绍| 类型 | 默认值
-|-|-|-
helpType|帮助框类型 user, dept 需要在provide属性中声明 user【用户帮助框】dept【部门帮助框】|string|user
actionType|tab框标签类型 1:按组织架构搜索, 2:按角色类别搜索,3:按岗位类别搜索, 4:当前所述部门 需要在provide属性中声明 |array|[1,2,3,4]
echoData|数据回显对象[{name: 'AAA', id: 'w3eeed343434'}...]|array|[]
helpTitle|nav显示标题|string|帮助框
梳理一下业务逻辑
- 父级多选
下级置灰不让进行点击 - 底部
已选择可点击,点击弹出一个drawer,相当于一个购物车 - 多选不做父子级关联,因为数据是
异步获取
帮助框类型分析
一.人员帮助框
二.部门帮助框
部门帮助框需要两个接口
data/help/current/org获取根节点iddata/help/org/default获取节点下的子节点 是一棵树
