olp-table 5.3.4 → 5.3.5
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 +12 -92
- package/.env.build +0 -1
- package/README.md +0 -26
- package/babel.config.js +0 -5
- package/jsconfig.json +0 -22
- package/public/favicon.ico +0 -0
- package/public/index.html +0 -17
- package/rmMode.bat +0 -1
- package/src/App.vue +0 -199
- package/src/api/crud.js +0 -22
- package/src/api/dist.js +0 -6
- package/src/assets/iconfont/iconfont.css +0 -20
- package/src/assets/iconfont/iconfont.json +0 -16
- package/src/assets/iconfont/iconfont.ttf +0 -0
- package/src/assets/iconfont/iconfont.woff +0 -0
- package/src/assets/iconfont/iconfont.woff2 +0 -0
- package/src/assets/logo.png +0 -0
- package/src/components/auto-height/index.vue +0 -75
- package/src/components/codemirror-tag.vue +0 -100
- package/src/components/lazy-load-select.vue +0 -107
- package/src/components/ol-dialog-excel.vue +0 -112
- package/src/components/ol-dialog-import.vue +0 -304
- package/src/components/ol-dialog-json.vue +0 -82
- package/src/components/ol-dialog-table.vue +0 -81
- package/src/components/ol-dialog-upload-file.vue +0 -208
- package/src/components/ol-dict-tag.vue +0 -271
- package/src/components/ol-select-dom.vue +0 -71
- package/src/components/ol-table-filter.vue +0 -28
- package/src/components/ol-table-render.vue +0 -44
- package/src/components/ol-table-select.vue +0 -150
- package/src/components/pinia-init.vue +0 -18
- package/src/components/table/model/ModelMixins.js +0 -43
- package/src/components/table/model/model-index.vue +0 -121
- package/src/components/table/model/ot-left-right.vue +0 -18
- package/src/components/table/model/ot-left-tree-right-table.scss +0 -14
- package/src/components/table/model/ot-left-tree-right-table.vue +0 -41
- package/src/components/table/model/ot-top-1-bottom-2.vue +0 -39
- package/src/components/table/model/ot-top-2-bottom-1.vue +0 -38
- package/src/components/table/model/ot-top-2-bottom-2.vue +0 -38
- package/src/components/table/model/ot-top-bottom.vue +0 -18
- package/src/components/table/model/splitpanesModel.css +0 -22
- package/src/components/table/model/splitpanesModel.vue +0 -54
- package/src/components/table/ol-form/index.vue +0 -537
- package/src/components/table/ol-form-v3/index.vue +0 -455
- package/src/components/table/ol-main-form-sub-table/index.vue +0 -601
- package/src/components/table/ol-pager/index.vue +0 -46
- package/src/components/table/ol-table/components/ol-table-column-config/columnIndex.vue +0 -233
- package/src/components/table/ol-table/components/ol-table-column-config/index.vue +0 -145
- package/src/components/table/ol-table/components/ol-table-column-dict-color/index.vue +0 -88
- package/src/components/table/ol-table/index.vue +0 -232
- package/src/components/table/ol-table-operate/index.vue +0 -61
- package/src/components/table/ol-table-search/index.vue +0 -17
- package/src/components/table/ol-table-tool-btn/index.vue +0 -60
- package/src/components/tree/components/o-tree.vue +0 -289
- package/src/components/tree/index.vue +0 -46
- package/src/components/v-component/index.vue +0 -43
- package/src/config/dev-config.js +0 -5
- package/src/config/prod-config.js +0 -5
- package/src/config/shared-config.js +0 -20
- package/src/data.js +0 -9378
- package/src/directives/permission/hasPermi.js +0 -63
- package/src/directives/permission/hasRole.js +0 -30
- package/src/main.js +0 -55
- package/src/mixins/VTMixin/DefaultMethods.js +0 -749
- package/src/mixins/VTMixin/OTMixinBody.js +0 -105
- package/src/mixins/VTMixin/OTMixinBodyFooter.js +0 -93
- package/src/mixins/VTMixin/OTMixinBodyMethods.js +0 -420
- package/src/mixins/VTMixin/OTMixinColumnMethod.js +0 -450
- package/src/mixins/VTMixin/OTMixinInitMethod.js +0 -130
- package/src/mixins/VTMixin/OTMixinPager.js +0 -38
- package/src/mixins/VTMixin/OTMixinSortable.js +0 -43
- package/src/mixins/VTMixin/index.js +0 -18
- package/src/package/index.js +0 -20
- package/src/plugins/axios.js +0 -61
- package/src/store/dict.js +0 -76
- package/src/store/dictType.js +0 -52
- package/src/store/permi.js +0 -45
- package/src/styles/common.scss +0 -37
- package/src/styles/index.scss +0 -48
- package/src/styles/theme.scss +0 -32
- package/src/utils/AESCRUDUtils.js +0 -87
- package/src/utils/DateUtils.js +0 -35
- package/src/utils/ExcelUtil.js +0 -159
- package/src/utils/TableSortUtil.js +0 -91
- package/src/utils/columnProp.js +0 -3
- package/src/utils/groupCompute.js +0 -68
- package/src/utils/http/httpFactory.js +0 -92
- package/src/utils/http/httpFactory2.js +0 -79
- package/src/utils/http/httpUtil.js +0 -123
- package/src/utils/http/httpUtils.js +0 -38
- package/src/utils/loadStyle.js +0 -14
- package/src/utils/message.js +0 -56
- package/src/utils/object.js +0 -80
- package/src/utils/security/TokenUtil.js +0 -19
- package/src/utils/tree.js +0 -54
- package/src/utils/util.js +0 -127
- package/src/views/Test/index.vue +0 -77
- package/src/views/Test/index2.vue +0 -33
- package/src/views/components/btn-config/index.vue +0 -202
- package/src/views/components/option-config/index.vue +0 -192
- package/src/views/db/chineseToEnglish.vue +0 -127
- package/src/views/db/filed.vue +0 -395
- package/src/views/db/index.vue +0 -192
- package/src/views/db/preview/index.vue +0 -139
- package/src/views/db/preview/left.vue +0 -204
- package/src/views/db/preview/right.vue +0 -466
- package/src/views/groupTable/index.vue +0 -137
- package/src/views/groupTable/ol-table-column-config/columnIndex.vue +0 -194
- package/src/views/groupTable/ol-table-column-config/index.vue +0 -92
- package/src/views/table/add-or-edit/config/base-config/index.vue +0 -539
- package/src/views/table/add-or-edit/config/base-config/table-form.vue +0 -333
- package/src/views/table/add-or-edit/config/column-config/header-config.vue +0 -475
- package/src/views/table/add-or-edit/config/column-config/index.vue +0 -790
- package/src/views/table/add-or-edit/config/data/column.js +0 -218
- package/src/views/table/add-or-edit/config/data/crud.js +0 -122
- package/src/views/table/add-or-edit/config/data/events.js +0 -109
- package/src/views/table/add-or-edit/config/data/method.js +0 -127
- package/src/views/table/add-or-edit/config/data/option.js +0 -725
- package/src/views/table/add-or-edit/config/data/page.js +0 -79
- package/src/views/table/add-or-edit/config/field-config/filed-config-table.vue +0 -42
- package/src/views/table/add-or-edit/config/field-config/index.vue +0 -91
- package/src/views/table/add-or-edit/config/form-config/index.vue +0 -1179
- package/src/views/table/add-or-edit/config/index.vue +0 -376
- package/src/views/table/add-or-edit/config/initFormObject.js +0 -25
- package/src/views/table/add-or-edit/config/script-config/LeftMeun.vue +0 -71
- package/src/views/table/add-or-edit/config/script-config/index.vue +0 -70
- package/src/views/table/add-or-edit/config/table-config/btn-config.vue +0 -340
- package/src/views/table/add-or-edit/config/table-config/btn-sort.vue +0 -132
- package/src/views/table/add-or-edit/config/table-config/index.vue +0 -446
- package/src/views/table/add-or-edit/configOld/dataTags/filed-config-table-model.vue +0 -41
- package/src/views/table/add-or-edit/configOld/dataTags/filed-config.vue +0 -74
- package/src/views/table/add-or-edit/configOld/dataTags/index.vue +0 -439
- package/src/views/table/add-or-edit/configOld/dataTags/set-table-sql.vue +0 -79
- package/src/views/table/add-or-edit/configOld/dataTags/table-on-config.vue +0 -74
- package/src/views/table/add-or-edit/configOld/index.vue +0 -127
- package/src/views/table/add-or-edit/configOld/tableTags/columnConfig.js +0 -5
- package/src/views/table/add-or-edit/configOld/tableTags/index.vue +0 -353
- package/src/views/table/add-or-edit/configOld/tableTags/operation-but-config.vue +0 -75
- package/src/views/table/add-or-edit/configOld/tableTags/tool-but-config.vue +0 -92
- package/src/views/table/add-or-edit/index.vue +0 -201
- package/src/views/table/add-or-edit/themeModel/index.vue +0 -53
- package/src/views/table/add-or-edit/themeModel/init-model-table.vue +0 -48
- package/src/views/table/add-or-edit/themeModel/init-model.vue +0 -81
- package/src/views/table/add-or-edit/themeModel/left-right.vue +0 -24
- package/src/views/table/add-or-edit/themeModel/left-tree-right-table.vue +0 -75
- package/src/views/table/add-or-edit/themeModel/olTableSearchModelMixins.js +0 -42
- package/src/views/table/add-or-edit/themeModel/splitpanesThemeModel.vue +0 -49
- package/src/views/table/add-or-edit/themeModel/top-1-bottom-2.vue +0 -29
- package/src/views/table/add-or-edit/themeModel/top-2-bottom-1.vue +0 -32
- package/src/views/table/add-or-edit/themeModel/top-2-bottom-2.vue +0 -32
- package/src/views/table/add-or-edit/themeModel/top-bottom.vue +0 -14
- package/src/views/table/index.vue +0 -43
- package/src/views/table/index2.vue +0 -199
- package/src/views/table/preview/index.vue +0 -29
- package/src/views/tree/components/config-core-data.vue +0 -85
- package/src/views/tree/components/config-core-table.vue +0 -362
- package/src/views/tree/components/config-core-tree/data/events.js +0 -95
- package/src/views/tree/components/config-core-tree/data/option.js +0 -88
- package/src/views/tree/components/config-core-tree/data/prop.js +0 -28
- package/src/views/tree/components/config-core-tree/index.vue +0 -181
- package/src/views/tree/components/config-core.vue +0 -42
- package/src/views/tree/components/form-config/index.vue +0 -967
- package/src/views/tree/index.vue +0 -424
- package/vue.config.js +0 -44
- /package/{olp-table/demo.html → demo.html} +0 -0
- /package/{olp-table/fonts → fonts}/iconfont.1720006583309.7e4906d9.woff +0 -0
- /package/{olp-table/fonts → fonts}/iconfont.1720006583309.947a27f0.ttf +0 -0
- /package/{olp-table/olp-table.common.js → olp-table.common.js} +0 -0
- /package/{olp-table/olp-table.css → olp-table.css} +0 -0
- /package/{olp-table/olp-table.umd.js → olp-table.umd.js} +0 -0
- /package/{olp-table/olp-table.umd.min.js → olp-table.umd.min.js} +0 -0
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<vxe-grid v-bind="gridOptions" ref="vexGridRef" :data="gridOptions1.columns">
|
|
3
|
-
<!-- 通用多选框 -->
|
|
4
|
-
<template #checkedBox_header="{ column }">
|
|
5
|
-
<div style="display: flex;align-items: center;">
|
|
6
|
-
<el-checkbox v-model="column.params.all" @change="headerClick(column)"></el-checkbox>
|
|
7
|
-
<span style="margin-left: 5px;">{{ column.title }} </span>
|
|
8
|
-
|
|
9
|
-
</div>
|
|
10
|
-
</template>
|
|
11
|
-
<template #seq="{ rowIndex}">
|
|
12
|
-
<vxe-button size="mini" style="padding:0" type="text">
|
|
13
|
-
<span class="vxe-icon-sort"/>{{ rowIndex + 1 }}
|
|
14
|
-
</vxe-button>
|
|
15
|
-
</template>
|
|
16
|
-
<template #checkedBox_default="{ column, row }">
|
|
17
|
-
<el-checkbox v-model="row[column.field]" @change="checkBoxClick(column, row)"></el-checkbox>
|
|
18
|
-
</template>
|
|
19
|
-
<template #select_com="{ column, row }">
|
|
20
|
-
<el-select v-model="row[column.field]" clearable placeholder="计算类型" @change="gridOptions1.refresh()" size="small">
|
|
21
|
-
<el-option v-for="type in ['sum','avg','max','min']" :key="type" :value="type" :label="type"></el-option>
|
|
22
|
-
</el-select>
|
|
23
|
-
</template>
|
|
24
|
-
</vxe-grid>
|
|
25
|
-
</template>
|
|
26
|
-
<script>
|
|
27
|
-
import {get} from "@/utils/http/httpUtils";
|
|
28
|
-
import {updateSort} from "@/utils/TableSortUtil";
|
|
29
|
-
|
|
30
|
-
export default {
|
|
31
|
-
name: 'columnIndex',
|
|
32
|
-
data() {
|
|
33
|
-
return {
|
|
34
|
-
gridOptions: {
|
|
35
|
-
border: true,
|
|
36
|
-
keepSource: true,
|
|
37
|
-
showOverflow: true,
|
|
38
|
-
loading: false,
|
|
39
|
-
height: 'auto',
|
|
40
|
-
size: 'mini',
|
|
41
|
-
align: 'center',
|
|
42
|
-
scrollX: {enabled: true, gt: 15},
|
|
43
|
-
scrollY: {enabled: true, gt: 0},
|
|
44
|
-
columnConfig: {
|
|
45
|
-
resizable: true
|
|
46
|
-
},
|
|
47
|
-
rowConfig: {
|
|
48
|
-
useKey: true
|
|
49
|
-
},
|
|
50
|
-
expandConfig: {
|
|
51
|
-
labelField: 'seq'
|
|
52
|
-
},
|
|
53
|
-
editConfig: {
|
|
54
|
-
trigger: 'click',
|
|
55
|
-
mode: 'row',
|
|
56
|
-
showStatus: true,
|
|
57
|
-
}
|
|
58
|
-
,
|
|
59
|
-
checkboxConfig: {
|
|
60
|
-
showHeader: false
|
|
61
|
-
}
|
|
62
|
-
,
|
|
63
|
-
columns: [
|
|
64
|
-
{
|
|
65
|
-
field: 'sort',
|
|
66
|
-
width: 70,
|
|
67
|
-
className: 'move',
|
|
68
|
-
title: "序号",
|
|
69
|
-
slots: {
|
|
70
|
-
default: 'seq'
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
field: 'title',
|
|
75
|
-
minWidth: 110,
|
|
76
|
-
title: '列名称'
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
field: 'visible',
|
|
80
|
-
params: {
|
|
81
|
-
all: 0
|
|
82
|
-
},
|
|
83
|
-
slots: {
|
|
84
|
-
header: 'checkedBox_header',
|
|
85
|
-
default: 'checkedBox_default'
|
|
86
|
-
},
|
|
87
|
-
width: 70,
|
|
88
|
-
title: '显示'
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
minWidth: 70,
|
|
92
|
-
title: '分组',
|
|
93
|
-
field: 'group',
|
|
94
|
-
slots: {
|
|
95
|
-
default: 'checkedBox_default'
|
|
96
|
-
},
|
|
97
|
-
}, {
|
|
98
|
-
field: 'computes',
|
|
99
|
-
minWidth: 100,
|
|
100
|
-
title: '计算',
|
|
101
|
-
slots: {
|
|
102
|
-
default: 'select_com'
|
|
103
|
-
},
|
|
104
|
-
},{
|
|
105
|
-
field: 'footer',
|
|
106
|
-
minWidth: 100,
|
|
107
|
-
title: '表尾',
|
|
108
|
-
slots: {
|
|
109
|
-
default: 'select_com'
|
|
110
|
-
},
|
|
111
|
-
},
|
|
112
|
-
/*{
|
|
113
|
-
field: 'align',
|
|
114
|
-
params: {
|
|
115
|
-
dictCode: 'align'
|
|
116
|
-
},
|
|
117
|
-
slots: {
|
|
118
|
-
default: 'select_default'
|
|
119
|
-
},
|
|
120
|
-
width: 100,
|
|
121
|
-
title: '对齐'
|
|
122
|
-
}*/
|
|
123
|
-
],
|
|
124
|
-
toolbarConfig: {},
|
|
125
|
-
data: []
|
|
126
|
-
},
|
|
127
|
-
}
|
|
128
|
-
},
|
|
129
|
-
inject: ['gridOptions1'],
|
|
130
|
-
methods: {
|
|
131
|
-
headerClick(column) {
|
|
132
|
-
this.gridOptions.data.forEach(item => {
|
|
133
|
-
item[column.field] = column.params.all ? '1' : '0'
|
|
134
|
-
})
|
|
135
|
-
if (column.params.all == '0') {
|
|
136
|
-
//全不选的时候
|
|
137
|
-
if (column.field == 'addDisplay') {
|
|
138
|
-
this.$emit("checkBoxAll", {
|
|
139
|
-
checkBoxName: "add",
|
|
140
|
-
isAll: false,
|
|
141
|
-
list: this.gridOptions.data
|
|
142
|
-
})
|
|
143
|
-
} else if (column.field == 'editDisplay') {
|
|
144
|
-
this.$emit("checkBoxAll", {
|
|
145
|
-
checkBoxName: "edit",
|
|
146
|
-
isAll: false,
|
|
147
|
-
list: this.gridOptions.data
|
|
148
|
-
})
|
|
149
|
-
}
|
|
150
|
-
} else if (column.params.all == '1') {
|
|
151
|
-
//全选
|
|
152
|
-
if (column.field == 'addDisplay') {
|
|
153
|
-
this.$emit("checkBoxAll", {
|
|
154
|
-
checkBoxName: "add",
|
|
155
|
-
isAll: true,
|
|
156
|
-
list: this.gridOptions.data
|
|
157
|
-
})
|
|
158
|
-
} else if (column.field == 'editDisplay') {
|
|
159
|
-
this.$emit("checkBoxAll", {
|
|
160
|
-
checkBoxName: "edit",
|
|
161
|
-
isAll: true,
|
|
162
|
-
list: this.gridOptions.data
|
|
163
|
-
})
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
},
|
|
167
|
-
checkBoxClick(column, row) {
|
|
168
|
-
let f = true
|
|
169
|
-
this.gridOptions.data.forEach(item => {
|
|
170
|
-
if (!item[column.visible]) {
|
|
171
|
-
f = false
|
|
172
|
-
}
|
|
173
|
-
})
|
|
174
|
-
if(column.params){
|
|
175
|
-
column.params.all = f
|
|
176
|
-
}
|
|
177
|
-
this.gridOptions1.refresh()
|
|
178
|
-
},
|
|
179
|
-
init(data) {
|
|
180
|
-
this.gridOptions.loading = true
|
|
181
|
-
this.gridOptions.data = this.gridOptions1.columns;
|
|
182
|
-
this.gridOptions.loading = false
|
|
183
|
-
},
|
|
184
|
-
getData() {
|
|
185
|
-
return this.gridOptions.data
|
|
186
|
-
}
|
|
187
|
-
}, mounted() {
|
|
188
|
-
updateSort(this.$refs.vexGridRef, this.gridOptions)
|
|
189
|
-
}, created() {
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
</script>
|
|
193
|
-
<style scoped>
|
|
194
|
-
</style>
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<el-drawer v-model="show" :with-header="true" direction="rtl" size="25%">
|
|
3
|
-
<template #default>
|
|
4
|
-
<ColumnIndex ref="columnIndex"/>
|
|
5
|
-
</template>
|
|
6
|
-
<template #footer>
|
|
7
|
-
<div style="flex: auto;display: flex;justify-content: center;">
|
|
8
|
-
<el-button @click="cancelClick" :loading="loading">取消</el-button>
|
|
9
|
-
<el-button type="primary" @click="confirmClick" :loading="loading">保存</el-button>
|
|
10
|
-
</div>
|
|
11
|
-
</template>
|
|
12
|
-
</el-drawer>
|
|
13
|
-
</template>
|
|
14
|
-
<script>
|
|
15
|
-
import ColumnIndex from "./columnIndex.vue";
|
|
16
|
-
|
|
17
|
-
export default {
|
|
18
|
-
name: 'tableColumnConfig',
|
|
19
|
-
components: {
|
|
20
|
-
ColumnIndex,
|
|
21
|
-
},
|
|
22
|
-
data() {
|
|
23
|
-
return {
|
|
24
|
-
uuid: '',
|
|
25
|
-
show: false,
|
|
26
|
-
loading: true,
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
methods: {
|
|
30
|
-
cancelClick() {
|
|
31
|
-
this.show = false;
|
|
32
|
-
},
|
|
33
|
-
confirmClick() {
|
|
34
|
-
let data = this.$refs.columnIndex.getData();
|
|
35
|
-
let datas = JSON.parse(JSON.stringify(data));
|
|
36
|
-
let i = 1;
|
|
37
|
-
for (let data1 of datas) {
|
|
38
|
-
i++;
|
|
39
|
-
data1.sort = i;
|
|
40
|
-
}
|
|
41
|
-
this.loading = true;
|
|
42
|
-
/* put(this.http, '/online/tableConfigColumn/editBatch', datas).then(res => {
|
|
43
|
-
if (res) {
|
|
44
|
-
this.$emit('ok');
|
|
45
|
-
this.show = false;
|
|
46
|
-
}
|
|
47
|
-
}).finally(() => {
|
|
48
|
-
this.loading = false;
|
|
49
|
-
})*/
|
|
50
|
-
},
|
|
51
|
-
open(data, id) {
|
|
52
|
-
this.show = true;
|
|
53
|
-
this.loading = true;
|
|
54
|
-
this.uuid = id;
|
|
55
|
-
this.$nextTick(() => {
|
|
56
|
-
this.$refs.columnIndex.init(data)
|
|
57
|
-
this.loading = false;
|
|
58
|
-
})
|
|
59
|
-
},
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
</script>
|
|
63
|
-
<style lang="less" scoped>
|
|
64
|
-
.page-left {
|
|
65
|
-
position: absolute;
|
|
66
|
-
left: 10px;
|
|
67
|
-
top: 50%;
|
|
68
|
-
transform: translateY(-50%);
|
|
69
|
-
z-index: 10;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.vxe-pager {
|
|
73
|
-
height: 35px;
|
|
74
|
-
top: 5px;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.container :deep(.el-drawer__header) {
|
|
78
|
-
padding: 0px 20px;
|
|
79
|
-
margin-bottom: 0px;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.el-tag:hover {
|
|
83
|
-
background-color: #f56c6c; /* 红色背景 */
|
|
84
|
-
color: #fff; /* 白色文字 */
|
|
85
|
-
cursor: pointer;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
:deep(.move) {
|
|
89
|
-
cursor: move;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
</style>
|