centaline-data-driven 1.2.23 → 1.2.26

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