1.6.7 • Published 1 month ago

checked-pick-app v1.6.7

Weekly downloads
-
License
ISC
Repository
-
Last release
1 month ago

checked-pick-app

App端 选主体、部门、人员插件

安装

vue2.7 以上版本安装指令

npm i checked-pick-app -D

vue2.7 以下版本安装指令

npm i @vue/composition-api -D
npm i checked-pick-app -D

使用

在需要使用的组件内引入

import { departPerson } from 'checked-pick-app'
export default {
  components: { departPerson }
}

在页面使用

<template>
  <departPerson  v-bind="entity" @callback="handleCallback" @cancel="handleCancel">
    
  </departPerson>
</template>
<script>
import 'checked-pick-app/style.css'
import { departPerson } from 'checked-pick-app'
export default {
  components: { departPerson },
  data() {
    return {
      visible: true,
      entity: {
        source: '0',
        type: '5',
        request: request,       
        businessId: '0003',
        codeType: [1, 2, 3],              
        multiple: true,      
      },
    }
  },
  methods: {
    handleCallback(res) {
      console.log('callback_OK', res)
    },
    handleCancel() {
      console.log('cancel_No')
    }
  }
}
</script>

属性-Attributes

参数类型默认值说明
sourceString'0'来源 0-平台 1-流程引擎
typeString'0'类型 0-当前公司 1-当前公司下递归分子公司(不含当前公司) 2-当前主体及递归分子公司 3-当前主体+直属分子公司(即当前公司+一级分子公司) 4-当前主体下直属分子公司(即当前公司下一级分子公司(不含当前公司)) 5-集团及递归分子公司6-集团下递归分子公司(不含集团) 7-集团直属分子公司(即集团下一级子公司不含集团) 8-集团及直属分子公司(即集团+集团下一级子公司)
requestObjectnullaxios接口请求方法 需要包含 get post 请求方式
businessIdString''业务Id
codeTypeArray[]可选类型 1-主体 2-部门 3-人员
multipleBooleanfalse是否多选 true-多选 false-单选
maxMultipleNumber0多选时最多选择多少项 0表示无限制
deptCodeString''部门id
subjectNameString''主体名称
isLoadingCloseBooleanfalse手动控制关闭loading 【根据业务id存储选中数据才生效】
checkedArrayArray[]选中的数据 checkedinfo,checkedinfo
isTitleBooleantrue显示标题 显示-true 不显示-false

checkedinfo-对象说明

注意:type=2或4时 subjectId必填 type=3时 传入uid时 deptId、subjectId不必填 传入id时 subjectId必传

属性名类型说明
typeString类型 1-主体 2-部门 3-人员 4-当前部门及子部门
idStringid(主体、部门、人员)
subjectIdString主体id
uidStringuid
deptIdString部门id
isDeleteNoBoolean禁用删除 true-禁用 false-不禁用

插槽-Slots

checkedUser 选中人员区域-关闭图标前面

插槽返回值

属性名说明
id人员id
name人员名称
uid用户id

事件-Events

事件名称说明回调参数
callback点击确定按钮 回调事件checkedArray
cancel点击取消按钮

callback 事件回调参数checkedArray说明

属性名类型说明
typeString类型 1-主体 2-部门 3-人员 4-当前部门及子部门
idStringid(主体、部门、人员)
uidStringuid
nameString名称
ancestorsString祖级Id
ancestorNamesString祖级名称
phoneString手机号码
subjectIdString主体id
sexString性别 0-女 1-男
avatarString头像
1.6.7

1 month ago

1.6.6

2 months ago

1.6.4

5 months ago

1.6.5

5 months ago

1.6.3

5 months ago

1.6.2

5 months ago

1.6.1

5 months ago

1.6.0

5 months ago

1.4.6

9 months ago

1.4.5

9 months ago

1.4.4

10 months ago

1.4.3

10 months ago

1.4.2

10 months ago

1.4.1

10 months ago

1.3.14

10 months ago

1.5.5

5 months ago

1.5.4

6 months ago

1.5.3

6 months ago

1.5.2

6 months ago

1.5.1

6 months ago

1.3.14-beta

8 months ago

1.4.13-beta

8 months ago

1.4.9

9 months ago

1.4.11

9 months ago

1.4.8

9 months ago

1.4.10

9 months ago

1.4.7

9 months ago

1.4.12

8 months ago

1.3.13

10 months ago

1.3.11

10 months ago

1.3.12

10 months ago

1.3.7

11 months ago

1.3.6

11 months ago

1.3.5

11 months ago

1.3.10

11 months ago

1.3.9

11 months ago

1.3.8

11 months ago

1.3.4

11 months ago

1.3.3

11 months ago

1.3.1

11 months ago

1.1.1

12 months ago

1.0.16

12 months ago

1.1.5

12 months ago

1.1.4

12 months ago

1.1.3

12 months ago

1.1.2

12 months ago

1.0.11

12 months ago

1.0.10

12 months ago

1.0.15

12 months ago

1.0.14

12 months ago

1.0.13

12 months ago

1.0.12

12 months ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago