ap-dev 1.1.24 → 1.1.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -55,9 +55,12 @@ const menus = [
55
55
  }, {
56
56
  id: 'ApiDcOrgSelect',
57
57
  label: '3.3 组织-下拉选择'
58
+ }, {
59
+ id: 'ApiApOrg',
60
+ label: '3.4 组织架构组件(new)'
58
61
  }, {
59
62
  id: 'ApiDcSupplierSearch',
60
- label: '3.4 供应商-选择组件'
63
+ label: '3.5 供应商-选择组件'
61
64
  }]
62
65
  }, {
63
66
  id: 'ApiDefault',
@@ -0,0 +1,213 @@
1
+ <template>
2
+ <div style="height: 100%">
3
+ <h3>组织架构组件:ap-org</h3>
4
+ <api-tittle-2>一、示例:</api-tittle-2>
5
+ <div>
6
+ <div>
7
+ 1、部门树[org-tree]:{{ orgTreeValue }}<br>
8
+ <div style="width: 300px">
9
+ <ap-org :options.sync="orgTree" v-model="orgTreeValue"></ap-org>
10
+ <api-code>{{ js1 }}</api-code>
11
+ </div>
12
+ 2、部门[org-select]:{{ orgSelectValue }}<br>
13
+ <div style="width: 300px">
14
+ <ap-org :options.sync="orgSelect" v-model="orgSelectValue"></ap-org>
15
+ <api-code>{{ js2 }}</api-code>
16
+ </div>
17
+ 3、人员选择[org-pick]:{{ orgPickValue }}<br>
18
+ <div style="width: 300px">
19
+ <ap-org :options.sync="orgPick" v-model="orgPickValue"></ap-org>
20
+ <api-code>{{ js3 }}</api-code>
21
+ </div>
22
+ </div>
23
+ </div>
24
+ <api-tittle-2>二、参数说明:</api-tittle-2>
25
+ 1、部门树相关的参数:type -> org-tree
26
+ <api-table :data="attrData1" :columns="attrCols1" style="height:390px;"/>
27
+ 2、部门下拉相关的参数:type -> org-select
28
+ <api-table :data="attrData2" :columns="attrCols1" style="height:270px;"/>
29
+ 3、人员相关的参数:type -> org-pick
30
+ <api-table :data="attrData3" :columns="attrCols1" style="height:180px;"/>
31
+ </div>
32
+ </template>
33
+
34
+ <script>
35
+ import {ApiCode, ApiContent, ApiTable, ApiTittle1, ApiTittle2} from './../components'
36
+
37
+ export default {
38
+ name: 'ApiApOrg',
39
+ components: {
40
+ ApiTable, ApiCode, ApiTittle1, ApiContent, ApiTittle2
41
+ },
42
+ data() {
43
+ const attrCols1 = [
44
+ {label: '名称', prop: 'name', width: '180px'},
45
+ {label: '类型', prop: 'type', width: '100px'},
46
+ {label: '默认值', prop: 'default', width: '80px'},
47
+ {label: '描述', prop: 'memo', minWidth: '100px'},
48
+ {label: '示例代码', prop: 'code', minWidth: '100px'}]
49
+
50
+ const attrData1 = [
51
+ {
52
+ name: 'type',
53
+ type: '类型',
54
+ default: '',
55
+ memo: 'type: "org-tree"<br>组织部门树',
56
+ }, {
57
+ name: 'params',
58
+ type: '对象',
59
+ default: '见描述',
60
+ memo: '默认参数{companyId: "登录用户公司别", disabled:"0"}<br>' +
61
+ '参数说明:<br>companyId: 公司别过滤:默认登录用户公司;ALL表示全部 ' +
62
+ '<br>disabled:是否失效过滤:0有效(默认);1失效;all表示全部'
63
+ }, {
64
+ name: 'multiSelect',
65
+ type: '布尔',
66
+ default: 'false',
67
+ memo: '是否多选。默认false单选,true多选。'
68
+ }, {
69
+ name: 'fullName',
70
+ type: '布尔',
71
+ default: 'false',
72
+ memo: '是否显示全称。默认false简称,true全称(带父部门)。'
73
+ }, {
74
+ name: 'clear',
75
+ type: '方法',
76
+ default: '',
77
+ memo: '点击清空回调方法:返回true关闭弹框,false不关闭弹框',
78
+ code: `<div class="api-code">clear: () => {return true;}</div>`
79
+ }, {
80
+ name: 'confirm',
81
+ type: '方法',
82
+ default: '',
83
+ memo: '点击确定回调方法:返回true关闭弹框,false不关闭弹框',
84
+ code: `<div class="api-code">confirm: (selectedRows) => {return true;}</div>`
85
+ }, {
86
+ name: '其他参数',
87
+ type: '',
88
+ default: '',
89
+ memo: '参考【ap-search-tree】组件'
90
+ }
91
+ ]
92
+
93
+ const attrData2 = [
94
+ {
95
+ name: 'type',
96
+ type: '类型',
97
+ default: '',
98
+ memo: 'type: "org-select"<br>组织部门下拉<br>注:数据源是组织分组的数据',
99
+ }, {
100
+ name: 'params',
101
+ type: '对象',
102
+ default: '见描述',
103
+ memo: '默认参数{code: "组织分组编码", companyId:"登录用户公司别"}<br>' +
104
+ '参数说明:<br>companyId: 公司别过滤:默认登录用户公司;ALL表示全部 ' +
105
+ '<br>code:[必填]组织分组编码'
106
+ }, {
107
+ name: 'addOptions',
108
+ type: '数组',
109
+ default: 'false',
110
+ memo: '添加的下拉选项,见示例',
111
+ code: `<div class="api-code">addOptions:[{label: "全部", value: "all"},{label: "无", value: ""}]</div>`
112
+ }
113
+ ]
114
+
115
+ const attrData3 = [
116
+ {
117
+ name: 'type',
118
+ type: '类型',
119
+ default: '',
120
+ memo: 'type: "org-pick"<br>组织人员选择',
121
+ }, {
122
+ name: '常用参数',
123
+ type: '',
124
+ default: '',
125
+ memo: '见示例代码',
126
+ code: `// 配置表格单选
127
+ searchPickTableOptions: {
128
+ multiSelect: false,
129
+ }`
130
+ }, {
131
+ name: '其他参数',
132
+ type: '',
133
+ default: '',
134
+ memo: '参考【ap-search-pick】组件'
135
+ }
136
+ ]
137
+
138
+ const js1 = `// 1、部门树选择组件:
139
+ <ap-org :options.sync="orgTree" v-model="orgTreeValue"></ap-org>
140
+
141
+ // 2、data参数:
142
+ orgTreeValue: "",
143
+ orgTree: {
144
+ type: "org-tree",
145
+ multiSelect: true,
146
+ fullName: true
147
+ }`;
148
+ const js2 = `// 1、部门下拉组件:
149
+ <ap-org :options.sync="orgSelect" v-model="orgSelectValue"></ap-org>
150
+
151
+ // 2、data参数:
152
+ orgSelectValue: "",
153
+ orgSelect: {
154
+ type: "org-select",
155
+ multiSelect: false,
156
+ addOptions: [{label: "无", value: ""}],
157
+ params: () => {
158
+ return {
159
+ code: "ap-default-company",
160
+ companyId: "ALL"
161
+ }
162
+ }
163
+ }`
164
+ const js3 = `// 1、人员选择组件:
165
+ <ap-org :options.sync="orgPick" v-model="orgPickValue"></ap-org>
166
+
167
+ // 2、data参数:
168
+ orgPickValue: "",
169
+ orgPick: {
170
+ type: "org-pick",
171
+ searchPickValue: ""
172
+ }`
173
+ return {
174
+ attrCols1,
175
+ attrData1,
176
+ attrData2,
177
+ attrData3,
178
+ js1,
179
+ js2,
180
+ js3,
181
+ orgTreeValue: "",
182
+ orgTree: {
183
+ type: "org-tree",
184
+ multiSelect: true,
185
+ fullName: true
186
+ },
187
+ orgSelect: {
188
+ type: "org-select",
189
+ multiSelect: false,
190
+ addOptions: [{label: "无", value: ""}],
191
+ params: () => {
192
+ return {
193
+ code: "ap-default-company",
194
+ companyId: "ALL"
195
+ }
196
+ }
197
+ },
198
+ orgSelectValue: "",
199
+ // orgSelectValue: [ "93f1d90583ea4588b561bcc6f1a7f349" ]
200
+ orgPickValue: "",
201
+ orgPick: {
202
+ type: "org-pick",
203
+ searchPickValue: ""
204
+ },
205
+
206
+ }
207
+ },
208
+ methods: {}
209
+ }
210
+ </script>
211
+
212
+ <style scoped>
213
+ </style>
@@ -23,6 +23,7 @@ import ApiStringUtil from './../tabs/ApiStringUtil'
23
23
  import ApiQyWxUtil from './../tabs/ApiQyWxUtil'
24
24
  import ApiJavaCommonUtil from './../tabs/ApiJavaCommonUtil'
25
25
  import ApiWebSocketUtil from './../tabs/ApiWebSocketUtil'
26
+ import ApiMediumUtil from './../tabs/ApiMediumUtil'
26
27
 
27
28
  export default {
28
29
  name: "ApiJavaUtils",
@@ -40,7 +41,8 @@ export default {
40
41
  ApiStringUtil,
41
42
  ApiQyWxUtil,
42
43
  ApiJavaCommonUtil,
43
- ApiWebSocketUtil
44
+ ApiWebSocketUtil,
45
+ ApiMediumUtil
44
46
  },
45
47
  data() {
46
48
  let opts = [
@@ -77,6 +79,9 @@ export default {
77
79
  }, {
78
80
  label: 'QyWxUtil',
79
81
  component: 'ApiQyWxUtil',
82
+ },{
83
+ label: 'MediumUtil',
84
+ component: 'ApiMediumUtil',
80
85
  }, {
81
86
  label: 'DictionaryUtil',
82
87
  component: 'ApiDictionaryUtil',
@@ -13,7 +13,7 @@ import ApiVueDateUtil from './../tabs/ApiVueDateUtil'
13
13
  import ApiVueWebSocketUtil from './../tabs/ApiVueWebSocketUtil'
14
14
 
15
15
  export default {
16
- name: "ApiJavaUtils",
16
+ name: "ApiVueUtils",
17
17
  components: {
18
18
  ApiVueDateUtil,
19
19
  ApiVueWebSocketUtil,
@@ -0,0 +1,42 @@
1
+ <template>
2
+ <div style="height: 100%">
3
+ <h3>消息推送工具类 - QyWxUtil</h3>
4
+ <api-table :data="methodData" :columns="methodCols"/>
5
+ </div>
6
+ </template>
7
+
8
+ <script>
9
+ import {ApiCode, ApiContent, ApiTable, ApiTittle1, ApiTittle2} from './../components'
10
+
11
+ export default {
12
+ name: 'ApiMediumUtil',
13
+ components: {
14
+ ApiTable, ApiCode, ApiTittle1, ApiContent, ApiTittle2
15
+ },
16
+ data() {
17
+ const methodCols = [
18
+ {label: '方法名', prop: 'name', width: '220px'},
19
+ {label: '说明', prop: 'memo', width: '300px'},
20
+ {label: '示例代码', prop: 'code', minWidth: '100px'}]
21
+ const methodData = [
22
+ {
23
+ name: 'getMediumList',
24
+ memo: `获取消息推送列表<br>
25
+ 注:根据分组类型自动转换为邮箱、工号、手机号`,
26
+ code: `<span class="api-code">// 获取编码为"test"的推送列表
27
+ List&lt;String> list = MediumUtil.getMediumList("test")
28
+ </span>`
29
+ }
30
+ ]
31
+
32
+ return {
33
+ methodData,
34
+ methodCols
35
+ }
36
+ },
37
+ methods: {}
38
+ }
39
+ </script>
40
+
41
+ <style scoped>
42
+ </style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ap-dev",
3
- "version": "1.1.24",
3
+ "version": "1.1.29",
4
4
  "description": "===== ap-dev =====",
5
5
  "author": "xiexinbin",
6
6
  "email": "876818817@qq.com",