meixioacomponent 0.2.62 → 0.2.63

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.
@@ -2328,10 +2328,10 @@
2328
2328
  color: #1f2329;
2329
2329
  }
2330
2330
  .el-dialog__body {
2331
- padding: var(--padding-5) calc(var(--padding-5) * 2);
2332
- color: var(--font-color-d);
2333
2331
  font-size: 14px;
2332
+ color: var(--font-color-d);
2334
2333
  word-break: break-all;
2334
+ padding: 0px calc(var(--padding-5) * 2);
2335
2335
  }
2336
2336
  .el-dialog__footer {
2337
2337
  padding: 20px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meixioacomponent",
3
- "version": "0.2.62",
3
+ "version": "0.2.63",
4
4
  "private": false,
5
5
  "author": "YuRi",
6
6
  "main": "lib/meixioacomponent.umd.min.js",
@@ -14,30 +14,49 @@
14
14
  }"
15
15
  :disabled="_proScreenList.length <= 0"
16
16
  @click="handleProScreenList"
17
- :type="showProScreenList ? 'primary' : 'info'"
17
+ :type="showProScreenList ? 'selected' : 'info'"
18
18
  >{{ handleScreenText }} <i :class="handleScreenIcon"></i>
19
19
  </el-button>
20
20
  <el-button size="medium" plain type="info" @click="handleOpenProScreen">
21
- <i class="meixicomponenticonfont meixicomponenticon-shaixuan"></i>高级筛选
21
+ <i class="meixicomponenticonfont meixicomponenticon-shaixuan"></i
22
+ >高级筛选
22
23
  </el-button>
23
24
  </searchHeaderVue>
24
25
 
25
26
  <div class="search-mid-content" v-show="showProScreenList">
26
27
  <el-card class="box-card">
27
- <span class="tips-text">筛选条件</span>
28
+ <div class="box-card-title">
29
+ <span class="tips-text">筛选条件</span>
30
+
31
+ <base-line-info-item
32
+ :event="false"
33
+ :icon="false"
34
+ :useSlot="true"
35
+ style="width: auto"
36
+ :valueAlign="`left`"
37
+ :label="`排列方式:`"
38
+ >
39
+ <base-toggle
40
+ slot="lineInforSlot"
41
+ v-model="toggle.index"
42
+ :toggleList="toggle.list"
43
+ ></base-toggle>
44
+ </base-line-info-item>
45
+ </div>
28
46
  <div class="screen-item-wrap">
29
47
  <oa_pro_screen_itemVue
30
48
  :key="index"
31
49
  :item="item"
32
50
  :disable="true"
51
+ :style="screenStyle"
52
+ :configIndex="index"
33
53
  :config="proScreenConfig"
34
- style="width: 50%"
35
54
  v-for="(item, index) in _proScreenList"
36
55
  ></oa_pro_screen_itemVue>
37
56
  </div>
38
57
  <baseButtonHandle
39
58
  :size="`mini`"
40
- :align="`start`"
59
+ :align="`end`"
41
60
  :config="footerHandleConfig"
42
61
  ></baseButtonHandle>
43
62
  </el-card>
@@ -55,6 +74,14 @@ export default {
55
74
  showProScreen: false,
56
75
  showProScreenList: false,
57
76
  footerHandleConfig: [],
77
+
78
+ toggle: {
79
+ index: 1,
80
+ list: [
81
+ { label: "三列", value: 1 },
82
+ { label: "四列", value: 2 },
83
+ ],
84
+ },
58
85
  };
59
86
  },
60
87
  created() {
@@ -91,6 +118,15 @@ export default {
91
118
  return item.exposed;
92
119
  });
93
120
  },
121
+ rowWidth() {
122
+ return this.toggle.index == 1 ? 33 : 25;
123
+ },
124
+
125
+ screenStyle() {
126
+ return {
127
+ width: `${this.rowWidth}%`,
128
+ };
129
+ },
94
130
 
95
131
  module: {
96
132
  get() {
@@ -103,7 +139,7 @@ export default {
103
139
  },
104
140
  methods: {
105
141
  handleSearch() {
106
- this.$parent.startHttp();
142
+ this.$parent.refreshData();
107
143
  },
108
144
  handleProScreenList() {
109
145
  this.showProScreenList = !this.showProScreenList;
@@ -132,7 +168,7 @@ export default {
132
168
  type: "primary",
133
169
  plain: false,
134
170
  click: () => {
135
- this.$parent.startHttp();
171
+ this.$parent.refreshData();
136
172
  },
137
173
  },
138
174
  {
@@ -142,7 +178,7 @@ export default {
142
178
  click: () => {
143
179
  this.$parent.cleanProscreenCondition();
144
180
  this.$nextTick(() => {
145
- this.$parent.startHttp();
181
+ this.$parent.refreshData();
146
182
  });
147
183
  },
148
184
  },
@@ -166,10 +202,18 @@ export default {
166
202
  .box-card {
167
203
  width: 100%;
168
204
  height: 100%;
169
- .tips-text {
170
- display: block;
171
- color: var(--font-color-d);
172
- font-size: var(--font-size-base);
205
+
206
+ .box-card-title {
207
+ display: flex;
208
+ align-items: center;
209
+ flex-flow: row nowrap;
210
+ justify-content: space-between;
211
+ .tips-text {
212
+ display: block;
213
+ color: var(--font-color-d);
214
+ font-size: var(--font-size-l);
215
+ font-weight: var(--font-weight-kg);
216
+ }
173
217
  }
174
218
  .screen-item-wrap {
175
219
  width: 100%;
@@ -55,11 +55,11 @@ export default {
55
55
  methods: {
56
56
  sizeChange(e) {
57
57
  this.$emit("pageSizeChange");
58
- this.$parent.startHttp();
58
+ this.$parent.refreshData();
59
59
  },
60
60
  currentChange() {
61
61
  this.$emit("pageCurrentChange");
62
- this.$parent.startHttp(false);
62
+ this.$parent.refreshData(false);
63
63
  },
64
64
  },
65
65
  };
@@ -7,13 +7,13 @@
7
7
  :key="index"
8
8
  ref="oaProScreenItemVue"
9
9
  :config="proScreenConfig"
10
- :configIndex="item.configIndex < 0 ? null : item.configIndex"
11
10
  v-for="(item, index) in proScreenList"
12
11
  @deleteProscreenItem="deleteProscreenItem(index)"
12
+ :configIndex="item.configIndex < 0 ? null : item.configIndex"
13
13
  ></oa_pro_screen_itemVue>
14
14
  </div>
15
15
  <div class="screen-handle-wrap">
16
- <el-button type="text" @click="insertDefaultItem">
16
+ <el-button type="info" size="small" @click="insertDefaultItem">
17
17
  <i class="el-icon-plus"></i>
18
18
  添加筛选条件</el-button
19
19
  >
@@ -59,7 +59,7 @@
59
59
  v-if="item.type == 'select'"
60
60
  >
61
61
  <el-option
62
- v-for="item in config[privateConfigIndex].selectList"
62
+ v-for="item in config[findProselectList(item)].selectList"
63
63
  :key="item.value"
64
64
  :value="item.value"
65
65
  :label="item.label"
@@ -71,8 +71,8 @@
71
71
  <base-icon
72
72
  :color="`m`"
73
73
  :event="true"
74
- :name="`meixicomponenticon-close`"
75
74
  @iconClick="deleteProscreen"
75
+ :name="`meixicomponenticon-close`"
76
76
  ></base-icon>
77
77
  <el-checkbox v-model="item.exposed" :disabled="!item.key"
78
78
  >外露</el-checkbox
@@ -91,7 +91,9 @@ export default {
91
91
  created() {
92
92
  this.privateConfigIndex = this.$props.configIndex;
93
93
  },
94
- mounted() {},
94
+ mounted() {
95
+ console.log(this.config);
96
+ },
95
97
  props: {
96
98
  item: {},
97
99
  config: {},
@@ -116,6 +118,11 @@ export default {
116
118
  },
117
119
 
118
120
  deleteProscreen() {
121
+ const { config } = this.$props;
122
+ let index = config.findIndex((configItem) => {
123
+ return configItem.key == this.item.key;
124
+ });
125
+ config[index].isCheck = false;
119
126
  this.$emit("deleteProscreenItem");
120
127
  },
121
128
  trigerCheck(index, params) {
@@ -123,6 +130,14 @@ export default {
123
130
  this.$props.config[index].isCheck = params;
124
131
  }, 120);
125
132
  },
133
+
134
+ findProselectList(item) {
135
+ const { config } = this.$props;
136
+ let index = config.findIndex((configItem) => {
137
+ return configItem.key == item.key;
138
+ });
139
+ return index;
140
+ },
126
141
  },
127
142
 
128
143
  watch: {
@@ -168,7 +183,7 @@ export default {
168
183
  // justify-content: space-between !important;
169
184
  .item-wrap-left,
170
185
  .item-wrap-right {
171
- width: 40% !important;
186
+ width: 45% !important;
172
187
  }
173
188
  }
174
189
  </style>
@@ -157,9 +157,9 @@
157
157
 
158
158
  <!-- 高级筛选的弹框 -->
159
159
  <base-dialog
160
- :title="`高级筛选`"
161
160
  ref="dialog"
162
161
  :width="`1000px`"
162
+ :title="`高级筛选`"
163
163
  :modal="proScreenModel"
164
164
  :modallAppendToBody="false"
165
165
  >
@@ -172,6 +172,7 @@
172
172
  ></oa_pro_screenVue>
173
173
 
174
174
  <baseButtonHandle
175
+ :size="`medium`"
175
176
  slot="dialog-footer"
176
177
  :config="footerHandleConfig"
177
178
  ></baseButtonHandle>
@@ -421,8 +422,8 @@ export default {
421
422
  this.$props.tableConfig.forEach((item, index) => {
422
423
  item.preIndex = index;
423
424
  this.$set(item, "show", true);
424
- if (!item.width || item.width < 150) {
425
- item.width = 150;
425
+ if (!item.width || item.width < 100) {
426
+ item.width = 100;
426
427
  }
427
428
  });
428
429
 
@@ -430,7 +431,7 @@ export default {
430
431
  label: "",
431
432
  key: "noData",
432
433
  lock: false,
433
- width: 80,
434
+ width: 30,
434
435
  show: true,
435
436
  template: false,
436
437
  });
@@ -445,16 +446,17 @@ export default {
445
446
  let content = row[`${column.property}`];
446
447
  this.tooltip.show = false;
447
448
  if (!content) return;
449
+ const { tooltip } = this;
448
450
  let style = event.target;
449
451
  let position = style.getBoundingClientRect();
450
- this.tooltip.width = style.clientWidth;
451
- this.tooltip.height = style.clientHeight;
452
- this.tooltip.top = position.top;
453
- this.tooltip.left = position.left;
454
- this.tooltip.content = content;
452
+ tooltip.width = style.clientWidth;
453
+ tooltip.height = style.clientHeight;
454
+ tooltip.top = position.top;
455
+ tooltip.left = position.left;
456
+ tooltip.content = content;
455
457
 
456
458
  this.$nextTick(() => {
457
- this.tooltip.show = true;
459
+ tooltip.show = true;
458
460
  });
459
461
  },
460
462
 
@@ -589,6 +591,7 @@ export default {
589
591
  },
590
592
  // 删除高级筛选的item
591
593
  deleteProscreenItem(index) {
594
+ this.proScreenList[index].isCheck = false;
592
595
  this.proScreenList.splice(index, 1);
593
596
  },
594
597
  // 弹框确定的按钮
@@ -22,7 +22,7 @@
22
22
  }"
23
23
  @click="handleScreen(index)"
24
24
  v-for="(item, index) in searchList.list"
25
- :type="index == searchList.index ? 'primary' : 'info'"
25
+ :type="index == searchList.index ? 'selected' : 'info'"
26
26
  >{{ item.label }}</el-button
27
27
  >
28
28
  </div>
@@ -2328,10 +2328,10 @@
2328
2328
  color: #1f2329;
2329
2329
  }
2330
2330
  .el-dialog__body {
2331
- padding: var(--padding-5) calc(var(--padding-5) * 2);
2332
- color: var(--font-color-d);
2333
2331
  font-size: 14px;
2332
+ color: var(--font-color-d);
2334
2333
  word-break: break-all;
2334
+ padding: 0px calc(var(--padding-5) * 2);
2335
2335
  }
2336
2336
  .el-dialog__footer {
2337
2337
  padding: 20px;