@94ai/softphone 5.0.16 → 5.0.17

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.
@@ -0,0 +1,1978 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
6
+ <meta name="renderer" content="webkit">
7
+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
8
+ <title>umd demo(注意html自闭合标签和属性驼峰转换)</title>
9
+ <script src="https://cdn.jsdelivr.net/npm/vue@2.7.14/dist/vue.js"></script> <!-- 👈 引入Vue -->
10
+ <script src="https://unpkg.com/vue-demi@0.14.10/lib/index.iife.js"></script> <!-- 👈 引入VueDemi -->
11
+ <script src="https://unpkg.com/qiankun@2.10.16/dist/index.umd.min.js"></script> <!-- 👈 引入qiankun -->
12
+ <script src="https://unpkg.com/wujie@2.1.0/lib/index.js"></script> <!-- 👈 引入wujie -->
13
+ <link rel="stylesheet" href="https://unpkg.com/element-ui@2.13.2/lib/theme-chalk/index.css">
14
+ <script src="https://unpkg.com/element-ui@2.13.2/lib/index.js"></script> <!-- 👈 引入ELEMENT,element-ui的全量umd版本 -->
15
+ <link rel="stylesheet" href="https://unpkg.com/@94ai/nf-theme-chalk@8.3.23/lib/css/index.css">
16
+ <!-- <script src="./common-ui.umd.browser.js"></script> &lt;!&ndash; 👈 引入common-ui的全量umd版本 &ndash;&gt;-->
17
+ <script src="https://unpkg.com/@94ai/codepen@8.3.23/lib/common-ui/common-ui.umd.browser.js"></script> <!-- 👈 引入common-ui的全量umd版本 -->
18
+ <script src="https://unpkg.com/crypto-js@4.2.0/crypto-js.js"></script> <!-- 👈 引入软电话签名算法库 -->
19
+ </head>
20
+ <body>
21
+ <style>
22
+ html,body {
23
+ padding: 0px;
24
+ }
25
+ .nf-keyword-html .nf-keyword-input-item-box {
26
+ overflow-y: auto!important;
27
+ }
28
+ </style>
29
+
30
+ <script>
31
+ const process = {
32
+ env: {
33
+ NODE_ENV: 'production'
34
+ },
35
+ stdout: {
36
+ isTTY: false
37
+ }
38
+ }
39
+ </script>
40
+
41
+ <div id="app">
42
+ <div class="demo">
43
+ <el-row style="margin-top: 10px">
44
+ <h3>1. 按钮和动态提示</h3>
45
+ <span class="test-sass" @click="openNotify">点击打开common-ui【通知】</span>
46
+ <el-button @click="openMessage">element-ui按钮,点击提示common-ui【消息】</el-button>
47
+ <nf-button type="danger" @click="drawer = true">common-ui按钮,点击打开common-ui【抽屉】</nf-button>
48
+ <nf-button text type="danger" @click="openConfirm">带hover的自定义颜色文本,点击打开common-ui【弹框】</nf-button>
49
+ <nf-drawer
50
+ title="我是标题"
51
+ :visible.sync="drawer"
52
+ @confirm="handleConfirm"
53
+ current-tab="高级配置"
54
+ :tabs="tabs"
55
+ >
56
+ <div style="padding: 20px;" slot="tab-1">我是自定义的基础配置</div>
57
+ <div style="padding: 20px;" slot="tab-2">我是自定义的高级配置</div>
58
+ <div style="padding: 20px;" slot="tab-3">我是自定义的特殊配置</div>
59
+ </nf-drawer>
60
+ </el-row>
61
+ <div style="margin-top: 10px">
62
+ <h3>2. 输入框</h3>
63
+ <el-input
64
+ v-model="text"
65
+ maxlength="100000"
66
+ :show-word-limit="true"
67
+ style='width: 500px;vertical-align: top'
68
+ ></el-input>
69
+ <el-input
70
+ style='width: 200px'
71
+ type="textarea"
72
+ v-model="textarea"
73
+ maxlength="100000"
74
+ :show-word-limit="true"
75
+ ></el-input>
76
+ <el-divider>上面el-input</el-divider>
77
+ <el-divider>下面nf-input</el-divider>
78
+ <nf-input
79
+ v-model="text"
80
+ maxlength="100000"
81
+ :show-word-limit="true"
82
+ style='width: 500px;vertical-align: top'
83
+ ></nf-input>
84
+ <nf-input
85
+ style='width: 200px'
86
+ type="textarea"
87
+ v-model="textarea"
88
+ maxlength="100000"
89
+ :show-word-limit="true"
90
+ ></nf-input>
91
+ </div>
92
+ <div style="margin-top: 10px">
93
+ <h3>3. 折叠检测器</h3>
94
+ <nf-action style='width: fit-content;' :span='3'>
95
+ <nf-button type="text" size="mini">导入</nf-button>
96
+ <nf-button type="text" size="mini">详情</nf-button>
97
+ <nf-button type="text" size="mini">复制</nf-button>
98
+ <nf-button type="text" size="mini">停用</nf-button>
99
+ <nf-button type="text" size="mini">启用</nf-button>
100
+ <nf-button type="text" size="mini">编辑</nf-button>
101
+ </nf-action>
102
+ <span style="display: inline-block;margin-left: 20px;width: 360px;">
103
+ <nf-text-overflow content="似水流年是一个人所有的一切,只有这个东西,才真正归你所有。其余的一切,都是片刻的欢娱和不幸,转眼间就已跑到那似水流年里去" ></nf-text-overflow>
104
+ </span>
105
+ </div>
106
+ <div style="margin-top: 10px;">
107
+ <h3>4. 标签</h3>
108
+ <nf-tag style='margin-right: 20px;' type='success'>已通过</nf-tag>
109
+ <nf-tag style='margin-right: 20px;' type='info'>已发布</nf-tag>
110
+ <nf-tag style='margin-right: 20px;' type='disabled'>已删除</nf-tag>
111
+ <nf-tag style='margin-right: 20px;' type='warning'>待处理</nf-tag>
112
+ <nf-tag style='margin-right: 20px;' type='tip'>审核中</nf-tag>
113
+ <nf-tag style='margin-right: 20px;' type='danger'>草稿发布失败</nf-tag>
114
+ </div>
115
+ <div style="margin-top: 10px;">
116
+ <h3>5. 选择器</h3>
117
+ <nf-radio-group
118
+ style="display: inline-block"
119
+ :groups="queryList"
120
+ multiple
121
+ @change="changeHandler"
122
+ :value.sync="multipleActiveIndex"
123
+ ></nf-radio-group>
124
+ </div>
125
+ <div style="margin-top: 10px;">
126
+ <h3>6. 虚拟滚动分页选择器</h3>
127
+ <div style="width: 600px;">
128
+ <!-- request 👈 定制分页请求方法,要求返回promise<{records: any[], total:number}>,入参({[pageNoAlias]: number,[pageSizeAlias]: number,[keywordAlias]: string}) -->
129
+ <!-- pageSize 👈 定制每次分页请求数量 -->
130
+ <!-- virtual-list 👈 默认不开启虚拟滚动,设置true开启 -->
131
+ <!-- keeps 👈 默认30,定制虚拟滚动最多真实渲染的下拉项数量 -->
132
+ <!-- key-value 👈 list每个数据项渲染对应的label和value对应的prop,类型[string, string],默认值['label', 'value'] -->
133
+ <!-- data-key 👈 虚拟滚动要求在list每个数据项有一个唯一值,该属性用以指定数据项唯一值对应的prop,类型string -->
134
+
135
+ <nf-lazy-select
136
+ v-model="test"
137
+
138
+ :request="testPage"
139
+ :page-size='10'
140
+ keyword-alias="keyword"
141
+ page-no-alias="pageNo"
142
+ page-size-alias="pageSize"
143
+
144
+ loading-sesc='加载中...'
145
+ no-data-text='无数据'
146
+ placeholder='请输入英文字母'
147
+
148
+ virtual-list
149
+ :keeps='15'
150
+ :key-value="['label', 'value']"
151
+ data-key='value'
152
+ multiple
153
+ @change='testChange1'
154
+ @input='testInput1'
155
+ :visible-change-keyword-cached="true"
156
+ :visible-change-select-list-cached="true"
157
+ >
158
+ <template slot='option' slot-scope="{row}">
159
+ <span v-if='row.value == 0'>
160
+ <span style='color: red' >label: 《{{row.label}}》</span> - value: 《{{row.value}}》
161
+ </span>
162
+ <span style='color: blue' v-if='row.value == 1'>{{row.label}}</span>
163
+ <span v-if='row.value != 0 && row.value != 1'>{{row.label}}</span>
164
+ </template>
165
+ </nf-lazy-select>
166
+
167
+ <el-divider>上面多选 </el-divider>
168
+ <el-divider>下面单选 </el-divider>
169
+
170
+ <nf-lazy-select
171
+ v-model="test1"
172
+
173
+ :request="testPage"
174
+ @change='testChange2'
175
+ @input='testInput2'
176
+
177
+ :visible-change-keyword-cached="true"
178
+ :visible-change-select-list-cached="true"
179
+
180
+ :page-size='10'
181
+ keyword-alias="keyword"
182
+ page-no-alias="pageNo"
183
+ page-size-alias="pageSize"
184
+
185
+ loading-sesc='加载中...'
186
+ no-data-text='无数据'
187
+ placeholder='请输入英文字母'
188
+
189
+ virtual-list
190
+ :keeps='15'
191
+ :key-value="['label', 'value']"
192
+ data-key='value'
193
+ ></nf-lazy-select>
194
+
195
+
196
+ <el-divider>上面开启虚拟滚动 </el-divider>
197
+ <el-divider>下面不开启虚拟滚动 </el-divider>
198
+
199
+ <nf-lazy-select
200
+ v-model="test2"
201
+ @change='testChange3'
202
+ @input='testInput3'
203
+
204
+ :request="testPage"
205
+ :pageSize='10'
206
+
207
+ loading-desc='加载中...'
208
+ no-data-text='无数据'
209
+ placeholder='请输入英文字母'
210
+
211
+ :key-value="['label', 'value']"
212
+ >
213
+ <template slot='option' slot-scope="{row}">
214
+ <span v-if='row.value == 0'>
215
+ <span style='color: red' >label: 《{{row.label}}》</span> - value: 《{{row.value}}》
216
+ </span>
217
+ <span style='color: blue' v-if='row.value == 1'>{{row.label}}</span>
218
+ <span v-if='row.value != 0 && row.value != 1'>{{row.label}}</span>
219
+ </template>
220
+ </nf-lazy-select>
221
+ </div>
222
+ </div>
223
+ <div style="margin-top: 10px;" :gutter="20">
224
+ <h3>7. 关键词与变量</h3>
225
+ <nf-keywords
226
+ class="nf-keyword-html"
227
+ style="width: 600px"
228
+ :data="keywords"
229
+ @del-all="delAllKeywordFn"
230
+ @del-item="delItem"
231
+ @copy-success="copySuccess"
232
+ :get-item-disabled-status="getItemDisabledStatus"
233
+ ></nf-keywords>
234
+ </div>
235
+ <div style="margin-top: 10px;" :gutter="20">
236
+ <h3>8. 音频组件</h3>
237
+ <nf-button @click='betweenPlay' style='transform: translateY(-22px);'>区间播放</nf-button>
238
+ <nf-audio
239
+ style="display: inline-flex;"
240
+ debuglog
241
+ ref='nfAudio'
242
+ :src='url'
243
+ @download='download'
244
+ :jump-time='jumpToTime'
245
+ :back-second='backSecond'
246
+ :forward-second='forwardSecond'
247
+ :between-start='betweenStart'
248
+ :between-end='betweenEnd'
249
+ ></nf-audio>
250
+ </div>
251
+ <div style="margin-top: 10px" >
252
+ <h3>9. 空状态</h3>
253
+ <el-row :gutter="20" style="width: 1200px">
254
+ <el-col :span="6">
255
+ <nf-empty type='message' border></nf-empty>
256
+ </el-col>
257
+ <el-col :span="6">
258
+ <nf-empty type='internet' :image-size='145'></nf-empty>
259
+ </el-col>
260
+ <el-col :span="6">
261
+ <nf-empty :image-size='140' type='authority'></nf-empty>
262
+ </el-col>
263
+ <el-col :span="6">
264
+ <nf-empty :image-size='140' type='server'></nf-empty>
265
+ </el-col>
266
+ </el-row>
267
+ </div>
268
+ <div style="margin-top: 10px">
269
+ <h3>10. 表格</h3>
270
+ <nf-table
271
+ ref='nfTable3'
272
+ :data="showData"
273
+ storage-key='nf-table-test3'
274
+ :column-edit="true"
275
+ :columns="nfTable.tableColumns3.value"
276
+ :table-events="{
277
+ select:nfTable.changeSelectFn3,
278
+ 'select-all': nfTable.changeSelectAllFn3
279
+ }"
280
+ :table-attrs="{
281
+ 'show-summary': true,
282
+ 'summary-method': getSummaries,
283
+ 'row-key': 'id'
284
+ }"
285
+ :loading='nfTable.searchForm3.value.loading'
286
+ >
287
+ <!-- 👈 上述只配置表格类属性和事件,下述其他通过slot定制 -->
288
+ <!-- 定制列目显示 -->
289
+ <el-button
290
+ slot="columnEdit"
291
+ @click="nfTable.columnEditDialog3()"
292
+ class="nf-column-display"
293
+ type="pripary"
294
+ :plain="true"
295
+ icon="el-icon-plus"
296
+ size="mini"
297
+ :round="false"
298
+ :circle="false"
299
+ :loading="false"
300
+ :disabled="false"
301
+ >
302
+ slot定制表格列目显示隐藏
303
+ </el-button>
304
+ <!-- 定制表单 -->
305
+ <nf-search-form
306
+ slot="searchBox"
307
+ :form-options="searchOptionTable"
308
+ :label-width="80"
309
+ storage-key='nf-search-form-test3'
310
+ :column-edit='true'
311
+ :columns="4"
312
+ btn-model="inline"
313
+ btn-items='search'
314
+ @on-search='nfTable.onSearch3'
315
+ @on-change="nfTable.searchChange3"
316
+ check-btn-text='slot定制表单列目显示隐藏'
317
+ ></nf-search-form>
318
+ <!-- 定制单个表格项 -->
319
+ <span slot="operationName" slot-scope="scope" v-text="`${scope.row.operationName} ${scope.row.viceOperationName}`"></span>
320
+ <span slot="operation" slot-scope="scope">
321
+ <el-button size="mini" type="text">详情</el-button>
322
+ <el-button size="mini" type="text">编辑</el-button>
323
+ <el-button size="mini" type="text">语音</el-button>
324
+ </span>
325
+ <!-- 定制单个表头 -->
326
+ <span slot="completionRateHeader">
327
+ <span style="margin-right: 4px;">任务完成率</span>
328
+ <el-tooltip placement="right" effect="light">
329
+ <div slot="content">累计完成率=(累计导入数-进行中外呼数)/累计导入数</div>
330
+ <i class="iconfont icon-bangzhuzhongxin" style="font-weight: normal"></i>
331
+ </el-tooltip>
332
+ </span>
333
+ <!-- 定制actionBar -->
334
+ <span slot="actionBar">
335
+ <el-checkbox style='margin-right: 20px;' @change='nfTable.selectAll3' v-model='nfTable.select3.value'>当页全选</el-checkbox>
336
+ <el-button type="success" size='mini'>开启</el-button>
337
+ <el-button type="danger" size='mini'> 暂停</el-button>
338
+ <el-button type="danger" size='mini'>删除</el-button>
339
+ </span>
340
+ <!-- 定制empty -->
341
+ <span slot="empty">
342
+ 定制empty
343
+ </span>
344
+ <!-- 定制append -->
345
+ <span slot="append">
346
+ slot定制append
347
+ </span>
348
+ <!-- 定制分页 -->
349
+ <span slot="pagination" style='float: right'>
350
+ <el-pagination ref="nfTablePaginationRef" v-bind="pageAttrs" v-on="pageEvents" />
351
+ </span>
352
+ </nf-table>
353
+
354
+ <el-divider> 上面当窗口很小时 操作列和选择列 固定横向拖拽(可以F12打开控制台缩小窗口试试)</el-divider>
355
+ <el-divider> 下面配合nf-empty使用 </el-divider>
356
+
357
+ <nf-table
358
+ ref='nfTable4'
359
+ :data="[]"
360
+ storage-key='nf-table-test4'
361
+ :column-edit="true"
362
+ search-form-storage-key='nf-search-form-test4'
363
+ :columns="nfTable.tableColumns5.value"
364
+ :loading='nfTable.searchForm5.value.loading'
365
+ >
366
+ <!-- 去除searchBox -->
367
+ <span slot="searchBox"></span>
368
+ <!-- 定制append -->
369
+ <span slot="append">
370
+ slot定制append
371
+ </span>
372
+ <!-- 定制empty -->
373
+ <nf-empty style='margin-top: 20px;' slot="empty" :image-size='145'></nf-empty>
374
+ </nf-table>
375
+ </div>
376
+ <div style="margin-top: 10px">
377
+ <h3>11. 表单</h3>
378
+ <!-- form-options 👈 唯一必传,控制所有表单项目渲染的 json data(表单填充数据不用给,组件初始化后通过ref或@回调获取即可),其他所有属性可选 -->
379
+ <!-- rules 👈 可选,定制表单校验规则 -->
380
+
381
+ <!-- columns 👈 可选,几个表单项自动收起,默认自动检测为一行的数量 -->
382
+ <!-- is-collapse 👈 可选,初始化是否展开 -->
383
+
384
+ <!-- btn-items 👈 可选,开启默认按钮 -->
385
+ <!-- reverse-btn-slot 👈 可选,反转自定义按钮slot和默认按钮的顺序 -->
386
+
387
+ <!-- closable 👈 可选,打开控制显示每个表单项的显示隐藏icon,功能同 列编辑 异曲同工,默认false -->
388
+ <!-- column-edit 👈 可选,开启列编辑,默认false -->
389
+ <!-- check-mode 👈 可选,列编辑交互模式,默认drawer(drawer/dialog) -->
390
+ <!-- storage-key 👈 可选,开启列编辑后必给,列编辑数据缓存key,用来做多个表单缓存命名空间区分,默认nf-search-form-columns-cached-key -->
391
+ <!-- priority 👈 可选,开启列编辑后,打开列编辑弹框缓存回显列目项优先级,处理item.initHidden,table.showColumn和cookies.cached回显优先级,默认cached(cached/value) -->
392
+
393
+ <!-- itemWidth 👈 可选,默认227, 每个search form item content的宽度定制,实现label上下布局(用于各种语言的最佳布局)表单项对齐,如果需要单独做一个定制宽度,form-options的每个item传入width即可 -->
394
+
395
+ <!-- inline 👈 可选,行内表单,支持所有el-form属性设置 -->
396
+ <!-- label-position 👈 可选,表单标签位置,同上,支持所有el-form属性设置 -->
397
+ <!-- btn-model 👈 可选,操作按钮和自定义按钮slot是否单独一行,为了兼容ai-search-form默认继承了这个功能 -->
398
+ <!-- btn-box-label 👈 可选,btn-model='inline'时,定制按钮slot和默认按钮作为最后一个form-item包裹在内,-->
399
+ <!-- 该属性设置form-item的label,用来在上下label布局对齐高度,或手动改透明度组直接当作label用 -->
400
+ <nf-search-form
401
+ :form-options="searchOption"
402
+ :rules='rules'
403
+
404
+ :columns='columns'
405
+ @isCollapseChange="isCollapseChange"
406
+
407
+ :btn-items="btnItemList"
408
+ @onSearch="searchFn"
409
+ @onExport="exportFn"
410
+ @onResetFields='resetFieldsFn'
411
+
412
+ :closable='true'
413
+ storage-key='nf-search-form-test1'
414
+ :column-edit='true'
415
+ check-mode='drawer'
416
+
417
+ :inline='inline'
418
+ :label-position='labelPosition'
419
+ btn-model='inline'
420
+ btn-box-label='自定按钮slot定制的内容 + 默认按钮:'
421
+
422
+ ref='nfSearchFormRef'
423
+ >
424
+ <!-- slot='custumSlot' 👈 数字区间slot定制 -->
425
+ <span slot="repeatCountAppend">Not</span>
426
+ <span slot="doubleRepeatCountAppend">In</span>
427
+ <span slot="doubleRepeatCountAppendSegment" class="iconfont icon-dao" style="margin: 0 5px"></span>
428
+ <!-- slot='custumSlot' 👈 数据项slot定制 -->
429
+ <el-input
430
+ slot='custumSlot'
431
+ v-model='searchForm.custumSlot'
432
+ placehold='请输入'
433
+ clearable
434
+ prefix-icon="el-icon-search"
435
+ suffix-icon="el-icon-date"
436
+ style='display:inline-block;width: 100%'
437
+ ></el-input>
438
+ <!-- slot='btnBox' 👈 操作按钮slot定制 -->
439
+ <span slot='btnBox' style='align-self: self-start;margin-right: 10px;'>
440
+ <div>
441
+ <el-button size='mini' @click='inline=!inline'>切换块级</el-button>
442
+ <el-button size='mini' @click='columns++'>增加折叠个数</el-button>
443
+ <el-button size='mini' @click='columns--'>减少折叠个数</el-button>
444
+ </div>
445
+ <div>
446
+ <el-button size='mini' @click='changeLabelPosition("top")'>表单项前缀向上</el-button>
447
+ <el-button size='mini' @click='changeLabelPosition("right")'>表单项前缀向右</el-button>
448
+ </div>
449
+ <div>
450
+ <el-button size='mini' @click='changeLabelPosition("left")'>表单项前缀向左</el-button>
451
+ <el-button size='mini' type="primary" @click="submitForm()">表单校验</el-button>
452
+ <el-button size='mini' @click="resetForm()">重置校验</el-button>
453
+ </div>
454
+ </span>
455
+ </nf-search-form>
456
+ </div>
457
+ <div style="margin-top: 10px">
458
+ <h3>12. 软电话</h3>
459
+ <nf-microphone
460
+ ref="nfSoftPhone1"
461
+
462
+ :agent-tag="agentTag"
463
+ :app-key="appKey"
464
+ :sign.sync='sign'
465
+ :timestamp.sync='timestamp'
466
+ ext-status="1"
467
+
468
+ name="nf-softphone0"
469
+ destination-origin="nf-softphone1"
470
+ ancestor-origin="nf-softphone1"
471
+
472
+ @softphone-connect="softphoneConnectCallBack1"
473
+ @softphone-call-refresh="softphoneCallRefreshCallBack1"
474
+ @softphone-seats-status-change="softphoneSeatStatusChangeCallBack1"
475
+ @softphone-accept="softphoneAcceptCallBack1"
476
+ @softphone-ignore="softphoneIgnoreCallBack1"
477
+ @softphone-hangup="softphoneHangupCallBack1"
478
+ @softphone-auto-ignore-callback="softphoneAutoIgnoreCallback1"
479
+ @softphone-session-state-change="softphoneSessionStateChangeCallBack1"
480
+ @softphone-incoming="softphoneIncomingCallBack1"
481
+ @softphone-send-dtmf="softphoneSendDtmfCallBack1"
482
+ @softphone-connect-registered="softphoneConnectRegisteredCallBack1"
483
+ @softphone-sign-overdued="softphoneSignOverduedCallBack1"
484
+ ></nf-microphone>
485
+ </div>
486
+ </div>
487
+ </div>
488
+ </body>
489
+ <script>
490
+ const { default: CommonUI } = window['common-ui']
491
+ const {
492
+ ref,
493
+ getCurrentInstance,
494
+ reactive,
495
+ computed,
496
+ } = Vue
497
+
498
+ Vue.use(ELEMENT).use(CommonUI) // 👈 注册common-ui
499
+
500
+ new Vue({
501
+ el: '#app',
502
+ data() {
503
+ return {
504
+ testData: 1
505
+ }
506
+ },
507
+ methods: {
508
+ testAlert() {
509
+ alert(1)
510
+ }
511
+ },
512
+ setup() {
513
+ /**
514
+ * nf-keyword
515
+ */
516
+ const keywords = ref([])
517
+
518
+ const delAllKeywordFn = (tags) => {
519
+ keywords.value = []
520
+ console.log(tags)
521
+ }
522
+ const delItem = (item) => {
523
+ console.log(item)
524
+ }
525
+ const copySuccess = (str) => {
526
+ console.log(str)
527
+ }
528
+ const getItemDisabledStatus = (tag) => {
529
+ if(tag.content === 'aa') {
530
+ return true
531
+ }
532
+ return false
533
+ }
534
+ /**
535
+ * nf-keyword
536
+ */
537
+ /**
538
+ * nf-table
539
+ */
540
+ const deepClone = (source) => {
541
+ if (!source && typeof source !== 'object') {
542
+ throw new Error('error arguments shallowClone')
543
+ }
544
+ const targetObj = source.constructor === Array ? [] : {}
545
+ Object.keys(source).forEach((keys) => {
546
+ if (source[keys] && typeof source[keys] === 'object') {
547
+ targetObj[keys] = source[keys].constructor === Array ? [] : {}
548
+ targetObj[keys] = deepClone(source[keys])
549
+ } else {
550
+ targetObj[keys] = source[keys]
551
+ }
552
+ })
553
+ return targetObj
554
+ }
555
+
556
+ /**
557
+ 定制表格合计行的显示
558
+ */
559
+ const getSummaries = (param) => {
560
+ const { columns, data } = param;
561
+ const sums = [];
562
+ columns.forEach((column, index) => {
563
+ if (index === 0) {
564
+ sums[index] = '汇总';
565
+ return;
566
+ }
567
+ if (index === 1 || index === 2) {
568
+ sums[index] = '--';
569
+ return;
570
+ }
571
+ const values = data.map(item => Number(item[column.property]));
572
+ if (!values.every(value => isNaN(value))) {
573
+ sums[index] = values.reduce((prev, curr) => {
574
+ const value = Number(curr);
575
+ if (!isNaN(value)) {
576
+ return prev + curr;
577
+ } else {
578
+ return prev;
579
+ }
580
+ }, 0);
581
+ sums[index] += '%';
582
+ } else {
583
+ sums[index] = '--';
584
+ }
585
+ });
586
+ return sums;
587
+ };
588
+ /**
589
+ 用来模拟表单数据加载
590
+ */
591
+ const mockData = [
592
+ {
593
+ name: "复制_测试",
594
+ startTime: "2022-12-21 00:00:00",
595
+ companyName: "konghang",
596
+ completionRate: 1,
597
+ operationName: "a26",
598
+ viceOperationName:"副负责人",
599
+ address: 'xxx',
600
+ id: 1,
601
+ unit: 22,
602
+ taskId: 1,
603
+ getOptionsId: 1,
604
+ },
605
+ {
606
+ name: "测试",
607
+ startTime: "2022-12-25 00:00:00",
608
+ companyName: "konghang1",
609
+ completionRate: 0.6,
610
+ operationName: "a28",
611
+ viceOperationName:"副负责人",
612
+ address: 'xxx',
613
+ id: 2,
614
+ unit: 22,
615
+ taskId: 2,
616
+ getOptionsId: 2,
617
+ },
618
+ ];
619
+ /**
620
+ 用来动态改变nf-search-form渲染框架的json data
621
+ */
622
+ const mockColumns = [
623
+ {
624
+ label: '启动日期',
625
+ prop: 'startTime',
626
+ labelTooltip: '启动日期labelTooltip',
627
+ attr: {
628
+ width: 200
629
+ }
630
+ },
631
+ {
632
+ label: '任务完成率',
633
+ prop: 'completionRate',
634
+ /** 定制表头slot */
635
+ headerSlot: 'completionRateHeader',
636
+ attr: {
637
+ /** 定制formatter */
638
+ formatter: row => {
639
+ return `${row.completionRate}%`
640
+ },
641
+ 'min-width': 130
642
+ }
643
+ },
644
+ {
645
+ label: '运营负责人',
646
+ prop: 'operationName',
647
+ /** 定制slot */
648
+ slot: 'operationName',
649
+ attr: {
650
+ 'min-width': 135
651
+ }
652
+ },
653
+ {
654
+ label: '操作',
655
+ prop: 'operation',
656
+ /** 定制动作slot */
657
+ slot: 'operation',
658
+ attr: {
659
+ fixed: 'right',
660
+ 'min-width': 200
661
+ },
662
+ }
663
+ ];
664
+ /**
665
+ 定制nf-search-form渲染框架的json data
666
+ */
667
+ const searchOptionTable = ref([
668
+ {
669
+ label: '普通输入框',
670
+ prop: 'normalInputBox',
671
+ element: 'el-input',
672
+ width: '200px',
673
+ category: '分类一',
674
+ placeholder: '选择右侧下拉查询新增表格数据'
675
+ },
676
+ {
677
+ label: '数字输入框',
678
+ prop: 'numberInputBox',
679
+ element: 'el-input-number',
680
+ class: 'nf-input-number-custom',
681
+ placeholder: '这里输入后搜索即清空数据',
682
+ width: '200px',
683
+ category: '分类一'
684
+ },
685
+ {
686
+ label: '普通下拉',
687
+ prop: 'normalDropdown',
688
+ element: 'el-select',
689
+ 'data-key': 'value',
690
+ options: [
691
+ { label: '查询新增10条数据', value: 1 },
692
+ { label: '查询数据结果为10条', value: 2 }
693
+ ],
694
+ category: '分类一'
695
+ },
696
+ {
697
+ label: '虚拟下拉',
698
+ prop: 'virtualDropdown',
699
+ element: 'el-select',
700
+ 'data-key': 'value',
701
+ 'virtual-list': true,
702
+ options: [
703
+ { label: '给点意见', value: '1' },
704
+ { label: '售后问题', value: '2' }
705
+ ],
706
+ category: '分类一'
707
+ }
708
+ ]);
709
+ const nfTable = reactive({});
710
+ const proxy = getCurrentInstance()?.proxy
711
+ /**
712
+ 通过方法批量产生demo数据
713
+ */
714
+ const useTableInteractiveProgram = (index) => {
715
+ /**
716
+ 表格配置
717
+ */
718
+ nfTable[`tableData${index}`] = ref([]);
719
+ nfTable[`tableColumns${index}`] = ref([
720
+ {
721
+ label: '选择',
722
+ type: 'selection',
723
+ prop: 'selection',
724
+ attr: {
725
+ /** 固定死宽度 */
726
+ width: '100px',
727
+ fixed: 'left',
728
+ align: 'center'
729
+ }
730
+ },
731
+ {
732
+ label: 'id',
733
+ prop: 'id',
734
+ attr: {
735
+ /** 固定死宽度,拖拽最小值根据内容单行撑开的宽度最小值,常用做法 */
736
+ width: '100px'
737
+ }
738
+ },
739
+ {
740
+ label: '编号',
741
+ prop: 'taskId',
742
+ attr: {
743
+ /** 固定死宽度,拖拽最小值根据内容单行撑开的宽度最小值,常用做法 */
744
+ width: '100px'
745
+ }
746
+ },
747
+ {
748
+ label: '任务名称',
749
+ prop: 'name',
750
+ attr: {
751
+ /** 宽度最小值,同时也是拖拽最小值,一般很多表头项时设置width即可,不用设置min-width */
752
+ 'min-width': '120px'
753
+ }
754
+ },
755
+ {
756
+ label: '所属企业',
757
+ prop: 'companyName',
758
+ attr: {
759
+ /** 如果表头项很少可以设置min-width */
760
+ 'min-width': 120
761
+ }
762
+ },
763
+ {
764
+ label: '启动日期',
765
+ prop: 'startTime',
766
+ attr: {
767
+ /** 不设置默认根据分配高度自动折行 */
768
+ /** width: 160 */
769
+ }
770
+ },
771
+ {
772
+ label: '操作',
773
+ attr: {
774
+ fixed: 'right',
775
+ 'min-width': 200
776
+ },
777
+ prop: 'operation',
778
+ operationList: [{
779
+ name: '详情',
780
+ onClick(row, scope) {
781
+ alert('详情')
782
+ console.log(row, scope)
783
+ }
784
+ }, {
785
+ name: '编辑',
786
+ onClick() {
787
+ alert('编辑')
788
+ }
789
+ }, {
790
+ name: '语音通知',
791
+ onClick() {
792
+ alert('语音通知')
793
+ }
794
+ }]
795
+ }
796
+ ]);
797
+ /**
798
+ actionBar配置
799
+ */
800
+ nfTable[`changeSelectFn${index}`] = (selection, row) => {
801
+ if(selection.length === nfTable[`searchForm${index}`].value.pageSize) {
802
+ nfTable[`select${index}`].value = true
803
+ nfTable[`actionBarOptList${index}`].value[0].value = true;
804
+ } else {
805
+ nfTable[`select${index}`].value = false
806
+ nfTable[`actionBarOptList${index}`].value[0].value = false;
807
+ }
808
+ };
809
+ nfTable[`changeSelectAllFn${index}`] = (selection) => {
810
+ if(selection.length === nfTable[`searchForm${index}`].value.pageSize) {
811
+ nfTable[`select${index}`].value = true
812
+ nfTable[`actionBarOptList${index}`].value[0].value = true;
813
+ } else {
814
+ nfTable[`select${index}`].value = false
815
+ nfTable[`actionBarOptList${index}`].value[0].value = false;
816
+ }
817
+ };
818
+ nfTable[`select${index}`] = ref();
819
+ nfTable[`selectAll${index}`] = (val) => {
820
+ nfTable[`select${index}`].value = val;
821
+ proxy?.$refs[`nfTable${index}`]?.toggleAllSelection()
822
+ };
823
+ nfTable[`actionBarOptList${index}`] = ref([
824
+ {
825
+ element: 'el-checkbox',
826
+ value: false,
827
+ text: '当页全选',
828
+ events: {
829
+ change(val) {
830
+ nfTable[`actionBarOptList${index}`].value[0].value = val;
831
+ proxy?.$refs[`nfTable${index}`]?.toggleAllSelection()
832
+ }
833
+ }
834
+ },
835
+ {
836
+ element: 'el-button',
837
+ value: '开启',
838
+ type: 'primary',
839
+ events: {
840
+ click() {
841
+ alert('开启')
842
+ }
843
+ }
844
+ },
845
+ {
846
+ element: 'el-button',
847
+ value: '暂停',
848
+ type: 'danger',
849
+ events: {
850
+ click() {
851
+ alert('暂停')
852
+ }
853
+ }
854
+ },
855
+ {
856
+ element: 'el-button',
857
+ value: '删除',
858
+ type: 'danger',
859
+ events: {
860
+ click() {
861
+ alert('删除')
862
+ }
863
+ }
864
+ }
865
+ ]);
866
+ /**
867
+ mock数据
868
+ */
869
+ nfTable[`addTableData${index}`] = (repeat = 1, limit, immediately = false) => {
870
+ nfTable[`searchForm${index}`].value.loading = true;
871
+ const addData = () => {
872
+ Array(repeat).fill(0).forEach(_ => nfTable[`tableData${index}`].value = nfTable[`tableData${index}`].value.concat(deepClone(mockData).map(itemM => {
873
+ itemM.id = itemM.id + nfTable[`tableData${index}`].value.length;
874
+ return itemM
875
+ })));
876
+ if (limit) {
877
+ nfTable[`tableData${index}`].value = nfTable[`tableData${index}`].value.slice(0, limit)
878
+ }
879
+ nfTable[`searchForm${index}`].value.loading = false
880
+ }
881
+ if (immediately) {
882
+ addData();
883
+ } else {
884
+ setTimeout(() => {
885
+ addData();
886
+ }, 1000)
887
+ }
888
+ };
889
+ /**
890
+ 表单配置
891
+ */
892
+ nfTable[`searchForm${index}`] = ref({
893
+ pageNo: 1,
894
+ pageSize: 3,
895
+ loading: false,
896
+ });
897
+ nfTable[`searchChange${index}`] = (data) => {
898
+ nfTable[`searchForm${index}`].value = {
899
+ ...nfTable[`searchForm${index}`].value,
900
+ ...data
901
+ }
902
+ };
903
+ nfTable[`onSearch${index}`] = (data) => {
904
+ const newAdd = data.normalDropdown === 2;
905
+ const limitAdd = data.normalDropdown === 1;
906
+ const numberInputBox = !!data.numberInputBox;
907
+ if (numberInputBox) {
908
+ nfTable[`tableData${index}`].value = [];
909
+ return
910
+ }
911
+ nfTable[`addTableData${index}`](newAdd || limitAdd ? 5: 1, data.normalDropdown === 2 ? 10 : 0)
912
+ };
913
+ /**
914
+ 分页配置
915
+ */
916
+ nfTable[`pageConfig${index}`] = computed(() => {
917
+ const { pageNo, pageSize, loading } = nfTable[`searchForm${index}`].value;
918
+ return {
919
+ 'current-page': pageNo,
920
+ 'page-size': pageSize,
921
+ disabled: loading,
922
+ }
923
+ });
924
+ nfTable[`pageSizeChangeFn${index}`] = (val) => {
925
+ console.log(`pageSizeChangeFn${index}`, val);
926
+ nfTable[`searchForm${index}`].value.pageSize = val
927
+ };
928
+ nfTable[`pageCurrentChangeFn${index}`] = (val) => {
929
+ console.log(`pageCurrentChangeFn${index}`, val);
930
+ nfTable[`searchForm${index}`].value.pageNo = val
931
+ };
932
+ /**
933
+ columnEdit配置
934
+ */
935
+ nfTable[`columnEditDialog${index}`] = () => {
936
+ if (proxy?.$refs[`nfTable${index}`]) {
937
+ proxy.$refs[`nfTable${index}`].nfColumCheckDialogVisible = true
938
+ }
939
+ };
940
+ };
941
+ /**
942
+ 初始化数据 👈 组装好所有需要的数据丢进nf-table即可
943
+ */
944
+ useTableInteractiveProgram(3);
945
+ useTableInteractiveProgram(5);
946
+ nfTable.addTableData3(2, 0, true);
947
+ nfTable.addTableData5(2, 0, true);
948
+ /**
949
+ 补丁数据
950
+ */
951
+ nfTable.tableColumns3 = ref(deepClone(nfTable.tableColumns1?.value || []).slice(0, -2).concat(deepClone(mockColumns)));
952
+
953
+ /**
954
+ 由于使用了分页slot,这里自定义分页逻辑 - 前端分页
955
+ */
956
+ const showData = computed(() => {
957
+ const list = nfTable.tableData3.value;
958
+ const pageSize = pageAttrs.value['page-size'];
959
+ const currentPage = pageAttrs.value['current-page'] || 1;
960
+ if (list.length > pageSize) {
961
+ return list.slice((currentPage - 1) * pageSize, currentPage * pageSize)
962
+ } else {
963
+ return list
964
+ }
965
+ });
966
+ const pageAttrs = computed(() => {
967
+ const { pageNo, pageSize, loading } = nfTable.searchForm3.value;
968
+ return {
969
+ background: false,
970
+ layout: 'total, sizes, prev, pager, next',
971
+ 'page-sizes': [3, 10, 20, 30, 40, 50, 100, 200],
972
+ 'current-page': pageNo,
973
+ 'page-size': pageSize,
974
+ total: nfTable.tableData3.value.length,
975
+ disabled: loading,
976
+ }
977
+ });
978
+ const pageEvents = computed(() => {
979
+ return {
980
+ 'size-change':nfTable.pageSizeChangeFn3,
981
+ 'current-change':nfTable.pageCurrentChangeFn3
982
+ }
983
+ });
984
+ /**
985
+ * nf-table
986
+ */
987
+ /**
988
+ * nf-search-form
989
+ */
990
+ const EXCHANGE_KEY_TYPE = {
991
+ range: 1, // 数组值分割多个字段
992
+ multiple: 2, // 分割逗号
993
+ }
994
+ const nfSearchFormRef = ref()
995
+
996
+ const columns = ref(6)
997
+ const inline = ref(true)
998
+ const labelPosition = ref('top')
999
+ const changeLabelPosition = (val) => {
1000
+ labelPosition.value = val
1001
+ }
1002
+
1003
+ const isCollapseChange = (collapse) => {
1004
+ console.log(collapse)
1005
+ }
1006
+
1007
+ const rules = ref({
1008
+ normalInputBox: [
1009
+ { required: true, message: '支持校验', trigger: 'change' },
1010
+ { min: 3, max: 5, message: '长度在 3 到 5 个字符', trigger: 'change' }
1011
+ ],
1012
+ })
1013
+
1014
+ const btnItemList = ref([
1015
+ 'search',
1016
+ 'export',
1017
+ 'reset',
1018
+ {
1019
+ name: '自定义配置按钮',
1020
+ onClick(formData) {
1021
+ console.log('点击了自定义按钮', formData);
1022
+ }
1023
+ },
1024
+ {
1025
+ name: '动态展示按钮show(formData)',
1026
+ show(formData) {
1027
+ return formData.showKey === '3'
1028
+ }
1029
+ }
1030
+ ]);
1031
+
1032
+ const submitForm = (formName) => {
1033
+ nfSearchFormRef.value?.onNfSearchFormValidate()
1034
+ };
1035
+ const resetForm = (formName) => {
1036
+ nfSearchFormRef.value?.resetNfSearchFormModel();
1037
+ };
1038
+
1039
+ // 模拟后端接口
1040
+ const mockIndexSearch = ref(0);
1041
+ const mockKeywordIndexSearch = ref(0);
1042
+ const mockKeywordSearch = ref('');
1043
+ const testPageSearch = (param) => {
1044
+ return new Promise((resolve) => {
1045
+ setTimeout(() => {
1046
+ // 模拟后端接口关键字
1047
+ if (param.pageNo === 1) {
1048
+ mockIndexSearch.value = 0
1049
+ mockKeywordIndexSearch.value = 0
1050
+ }
1051
+ console.log(param.pageNo)
1052
+ if (param.keyword) {
1053
+ mockIndexSearch.value = 0
1054
+ if (mockKeywordSearch.value !== param.keyword) {
1055
+ mockKeywordSearch.value = param.keyword
1056
+ mockKeywordIndexSearch.value = 0
1057
+ }
1058
+ } else {
1059
+ mockKeywordIndexSearch.value = 0
1060
+ mockKeywordSearch.value = ''
1061
+ }
1062
+
1063
+ const mockData = {
1064
+ records: [
1065
+ {
1066
+ value: (mockKeywordSearch.value ? mockKeywordSearchIndexSearch.value : mockIndexSearch.value)+((param.pageNo - 1)*4+0)+mockKeywordSearch.value,
1067
+ label: (mockKeywordSearch.value ? mockKeywordSearchIndexSearch.value : mockIndexSearch.value)+((param.pageNo - 1)*4+0)+mockKeywordSearch.value,
1068
+ },
1069
+ {
1070
+ value: (mockKeywordSearch.value ? mockKeywordSearchIndexSearch.value : mockIndexSearch.value)+((param.pageNo - 1)*4+1)+mockKeywordSearch.value,
1071
+ label: (mockKeywordSearch.value ? mockKeywordSearchIndexSearch.value : mockIndexSearch.value)+((param.pageNo - 1)*4+1)+mockKeywordSearch.value,
1072
+ },
1073
+ {
1074
+ value: (mockKeywordSearch.value ? mockKeywordSearchIndexSearch.value : mockIndexSearch.value)+((param.pageNo - 1)*4+2)+mockKeywordSearch.value,
1075
+ label: (mockKeywordSearch.value ? mockKeywordSearchIndexSearch.value : mockIndexSearch.value)+((param.pageNo - 1)*4+2)+mockKeywordSearch.value,
1076
+ },
1077
+ {
1078
+ value: (mockKeywordSearch.value ? mockKeywordSearchIndexSearch.value : mockIndexSearch.value)+((param.pageNo - 1)*4+3)+mockKeywordSearch.value,
1079
+ label: (mockKeywordSearch.value ? mockKeywordSearchIndexSearch.value : mockIndexSearch.value)+((param.pageNo - 1)*4+3)+mockKeywordSearch.value,
1080
+ }
1081
+ ],
1082
+ total: 100,
1083
+ };
1084
+ resolve(mockData)
1085
+ }, 1000)
1086
+ })
1087
+ }
1088
+
1089
+
1090
+ const searchOption = ref([
1091
+ {
1092
+ label: '普通输入框',
1093
+ prop: 'normalInputBox',
1094
+ element: 'el-input',
1095
+ width: '200px',
1096
+ category: '分类一',
1097
+ isShowColon: true
1098
+ },
1099
+ {
1100
+ label: '输入框带append',
1101
+ prop: 'normalInputBox2',
1102
+ element: 'el-input',
1103
+ width: '200px',
1104
+ category: '分类一',
1105
+ isShowColon: true,
1106
+ append: '元'
1107
+ },
1108
+ {
1109
+ label: '输入框带prepend',
1110
+ prop: 'normalInputBox3',
1111
+ element: 'el-input',
1112
+ width: '200px',
1113
+ category: '分类一',
1114
+ isShowColon: true,
1115
+ prepend: '前prepend'
1116
+ },
1117
+ {
1118
+ label: '数字输入框',
1119
+ prop: 'numberInputBox',
1120
+ element: 'el-input-number',
1121
+ width: '200px',
1122
+ category: '分类一'
1123
+ },
1124
+ {
1125
+ label: '普通下拉',
1126
+ prop: 'normalDropdown',
1127
+ element: 'el-select',
1128
+ 'data-key': 'value',
1129
+ options: [
1130
+ { label: '给点意见', value: '1' },
1131
+ { label: '售后问题', value: '2' }
1132
+ ],
1133
+ category: '分类一'
1134
+ },
1135
+ {
1136
+ label: '动态展示show(formData)',
1137
+ prop: 'showKey',
1138
+ element: 'el-select',
1139
+ 'data-key': 'value',
1140
+ options: [
1141
+ { label: '展示所属企业form-item', value: '1' },
1142
+ { label: '展示所属任务form-item', value: '2' },
1143
+ { label: '展示"动态展示按钮"', value: '3' },
1144
+ ],
1145
+ category: '分类一'
1146
+ },
1147
+ {
1148
+ label: '所属企业',
1149
+ prop: 'companyId',
1150
+ element: 'el-select',
1151
+ 'data-key': 'value',
1152
+ options: [
1153
+ { label: '企业1', value: '1' },
1154
+ { label: '企业2', value: '2' }
1155
+ ],
1156
+ show(formData) {
1157
+ return formData.showKey === '1'
1158
+ },
1159
+ category: '分类一'
1160
+ },
1161
+ {
1162
+ label: '所属任务',
1163
+ prop: 'taskId',
1164
+ element: 'el-select',
1165
+ 'data-key': 'value',
1166
+ options: [
1167
+ { label: '任务1', value: '1' },
1168
+ { label: '任务2', value: '2' }
1169
+ ],
1170
+ show(formData) {
1171
+ return formData.showKey === '2'
1172
+ },
1173
+ category: '分类一'
1174
+ },
1175
+ {
1176
+ label: 'changeProps下拉',
1177
+ prop: 'changePropsKey',
1178
+ element: 'el-select',
1179
+ 'data-key': 'value',
1180
+ options: [
1181
+ { label: 'changeProps1', value: 1 },
1182
+ { label: 'changeProps2', value: 2 }
1183
+ ],
1184
+ changeProps: ['getOptionsKey'],
1185
+ category: '分类一'
1186
+ },
1187
+ {
1188
+ label: 'getOptions下拉',
1189
+ prop: 'getOptionsKey',
1190
+ element: 'el-select',
1191
+ 'data-key': 'value',
1192
+ getOptions(callback, formData) {
1193
+ console.log('获取到当前所依赖的表单数据', formData)
1194
+ setTimeout(() => {
1195
+ callback([
1196
+ { label: 'getOptions1', value: '1' },
1197
+ { label: 'getOptions2', value: '2' }
1198
+ ])
1199
+ }, 5000)
1200
+ },
1201
+ category: '分类一'
1202
+ },
1203
+ {
1204
+ label: '日期区间配置(exchangeKey)',
1205
+ prop: 'exchangeTime',
1206
+ type: 'daterange',
1207
+ element: 'el-date-picker',
1208
+ category: '分类二',
1209
+ exchangeKey: { type: EXCHANGE_KEY_TYPE.range, value: ['beginTime', 'endTime'] },
1210
+ },
1211
+ {
1212
+ label: '全选下拉',
1213
+ prop: 'multipleDropdown',
1214
+ element: 'el-select',
1215
+ multiple: true,
1216
+ selectAll: true,
1217
+ selectAllText: '我全都要',
1218
+ 'data-key': 'value',
1219
+ options: [{
1220
+ value: '选项1',
1221
+ label: '黄金糕'
1222
+ }, {
1223
+ value: '选项2',
1224
+ label: '双皮奶'
1225
+ }, {
1226
+ value: '选项3',
1227
+ label: '蚵仔煎'
1228
+ }, {
1229
+ value: '选项4',
1230
+ label: '龙须面'
1231
+ }, {
1232
+ value: '选项5',
1233
+ label: '北京烤鸭'
1234
+ }, {
1235
+ value: '选项6',
1236
+ label: '干炒牛河'
1237
+ }, {
1238
+ value: '选项7',
1239
+ label: '艇仔粥'
1240
+ }, {
1241
+ value: '选项8',
1242
+ label: '油条'
1243
+ }, {
1244
+ value: '选项9',
1245
+ label: '糯米鸡'
1246
+ }],
1247
+ category: '分类一'
1248
+ },
1249
+ {
1250
+ label: '虚拟下拉',
1251
+ prop: 'virtualDropdown',
1252
+ element: 'el-select',
1253
+ 'data-key': 'value',
1254
+ 'virtual-list': true,
1255
+ options: [
1256
+ { label: '给点意见', value: '1' },
1257
+ { label: '售后问题', value: '2' }
1258
+ ],
1259
+ category: '分类一'
1260
+ },
1261
+ {
1262
+ label: '分页虚拟下拉',
1263
+ prop: 'pageVirtualDropdown',
1264
+ element: 'nf-lazy-select',
1265
+ 'data-key': 'value',
1266
+ 'virtual-list': true,
1267
+ request: testPageSearch,
1268
+ category: '分类一'
1269
+ },
1270
+ {
1271
+ label: '多选穿梭',
1272
+ prop: 'multipleChoiceShuttle',
1273
+ element: 'nf-transfer-select',
1274
+ initValue: [],
1275
+ options:[{
1276
+ value: '选项1',
1277
+ label: '黄金糕'
1278
+ }, {
1279
+ value: '选项2',
1280
+ label: '双皮奶'
1281
+ }, {
1282
+ value: '选项3',
1283
+ label: '蚵仔煎'
1284
+ }, {
1285
+ value: '选项4',
1286
+ label: '龙须面'
1287
+ }, {
1288
+ value: '选项5',
1289
+ label: '北京烤鸭'
1290
+ }],
1291
+ category: '分类一'
1292
+ },
1293
+ {
1294
+ label: '级联',
1295
+ prop: 'elCascader',
1296
+ element: 'el-cascader',
1297
+ 'popper-class': 'nf-search-form-demo',
1298
+ options: [{
1299
+ value: 'zhinan',
1300
+ label: '指南',
1301
+ children: [{
1302
+ value: 'shejiyuanze',
1303
+ label: '设计原则',
1304
+ children: [{
1305
+ value: 'yizhi',
1306
+ label: '一致'
1307
+ }]
1308
+ }, {
1309
+ value: 'daohang',
1310
+ label: '导航',
1311
+ children: [{
1312
+ value: 'cexiangdaohang',
1313
+ label: '侧向导航'
1314
+ }]
1315
+ }]
1316
+ }, {
1317
+ value: 'zujian',
1318
+ label: '组件',
1319
+ children: [{
1320
+ value: 'basic',
1321
+ label: 'Basic',
1322
+ children: [{
1323
+ value: 'layout',
1324
+ label: 'Layout 布局'
1325
+ }]
1326
+ }]
1327
+ }, {
1328
+ value: 'ziyuan',
1329
+ label: '资源',
1330
+ children: [{
1331
+ value: 'axure',
1332
+ label: 'Axure Components'
1333
+ }]
1334
+ }],
1335
+ category: '分类一'
1336
+ },
1337
+ {
1338
+ label: '任意时间点',
1339
+ prop: 'anyPointInTime',
1340
+ element: 'el-time-picker',
1341
+ 'picker-options': {
1342
+ start: '08:30',
1343
+ step: '00:10',
1344
+ end: '18:30'
1345
+ },
1346
+ category: '分类二'
1347
+ },
1348
+ {
1349
+ label: '任意时间区间',
1350
+ prop: 'anyTimeInterval',
1351
+ element: 'el-time-picker',
1352
+ 'is-range': true,
1353
+ 'picker-options': {
1354
+ start: '08:30',
1355
+ step: '00:10',
1356
+ end: '18:30'
1357
+ },
1358
+ category: '分类二'
1359
+ },
1360
+ {
1361
+ label: '年份选择',
1362
+ prop: 'year',
1363
+ type: 'year',
1364
+ element: 'el-date-picker',
1365
+ category: '分类二'
1366
+ },
1367
+ {
1368
+ label: '半年选择',
1369
+ prop: 'halfyear',
1370
+ element: 'nf-half-year-picker',
1371
+ category: '分类二'
1372
+ },
1373
+ {
1374
+ label: '季度选择',
1375
+ prop: 'quarter',
1376
+ element: 'nf-quarter-picker',
1377
+ category: '分类二'
1378
+ },
1379
+ {
1380
+ label: '月份选择',
1381
+ prop: 'month',
1382
+ type: 'month',
1383
+ element: 'el-date-picker',
1384
+ category: '分类二'
1385
+ },
1386
+ {
1387
+ label: '周数选择',
1388
+ prop: 'week',
1389
+ type: 'week',
1390
+ element: 'el-date-picker',
1391
+ category: '分类二'
1392
+ },
1393
+ {
1394
+ label: '日期选择',
1395
+ prop: 'date',
1396
+ type: 'date',
1397
+ element: 'el-date-picker',
1398
+ category: '分类二'
1399
+ },
1400
+ {
1401
+ label: '日期区间',
1402
+ prop: 'daterange',
1403
+ type: 'daterange',
1404
+ element: 'el-date-picker',
1405
+ category: '分类二'
1406
+ },
1407
+ {
1408
+ label: '周区间',
1409
+ prop: 'weekrange',
1410
+ element: 'nf-double-week',
1411
+ category: '分类二'
1412
+ },
1413
+ {
1414
+ label: '月份区间',
1415
+ prop: 'monthrange',
1416
+ type: 'monthrange',
1417
+ element: 'el-date-picker',
1418
+ category: '分类二'
1419
+ },
1420
+ {
1421
+ label: '季度区间',
1422
+ prop: 'quarterrange',
1423
+ element: 'nf-double-quarter',
1424
+ category: '分类二'
1425
+ },
1426
+ {
1427
+ label: '半年区间',
1428
+ prop: 'halfyearrrange',
1429
+ element: 'nf-double-half-year',
1430
+ category: '分类二'
1431
+ },
1432
+ {
1433
+ label: '年区间',
1434
+ prop: 'yearrrange',
1435
+ element: 'nf-double-year',
1436
+ category: '分类二'
1437
+ },
1438
+ {
1439
+ label: '日期和时间点',
1440
+ prop: 'datetime',
1441
+ type: 'datetime',
1442
+ element: 'el-date-picker',
1443
+ category: '分类二'
1444
+ },
1445
+ {
1446
+ label: '日期和时间范围',
1447
+ prop: 'datetimerange',
1448
+ type: 'datetimerange',
1449
+ element: 'el-date-picker',
1450
+ category: '分类二'
1451
+ },
1452
+ {
1453
+ label: '固定时间',
1454
+ prop: 'fixedtime',
1455
+ element: 'el-time-select',
1456
+ 'picker-options': {
1457
+ start: '08:30',
1458
+ step: '00:10',
1459
+ end: '18:30'
1460
+ },
1461
+ category: '分类三'
1462
+ },
1463
+ {
1464
+ label: '固定时间区间',
1465
+ prop: 'fixedTimeInterval',
1466
+ element: 'el-time-select',
1467
+ type: 'datetimerange',
1468
+ 'picker-options': {
1469
+ start: '08:30',
1470
+ step: '00:10',
1471
+ end: '18:30'
1472
+ },
1473
+ category: '分类三'
1474
+ },
1475
+ {
1476
+ label: '数字区间',
1477
+ prop: 'numberRange',
1478
+ element: 'number-range',
1479
+ initValue: [],
1480
+ min: 0,
1481
+ category: '分类三',
1482
+ class: 'number-range-box',
1483
+ inputSlot: {
1484
+ append: 'repeatCountAppend',
1485
+ doubleAppend: 'doubleRepeatCountAppend',
1486
+ doubleSegment: 'doubleRepeatCountAppendSegment',
1487
+ },
1488
+ tag: 'el-input',
1489
+ events: {
1490
+ input: (val) => {
1491
+ let flag = false
1492
+ const val0 = val[0]?.replace(/[^0-9]/g, '')
1493
+ const val1 = val[1]?.replace(/[^0-9]/g, '')
1494
+ if (val[0] && val0 != val[0]) {
1495
+ flag = true
1496
+ }
1497
+ if (val[1] && val1 != val[1]) {
1498
+ flag = true
1499
+ }
1500
+ if (flag && this.$refs.unfinishNfSearchForm) {
1501
+ this.$refs.nfSearchForm.unfinishNfSearchForm.repeatCountVal = [val0, val1]
1502
+ }
1503
+ }
1504
+ }
1505
+ },
1506
+ {
1507
+ label: '自定义slot',
1508
+ prop: 'custumSlot',
1509
+ slot: 'custumSlot',
1510
+ category: '分类四',
1511
+ },
1512
+ ])
1513
+
1514
+ const searchForm = ref({
1515
+ custumSlot: ''
1516
+ })
1517
+
1518
+ const searchFn = (data) => {
1519
+ console.log(data)
1520
+ searchForm.value = ref({
1521
+ ...searchForm.value,
1522
+ ...data
1523
+ })
1524
+ }
1525
+ const resetFieldsFn = () => {
1526
+ searchForm.value.custumSlot = ''
1527
+ }
1528
+ const exportFn = (data) => {
1529
+ console.log(data)
1530
+ }
1531
+ /**
1532
+ * nf-search-form
1533
+ */
1534
+ /**
1535
+ * nf-lazy-select
1536
+ */
1537
+ const test = ref([]);
1538
+ const test1 = ref();
1539
+ const test2 = ref();
1540
+ const testChange1 = () => {
1541
+ console.log('testChange1')
1542
+ }
1543
+ const testChange2 = () => {
1544
+ console.log('testChange2')
1545
+ }
1546
+ const testChange3 = () => {
1547
+ console.log('testChange3')
1548
+ }
1549
+ const testInput1 = () => {
1550
+ console.log('testInput1')
1551
+ }
1552
+ const testInput2 = () => {
1553
+ console.log('testInput2')
1554
+ }
1555
+ const testInput3 = () => {
1556
+ console.log('testInput3')
1557
+ }
1558
+
1559
+ // 模拟后端接口
1560
+ const mockIndex = ref(0);
1561
+ const mockKeywordIndex = ref(0);
1562
+ const mockKeyword = ref('');
1563
+ const testPage = (param) => {
1564
+ return new Promise((resolve) => {
1565
+ setTimeout(() => {
1566
+ // 模拟后端接口关键字
1567
+ if (param.pageNo === 1) {
1568
+ mockIndex.value = 0
1569
+ mockKeywordIndex.value = 0
1570
+ }
1571
+ console.log(param.pageNo)
1572
+ if (param.keyword) {
1573
+ mockIndex.value = 0
1574
+ if (mockKeyword.value !== param.keyword) {
1575
+ mockKeyword.value = param.keyword
1576
+ mockKeywordIndex.value = 0
1577
+ }
1578
+ } else {
1579
+ mockKeywordIndex.value = 0
1580
+ mockKeyword.value = ''
1581
+ }
1582
+
1583
+ const mockData = {
1584
+ records: [
1585
+ {
1586
+ value: (mockKeyword.value ? mockKeywordIndex.value : mockIndex.value)+((param.pageNo - 1)*10+0)+mockKeyword.value,
1587
+ label: (mockKeyword.value ? mockKeywordIndex.value : mockIndex.value)+((param.pageNo - 1)*10+0)+mockKeyword.value + '显示',
1588
+ a: 1,
1589
+ },
1590
+ {
1591
+ value: (mockKeyword.value ? mockKeywordIndex.value : mockIndex.value)+((param.pageNo - 1)*10+1)+mockKeyword.value,
1592
+ label: (mockKeyword.value ? mockKeywordIndex.value : mockIndex.value)+((param.pageNo - 1)*10+1)+mockKeyword.value + '显示'
1593
+ },
1594
+ {
1595
+ value: (mockKeyword.value ? mockKeywordIndex.value : mockIndex.value)+((param.pageNo - 1)*10+2)+mockKeyword.value,
1596
+ label: (mockKeyword.value ? mockKeywordIndex.value : mockIndex.value)+((param.pageNo - 1)*10+2)+mockKeyword.value + '显示'
1597
+
1598
+ },
1599
+ {
1600
+ value: (mockKeyword.value ? mockKeywordIndex.value : mockIndex.value)+((param.pageNo - 1)*10+3)+mockKeyword.value,
1601
+ label: (mockKeyword.value ? mockKeywordIndex.value : mockIndex.value)+((param.pageNo - 1)*10+3)+mockKeyword.value + '显示'
1602
+ },
1603
+ {
1604
+ value: (mockKeyword.value ? mockKeywordIndex.value : mockIndex.value)+((param.pageNo - 1)*10+4)+mockKeyword.value,
1605
+ label: (mockKeyword.value ? mockKeywordIndex.value : mockIndex.value)+((param.pageNo - 1)*10+4)+mockKeyword.value + '显示'
1606
+ },
1607
+ {
1608
+ value: (mockKeyword.value ? mockKeywordIndex.value : mockIndex.value)+((param.pageNo - 1)*10+5)+mockKeyword.value,
1609
+ label: (mockKeyword.value ? mockKeywordIndex.value : mockIndex.value)+((param.pageNo - 1)*10+5)+mockKeyword.value + '显示'
1610
+ },
1611
+ {
1612
+ value: (mockKeyword.value ? mockKeywordIndex.value : mockIndex.value)+((param.pageNo - 1)*10+6)+mockKeyword.value,
1613
+ label: (mockKeyword.value ? mockKeywordIndex.value : mockIndex.value)+((param.pageNo - 1)*10+6)+mockKeyword.value + '显示'
1614
+
1615
+ },
1616
+ {
1617
+ value: (mockKeyword.value ? mockKeywordIndex.value : mockIndex.value)+((param.pageNo - 1)*10+7)+mockKeyword.value,
1618
+ label: (mockKeyword.value ? mockKeywordIndex.value : mockIndex.value)+((param.pageNo - 1)*10+7)+mockKeyword.value + '显示'
1619
+ },
1620
+ {
1621
+ value: (mockKeyword.value ? mockKeywordIndex.value : mockIndex.value)+((param.pageNo - 1)*10+8)+mockKeyword.value,
1622
+ label: (mockKeyword.value ? mockKeywordIndex.value : mockIndex.value)+((param.pageNo - 1)*10+8)+mockKeyword.value + '显示'
1623
+
1624
+ },
1625
+ {
1626
+ value: (mockKeyword.value ? mockKeywordIndex.value : mockIndex.value)+((param.pageNo - 1)*10+9)+mockKeyword.value,
1627
+ label: (mockKeyword.value ? mockKeywordIndex.value : mockIndex.value)+((param.pageNo - 1)*10+9)+mockKeyword.value + '显示'
1628
+ }
1629
+ ],
1630
+ total: 1000,
1631
+ };
1632
+ resolve(mockData)
1633
+ }, 1000)
1634
+ })
1635
+ }
1636
+ /**
1637
+ * nf-lazy-select
1638
+ */
1639
+
1640
+ /**
1641
+ * nf-radio
1642
+ */
1643
+ // 1-当天,2-按日,3-按周,4-按月
1644
+ const TimeTypeMap = {
1645
+ today: 1,
1646
+ day: 2,
1647
+ week: 3,
1648
+ month: 4
1649
+ }
1650
+ const multipleActiveIndex = ref([TimeTypeMap['day']])
1651
+ const queryList = ref([ {
1652
+ name: '今日',
1653
+ value: TimeTypeMap['today'],
1654
+ tip: '',
1655
+ },
1656
+ {
1657
+ name: '按日',
1658
+ value: TimeTypeMap['day'],
1659
+ tip: '按日统计,默认查询最近7天'
1660
+ },
1661
+ {
1662
+ name: '按周',
1663
+ value: TimeTypeMap['week'],
1664
+ tip: '按周统计,默认查询最近4周,最近可选上一周'
1665
+ },
1666
+ {
1667
+ name: '按月',
1668
+ value: TimeTypeMap['month'],
1669
+ tip: '按月统计,默认查询最近6个月,最近可选上一个月'
1670
+ }
1671
+ ])
1672
+ const changeHandler = ({index,value}) => {
1673
+ console.log(index)
1674
+ console.log(value)
1675
+ }
1676
+ /**
1677
+ * nf-radio
1678
+ */
1679
+
1680
+ /**
1681
+ * nf-input
1682
+ */
1683
+ const text = ref('字数长度很长,自定义el-input背景可以看出展示会出现输入框文本被遮挡,nf-input做了数据统计遮挡优化')
1684
+ const textarea = ref('字数长度很长,自定义el-input背景可以看出展示会出现输入框文本被遮挡,nf-input做了数据统计遮挡优化')
1685
+ /**
1686
+ * nf-input
1687
+ */
1688
+
1689
+ /**
1690
+ * nf-drawer
1691
+ */
1692
+ const drawer = ref(false)
1693
+ const tabs = ref([
1694
+ { name: "基础配置", slot: "tab-1" },
1695
+ { name: "高级配置", slot: "tab-2" },
1696
+ { name: "特殊配置", slot: "tab-3" },
1697
+ ]);
1698
+ const handleConfirm = (done) => {
1699
+ setTimeout(() => {
1700
+ done()
1701
+ }, 1000);
1702
+ };
1703
+ /**
1704
+ * nf-drawer
1705
+ */
1706
+
1707
+ /**
1708
+ * 动态提示
1709
+ */
1710
+ const app = getCurrentInstance()?.proxy
1711
+ const openMessage = () => {
1712
+ // app.$openMessage("这是一条消息提示");
1713
+ // app.$openMessage.success("这是一条消息提示");
1714
+ // app.$openMessage.warning("这是一条消息提示");
1715
+ app.$openMessage.error("这是一条消息提示");
1716
+ };
1717
+ const openNotify = () => {
1718
+ // app.$openNotify({
1719
+ // title: "提示",
1720
+ // message: "这是一条不会自动关闭的消息",
1721
+ // duration: 0,
1722
+ // });
1723
+ app.$openNotify({
1724
+ title: "成功",
1725
+ message: "这是一条成功的提示消息",
1726
+ type: "success",
1727
+ });
1728
+ // app.$openNotify({
1729
+ // title: "警告",
1730
+ // message: "这是一条警告的提示消息",
1731
+ // type: "warning",
1732
+ // });
1733
+ // app.$openNotify.info({
1734
+ // title: "消息",
1735
+ // message: "这是一条消息的提示消息",
1736
+ // });
1737
+ // app.$openNotify.error({
1738
+ // title: "错误",
1739
+ // message: "这是一条错误的提示消息",
1740
+ // })
1741
+ };
1742
+ const openConfirm = () => {
1743
+ // app.$openConfirm({
1744
+ // type: "success",
1745
+ // title: "成功",
1746
+ // message: "这是一条消息提示",
1747
+ // onConfirm: (done) => done(),
1748
+ // });
1749
+ // app.$openConfirm.success({
1750
+ // type: "warning",
1751
+ // title: "警告",
1752
+ // message: "这是一条警告消息提示",
1753
+ // onConfirm: (done) => {
1754
+ // setTimeout(() => {
1755
+ // done();
1756
+ // }, 1000);
1757
+ // },
1758
+ // });
1759
+ app.$openConfirm({
1760
+ type: "error",
1761
+ title: "错误",
1762
+ message: "这是一条错误消息提示",
1763
+ onConfirm: (done) => done(),
1764
+ });
1765
+ // app.$openMessage({
1766
+ // type: "info",
1767
+ // title: "HTML 片段",
1768
+ // message: '<strong>这是 <i>HTML</i> 片段</strong>',
1769
+ // dangerouslyUseHTMLString: true,
1770
+ // onConfirm: (done) => done(),
1771
+ // });
1772
+ // app.$openConfirm({
1773
+ // title: "提示",
1774
+ // message: "这是一条消息提示"
1775
+ // }).then(done => {
1776
+ // app.$openMessage("你点击了确定")
1777
+ // setTimeout(()=>{
1778
+ // done()
1779
+ // }, 1000)
1780
+ // }).catch(()=>{
1781
+ // app.$openMessage("你点击了取消")
1782
+ // })
1783
+ };
1784
+ /**
1785
+ * 动态提示
1786
+ */
1787
+
1788
+ /**
1789
+ * nf-audio
1790
+ */
1791
+ const betweenStart = ref(0.3)
1792
+ const betweenEnd = ref(1.6)
1793
+ const nfAudio = ref()
1794
+ const url = 'https://oss.xccjh.top/xccjh-images/%E5%B0%8F%E4%B8%83-%E5%A5%B3-%E5%93%88%E5%93%88%E5%93%88%E5%93%88%E5%93%88%E5%93%88%E5%93%88%E5%93%88.wav'
1795
+ const jumpToTime = 0.5
1796
+ const backSecond = 0.3
1797
+ const forwardSecond = 0.6
1798
+ function download(){
1799
+ alert('下载成功')
1800
+ }
1801
+ function betweenPlay() {
1802
+ nfAudio.value.betweenPlay()
1803
+ }
1804
+ /**
1805
+ * nf-audio
1806
+ */
1807
+
1808
+ /**
1809
+ * nf-microphone
1810
+ */
1811
+ const sign = ref('')
1812
+ const timestamp = ref(Date.now())
1813
+
1814
+ const agentTag = 'zoujh-test'
1815
+ const appKey = '032d44009bff1752'
1816
+ const appSecret = '4c7304c94c5e8725613516d4d6db679b'
1817
+
1818
+ const str = appKey + timestamp.value
1819
+ const sha1 = window.CryptoJS.HmacSHA1(str, appSecret)
1820
+ sign.value = window.CryptoJS.enc.Base64.stringify(sha1)
1821
+
1822
+ const nfSoftPhone1 = ref()
1823
+ const commonSoftphone = ref()
1824
+
1825
+ const softphoneConnectCallBack1 = async (data) => {
1826
+ console.log('softphone-connect1', data)
1827
+ commonSoftphone.value = data.commonSoftphone
1828
+ // await (await data.commonSoftphone.getUserAgentManager()).toggleNap(false)
1829
+ }
1830
+ const softphoneCallRefreshCallBack1 = (data) => {
1831
+ console.log('softphone-call-refresh1', data)
1832
+ }
1833
+ const softphoneSeatStatusChangeCallBack1 = (data) => {
1834
+ console.log('softphone-seats-status-change1', data)
1835
+ }
1836
+ const softphoneAcceptCallBack1 = (data) => {
1837
+ console.log('softphone-accept1', data)
1838
+ }
1839
+ const softphoneIgnoreCallBack1 = (data) => {
1840
+ console.log('softphone-ignore1', data)
1841
+ }
1842
+ const softphoneHangupCallBack1 = (data) => {
1843
+ console.log('softphone-hangup1', data)
1844
+ }
1845
+ const softphoneAutoIgnoreCallback1 = (data) => {
1846
+ console.log('softphone-auto-ignore-callback1', data)
1847
+ }
1848
+ const softphoneSessionStateChangeCallBack1 = (data) => {
1849
+ console.log('softphone-session-state-change1', data)
1850
+ }
1851
+ const softphoneIncomingCallBack1 = (data) => {
1852
+ console.log('softphone-incoming1', data)
1853
+ }
1854
+ const softphoneSendDtmfCallBack1 = (data) => {
1855
+ console.log('softphone-send-dtmf1', data)
1856
+ }
1857
+ const softphoneConnectRegisteredCallBack1 = (data) => {
1858
+ console.log('softphone-connect-registered1', data)
1859
+ }
1860
+
1861
+ const softphoneSignOverduedCallBack1 = (done) => {
1862
+ console.log('softphone-sign-overdued1')
1863
+ const timestamp = Date.now()
1864
+ done({
1865
+ timestamp,
1866
+ sign: window.CryptoJS.enc.Base64.stringify(window.CryptoJS.HmacSHA1(appKey + timestamp, appSecret))
1867
+ })
1868
+ } // 👈 注册sign过期后重新刷新sign逻辑
1869
+
1870
+ // setTimeout(() => {
1871
+ // commonSoftphone.value.getUserAgentManagerSync().callNumber('15018707394')
1872
+ // }, 5000)
1873
+
1874
+ /**
1875
+ * nf-microphone
1876
+ */
1877
+ return {
1878
+
1879
+ keywords,
1880
+ delAllKeywordFn,
1881
+ delItem,
1882
+ copySuccess,
1883
+ getItemDisabledStatus,
1884
+
1885
+ showData,
1886
+ pageAttrs,
1887
+ pageEvents,
1888
+ nfTable,
1889
+ searchOptionTable,
1890
+ mockColumns,
1891
+ mockData,
1892
+ getSummaries,
1893
+
1894
+ EXCHANGE_KEY_TYPE,
1895
+ nfSearchFormRef,
1896
+ columns,
1897
+ inline,
1898
+ labelPosition,
1899
+ changeLabelPosition,
1900
+ isCollapseChange,
1901
+ rules,
1902
+ btnItemList,
1903
+ submitForm,
1904
+ resetForm,
1905
+ mockIndexSearch,
1906
+ mockKeywordIndexSearch,
1907
+ mockKeywordSearch,
1908
+ testPageSearch,
1909
+ searchOption,
1910
+ searchForm,
1911
+ searchFn,
1912
+ resetFieldsFn,
1913
+ exportFn,
1914
+
1915
+ test,
1916
+ test1,
1917
+ test2,
1918
+ testChange1,
1919
+ testChange2,
1920
+ testChange3,
1921
+ testInput1,
1922
+ testInput2,
1923
+ testInput3,
1924
+ mockIndex,
1925
+ mockKeywordIndex,
1926
+ mockKeyword,
1927
+ testPage,
1928
+
1929
+ TimeTypeMap,
1930
+ multipleActiveIndex,
1931
+ queryList,
1932
+ changeHandler,
1933
+
1934
+ text,
1935
+ textarea,
1936
+
1937
+ drawer,
1938
+ tabs,
1939
+ handleConfirm,
1940
+
1941
+ openMessage,
1942
+ openNotify,
1943
+ openConfirm,
1944
+
1945
+ download,
1946
+ betweenPlay,
1947
+ nfAudio,
1948
+ url,
1949
+ betweenStart,
1950
+ betweenEnd,
1951
+ jumpToTime,
1952
+ backSecond,
1953
+ forwardSecond,
1954
+
1955
+ sign,
1956
+ timestamp,
1957
+ agentTag,
1958
+ appKey,
1959
+ appSecret,
1960
+ nfSoftPhone1,
1961
+ commonSoftphone,
1962
+ softphoneConnectCallBack1,
1963
+ softphoneCallRefreshCallBack1,
1964
+ softphoneSeatStatusChangeCallBack1,
1965
+ softphoneAcceptCallBack1,
1966
+ softphoneIgnoreCallBack1,
1967
+ softphoneHangupCallBack1,
1968
+ softphoneAutoIgnoreCallback1,
1969
+ softphoneSessionStateChangeCallBack1,
1970
+ softphoneIncomingCallBack1,
1971
+ softphoneSendDtmfCallBack1,
1972
+ softphoneConnectRegisteredCallBack1,
1973
+ softphoneSignOverduedCallBack1,
1974
+ }
1975
+ }
1976
+ })
1977
+ </script>
1978
+ </html>