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/lib/components/index.js +2 -0
- package/lib/config/ProTableLocalConfigManage/ProTableLocalConfigManage.d.ts +13 -0
- package/lib/config/ProTableLocalConfigManage/ProTableLocalConfigManage.d.ts.map +1 -0
- package/lib/config/ProTableLocalConfigManage/ProTableLocalConfigManage.js +68 -0
- package/lib/meixioacomponent.common.js +211 -78
- package/lib/meixioacomponent.umd.js +213 -80
- package/lib/meixioacomponent.umd.min.js +6 -6
- package/package.json +1 -1
- package/packages/components/index.js +2 -0
- package/packages/components/index.ts +139 -139
- package/packages/components/proPageTable/oaProTableSearch/oa_pro-table-search.vue +85 -76
- package/packages/components/proPageTable/oa_pro_colum_config.vue +6 -0
- package/packages/components/proPageTable/oa_pro_table.vue +81 -32
- package/packages/config/ProTableLocalConfigManage/ProTableLocalConfigManage.js +75 -0
- package/packages/config/ProTableLocalConfigManage/ProTableLocalConfigManage.ts +99 -0
package/package.json
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
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
|
-
|
|
134
|
-
|
|
135
|
-
|
|
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
|
-
|
|
152
|
+
install(window[`Vue`]);
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
// @ts-ignore
|
|
156
156
|
const meixioacomponent = {
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
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
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
-
|
|
30
|
-
|
|
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
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
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
|
-
|
|
61
|
-
|
|
62
|
-
|
|
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
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
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
|
-
|
|
79
|
-
|
|
80
|
-
|
|
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
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
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
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
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
|
-
|
|
106
|
-
|
|
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
|
-
{
|
|
132
|
-
{
|
|
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 {
|
|
256
|
+
const {tableConfig} = this.$props;
|
|
251
257
|
tableConfig.forEach((item) => {
|
|
252
|
-
const {
|
|
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
|
-
|
|
262
|
-
|
|
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
|
-
|
|
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 {
|
|
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
|
-
|
|
328
|
-
|
|
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
|
-
|
|
353
|
-
|
|
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() {
|