ap-dev 1.1.28 → 1.1.31
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.
|
@@ -23,13 +23,11 @@
|
|
|
23
23
|
</div>
|
|
24
24
|
<api-tittle-2>二、参数说明:</api-tittle-2>
|
|
25
25
|
1、部门树相关的参数:type -> org-tree
|
|
26
|
-
<api-table :data="attrData1" :columns="attrCols1"/>
|
|
26
|
+
<api-table :data="attrData1" :columns="attrCols1" style="height:390px;"/>
|
|
27
27
|
2、部门下拉相关的参数:type -> org-select
|
|
28
|
-
<api-table :data="attrData2" :columns="attrCols1"/>
|
|
28
|
+
<api-table :data="attrData2" :columns="attrCols1" style="height:270px;"/>
|
|
29
29
|
3、人员相关的参数:type -> org-pick
|
|
30
|
-
<api-table :data="attrData3" :columns="attrCols1"/>
|
|
31
|
-
<api-tittle-2>三、事件说明:</api-tittle-2>
|
|
32
|
-
<api-table :data="methodData" :columns="methodCols"/>
|
|
30
|
+
<api-table :data="attrData3" :columns="attrCols1" style="height:180px;"/>
|
|
33
31
|
</div>
|
|
34
32
|
</template>
|
|
35
33
|
|
|
@@ -124,7 +122,7 @@ export default {
|
|
|
124
122
|
name: '常用参数',
|
|
125
123
|
type: '',
|
|
126
124
|
default: '',
|
|
127
|
-
memo: '
|
|
125
|
+
memo: '见示例代码',
|
|
128
126
|
code: `// 配置表格单选
|
|
129
127
|
searchPickTableOptions: {
|
|
130
128
|
multiSelect: false,
|
|
@@ -137,28 +135,6 @@ export default {
|
|
|
137
135
|
}
|
|
138
136
|
]
|
|
139
137
|
|
|
140
|
-
|
|
141
|
-
const methodCols = [
|
|
142
|
-
{label: '名称', prop: 'name', width: '200px'},
|
|
143
|
-
{label: '描述', prop: 'memo', minWidth: '100px'},
|
|
144
|
-
{label: '示例代码', prop: 'code', minWidth: '100px'}]
|
|
145
|
-
|
|
146
|
-
const methodData = [
|
|
147
|
-
{
|
|
148
|
-
group: '设置数据',
|
|
149
|
-
name: 'initSearchData',
|
|
150
|
-
memo: '设置选中数据。<br>' +
|
|
151
|
-
'<span class="api-memo">参数1:value。选中值,必填,多个数据使用“,”间隔</span><br>' +
|
|
152
|
-
'<span class="api-memo">参数2:text。显示文本,非必填,多个数据使用“,”间隔</span>',
|
|
153
|
-
code: '1、参数传输 (value),调用searchPickTextUrl获取对象<br/>' +
|
|
154
|
-
'单选:<span class="api-code">this.$refs.searchRef.initSearchData(\'xxx\');</span><br/>' +
|
|
155
|
-
'多选:<span class="api-code">this.$refs.searchRef.initSearchData(\'xxx,xxx\');</span><br/>' +
|
|
156
|
-
'2、参数传输 (value, text),不会调用请求获取对象<br/>' +
|
|
157
|
-
'单选:<span class="api-code">this.$refs.searchRef.initSearchData(\'xxx\',\'xxx\');</span><br/>' +
|
|
158
|
-
'多选:<span class="api-code">this.$refs.searchRef.initSearchData(\'xxx,xxx\',\'xxx,xxx\');</span><br/>'
|
|
159
|
-
}
|
|
160
|
-
]
|
|
161
|
-
|
|
162
138
|
const js1 = `// 1、部门树选择组件:
|
|
163
139
|
<ap-org :options.sync="orgTree" v-model="orgTreeValue"></ap-org>
|
|
164
140
|
|
|
@@ -199,8 +175,6 @@ orgPick: {
|
|
|
199
175
|
attrData1,
|
|
200
176
|
attrData2,
|
|
201
177
|
attrData3,
|
|
202
|
-
methodData,
|
|
203
|
-
methodCols,
|
|
204
178
|
js1,
|
|
205
179
|
js2,
|
|
206
180
|
js3,
|
|
@@ -77,13 +77,6 @@ import icons from 'ap-frame/frame/assets/icon/iconfont.json'
|
|
|
77
77
|
import elementIcons from './element-icons'
|
|
78
78
|
import iconGroup from './iconGroup'
|
|
79
79
|
|
|
80
|
-
// 批量导入modules下的组件
|
|
81
|
-
const allImg = require.context('ap-frame/frame/assets/images/icon', false)
|
|
82
|
-
const iconImgs = [];
|
|
83
|
-
allImg.keys().forEach(fileName => {
|
|
84
|
-
iconImgs.push(fileName.substring(2));
|
|
85
|
-
})
|
|
86
|
-
|
|
87
80
|
export default {
|
|
88
81
|
name: 'Icons',
|
|
89
82
|
data() {
|
|
@@ -96,7 +89,7 @@ export default {
|
|
|
96
89
|
myIcons,
|
|
97
90
|
elementIcons,
|
|
98
91
|
showType: 0,
|
|
99
|
-
iconImgs:
|
|
92
|
+
iconImgs: ["a101.png","a102.png","a103.png","a104.png","a105.png","a106.png","a107.png","a108.png","a109.png","a110.png","a111.png","a112.png","a113.png","a114.png","a201.png","a202.png","a203.png","a204.png","a205.png","a206.png","a207.png","a301.png","a302.png","a303.png","a304.png","a305.png","a306.png","a307.png","a308.png","a309.png","a310.png","a311.png","a401.png","a402.png","a403.png","a404.png","a405.png","a406.png","a407.png","a408.png","a501.png","a502.png","a503.png","a504.png","a505.png","a506.png","b101.png","b102.png","b103.png","b104.png","b105.png","b106.png","b201.png","b202.png","b203.png","b204.png","b205.png","b206.png","b207.png","b208.png","b209.png","b210.png","b212.png","b213.png","b214.png","b215.png","b301.png","b302.png","b303.png","b304.png","b305.png","b306.png","b307.png","b308.png","b401.png","b402.png","b403.png","b404.png","b405.png","b406.png","b407.png","c101.png","c102.png","c103.png","c104.png","c105.png","c106.png","c107.png","c108.png","c109.png","c110.png","c111.png","c112.png","c201.png","c202.png","c203.png","c204.png","c205.png","c206.png","c207.png","c208.png","c209.png","c210.png","c211.png","c212.png","c213.png","c214.png","c215.png","c216.png","c217.png","c218.png","c219.png","c220.png","c221.png","c222.png","c223.png","c224.png","c225.png","c226.png","c227.png","c228.png","c229.png","c230.png","c231.png","c301.png","c302.png","c303.png","c304.png","c305.png","c306.png","d101.png","d102.png","d103.png","d104.png","d105.png","d106.png","d107.png","d108.png","d109.png","d110.png","d111.png","d112.png","d113.png","d114.png","d115.png","d116.png","d117.png","d118.png","d119.png","d120.png","d121.png","d122.png","d123.png","d124.png","d125.png","d126.png","d201.png","d202.png","d203.png","d204.png","d205.png","d206.png","d207.png","d208.png","d209.png","d210.png","d211.png","d213.png","d301.png","d302.png","d303.png","d304.png","d305.png","d306.png","d307.png","d308.png","d309.png","d310.png","d311.png","d312.png","d313.png","d314.png","d315.png","d316.png","d317.png","d318.png","d319.png","d320.png","d321.png","d322.png","d323.png","d325.png","d326.png","d327.png","d328.png","d329.png","d330.png","e101.png","e102.png","e103.png","e104.png","e105.png","e106.png","e107.png","e108.png","e109.png","e110.png","e111.png","e112.png","e113.png","e114.png","e115.png","e116.png","e117.png","e118.png","e119.png","e120.png","e121.png","e122.png","e123.png","e124.png","e201.png","e202.png","e203.png","e204.png","e205.png","e206.png","e207.png","e208.png","e301.png","e302.png","e303.png","e304.png","e305.png","e306.png","e401.png","e402.png","e403.png","e404.png","e405.png","e406.png","e407.png","e408.png","e409.png","e410.png","e411.png","f101.png","f102.png","f103.png","f104.png","f105.png","f106.png","f107.png","f108.png","f109.png","f110.png","f111.png","f112.png","f113.png","f114.png","f115.png","f116.png","f117.png","f118.png","f119.png","f120.png","f121.png","f201.png","f202.png","f203.png","f204.png","f205.png","f206.png","f207.png","f208.png","f209.png","f210.png","f211.png","f212.png","f213.png","f301.png","f302.png","f303.png","f304.png","f305.png","f306.png","f307.png","f308.png","f309.png","f310.png","f311.png","f312.png","g101.png","g102.png","g103.png","g104.png","g105.png","g106.png","g107.png","g201.png","g202.png","g203.png","g204.png","g205.png","g206.png","g301.png","g302.png","g303.png","g304.png","g305.png","g306.png","g307.png","g308.png","g309.png","g310.png","g311.png","g312.png","g313.png","g314.png","g315.png","g316.png","g317.png","g318.png","g319.png","g320.png","g321.png","g322.png","g323.png"],
|
|
100
93
|
iconGroup,
|
|
101
94
|
activeNames: activeNames
|
|
102
95
|
}
|
|
@@ -119,10 +112,10 @@ export default {
|
|
|
119
112
|
clipboard(this.getIconClass(value), event)
|
|
120
113
|
},
|
|
121
114
|
getIconImg(name) {
|
|
122
|
-
return
|
|
115
|
+
return "/static/images/icon/" + name;
|
|
123
116
|
},
|
|
124
117
|
copyIconImg(value, event) {
|
|
125
|
-
clipboard("
|
|
118
|
+
clipboard("/static/images/icon/" + value, event)
|
|
126
119
|
},
|
|
127
120
|
copyIconImgName(value, event) {
|
|
128
121
|
clipboard(value, event)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div style="height: 100%">
|
|
3
|
-
<h3>消息推送工具类 -
|
|
3
|
+
<h3>消息推送工具类 - MediumUtil</h3>
|
|
4
4
|
<api-table :data="methodData" :columns="methodCols"/>
|
|
5
5
|
</div>
|
|
6
6
|
</template>
|
|
@@ -22,9 +22,22 @@ export default {
|
|
|
22
22
|
{
|
|
23
23
|
name: 'getMediumList',
|
|
24
24
|
memo: `获取消息推送列表<br>
|
|
25
|
-
|
|
25
|
+
注:根据分组类型自动转换为邮箱、工号、手机号。<br>
|
|
26
|
+
邮件可用getEmailToList、getEmailCCList区分收件人和抄送人`,
|
|
26
27
|
code: `<span class="api-code">// 获取编码为"test"的推送列表
|
|
27
28
|
List<String> list = MediumUtil.getMediumList("test")
|
|
29
|
+
</span>`
|
|
30
|
+
}, {
|
|
31
|
+
name: 'getEmailToList',
|
|
32
|
+
memo: `获取邮件收件人列表`,
|
|
33
|
+
code: `<span class="api-code">// 获取编码为"test"的邮件收件人
|
|
34
|
+
List<String> list = MediumUtil.getEmailToList("test")
|
|
35
|
+
</span>`
|
|
36
|
+
}, , {
|
|
37
|
+
name: 'getEmailCCList',
|
|
38
|
+
memo: `获取邮件抄送列表`,
|
|
39
|
+
code: `<span class="api-code">// 获取编码为"test"的邮件抄送人
|
|
40
|
+
List<String> list = MediumUtil.getEmailCCList("test")
|
|
28
41
|
</span>`
|
|
29
42
|
}
|
|
30
43
|
]
|
|
@@ -377,7 +377,7 @@ export default {
|
|
|
377
377
|
parentKey: "fdParentId",
|
|
378
378
|
childrenKey: "children",
|
|
379
379
|
});
|
|
380
|
-
if (this.typeTreeList.length >
|
|
380
|
+
if (this.typeTreeList.length > 0) {
|
|
381
381
|
this.tableSchema = this.typeTreeList[0].tableSchema;
|
|
382
382
|
this.headerName = "[" + this.typeTreeList[0].tableSchema + "] - 表";
|
|
383
383
|
}
|