centaline-data-driven 1.2.25 → 1.2.28

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,38 +1,107 @@
1
1
  <template>
2
- <div>
3
- <!-- 联系人 -->
4
- <div class="contacts-head">
5
- <div class="title-l">联系人信息</div>
6
- <component class="el-button contacts-but el-button--info el-button--mini max-info"
7
- v-if="apiRouter!==null && !flagLook" :is="apiRouter.is" :vmodel="apiRouter"
8
- @click="lookOwner(apiRouter,$event)"></component>
9
- <div class="contacts-tips" v-else>
10
- <component class="el-button el-button--primary el-button--mini max-btn-add"
11
- v-if="model && model.buttons!==null && model.buttons.length>0"
12
- v-for="(col, index) in model.buttons" :key="index"
13
- :is="col.is" :vmodel="col"
14
- @click="fieldClickHandler(col,$event)"></component>
15
- </div>
16
- </div>
17
- <!-- 表格 -->
18
- <div class="contacts-table" v-show="flagLook">
19
- <el-table :data="tableData" stripe fit style="width: 100%" :header-cell-style="{background:'#f3f3f3',color:'#333333'}">
20
- <el-table-column v-for="(item,index) in columnList" :key="index"
21
- :property="item.prop" :label="item.label" :min-width="item.width" >
22
- <template slot-scope="scope">
23
- <span v-if="scope.column.property=='phone'">{{scope.row.phone }}</span>
24
- <span v-else-if="scope.column.property=='tel'">{{scope.row.tel}}</span>
25
- <span v-else>
26
- {{scope.row[scope.column.property]}}
2
+ <div v-if="apiRouter!=={}">
3
+ <!-- 联系人 -->
4
+ <div class="contacts-head">
5
+ <div class="title-l">联系人信息</div>
6
+ <component class="el-button contacts-but el-button--info el-button--mini max-info"
7
+ v-if="!flagLook" :is="apiRouter.is" :vmodel="apiRouter"
8
+ @click="lookOwner(apiRouter,$event)"></component>
9
+ <div class="contacts-tips" v-else>
10
+ <component class="el-button el-button--primary el-button--mini max-btn-add"
11
+ v-if="model && model.buttons!==null && model.buttons.length>0"
12
+ v-for="(col, index) in model.buttons" :key="index"
13
+ :is="col.is" :vmodel="col"
14
+ @click="fieldClickHandler(col,$event)"></component>
15
+ </div>
16
+ </div>
17
+ <!-- 表格 -->
18
+ <div class="contacts-table ct-tableParent ct-searchtable" v-if="flagLook">
19
+ <div class="ct-table-content">
20
+ <table border="0" cellpadding="0" cellspacing="0" :class="['ct-table',model.attrs.size?'ct-table-'+model.attrs.size:'']">
21
+ <!--表头-->
22
+ <thead ref="tableHead">
23
+ <tr class="ct-tr" ref="headTr" v-for="(columns,columnsIndex) in model.columnsArr" :key="columnsIndex">
24
+ <th v-if="model.isMulti && columnsIndex === 0" ref="headLeftThs" class="ct-td left-fixation-th checkbox-td" :class="[model.tdClass]">
25
+ <label class="el-checkbox"><span class="el-checkbox__input" :class="model.selectAllType">
26
+ <span class="el-checkbox__inner"></span>
27
+ <input type="checkbox" @click="selectAll($event)" v-model="model.selectAll" class="el-checkbox__original checkbox-td-1" aria-hidden="false" />
27
28
  </span>
28
- </template>
29
- </el-table-column>
30
- </el-table>
31
- </div>
29
+ </label>
30
+ </th>
31
+ <th :ref="column.fixed?(column.fixed==='left'?'headLeftThs':'headRightThs'):'headThs'" v-for="(column,colIndex) in columns" :key="colIndex"
32
+ v-if="column.show" class="ct-td ct-searchtable-th"
33
+ :rowspan="column.rowspan"
34
+ :colspan="column.colspan"
35
+ :class="[colHasWidth[colIndex],column.sortAction,model.tdClass,
36
+ colIndex === leftShadow?'shadowLeft':null,
37
+ colIndex === rightShadow?'shadowRight':null,
38
+ column.fixed === 'left'?'left-fixation-th':null,
39
+ column.fixed === 'right'?'right-fixation-th':null,
40
+ column.width === undefined?'ct-table-auto':null,
41
+ typeof column.fixed === 'undefined'?'right-no-fixation-th':null]"
42
+ v-bind="column.attrs">
43
+ <span>{{column.name}}</span>
44
+ </th>
45
+ </tr>
46
+ </thead>
47
+ <!--表体-->
48
+ <tbody>
49
+ <!--可视区域的行数据-->
50
+ <tr v-for="(row,rowindex) in model.listData" :key="rowindex"
51
+ v-if="pageRowMin <= rowindex && rowindex <= pageRowMax"
52
+ :ref="'rows.'+rowindex" @click="rowClickHandle($event,rowindex)"
53
+ class="ct-tr"
54
+ :style="row.$style">
55
+ <td v-if="model.isMulti" class="ct-td tdFiexd left-fixation checkbox-td" :class="[model.tdClass]" align="center">
56
+ <label v-if="!model.rightMulti || row[model.rightMulti] == 1" class="el-checkbox is-checked"><span class="el-checkbox__input" :class="rowCheckClass(row)">
57
+ <span class="el-checkbox__inner"></span>
58
+ <input type="checkbox" v-model="row.$select" @change="selectOne($event)" class="el-checkbox__original checkbox-td-1" />
59
+ </span>
60
+ </label>
61
+ </td>
62
+ <td :ref="column.fixed?(column.fixed==='left'?'headLeftTds':'headRightTds'):null"
63
+ v-for="(column,colIndex) in model.dataFieldcolumns" :key="colIndex"
64
+ v-if="tdShow(column, row)"
65
+ :rowspan="tdRowspan(column, row)"
66
+ :colspan="tdColspan(column, row)"
67
+ class="ct-td"
68
+ :class="[colHasWidth[colIndex],model.tdClass,
69
+ row.flagRow?'ct-td3':null,
70
+ colIndex === leftShadow?'shadowLeft':null,
71
+ colIndex === rightShadow?'shadowRight':null,
72
+ column.fixed === 'left'?'left-fixation':null,
73
+ column.width === undefined?'ct-table-auto':null,
74
+ column.fixed === 'right'?'right-fixation':null]"
75
+ v-bind="column.attrs">
76
+ <!--操作列-->
77
+ <div v-if="row.flagRow" :class="column.autoRowHeight ? 'lineFeedCell':'cell'">
78
+ {{row.descNewRow}}
79
+ </div>
80
+ <div v-else-if="column.id==='operation' && row.rowHiddenColumns==undefined" class="div_allinline" :class="column.autoRowHeight ? 'lineFeedCell':'cell'">
81
+ <ct-tablecurrency v-for="(router,rowRouterIndex) in model.rowRouter" :key="rowRouterIndex"
82
+ v-if="!router.rightField || row[router.rightField] == 1" :isOperationalColumn="true"
83
+ :router="router" :colValue="router.label" :rowData="row" @click="rolRouterClickHandler">
84
+ </ct-tablecurrency>
85
+ </div>
86
+ <!--可点击的列-->
87
+ <ct-tablecurrency v-else-if="column.router" :align="column.attrs.align" :class="column.autoRowHeight ? 'lineFeedCell':'cell'" :router="column.router" :colValue="row[column.id]" :rowData="row"
88
+ @click="rolRouterClickHandler">
89
+ </ct-tablecurrency>
90
+ <!--正常的列-->
91
+ <div v-else-if="typeof column.template === 'undefined'" :class="column.autoRowHeight ? 'lineFeedCell':'cell'">
92
+ {{row.rowHiddenColumns && row.rowHiddenColumns.includes(column.id)?"":row[column.id]}}
93
+ </div>
94
+ </td>
95
+ </tr>
96
+ <!--适配滚动条-->
97
+ <tr v-else v-bind:style="{ height: row.$heigth + 'px' }"></tr>
98
+ </tbody>
99
+ </table>
100
+ </div>
32
101
  </div>
102
+ </div>
33
103
  </template>
34
104
 
35
-
36
105
  <script>
37
106
  import dynamicElement from '../../mixins/dynamicElement';
38
107
  export default {
@@ -50,62 +119,12 @@
50
119
  data() {
51
120
  return {
52
121
  flagLook: false,
53
- columnList: [
54
- {
55
- prop: 'name',
56
- label: '联系人',
57
- width: '80'
58
- },
59
- {
60
- prop: 'type',
61
- label: '类型',
62
- width: '60'
63
- },
64
- {
65
- prop: 'phone',
66
- label: '手机',
67
- width: '125'
68
- },
69
- {
70
- prop: 'tel',
71
- label: '座机',
72
- width: '170'
73
- },
74
- {
75
- prop: 'wx',
76
- label: '微信',
77
- width: '150'
78
- },
79
- {
80
- prop: 'entTime',
81
- label: '录入时间',
82
- width: '150'
83
- },
84
- {
85
- prop: 'entUser',
86
- label: '录入人',
87
- width: '80'
88
- },
89
- {
90
- prop: 'remarks',
91
- label: '操作',
92
- // width:'180'
93
- },
94
- ],
95
- tableData: [
96
- {
97
- name: '王建国先生',
98
- type: '业主',
99
- phone: '13866668888',
100
- tel: '0275-55556666-5896',
101
- wx: '555566665896',
102
- entTime: '2021-10-26 29:27:25',
103
- entUser: '王天',
104
- remarks: '删除',
105
- isIcon: true,
106
- },
107
- ],
108
- opening:'first',
122
+ leftShadow: -1,//左阴影个数
123
+ rightShadow: -1,//右阴影个数
124
+ currentRow: null,
125
+ colHasWidth: {},//有无列宽集合
126
+ pageRowMin: 0,//页面实际的第一行号
127
+ pageRowMax: 100,//页面实际的第后行号
109
128
  }
110
129
  },
111
130
  mounted() {
@@ -120,15 +139,46 @@
120
139
  var self = this;
121
140
  this.model = data;
122
141
  this.model.$vue = self;
123
- },
124
- loadFields() {
125
- var self = this;
142
+ self.model.columns.forEach((v, vi) => {
143
+ if (v.fixed === 'left') {
144
+ self.leftShadow = vi;
145
+ }
146
+ if (v.fixed === 'right' && self.rightShadow < 0) {
147
+ self.rightShadow = vi;
148
+ }
149
+ if (typeof v.width !== 'undefined') {
150
+ self.colHasWidth[vi] = '';
151
+ }
152
+ else {
153
+ self.colHasWidth[vi] = 'nowidth';
154
+ }
155
+ });
156
+ this.model.scripts.formData = this.model.formData;
157
+ this.model.scripts.formData.formTable = this.model;
158
+ this.model.setHiddenRow();
159
+ console.log(this.model);
126
160
  },
127
161
  lookOwner(router) {
128
162
  var self = this;
129
- var submitData=router.getActionPara({}).para;
130
- router.doAction(submitData, (res) => {
163
+ var submitData={
164
+ action: router.action,
165
+ para: {
166
+ searchFields: null,
167
+ pageAttribute: { pageIndex: 1 },
168
+ flagSearch: true
169
+ }
170
+ };
171
+ submitData.para.searchFields=router.getSearchPara();
172
+ submitData.para.searchFields.fields.push({
173
+ fieldName1: 'flagLookFromButton',
174
+ groupName: 'flagLookFromButton',
175
+ operation: 1,
176
+ searchDataType: 3,
177
+ searchValue1: '1',
178
+ });
179
+ router.doSearch(submitData, (res) => {
131
180
  if (res.rtnCode === 200) {
181
+ res.apiRouter=self.apiRouter;
132
182
  self.loaderObj.ContactList(res,null,self.load);
133
183
  self.flagLook = true;
134
184
  }
@@ -143,7 +193,70 @@
143
193
  this.model.detailHeight = detailHeight < 40 ? 350 : detailHeight;
144
194
  }
145
195
  });
146
- },
196
+ },
197
+ rowClickHandle(ev, index) {
198
+ this.model.selectIndex = index;
199
+ this.rowColorChange();
200
+ ev.cancelBubble = true;
201
+ ev.stopPropagation();
202
+ },
203
+ rowColorChange() {
204
+ var index = this.model.selectIndex;
205
+ if (typeof this.$refs['rows.' + index] !== "undefined" && this.currentRow !== this.$refs['rows.' + index][0]) {
206
+ if (this.currentRow !== null) {
207
+ for (var i = 0; i < this.currentRow.children.length; i++) {
208
+ this.currentRow.children[i].classList.remove('select');
209
+ }
210
+ }
211
+ if (this.$refs['rows.' + index][0]) {
212
+ for (var j = 0; j < this.$refs['rows.' + index][0].children.length; j++) {
213
+ this.$refs['rows.' + index][0].children[j].classList.add('select');
214
+ }
215
+ }
216
+ this.currentRow = this.$refs['rows.' + index][0] || null;
217
+ }
218
+ },
219
+ tdRowspan(column, row) {
220
+ if (!column.show) {
221
+ return '';
222
+ }
223
+
224
+ //合并行
225
+ if (row.$rowspan !== 0 && this.model.rowMergedColumns.indexOf(column.id) > -1) {
226
+ return row.$rowspan;
227
+ }
228
+
229
+ return '';
230
+ },
231
+ tdColspan(column, row) {
232
+ if (row.colspan !== 0) {
233
+ return row.colspan;
234
+ }
235
+ return '';
236
+ },
237
+ tdShow(column, row) {
238
+ if (!column.show) {
239
+ return false;
240
+ }
241
+
242
+ //合并行
243
+ if (row.$rowspan === 0 && this.model.rowMergedColumns.indexOf(column.id) > -1) {
244
+ return false;
245
+ }
246
+
247
+ if(row.flagRow && row.columnShow!==column.id){
248
+ return false;
249
+ }
250
+
251
+ return true;
252
+ },
253
+ rolRouterClickHandler(field, rowData) {
254
+ var submitData = {};
255
+ field.submitListField.forEach((k) => {
256
+ submitData[k] = rowData[k];
257
+ });
258
+ this.routerClickHandler(field, submitData, null);
259
+ },
147
260
  fieldClickHandler(field) {
148
261
  var self = this;
149
262
  var callBack=null;
@@ -304,602 +417,28 @@
304
417
  }
305
418
  </script>
306
419
  <style lang="scss" scoped>
307
- .details-content{
308
- font-size: 12px;
309
- .title-l{
310
- font-weight: Bold;
311
- font-size: 16px;
312
- color: #333333;
313
- }
314
- .details-head{
315
- padding: 16px;
316
- display: flex;
317
- .head-type{
318
- font-size: 20px;
319
- background: #EE6B6B;
320
- color: #FFFFFF;
321
- padding: 0 14px;
322
- border-radius: 6px;
323
- max-height: 40px;
324
- line-height: 40px;
325
- font-weight: Bold;
326
-
327
- }
328
- .head-info{
329
- margin-left: 10px;
330
- }
331
- .title{
332
- font-weight: Bold;
333
- font-size: 16px;
334
- margin-bottom: 3px;
335
-
336
- }
337
- .head-line{
338
- display: inline-block;
339
- height: 16px;
340
- width: 2px;
341
- background: #333333;
342
- margin: 0 4px;
343
- position: relative;
344
- top: 1.5px;
345
- }
346
- .collection{
347
- font-size: 18px;
348
- margin-left: 10px;
349
- cursor: pointer;
350
- vertical-align: -2.85px;
351
- }
352
- .title-other {
353
- color: #999999;
354
- margin-bottom: 14px;
355
- font-size: 12px;
356
- span {
357
- margin-right: 20px;
358
- }
359
- .other-icon {
360
- font-size: 16px;
361
- }
362
- .location{
363
- font-size: 16px;
364
- vertical-align: -2.85px;
365
- }
366
- }
367
- .title-tags {
368
- display: flex;
369
- .t-tag {
370
- color: #999999;
371
- background: #F3F3F3;
372
- border: 1px solid #d8d8d8;
373
- padding: 2px 9px;
374
- border-radius: 3px;
375
- margin-right: 10px;
376
- }
377
- }
378
- .head-but{
379
- margin-left: auto;
380
- font-size: 12px;
381
- text-align: right;
382
- .max-report{
383
- height: 26px;
384
- color: #333333;
385
- background-color: #FFFFFF;
386
- border: 1px solid #E0E0E0;
387
- border-radius: 6px;
388
- font-size: 12px;
389
- }
390
- .max-report:hover .report-cont{
391
- display: block;
392
- color: #333;
393
- }
394
- .report-cont{
395
- display: none;
396
- width: 115px;
397
- background: #fff;
398
- -webkit-box-shadow: 0 0 10px 0 rgb(0 0 0 / 15%);
399
- box-shadow: 0 0 10px 0 rgb(0 0 0 / 15%);
400
- border-radius: 5px;
401
- list-style: none;
402
- position: absolute;
403
- left: -61px;
404
- top: 26px;
405
- padding: 5px 0;
406
- color: #333;
407
- }
408
- .report-cont li{
409
- padding: 5px 10px;
410
- }
411
- }
412
-
413
-
420
+ .details-content{
421
+ font-size: 12px;
422
+ .title-l{
423
+ font-weight: Bold;
424
+ font-size: 16px;
425
+ color: #333333;
426
+ }
427
+ .contacts-head {
428
+ display: flex;
429
+ align-items: center;
430
+ justify-content: space-between;
431
+
432
+ .contacts-but {
433
+ height: 30px;
434
+ font-weight: Bold;
414
435
  }
415
- .details-mid {
436
+ .contacts-tips {
416
437
  display: flex;
417
- justify-content: space-between;
418
- .mid-l {
419
- flex: 1;
420
- display: flex;
421
- flex-direction: column;
422
-
423
- .hous-info {
424
- padding-bottom: 10px;
425
- .base-clolr {
426
- color: #EE6B6B;
427
- }
428
- .expand-f {
429
- line-height: 15px;
430
- font-size: 18px;
431
- font-weight: bold;
432
- }
433
- .img-jsq{
434
- width: 14px;
435
- height: 14px;
436
- display: inline-block;
437
- margin-left: 10px;
438
- }
439
- .info-conten {
440
- display: flex;
441
- .info-row {
442
- display: flex;
443
- }
444
-
445
- .hous-t {
446
- width: 260px;
447
- .swiper-i {
448
- position: relative;
449
- width: 100%;
450
- height: 100%;
451
- img {
452
- width: 100%;
453
- height: 100%;
454
- }
455
- .hous-icon {
456
- width: 60px;
457
- height: 60px;
458
- position: absolute;
459
- top: 50%;
460
- left: 50%;
461
- transform: translate(-50%, -50%);
462
- }
463
- }
464
-
465
- .hous-img {
466
- margin-top: 10px;
467
- width: 100%;
468
- overflow-x: hidden;
469
- overflow-y: hidden;
470
- white-space: nowrap;
471
- .img-i {
472
- position: relative;
473
- width: 80px;
474
- height: 44px;
475
- margin-right: 10px;
476
- display: inline-block;
477
- img{
478
- width: 100%;
479
- height: 100%;
480
-
481
- }
482
- .img-bot {
483
- width: 100%;
484
- height: 16px;
485
- background: rgba(0, 0, 0, 0.5);
486
- color: #fff;
487
- position: absolute;
488
- bottom: 0;
489
- font-weight: Bold;
490
- .img-icon {
491
- width: 12px;
492
- height: 12px;
493
- margin: 0 5px;
494
- margin: 0 5px;
495
- vertical-align: -1.5px;
496
- }
497
- }
498
- }
499
- }
500
- }
501
- .hous-b {
502
- position: relative;
503
- margin-left: 16px;
504
- margin-top: 20px;
505
- flex: 1;
506
- .code-ewm {
507
- width: 32px;
508
- height: 32px;
509
- position: absolute;
510
- top: -32px;
511
- right: -12px;
512
- }
513
-
514
- .row-i {
515
- width: 33.3%;
516
- display: flex;
517
- }
518
- .info-mid {
519
- margin: 35px 0 0 0;
520
- padding: 20px;
521
- border-top: 1px solid #e0e0e0;
522
- border-bottom: 1px solid #e0e0e0;
523
- display: flex;
524
- justify-content: space-between;
525
- .mid-i {
526
- text-align: center;
527
- }
528
- .mid-i div:nth-child(1) {
529
- margin-bottom: 10px;
530
- }
531
- .mid-i div:nth-child(2) {
532
- font-size: 14px;
533
- font-weight: bold;
534
- }
535
- }
536
- }
537
- }
538
- .info-conten-b{
539
- display: flex;
540
- margin-top: 15px;
541
- .info-row {
542
- display: flex;
543
- width: 100%;
544
- padding-left: 9px;
545
- }
546
- .row-i{
547
- width: 25%;
548
- }
549
- .row-i100{
550
- width: 100%;
551
- }
552
- }
553
- .open-mero{
554
- text-align: center;
555
- padding: 3px 0;
556
- }
557
- // .mero{
558
-
559
- // vertical-align: 2px;
560
- // overflow: hidden;
561
- // margin-left: 5px;
562
- // }
563
- .more-colose{
564
- background: url('../../../assets/mero-colose.png')no-repeat;
565
- background-size: 100% 100%;
566
- width: 18px;
567
- height: 9px;
568
- display: inline-block;
569
- }
570
- .mero-open{
571
- background: url('../../../assets/more-open.png')no-repeat;
572
- background-size: 100% 100%;
573
- width: 18px;
574
- height: 9px;
575
- display: inline-block;
576
- }
577
- .hous-mero {
578
- display: flex;
579
- .mero-labe {
580
- min-width: 60px;
581
- }
582
- }
583
- }
584
-
585
- .contacts-info {
586
- padding: 16px;
587
- .contacts-head {
588
- display: flex;
589
- align-items: center;
590
- justify-content: space-between;
591
-
592
- .contacts-but {
593
- height: 30px;
594
- font-weight: Bold;
595
- }
596
- .contacts-tips {
597
- display: flex;
598
- }
599
- }
600
- .contacts-table {
601
- margin-top: 16px;
602
- .table-icon {
603
- font-size: 14px;
604
- margin-left: 4px;
605
- }
606
- .el-table {
607
- font-size: 12px;
608
- }
609
- .el-table th.el-table__cell > .cell {
610
- padding-left: 16px;
611
- }
612
- .el-table .cell {
613
- padding-left: 16px;
614
- }
615
- .el-table--striped
616
- .el-table__body
617
- tr.el-table__row--striped
618
- td.el-table__cell {
619
- background: 1px solid #E0E0E0;
620
- }
621
- }
622
- }
623
-
624
- .tablist-info {
625
- .details-tabs-box{
626
-
627
- .el-menu--horizontal > .el-menu-item{
628
- height: 30px;
629
- line-height: 30px;
630
- border-radius: none;
631
- }
632
- }
633
- }
634
-
635
- .contribute-info {
636
- .contribute-list {
637
- width: 100%;
638
- display: flex;
639
- align-content: flex-start;
640
- flex-flow: row wrap;
641
- .contribute-i {
642
- width: calc((100% - 16px * 3) / 4);
643
- margin: 16px 16px 0 0;
644
- padding: 16px 0 16px 16px;
645
- border: 1px solid #e0e0e0;
646
- border-radius: 6px;
647
- display: flex;
648
- img {
649
- width: 50px;
650
- height: 50px;
651
- margin-right: 6px;
652
- }
653
- .user-title {
654
- font-weight: Bold;
655
- font-size: 14px;
656
- margin-bottom: 8px;
657
- }
658
- .user-but{
659
- cursor: pointer;
660
- font-size: 12px;
661
- color: #FFFFFF;
662
- background: #FBD46D;
663
- height: 20px;
664
- line-height: 20px;
665
- border-radius: 3px;
666
- text-align: center;
667
- padding: 0 10px;
668
-
669
- }
670
-
671
- }
672
-
673
- .contribute-i:nth-child(4n) {
674
- margin-right: 0;
675
- }
676
- }
677
- }
678
- }
679
- .mid-l > div {
680
- margin-bottom: 10px;
681
- padding: 16px;
682
- }
683
- .mid-r > div {
684
- margin-bottom: 10px;
685
- padding: 16px;
686
- }
687
- .mid-r {
688
- width: 26.666%;
689
- margin-left: 10px;
690
-
691
- display: flex;
692
- flex-direction: column;
693
- .tab-conten {
694
- display: flex;
695
- margin-bottom: 16px;
696
- img {
697
- width: 50px;
698
- height: 50px;
699
- margin-right: 10px;
700
- }
701
- .user-name {
702
- display: flex;
703
- }
704
- .text {
705
- font-size: 14px;
706
- font-weight: Bold;
707
- margin-right: 10px;
708
- }
709
- .user-other {
710
- min-height: 200px;
711
- }
712
- .user-but{cursor: pointer;
713
- font-size: 12px;
714
- color: #FFFFFF;
715
- background: #FBD46D;
716
- height: 20px;
717
- line-height: 20px;
718
- border-radius: 3px;
719
- text-align: center;
720
- padding: 0 10px;
721
- }
722
- }
723
- .take-info {
724
- font-size: 16px;
725
- .red-text {
726
- font-size: 18px;
727
- font-weight: bold;
728
- color: #EE6B6B;
729
- }
730
- }
731
- .staff-info {
732
- padding-bottom: 10px;
733
- .open-mero{
734
- text-align: center;
735
- padding: 3px 0;
736
- }
737
- .more-colose{
738
- background: url('../../../assets/mero-colose.png')no-repeat;
739
- background-size: 100% 100%;
740
- width: 18px;
741
- height: 9px;
742
- display: inline-block;
743
- }
744
- .mero-open{
745
- background: url('../../../assets/more-open.png')no-repeat;
746
- background-size: 100% 100%;
747
- width: 18px;
748
- height: 9px;
749
- display: inline-block;
750
- }
751
- .hous-mero {
752
- display: flex;
753
- .mero-labe {
754
- min-width: 60px;
755
- }
756
- }
757
-
758
-
759
- }
760
- .operation-list {
761
- display: flex;
762
- align-items: center;
763
- justify-content: space-between;
764
- .list-item {
765
- width: 33.3%;
766
- height: 62px;
767
- font-size: 14px;
768
- text-align: center;
769
- font-weight: bold;
770
- border: none;
771
- }
772
- .list-item:hover {
773
- color: #fff;
774
- background: #FF9393;
775
- }
776
- .list-item:nth-child(2) {
777
- margin: 0 10px;
778
- }
779
- .list-item:nth-child(3) {
780
- margin-left: 0;
781
- }
782
- }
783
-
784
- .operation-table {
785
- padding: 0;
786
- .table-box {
787
- display: flex;
788
- // align-items: center;
789
- border-bottom: 1px solid #e0e0e0;
790
- .t-item {
791
- padding: 0 16px;
792
- font-size: 14px;
793
- flex: 1;
794
- position: relative;
795
- display: flex;
796
- flex-flow: column;
797
- align-items: flex-start;
798
- border-right: 1px solid #e0e0e0;
799
- .i {
800
- position: absolute;
801
- top: 50%;
802
- // left: 50%;
803
- transform: translateY(-50%);
804
- }
805
- .t-but {
806
- font-size: 12px;
807
- margin-left: 0;
808
- width: 104px;
809
- // height: 100%;
810
- // margin: 12px 16px 0 16px;
811
- margin-top: 12px;
812
- padding: 0;
813
- }
814
- .t-but:nth-last-child(1) {
815
- margin-bottom: 12px;
816
- }
817
- }
818
- .t-item:nth-last-child(1) {
819
- border-right: 0;
820
- }
821
- }
822
- .table-box:nth-last-child(1) {
823
- border-bottom: 0;
824
- }
825
- }
826
-
827
- .customer{
828
- background: #fff;
829
- border-radius: 6px;
830
- width: 100%;
831
- .customer-title{
832
- font-weight: Bold;
833
- font-size: 16px;
834
- color: #333;
835
- }
836
- .customre-line{
837
- width: 100%;
838
- height: 1px;
839
- margin-top: 10px;
840
- background: #E0E0E0;
841
- }
842
- .match-customre{
843
- display: flex;
844
- margin-top: 10px;
845
- .customre-name{
846
- font-weight: Bold;
847
- font-size: 14px;
848
- color: #333333;margin-right: 10px;
849
- }
850
- .t-tag{
851
- width: 41px;
852
- color: #999;
853
- background: #f3f3f3;
854
- border: 1px solid #d8d8d8;
855
- padding: 2px 9px;
856
- border-radius: 3px;
857
- margin-right: 10px;
858
- }
859
-
860
- }
861
- .user-but{
862
- cursor: pointer;
863
- font-size: 12px;
864
- color: #FFFFFF;
865
- background: #FBD46D;
866
- height: 20px;
867
- line-height: 20px;
868
- border-radius: 3px;
869
- text-align: center;
870
- padding: 0 10px;
871
-
872
- }
873
- .customr-name{
874
- position: absolute;
875
- right: 0;
876
- }
877
- .clearfix{
878
- clear: both;
879
- }
880
- .customre-l{
881
- float: left;
882
- width: 50%;
883
- margin-top: 10px;
884
- .row-i{
885
- padding: 5px 0;
886
- }
887
-
888
- }
889
-
890
- .customre-r{
891
- float: right;
892
- width: 50%;
893
- margin-top: 10px;
894
- .row-i{
895
- padding: 5px 0;
896
- }
897
- }
898
- }
899
- }
900
438
  }
901
439
  }
902
- // 按钮
440
+ }
441
+ // 按钮
903
442
  .max-info{
904
443
  height: 26px;
905
444
  color: #333333;
@@ -947,4 +486,168 @@
947
486
  .r{
948
487
  float: right;
949
488
  }
489
+
490
+ .ct-tableParent {
491
+ overflow: auto;
492
+ border-bottom: 1px solid #ebeef5;
493
+ width: 100%;
494
+ outline: 0;
495
+ }
496
+ .ct-searchtable .ct-table {
497
+ min-width: 100%;
498
+ border-collapse: separate;
499
+ }
500
+ .ct-searchtable .ct-table th {
501
+ background-color: #f4f7fa !important;
502
+ border-top: 1px solid #ebeef5;
503
+ }
504
+ .ct-searchtable .ct-tr > .ct-td {
505
+ padding: 2px 20px;
506
+ cursor: default;
507
+ background-color: #ffffff;
508
+ }
509
+ .ct-searchtable .ct-tr > .ct-td1 {
510
+ border-right: 1px solid #e7e8eb;
511
+ border-left: 1px solid #e7e8eb;
512
+ }
513
+ .ct-searchtable .ct-tr:last-child > .ct-td1 {
514
+ border-bottom: 1px solid #e7e8eb;
515
+ }
516
+ .ct-searchtable .ct-tr > .ct-td2 {
517
+ border-bottom: 1px solid #e7e8eb;
518
+ }
519
+ .ct-searchtable .ct-tr > .ct-td3 {
520
+ border: 1px solid #e7e8eb;
521
+ }
522
+ .shadowLeft {
523
+ border-right: 1px solid #e7e8eb;
524
+ box-shadow: 2px 0 3px -1px rgba(0,0,0,0.1);
525
+ }
526
+ .shadowRight {
527
+ box-shadow: -2px 0 3px -1px rgba(0,0,0,0.1);
528
+ }
529
+ .ct-searchtable body:last-child > .ct-td {
530
+ border-bottom: 0px;
531
+ }
532
+ .ct-searchtable .ct-tr > .ct-td.nowidth {
533
+ white-space: nowrap;
534
+ }
535
+
536
+ .ct-table {
537
+ color: #606266;
538
+ font-size: 18px;
539
+ line-height: 40px;
540
+ min-height: 40px;
541
+ }
542
+ .ct-table-mini {
543
+ font-size: 12px;
544
+ line-height: 26px;
545
+ min-height: 28px;
546
+ }
547
+ .ct-table-small {
548
+ font-size: 14px;
549
+ line-height: 32px;
550
+ min-height: 32px;
551
+ }
552
+ .ct-table-medium {
553
+ font-size: 16px;
554
+ line-height: 36px;
555
+ min-height: 36px;
556
+ }
557
+ .ct-table .ct-td > .caret-wrapper {
558
+ display: inline-flex;
559
+ flex-direction: column;
560
+ align-items: center;
561
+ height: 34px;
562
+ width: 10px;
563
+ vertical-align: middle;
564
+ cursor: pointer;
565
+ overflow: initial;
566
+ position: relative;
567
+ }
568
+ .ct-table .ct-td > .caret-wrapper > .sort-caret {
569
+ width: 0;
570
+ height: 0;
571
+ border: 5px solid transparent;
572
+ position: absolute;
573
+ left: 7px;
574
+ }
575
+ .ct-table .ct-td > .caret-wrapper > .sort-caret.ascending {
576
+ border-bottom-color: #c0c4cc;
577
+ top: 5px;
578
+ }
579
+ .ct-table .ct-td > .caret-wrapper > .sort-caret.descending {
580
+ border-top-color: #c0c4cc;
581
+ bottom: 7px;
582
+ }
583
+
584
+ .ct-table .ct-td.select {
585
+ background-color: #ecf5ff !important;
586
+ }
587
+ .ct-table .ct-tr:hover .ct-td.select {
588
+ background-color: #ecf5ff !important;
589
+ }
590
+ .ct-table .ct-td.asc > .caret-wrapper > .sort-caret.ascending {
591
+ border-bottom-color: #409eff;
592
+ top: 5px;
593
+ }
594
+ .ct-table .ct-td.desc > .caret-wrapper > .sort-caret.descending {
595
+ border-top-color: #409eff;
596
+ bottom: 7px;
597
+ }
598
+ .ct-table .cell {
599
+ /*white-space: nowrap;*/
600
+ text-overflow: ellipsis;
601
+ /*min-width: 50px; todo 实际宽度-21即可*/
602
+ overflow: hidden;
603
+ /*padding-right: 10px;*/
604
+ }
605
+ /*强制换行 todo 可去掉改成强制不换行*/
606
+ .ct-table .cell {
607
+ /* 这两个在技术上是一样的, 为了兼容了浏览器两个都加上 */
608
+ overflow-wrap: break-word;
609
+ word-wrap: break-word;
610
+ -ms-word-break: break-all;
611
+ /* 这个的使用在web-kit中有些危险,他可能会阶段所有东西 */
612
+ word-break: break-all;
613
+ /* Instead use this non-standard one: */
614
+ word-break: break-word;
615
+ /* 如果浏览器支持的话增加一个连接符(Blink不支持) */
616
+ -ms-hyphens: auto;
617
+ -moz-hyphens: auto;
618
+ -webkit-hyphens: auto;
619
+ hyphens: auto;
620
+ }
621
+ .ct-table .lineFeedCell {
622
+ min-width: 40px;
623
+ }
624
+ .ct-table .left-fixation {
625
+ position: sticky;
626
+ }
627
+ .ct-table .right-fixation {
628
+ position: sticky;
629
+ }
630
+ .ct-table .left-fixation-th {
631
+ position: sticky;
632
+ top: 0px;
633
+ z-index: 99;
634
+ }
635
+ .ct-table .right-fixation-th {
636
+ position: sticky;
637
+ top: 0px;
638
+ z-index: 99;
639
+ }
640
+ .ct-table .right-no-fixation-th {
641
+ position: sticky;
642
+ top: 0px;
643
+ z-index: 50;
644
+ }
645
+ .ct-table .checkbox-td {
646
+ min-width: 20px;
647
+ width: 20px;
648
+ left: 0px;
649
+ }
650
+ .ct-table .checkbox-td .checkbox-td-1 {
651
+ vertical-align: inherit;
652
+ }
950
653
  </style>