meixioacomponent 1.1.42 → 1.1.44

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": "meixioacomponent",
3
- "version": "1.1.42",
3
+ "version": "1.1.44",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -70,6 +70,7 @@ var UseGuide_1 = require("../config/use/UseGuide");
70
70
  var LinkViewClass_1 = require("../config/LinkViewClass");
71
71
  //组件库type类型
72
72
  var useType_1 = require("../useType/useType");
73
+ var ProTableLocalConfigManage_1 = require("../config/ProTableLocalConfigManage/ProTableLocalConfigManage");
73
74
  var meixicomponents = [
74
75
  baseAnchor_1["default"],
75
76
  baseAppendix_1["default"],
@@ -138,6 +139,7 @@ var install = function (Vue) {
138
139
  window["meixiComponentConfig"] = componentConfig_1["default"];
139
140
  componentConfig_1["default"].createDialogCacheWrap();
140
141
  componentConfig_1["default"].eventBus = new componentConfig_1["default"].Vue();
142
+ ProTableLocalConfigManage_1["default"].initByProTableLocalConfigManage();
141
143
  };
142
144
  //
143
145
  if (typeof window !== "undefined" && window["Vue"]) {
@@ -69,159 +69,159 @@ import useGuide from "../config/use/UseGuide";
69
69
  import LinkViewClass from "../config/LinkViewClass";
70
70
 
71
71
  //组件库type类型
72
- import {
73
- useFormItemParamsType,
74
- useTableColumnParamsType,
75
- useProScreenParamsItem,
76
- } from "../useType/useType";
72
+ import {useFormItemParamsType, useProScreenParamsItem, useTableColumnParamsType,} from "../useType/useType";
73
+ import proTableLocalConfigManage from "../config/ProTableLocalConfigManage/ProTableLocalConfigManage";
77
74
 
78
75
 
79
76
  const meixicomponents: any[] = [
80
- baseAnchor,
81
- baseAppendix,
82
- baseArea,
83
- baseAvatar,
84
- baseButtonHandle,
85
- baseDefaultSvg,
86
- baseDialog,
87
- baseDialogTable,
88
- baseDrawer,
89
- baseEdito,
90
- baseFixedHeader,
91
- Icon,
92
- baseImageViewer,
93
- baseImg,
94
- baseInforWrap,
95
- baseLineInfoGroup,
96
- baseLineInfoItem,
97
- basePageHeader,
98
- basePagination,
99
- basePlainTable,
100
- baseSection,
101
- baseSkeleton,
102
- baseSvg,
103
- baseTimeTypeSelect,
104
- baseToggle,
105
- baseUploadItem,
106
- baseUpload,
107
- upload,
108
- baseDialogForm,
109
- baseForm,
110
- baseFormWrap,
111
- baseProTable,
112
- baseMoverVerifiBar,
113
- baseTimeLine,
114
- basePopoverButton,
115
- baseTreeSelect,
116
- baseUploadTemplate,
117
- baseList,
118
- baseNumberInput,
119
- baseStoreSelect,
120
- baseFormItem,
121
- baseSingleImgUpload,
122
- baseGuide,
123
- baseText,
124
- baseTag,
125
- oaProTableSearch,
126
- baseWait,
127
- draggable,
128
- baseUploadImgAndName,
129
- elDatePicker
77
+ baseAnchor,
78
+ baseAppendix,
79
+ baseArea,
80
+ baseAvatar,
81
+ baseButtonHandle,
82
+ baseDefaultSvg,
83
+ baseDialog,
84
+ baseDialogTable,
85
+ baseDrawer,
86
+ baseEdito,
87
+ baseFixedHeader,
88
+ Icon,
89
+ baseImageViewer,
90
+ baseImg,
91
+ baseInforWrap,
92
+ baseLineInfoGroup,
93
+ baseLineInfoItem,
94
+ basePageHeader,
95
+ basePagination,
96
+ basePlainTable,
97
+ baseSection,
98
+ baseSkeleton,
99
+ baseSvg,
100
+ baseTimeTypeSelect,
101
+ baseToggle,
102
+ baseUploadItem,
103
+ baseUpload,
104
+ upload,
105
+ baseDialogForm,
106
+ baseForm,
107
+ baseFormWrap,
108
+ baseProTable,
109
+ baseMoverVerifiBar,
110
+ baseTimeLine,
111
+ basePopoverButton,
112
+ baseTreeSelect,
113
+ baseUploadTemplate,
114
+ baseList,
115
+ baseNumberInput,
116
+ baseStoreSelect,
117
+ baseFormItem,
118
+ baseSingleImgUpload,
119
+ baseGuide,
120
+ baseText,
121
+ baseTag,
122
+ oaProTableSearch,
123
+ baseWait,
124
+ draggable,
125
+ baseUploadImgAndName,
126
+ elDatePicker
130
127
  ];
131
128
 
132
129
  const install = (Vue) => {
133
- componentConfig.Vue = Vue;
134
- meixicomponents.forEach((baseComponent) => {
135
- Vue.component(baseComponent.name, baseComponent);
136
- });
130
+ componentConfig.Vue = Vue;
131
+ meixicomponents.forEach((baseComponent) => {
132
+ Vue.component(baseComponent.name, baseComponent);
133
+ });
134
+
135
+ Vue.use(DynamicMount);
136
+ Vue.use(VueCropper);
137
+ window[`meixiComponentPlugin`] = {
138
+ SelectStore: SelectStore,
139
+ UseDrag: UseDrag,
140
+ UseResize: UseResize,
141
+ DynamicMountClass: DynamicMountClass,
142
+ };
143
+ window[`meixiComponentConfig`] = componentConfig;
144
+ componentConfig.createDialogCacheWrap();
145
+ componentConfig.eventBus = new componentConfig.Vue();
146
+ proTableLocalConfigManage.initByProTableLocalConfigManage();
147
+
137
148
 
138
- Vue.use(DynamicMount);
139
- Vue.use(VueCropper);
140
- window[`meixiComponentPlugin`] = {
141
- SelectStore: SelectStore,
142
- UseDrag: UseDrag,
143
- UseResize: UseResize,
144
- DynamicMountClass: DynamicMountClass,
145
- };
146
- window[`meixiComponentConfig`] = componentConfig;
147
- componentConfig.createDialogCacheWrap();
148
- componentConfig.eventBus = new componentConfig.Vue();
149
149
  };
150
150
  //
151
151
  if (typeof window !== "undefined" && window[`Vue`]) {
152
- install(window[`Vue`]);
152
+ install(window[`Vue`]);
153
153
  }
154
154
 
155
155
  // @ts-ignore
156
156
  const meixioacomponent = {
157
- install,
158
- componentConfig,
159
- meixicomponents,
160
- baseAnchor,
161
- baseAppendix,
162
- baseArea,
163
- baseAvatar,
164
- baseButtonHandle,
165
- baseDefaultSvg,
166
- baseDialog,
167
- baseDialogTable,
168
- baseDrawer,
169
- baseEdito,
170
- baseFixedHeader,
171
- Icon,
172
- baseImageViewer,
173
- baseImg,
174
- baseInforWrap,
175
- baseLineInfoGroup,
176
- baseLineInfoItem,
177
- basePageHeader,
178
- basePagination,
179
- basePlainTable,
180
- baseSection,
181
- baseSkeleton,
182
- baseSvg,
183
- baseTimeTypeSelect,
184
- baseToggle,
185
- baseUploadItem,
186
- baseUpload,
187
- upload,
188
- baseDialogForm,
189
- baseForm,
190
- baseFormWrap,
191
- baseProTable,
192
- baseMoverVerifiBar,
193
- baseTimeLine,
194
- baseUploadImgAndName,
195
- basePopoverButton,
196
- baseTreeSelect,
197
- baseUploadTemplate,
198
- baseNumberInput,
199
- baseStoreSelect,
200
- baseFormItem,
201
- baseSingleImgUpload,
202
- baseGuide,
203
- baseText,
204
- baseTag,
205
- elDatePicker,
206
- oaProTableSearch,
207
- baseWait,
208
- Theme,
209
- SelectStore,
210
- useImg,
211
- UseDrag,
212
- UseResize,
213
- useUpload,
214
- useFixedHeader,
215
- useCropper,
216
- useViewVideo,
217
- useGuide,
218
- DynamicMountClass,
219
- useWait,
220
- LinkViewClass,
221
- //type 类型
222
- useTableColumnParamsType,
223
- useFormItemParamsType,
224
- useProScreenParamsItem,
157
+ install,
158
+ componentConfig,
159
+ meixicomponents,
160
+ baseAnchor,
161
+ baseAppendix,
162
+ baseArea,
163
+ baseAvatar,
164
+ baseButtonHandle,
165
+ baseDefaultSvg,
166
+ baseDialog,
167
+ baseDialogTable,
168
+ baseDrawer,
169
+ baseEdito,
170
+ baseFixedHeader,
171
+ Icon,
172
+ baseImageViewer,
173
+ baseImg,
174
+ baseInforWrap,
175
+ baseLineInfoGroup,
176
+ baseLineInfoItem,
177
+ basePageHeader,
178
+ basePagination,
179
+ basePlainTable,
180
+ baseSection,
181
+ baseSkeleton,
182
+ baseSvg,
183
+ baseTimeTypeSelect,
184
+ baseToggle,
185
+ baseUploadItem,
186
+ baseUpload,
187
+ upload,
188
+ baseDialogForm,
189
+ baseForm,
190
+ baseFormWrap,
191
+ baseProTable,
192
+ baseMoverVerifiBar,
193
+ baseTimeLine,
194
+ baseUploadImgAndName,
195
+ basePopoverButton,
196
+ baseTreeSelect,
197
+ baseUploadTemplate,
198
+ baseNumberInput,
199
+ baseStoreSelect,
200
+ baseFormItem,
201
+ baseSingleImgUpload,
202
+ baseGuide,
203
+ baseText,
204
+ baseTag,
205
+ elDatePicker,
206
+ oaProTableSearch,
207
+ baseWait,
208
+ Theme,
209
+ SelectStore,
210
+ useImg,
211
+ UseDrag,
212
+ UseResize,
213
+ useUpload,
214
+ useFixedHeader,
215
+ useCropper,
216
+ useViewVideo,
217
+ useGuide,
218
+ DynamicMountClass,
219
+ useWait,
220
+ LinkViewClass,
221
+ //type 类型
222
+ useTableColumnParamsType,
223
+ useFormItemParamsType,
224
+ useProScreenParamsItem,
225
225
  };
226
226
 
227
227
  window[`meixioacomponent`] = meixioacomponent;
@@ -1,47 +1,48 @@
1
1
  <template>
2
2
  <div ref="oaProTableSearchContent" class="oa-pro-table-search-content">
3
3
  <searchHeaderVue
4
- v-model="module"
5
- :input="useSearch"
6
- :placeholder="placeholder"
7
- :searchList="screenList"
8
- @handleScreen="handleScreen"
9
- @handleSearch="handleSearch"
4
+ v-model="module"
5
+ :input="useSearch"
6
+ :placeholder="placeholder"
7
+ :searchList="screenList"
8
+ @handleScreen="handleScreen"
9
+ @handleSearch="handleSearch"
10
10
  >
11
11
  <template slot="search-hearch-extend">
12
12
  <slot name="table-search-extend"></slot>
13
13
  </template>
14
14
 
15
- <!-- <el-button-->
16
- <!-- :class="{-->
17
- <!-- 'is-plain': !proScreenCardShow,-->
18
- <!-- }"-->
19
- <!-- :disabled="_proScreenList.length <= 0 && !proScreenCardShow"-->
20
- <!-- :type="proScreenCardShow ? 'selected' : 'info'"-->
21
- <!-- size="small"-->
22
- <!-- @click="handleProScreenList(false)"-->
23
- <!-- >-->
24
- <!-- {{ handleScreenText }}-->
25
- <!-- <i :class="handleScreenIcon"></i>-->
26
- <!-- </el-button>-->
15
+ <!-- <el-button-->
16
+ <!-- :class="{-->
17
+ <!-- 'is-plain': !proScreenCardShow,-->
18
+ <!-- }"-->
19
+ <!-- :disabled="_proScreenList.length <= 0 && !proScreenCardShow"-->
20
+ <!-- :type="proScreenCardShow ? 'selected' : 'info'"-->
21
+ <!-- size="small"-->
22
+ <!-- @click="handleProScreenList(false)"-->
23
+ <!-- >-->
24
+ <!-- {{ handleScreenText }}-->
25
+ <!-- <i :class="handleScreenIcon"></i>-->
26
+ <!-- </el-button>-->
27
27
 
28
28
  <oa-pro-colum-config
29
- :config="tableConfig"
30
- @setTableHeaderConfig="setTableHeaderConfig"
29
+ :use-local-table-config="useLocalTableConfig"
30
+ :config="tableConfig"
31
+ @setTableHeaderConfig="setTableHeaderConfig"
31
32
  ></oa-pro-colum-config>
32
33
 
33
- <!-- <el-button-->
34
- <!-- :id="screenList.id ? screenList.id : 'pro-screen-button'"-->
35
- <!-- :disabled="proScreenConfig.length <= 0 || !useProScreenList"-->
36
- <!-- size="small"-->
37
- <!-- @click="handleOpenProScreen"-->
38
- <!-- >-->
39
- <!-- <i-->
40
- <!-- class="meixicomponenticonfont meixicomponenticon-shaixuan"-->
41
- <!-- style="font-size: 14px !important"-->
42
- <!-- ></i>-->
43
- <!-- 高级筛选-->
44
- <!-- </el-button>-->
34
+ <!-- <el-button-->
35
+ <!-- :id="screenList.id ? screenList.id : 'pro-screen-button'"-->
36
+ <!-- :disabled="proScreenConfig.length <= 0 || !useProScreenList"-->
37
+ <!-- size="small"-->
38
+ <!-- @click="handleOpenProScreen"-->
39
+ <!-- >-->
40
+ <!-- <i-->
41
+ <!-- class="meixicomponenticonfont meixicomponenticon-shaixuan"-->
42
+ <!-- style="font-size: 14px !important"-->
43
+ <!-- ></i>-->
44
+ <!-- 高级筛选-->
45
+ <!-- </el-button>-->
45
46
  </searchHeaderVue>
46
47
  <div v-show="proScreenCardShow" class="search-mid-content">
47
48
  <el-card class="box-card">
@@ -49,61 +50,61 @@
49
50
  <span class="tips-text">筛选条件</span>
50
51
 
51
52
  <base-line-info-item
52
- :event="false"
53
- :icon="false"
54
- :label="`排列方式:`"
55
- :useSlot="true"
56
- :valueAlign="`left`"
57
- style="width: auto"
53
+ :event="false"
54
+ :icon="false"
55
+ :label="`排列方式:`"
56
+ :useSlot="true"
57
+ :valueAlign="`left`"
58
+ style="width: auto"
58
59
  >
59
60
  <base-toggle
60
- slot="lineInforSlot"
61
- v-model="toggle.index"
62
- :toggleList="toggle.list"
61
+ slot="lineInforSlot"
62
+ v-model="toggle.index"
63
+ :toggleList="toggle.list"
63
64
  ></base-toggle>
64
65
  </base-line-info-item>
65
66
  </div>
66
67
  <div class="screen-item-wrap">
67
68
  <oa_pro_screen_itemVue
68
- v-for="(item, index) in _proScreenList"
69
- :key="index"
70
- :config="proScreenConfig"
71
- :configIndex="index"
72
- :disable="true"
73
- :item="item"
74
- :style="screenStyle"
69
+ v-for="(item, index) in _proScreenList"
70
+ :key="index"
71
+ :config="proScreenConfig"
72
+ :configIndex="index"
73
+ :disable="true"
74
+ :item="item"
75
+ :style="screenStyle"
75
76
  ></oa_pro_screen_itemVue>
76
77
  </div>
77
78
  <baseButtonHandle
78
- :align="`end`"
79
- :config="footerHandleConfig"
80
- :size="`mini`"
79
+ :align="`end`"
80
+ :config="footerHandleConfig"
81
+ :size="`mini`"
81
82
  ></baseButtonHandle>
82
83
  </el-card>
83
84
  </div>
84
85
 
85
86
  <!-- 高级筛选的弹框 -->
86
87
  <base-dialog
87
- ref="dialog"
88
- :close-notice="false"
89
- :modal="proScreenModel"
90
- :modallAppendToBody="false"
91
- :title="`高级筛选`"
92
- :width="`1000px`"
88
+ ref="dialog"
89
+ :close-notice="false"
90
+ :modal="proScreenModel"
91
+ :modallAppendToBody="false"
92
+ :title="`高级筛选`"
93
+ :width="`1000px`"
93
94
  >
94
95
  <template #dialog-content>
95
96
  <oa_pro_screen
96
- :proScreenConfig="proScreenConfig"
97
- :proScreenList="proScreenList"
98
- @deleteProscreenItem="deleteProscreenItem"
99
- @insertDefaultItem="insertDefaultItem"
97
+ :proScreenConfig="proScreenConfig"
98
+ :proScreenList="proScreenList"
99
+ @deleteProscreenItem="deleteProscreenItem"
100
+ @insertDefaultItem="insertDefaultItem"
100
101
  ></oa_pro_screen>
101
102
  </template>
102
103
 
103
104
  <template #dialog-footer>
104
105
  <baseButtonHandle
105
- :config="footerHandleConfig"
106
- :size="`small`"
106
+ :config="footerHandleConfig"
107
+ :size="`small`"
107
108
  ></baseButtonHandle>
108
109
  </template>
109
110
  </base-dialog>
@@ -116,6 +117,7 @@ import oa_pro_screen_itemVue from "./oa_pro_screen_item.vue";
116
117
  import searchHeaderVue from "../../searchHeader/searchHeader.vue";
117
118
  import baseButtonHandle from "../../base/baseButtonHandle/baseButtonHandle.vue";
118
119
  import OaProColumConfig from "../oa_pro_colum_config";
120
+ import proTableLocalConfigManage from "../../../config/ProTableLocalConfigManage/ProTableLocalConfigManage";
119
121
 
120
122
  export default {
121
123
  name: "oaProTableSearch",
@@ -128,8 +130,8 @@ export default {
128
130
  toggle: {
129
131
  index: 1,
130
132
  list: [
131
- { label: "三列", value: 1 },
132
- { label: "四列", value: 2 },
133
+ {label: "三列", value: 1},
134
+ {label: "四列", value: 2},
133
135
  ],
134
136
  },
135
137
  };
@@ -169,6 +171,10 @@ export default {
169
171
  type: Boolean,
170
172
  default: true,
171
173
  },
174
+ useLocalTableConfig: {
175
+ type: String,
176
+ default: ''
177
+ }
172
178
  },
173
179
  components: {
174
180
  OaProColumConfig,
@@ -247,9 +253,9 @@ export default {
247
253
  setTableHeaderConfig(configList) {
248
254
  let leftFixedList = [];
249
255
  let rightFixedList = [];
250
- const { tableConfig } = this.$props;
256
+ const {tableConfig} = this.$props;
251
257
  tableConfig.forEach((item) => {
252
- const { lock } = item;
258
+ const {lock} = item;
253
259
  if (lock && lock !== "right") {
254
260
  leftFixedList.push(item);
255
261
  } else if (lock && lock === "right") {
@@ -258,8 +264,8 @@ export default {
258
264
  });
259
265
 
260
266
  tableConfig.splice(
261
- leftFixedList.length,
262
- configList.length - rightFixedList.length + 1
267
+ leftFixedList.length,
268
+ configList.length - rightFixedList.length + 1
263
269
  );
264
270
 
265
271
  configList.forEach((item, index) => {
@@ -271,13 +277,16 @@ export default {
271
277
  tableConfig.push(item);
272
278
  });
273
279
  }
274
- if (canPush) {
275
- this.tableConfigPushEmpty();
280
+ // if (canPush) {
281
+ // this.tableConfigPushEmpty();
282
+ // }
283
+ if (this.$props.useLocalTableConfig) {
284
+ proTableLocalConfigManage.setProTableLocalConfigByTableKey(this.$props.useLocalTableConfig, tableConfig);
276
285
  }
277
286
  },
278
287
 
279
288
  tableConfigPushEmpty() {
280
- const { tableConfig } = this.$props;
289
+ const {tableConfig} = this.$props;
281
290
  tableConfig.push({
282
291
  label: "",
283
292
  key: "noData",
@@ -324,8 +333,8 @@ export default {
324
333
  computedHeight() {
325
334
  this.$nextTick(() => {
326
335
  this.$emit(
327
- "searchContentHeightChange",
328
- this.$refs.oaProTableSearchContent.clientHeight
336
+ "searchContentHeightChange",
337
+ this.$refs.oaProTableSearchContent.clientHeight
329
338
  );
330
339
  });
331
340
  },
@@ -349,8 +358,8 @@ export default {
349
358
  local[`${routerName}`] = this.proScreenList;
350
359
 
351
360
  window.localStorage.setItem(
352
- "proTableScreenConfig",
353
- JSON.stringify(local)
361
+ "proTableScreenConfig",
362
+ JSON.stringify(local)
354
363
  );
355
364
  },
356
365
 
@@ -68,6 +68,7 @@
68
68
 
69
69
  <script>
70
70
  import baseButtonHandle from '../base/baseButtonHandle/baseButtonHandle.vue'
71
+ import proTableLocalConfigManage from "../../config/ProTableLocalConfigManage/ProTableLocalConfigManage";
71
72
 
72
73
  export default {
73
74
  name: 'oaProColumConfig',
@@ -112,6 +113,11 @@ export default {
112
113
  type: Array,
113
114
  require: true,
114
115
  },
116
+
117
+ useLocalTableConfig: {
118
+ type: String,
119
+ default: ''
120
+ }
115
121
  },
116
122
  computed: {
117
123
  lockConfigList() {