meixioacomponent 0.3.27 → 0.3.30

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.
@@ -1,4 +1,173 @@
1
- <template>
1
+ <!-- <template>
2
+ <base-dialog
3
+ ref="dialog"
4
+ :modal="true"
5
+ :title="`验证邮箱`"
6
+ :isDestroy="true"
7
+ :appendToBody="true"
8
+ :contentHeight="`200px`"
9
+ @destroy="destroy"
10
+ >
11
+ <div class="dialog-content" slot="dialog-content">
12
+ <div class="verify-email-wrap">
13
+ <span class="des-text">
14
+ 请填写新的邮箱地址,邮箱填写完成后点击发送电子邮件,系统会发送一封邮件到新的邮箱地址,请输入邮件中的验证码验证您的邮箱。
15
+ </span>
16
+ <base-form
17
+ :footer="false"
18
+ :rules="rules"
19
+ :rowNumber="1"
20
+ ref="baseForm"
21
+ v-model="formList"
22
+ :labelWidth="`70px`"
23
+ :labelPosition="`left`"
24
+ @formSubmit="formSubmit"
25
+ >
26
+ <template v-slot:form-verifyCode="data">
27
+ <el-input
28
+ size="medium"
29
+ prefix-icon="el-icon-postcard"
30
+ v-model.number="data.scope[1].value"
31
+ >
32
+ <div class="code-button_wrap" slot="suffix">
33
+ <el-button
34
+ type="info"
35
+ size="mini"
36
+ slot="suffix"
37
+ :disabled="downButtonDisable"
38
+ @click="onHandleStartDown"
39
+ >
40
+ 获取验证码
41
+ </el-button>
42
+ </div>
43
+ </el-input>
44
+ </template>
45
+ </base-form>
46
+ </div>
47
+ </div>
48
+ <base-button-handle
49
+ slot="dialog-footer"
50
+ :size="`mini`"
51
+ :config="buttonConfig"
52
+ ></base-button-handle>
53
+ </base-dialog>
54
+ </template>
55
+
56
+ <script>
57
+ export default {
58
+ data() {
59
+ return {
60
+ formList: [],
61
+ downTriger: null,
62
+ downNumber: 120,
63
+ test: true,
64
+ rules: {
65
+ email: [
66
+ {
67
+ // validator: elementValidate.validateEmail,
68
+ required: true,
69
+ message: '请输入邮箱',
70
+ trigger: 'blur',
71
+ },
72
+ ],
73
+
74
+ verifyCode: [
75
+ {
76
+ required: true,
77
+ trigger: 'blur',
78
+ message: '请输入验证码',
79
+ },
80
+ ],
81
+ },
82
+ }
83
+ },
84
+
85
+ created() {
86
+ const { email } = this.$props
87
+ this.formList = [
88
+ {
89
+ value: email,
90
+ key: 'email',
91
+ type: 'input',
92
+ label: '邮箱',
93
+ },
94
+ {
95
+ value: '',
96
+ key: 'verifyCode',
97
+ type: 'template',
98
+ label: '验证码',
99
+ },
100
+ ]
101
+
102
+ setTimeout(() => {
103
+ this.test = false
104
+ }, 5000)
105
+ },
106
+ mounted() {
107
+ this.$refs.dialog.showDialog()
108
+ },
109
+ computed: {
110
+ downButtonDisable() {
111
+ return this.trigger || !this.formList[0].value
112
+ },
113
+ buttonConfig() {
114
+ return [
115
+ {
116
+ text: '发送验证码',
117
+ type: 'primary',
118
+ loading: this.test,
119
+ click: () => {
120
+ this.$refs.baseForm.onSubmit()
121
+ },
122
+ },
123
+ {
124
+ text: '取消验证',
125
+ type: 'info',
126
+ click: () => {},
127
+ },
128
+ ]
129
+ },
130
+ },
131
+ props: {
132
+ email: {},
133
+ },
134
+ methods: {
135
+ destroy() {
136
+ this.$destroy()
137
+ },
138
+ formSubmit() {
139
+ const result = this.$refs.baseForm.returnFormValue()
140
+ // submitAccountInfo(result).then((res) => {
141
+ console.log(result)
142
+ this.$message.success('操作成功')
143
+ // })
144
+ },
145
+ onHandleStartDown() {},
146
+ },
147
+ }
148
+ </script>
149
+
150
+ <style lang="less" scoped>
151
+ .verify-email-wrap {
152
+ width: 100%;
153
+ height: 200px;
154
+
155
+ .des-text {
156
+ display: inline-block;
157
+ margin-bottom: var(--margin-4);
158
+ color: var(--font-color-s);
159
+ font-size: var(--font-size-base);
160
+ }
161
+ .code-button_wrap {
162
+ top: 50%;
163
+ right: 0px;
164
+ position: absolute;
165
+ transform: translateY(-50%);
166
+ }
167
+ }
168
+ </style> -->
169
+
170
+ <!-- <template>
2
171
  <base-drawer
3
172
  :size="800"
4
173
  ref="drawer"
@@ -140,9 +309,9 @@ export default {
140
309
  padding: var(--padding-4);
141
310
  box-sizing: border-box;
142
311
  }
143
- </style>
312
+ </style> -->
144
313
 
145
- <!-- <template>
314
+ <template>
146
315
  <div class="page-table-wrap" ref="pageTableWrap">
147
316
  <base-pro-table
148
317
  :align="`left`"
@@ -157,9 +326,9 @@ export default {
157
326
  :headerConfig="headerConfig"
158
327
  :totalPropsList="totalPropsList"
159
328
  :proScreenConfig="proScreenConfig"
160
- > -->
161
- <!-- 表格头部插槽 -->
162
- <!-- <template>
329
+ >
330
+ <!-- 表格头部插槽 -->
331
+ <template>
163
332
  <base-icon
164
333
  :color="`m`"
165
334
  :event="true"
@@ -188,16 +357,17 @@ export default {
188
357
  <el-dropdown-item>蚵仔煎</el-dropdown-item>
189
358
  </el-dropdown-menu>
190
359
  </el-dropdown>
191
- </template> -->
360
+ </template>
192
361
 
193
- <!-- 自定义模板列 -->
194
- <!-- <template v-slot:name="data"> template-{{ data.scope }} </template>
195
- <template v-slot:address="data"> template-{{ data.scope }} </template> -->
196
- <!-- </base-pro-table>
362
+ <!-- 自定义模板列 -->
363
+ <template v-slot:name="data">template-{{ data.scope }}</template>
364
+ <template v-slot:address="data">template-{{ data.scope }}</template>
365
+ </base-pro-table>
197
366
  </div>
198
- </template> -->
367
+ </template>
199
368
 
200
- <!-- <script>
369
+ <script>
370
+ import tableTable from '../test'
201
371
  export default {
202
372
  data() {
203
373
  return {
@@ -206,22 +376,22 @@ export default {
206
376
  tableConfig: [],
207
377
 
208
378
  headerConfig: {
209
- headerText: "测试表格",
379
+ headerText: '测试表格',
210
380
  },
211
381
 
212
382
  totalPropsList: [],
213
383
 
214
- keyWords: "",
384
+ keyWords: '',
215
385
  /* 快捷的筛选 类似于tag */
216
386
  screenList: {
217
387
  index: 0,
218
388
  list: [
219
- { value: "all", label: "全部合同", key: "_all" },
220
- { value: "me", label: "我负责的合同", key: "_me" },
389
+ { value: 'all', label: '全部合同', key: '_all' },
390
+ { value: 'me', label: '我负责的合同', key: '_me' },
221
391
  {
222
- value: "subordinate",
223
- label: "下属负责的合同",
224
- key: "_subordinate",
392
+ value: 'subordinate',
393
+ label: '下属负责的合同',
394
+ key: '_subordinate',
225
395
  },
226
396
  ],
227
397
  },
@@ -229,27 +399,27 @@ export default {
229
399
  /* 高级筛选的配置 */
230
400
  proScreenConfig: [
231
401
  {
232
- key: "accountBank",
233
- value: "",
234
- type: "time",
402
+ key: 'accountBank',
403
+ value: '',
404
+ type: 'time',
235
405
  },
236
406
  {
237
- key: "firmName",
238
- value: "",
239
- type: "input",
407
+ key: 'firmName',
408
+ value: '',
409
+ type: 'input',
240
410
  },
241
411
  {
242
- key: "contactName",
243
- value: "",
244
- type: "select",
412
+ key: 'contactName',
413
+ value: '',
414
+ type: 'select',
245
415
  selectList: [
246
416
  {
247
- label: "测试1",
417
+ label: '测试1',
248
418
  value: 1,
249
419
  },
250
- { label: "测试2", value: 2 },
251
- { label: "测试3", value: 3 },
252
- { label: "测试4", value: 4 },
420
+ { label: '测试2', value: 2 },
421
+ { label: '测试3', value: 3 },
422
+ { label: '测试4', value: 4 },
253
423
  ],
254
424
  },
255
425
  ],
@@ -263,93 +433,93 @@ export default {
263
433
  },
264
434
  // 分页配置
265
435
  pageConfig: {
266
- size: "pageSize",
267
- page: "pageNum",
268
- total: "total",
436
+ size: 'pageSize',
437
+ page: 'pageNum',
438
+ total: 'total',
269
439
  },
270
- };
440
+ }
271
441
  },
272
442
  created() {
273
443
  this.tableConfig = [
274
444
  {
275
445
  width: 120,
276
446
  lock: false,
277
- label: "操作",
447
+ label: '操作',
278
448
  template: false,
279
- key: "accountBank",
449
+ key: 'accountBank',
280
450
  screen: true,
281
451
  },
282
452
  {
283
- label: "单位名称",
284
- key: "firmName",
453
+ label: '单位名称',
454
+ key: 'firmName',
285
455
  lock: false,
286
456
  width: 150,
287
457
  template: false,
288
458
  screen: true,
289
459
  },
290
460
  {
291
- label: "合同名称",
292
- key: "pactName",
461
+ label: '合同名称',
462
+ key: 'pactName',
293
463
  lock: false,
294
464
  width: 150,
295
465
  template: false,
296
- color: "warn",
466
+ color: 'warn',
297
467
  },
298
468
  {
299
- label: "联系人名称",
300
- key: "contactName",
469
+ label: '联系人名称',
470
+ key: 'contactName',
301
471
  lock: false,
302
472
  width: 150,
303
473
  screen: true,
304
474
  template: false,
305
475
  },
306
476
  {
307
- label: "快递单号",
308
- key: "courierNumber",
477
+ label: '快递单号',
478
+ key: 'courierNumber',
309
479
  lock: false,
310
480
  width: 199,
311
481
  },
312
482
  {
313
- label: "审核状态",
314
- key: "status",
483
+ label: '审核状态',
484
+ key: 'status',
315
485
  lock: false,
316
486
  width: 280,
317
487
  template: false,
318
488
  },
319
489
  {
320
- label: "签署时间",
321
- key: "gmtCreate",
490
+ label: '签署时间',
491
+ key: 'gmtCreate',
322
492
  lock: false,
323
493
  width: 280,
324
494
  template: false,
325
495
  },
326
- ];
496
+ ]
327
497
  },
328
498
  mounted() {
329
- this.pageHeight = this.$refs.pageTableWrap.clientHeight;
499
+ this.pageHeight = this.$refs.pageTableWrap.clientHeight
330
500
  },
331
501
  components: {},
332
502
  methods: {
333
503
  async httpRequire(screenCofig) {
334
- let result = null;
504
+ let result = null
335
505
  try {
336
- result = await test(screenCofig);
337
- this.pageProps.total = result.total;
506
+ // result = await test(screenCofig)
507
+ this.pageProps.total = 20
338
508
  } catch (error) {
339
509
  return new Promise((resolve, reject) => {
340
- this.pageProps.total = 0;
341
- resolve([]);
342
- });
510
+ this.pageProps.total = 0
511
+ resolve([])
512
+ })
343
513
  }
344
514
  return new Promise((resolve, reject) => {
345
- resolve(result.rows);
346
- });
515
+ resolve(tableTable)
516
+ })
347
517
  },
348
518
  rowClick(row) {
349
- console.log(row);
519
+ console.log(row)
350
520
  },
351
521
  },
352
- };
522
+ }
353
523
  </script>
354
524
 
355
525
  <style lang="less" scoped>
@@ -358,7 +528,7 @@ export default {
358
528
  height: 100%;
359
529
  background: inherit;
360
530
  }
361
- </style> -->
531
+ </style>
362
532
 
363
533
  <!-- 普通表单 -->
364
534
  <!-- <template>
package/src/test.js ADDED
@@ -0,0 +1,13 @@
1
+ import { reactive } from "vue"
2
+
3
+
4
+ let tableTable = reactive([{ firmName: 1 },
5
+ { firmName: 2 },
6
+ { firmName: 3 },
7
+ { firmName: 4 },
8
+ { firmName: 5 },
9
+ { firmName: 6 },
10
+ { firmName: 7 },])
11
+
12
+
13
+ export default tableTable;