centaline-data-driven 1.1.35 → 1.1.36

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "centaline-data-driven",
3
- "version": "1.1.35",
3
+ "version": "1.1.36",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
Binary file
@@ -716,3 +716,8 @@ html {
716
716
  .el-card.is-always-shadow{
717
717
  box-shadow: none!important;
718
718
  }
719
+
720
+ .domDisabled {
721
+ pointer-events: none;
722
+ opacity:0.4;
723
+ }
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div v-loading="loading" style="width:100%">
3
- <div v-if="model !== null && !loading" class="ct-form" :class="{'tableDisabled':model.pageDisabled}">
3
+ <div v-if="model !== null && !loading" class="ct-form" :class="{'domDisabled':model.pageDisabled}">
4
4
  <!--可根据场景判断显示el-card还是el-main-->
5
5
  <component :is="model.showTitle?'el-main':'el-card'">
6
6
  <div slot="header" class="clearfix" v-if="typeof model.title !== 'undefined' && model.flagShowTitle">
@@ -523,9 +523,3 @@
523
523
  }
524
524
  }
525
525
  </script>
526
- <style>
527
- .tableDisabled {
528
- pointer-events: none;
529
- opacity:0.4;
530
- }
531
- </style>
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="ct-search-list" :style="searchListStyle">
2
+ <div class="ct-search-list" :style="searchListStyle" :class="{'domDisabled':pageDisabled}">
3
3
  <div slot="header" class="clearfix" v-if="typeof title !== 'undefined' && showTitle">
4
4
  <span style="font-weight:bold">{{title}}</span>
5
5
  </div>
@@ -12,7 +12,7 @@
12
12
  @showTitle="showTitleScreenHandler"></ct-searchscreen>
13
13
 
14
14
  <ct-searchtable ref="table" :api="searchDataApi" :searchDataStatisticsApi="searchDataStatisticsApi"
15
- @toolbarClick="toolbarClickHandler" @refreshParent="refreshParentHandler" :key="reloadKeyTable"
15
+ @toolbarClick="toolbarClickHandler" @refreshParent="refreshParentHandler" :key="reloadKeyTable" @searchComplate="searchComplate()"
16
16
  @showTitle="showTitleHandler"></ct-searchtable>
17
17
  </div>
18
18
  </template>
@@ -72,6 +72,7 @@
72
72
  reloadKeyScreen:'s0',
73
73
  reloadKeyTable:'t0',
74
74
  isReload:false,
75
+ pageDisabled:false,
75
76
  }
76
77
  },
77
78
  methods: {
@@ -93,12 +94,16 @@
93
94
  },
94
95
  search(btn) {
95
96
  if (this.$refs.table.model) {
97
+ this.pageDisabled=true;
96
98
  this.$refs.table.getPage(1);
97
99
  }
98
100
  else {
99
101
  this.$refs.table.searchComplate(this.$refs.screen.model);
100
102
  }
101
103
  },
104
+ searchComplate() {
105
+ this.pageDisabled=false;
106
+ },
102
107
  toolbarClickHandler(field, submitData) {
103
108
  if (field.isExport) {
104
109
  this.$refs.screen.model.export(field, submitData);
@@ -8,7 +8,6 @@
8
8
  </template>
9
9
  <component v-for="(col, index) in model.btnScreen" :key="index" :is="col.is" :vmodel="col" :api="model.optionApi" @click="clickHandler(col)"></component>
10
10
  </div>
11
-
12
11
  <!--<el-row>
13
12
  <el-col v-for="(col, index) in model.screen" :key="index" :span="col.colspan" style="padding:10px" v-if="col.show !== false">
14
13
  <component :is="col.is" :vmodel="col" :api="model.optionApi" @click="clickHandler(col)"></component>
@@ -52,7 +51,7 @@
52
51
  screenPara: {
53
52
  type: Object,
54
53
  default: () => { }
55
- }
54
+ },
56
55
  },
57
56
  data() {
58
57
  return {
@@ -332,6 +332,7 @@
332
332
  self.tableLoading = false;
333
333
  self.rowColorChange();
334
334
  }
335
+ self.$emit('searchComplate');
335
336
  }
336
337
  self.tableLoading = true;
337
338
  this.model.getPage(index, next);
@@ -4,12 +4,13 @@
4
4
  <div v-if="model.showLabel && model.label" class="el-input-group__prepend field-label-div" :class="[model.labelClass]">
5
5
  <span>{{model.label}}</span>
6
6
  </div>
7
- <span>{{showLable==true?model.labelValue1:model.labelValue}}</span>
8
- <i v-if="model.labelValue" class="el-icon-view" @click="onSensitiveEye($event)"></i>
7
+ <span class="eyelabel">{{showLable==true?model.labelValue1:model.labelValue}}</span>
8
+ <i v-if="model.labelValue" :class="[!showLable?'el-icon-view':'el-icon-eye']" @click="onSensitiveEye($event)"></i>
9
9
  </div>
10
10
  </div>
11
-
11
+
12
12
  </template>
13
+
13
14
  <script>
14
15
  import dynamicElement from '../../mixins/dynamicElement'
15
16
  export default {
@@ -33,7 +34,7 @@
33
34
  }
34
35
  },
35
36
  computed: {
36
-
37
+
37
38
  },
38
39
  methods: {
39
40
  onSensitiveEye() {
@@ -54,8 +55,20 @@
54
55
  }
55
56
  </script>
56
57
  <style>
57
- .el-icon-view {
58
+ .el-icon-view, .el-icon-eye {
58
59
  margin-left: 5px;
59
60
  font-size: 16px;
60
61
  }
62
+ .eyelabel {
63
+ width:80px;
64
+ }
65
+ .el-icon-eye:before {
66
+ background: url("../../../assets/icon-eye.png") no-repeat;
67
+ content: '';
68
+ display: block;
69
+ width: 16px;
70
+ height: 16px;
71
+ font-size: 16px;
72
+ background-size: 16px;
73
+ }
61
74
  </style>