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,43 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div style="height: calc(100vh - 30px)">
|
|
3
|
-
<model-index uuid="1602112913960386560" ref="oTable" @initComponents="initComponents" @toolbarBtnClick="toolbarBtnClick"/>
|
|
4
|
-
</div>
|
|
5
|
-
</template>
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
<script>
|
|
9
|
-
|
|
10
|
-
import ModelIndex from "@/components/table/model/model-index.vue";
|
|
11
|
-
|
|
12
|
-
export default {
|
|
13
|
-
name: 'olTable',
|
|
14
|
-
components: {ModelIndex},
|
|
15
|
-
data() {
|
|
16
|
-
return {
|
|
17
|
-
width: 0,
|
|
18
|
-
height: 0,
|
|
19
|
-
top: 0,
|
|
20
|
-
left: 0,
|
|
21
|
-
test:'',
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
|
|
25
|
-
methods: {
|
|
26
|
-
initComponents(props) {
|
|
27
|
-
console.log("initComponents22" + props);
|
|
28
|
-
},
|
|
29
|
-
toolbarBtnClick(code) {
|
|
30
|
-
console.log("ss", code)
|
|
31
|
-
},
|
|
32
|
-
resize(newRect) {
|
|
33
|
-
this.width = newRect.width;
|
|
34
|
-
this.height = newRect.height;
|
|
35
|
-
this.top = newRect.top;
|
|
36
|
-
this.left = newRect.left;
|
|
37
|
-
}
|
|
38
|
-
},created() {
|
|
39
|
-
let oTable = this.$refs.oTable;
|
|
40
|
-
console.log(oTable)
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
</script>
|
|
@@ -1,199 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div style="height: calc(100vh - 30px)">
|
|
3
|
-
<!-- <olTable uuid="1602112913960386560" theme="t1" ref="vTable">
|
|
4
|
-
|
|
5
|
-
</olTable>-->
|
|
6
|
-
<vxe-grid v-bind="bind" :data="data"></vxe-grid>
|
|
7
|
-
</div>
|
|
8
|
-
</template>
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
<script>
|
|
12
|
-
|
|
13
|
-
export default {
|
|
14
|
-
data() {
|
|
15
|
-
return {
|
|
16
|
-
data: [
|
|
17
|
-
{
|
|
18
|
-
"name": "芋道源码",
|
|
19
|
-
"parentId": 0,
|
|
20
|
-
"sort": 0,
|
|
21
|
-
"leaderUserId": 1,
|
|
22
|
-
"phone": "15888888888",
|
|
23
|
-
"email": "ry@qq.com",
|
|
24
|
-
"status": 0,
|
|
25
|
-
"id": 100,
|
|
26
|
-
"createTime": 1609837427000
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"name": "深圳总公司",
|
|
30
|
-
"parentId": 100,
|
|
31
|
-
"sort": 1,
|
|
32
|
-
"leaderUserId": 104,
|
|
33
|
-
"phone": "15888888888",
|
|
34
|
-
"email": "ry@qq.com",
|
|
35
|
-
"status": 0,
|
|
36
|
-
"id": 101,
|
|
37
|
-
"createTime": 1609837427000
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"name": "研发部门",
|
|
41
|
-
"parentId": 101,
|
|
42
|
-
"sort": 1,
|
|
43
|
-
"leaderUserId": 104,
|
|
44
|
-
"phone": "15888888888",
|
|
45
|
-
"email": "ry@qq.com",
|
|
46
|
-
"status": 0,
|
|
47
|
-
"id": 103,
|
|
48
|
-
"createTime": 1609837427000
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
"name": "市场部门",
|
|
52
|
-
"parentId": 102,
|
|
53
|
-
"sort": 1,
|
|
54
|
-
"leaderUserId": null,
|
|
55
|
-
"phone": "15888888888",
|
|
56
|
-
"email": "ry@qq.com",
|
|
57
|
-
"status": 0,
|
|
58
|
-
"id": 108,
|
|
59
|
-
"createTime": 1609837427000
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
"name": "新部门",
|
|
63
|
-
"parentId": 0,
|
|
64
|
-
"sort": 1,
|
|
65
|
-
"leaderUserId": null,
|
|
66
|
-
"phone": null,
|
|
67
|
-
"email": null,
|
|
68
|
-
"status": 0,
|
|
69
|
-
"id": 110,
|
|
70
|
-
"createTime": 1645620390000
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
"name": "顶级部门",
|
|
74
|
-
"parentId": 0,
|
|
75
|
-
"sort": 1,
|
|
76
|
-
"leaderUserId": null,
|
|
77
|
-
"phone": null,
|
|
78
|
-
"email": null,
|
|
79
|
-
"status": 0,
|
|
80
|
-
"id": 111,
|
|
81
|
-
"createTime": 1646660690000
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
"name": "长沙分公司",
|
|
85
|
-
"parentId": 100,
|
|
86
|
-
"sort": 2,
|
|
87
|
-
"leaderUserId": null,
|
|
88
|
-
"phone": "15888888888",
|
|
89
|
-
"email": "ry@qq.com",
|
|
90
|
-
"status": 0,
|
|
91
|
-
"id": 102,
|
|
92
|
-
"createTime": 1609837427000
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
"name": "市场部门",
|
|
96
|
-
"parentId": 101,
|
|
97
|
-
"sort": 2,
|
|
98
|
-
"leaderUserId": null,
|
|
99
|
-
"phone": "15888888888",
|
|
100
|
-
"email": "ry@qq.com",
|
|
101
|
-
"status": 0,
|
|
102
|
-
"id": 104,
|
|
103
|
-
"createTime": 1609837427000
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
"name": "财务部门",
|
|
107
|
-
"parentId": 102,
|
|
108
|
-
"sort": 2,
|
|
109
|
-
"leaderUserId": null,
|
|
110
|
-
"phone": "15888888888",
|
|
111
|
-
"email": "ry@qq.com",
|
|
112
|
-
"status": 0,
|
|
113
|
-
"id": 109,
|
|
114
|
-
"createTime": 1609837427000
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
"name": "测试部门",
|
|
118
|
-
"parentId": 101,
|
|
119
|
-
"sort": 3,
|
|
120
|
-
"leaderUserId": null,
|
|
121
|
-
"phone": "15888888888",
|
|
122
|
-
"email": "ry@qq.com",
|
|
123
|
-
"status": 0,
|
|
124
|
-
"id": 105,
|
|
125
|
-
"createTime": 1609837427000
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
"name": "财务部门",
|
|
129
|
-
"parentId": 101,
|
|
130
|
-
"sort": 4,
|
|
131
|
-
"leaderUserId": 103,
|
|
132
|
-
"phone": "15888888888",
|
|
133
|
-
"email": "ry@qq.com",
|
|
134
|
-
"status": 0,
|
|
135
|
-
"id": 106,
|
|
136
|
-
"createTime": 1609837427000
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
"name": "运维部门",
|
|
140
|
-
"parentId": 101,
|
|
141
|
-
"sort": 5,
|
|
142
|
-
"leaderUserId": null,
|
|
143
|
-
"phone": "15888888888",
|
|
144
|
-
"email": "ry@qq.com",
|
|
145
|
-
"status": 0,
|
|
146
|
-
"id": 107,
|
|
147
|
-
"createTime": 1609837427000
|
|
148
|
-
}
|
|
149
|
-
],
|
|
150
|
-
bind: {
|
|
151
|
-
border: true,
|
|
152
|
-
height: 300,
|
|
153
|
-
align: null,
|
|
154
|
-
columnConfig: {
|
|
155
|
-
resizable: true
|
|
156
|
-
},
|
|
157
|
-
treeConfig: {
|
|
158
|
-
transform: true,
|
|
159
|
-
rowField: 'id', parentField: 'parentId'
|
|
160
|
-
},
|
|
161
|
-
columns: [
|
|
162
|
-
{
|
|
163
|
-
field: 'id',
|
|
164
|
-
treeNode:true,
|
|
165
|
-
title: 'id',
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
field: 'name',
|
|
169
|
-
title: '部门名称',
|
|
170
|
-
}, {
|
|
171
|
-
field: 'leader',
|
|
172
|
-
title: '负责人',
|
|
173
|
-
}, {
|
|
174
|
-
field: 'sort',
|
|
175
|
-
title: '排序',
|
|
176
|
-
}, {
|
|
177
|
-
field: 'status',
|
|
178
|
-
title: 'status',
|
|
179
|
-
},
|
|
180
|
-
],
|
|
181
|
-
toolbarConfig: {
|
|
182
|
-
slots: {
|
|
183
|
-
buttons: 'toolbar_buttons'
|
|
184
|
-
}
|
|
185
|
-
},
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
},
|
|
189
|
-
|
|
190
|
-
methods: {
|
|
191
|
-
resize(newRect) {
|
|
192
|
-
this.width = newRect.width;
|
|
193
|
-
this.height = newRect.height;
|
|
194
|
-
this.top = newRect.top;
|
|
195
|
-
this.left = newRect.left;
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
</script>
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<el-dialog
|
|
3
|
-
v-model="dialogVisible"
|
|
4
|
-
style="height: 100vh;width:100%"
|
|
5
|
-
fullscreen destroy-on-close>
|
|
6
|
-
<model-index :http="http" v-if="uuid" :uuid="uuid"/>
|
|
7
|
-
</el-dialog>
|
|
8
|
-
</template>
|
|
9
|
-
<script>
|
|
10
|
-
|
|
11
|
-
import ModelIndex from "@/components/table/model/model-index.vue";
|
|
12
|
-
|
|
13
|
-
export default {
|
|
14
|
-
name: 'preview',
|
|
15
|
-
components: {ModelIndex},
|
|
16
|
-
inject: ['http'],
|
|
17
|
-
data() {
|
|
18
|
-
return {
|
|
19
|
-
dialogVisible: false,
|
|
20
|
-
uuid:'',
|
|
21
|
-
}
|
|
22
|
-
}, methods: {
|
|
23
|
-
init(uuid){
|
|
24
|
-
this.dialogVisible = true;
|
|
25
|
-
this.uuid = uuid
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
</script>
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
代码生成时间:
|
|
3
|
-
2024-04-30 09:43:03
|
|
4
|
-
-->
|
|
5
|
-
|
|
6
|
-
<template>
|
|
7
|
-
<el-form ref="formRef" :model="$attrs.formData" :rules="rules" label-width="100px" class="el-form-globals"
|
|
8
|
-
labelAlign="label-right-align" @submit.prevent>
|
|
9
|
-
<el-row>
|
|
10
|
-
<el-col :span="8">
|
|
11
|
-
<el-form-item label="树配置名称" prop="configName">
|
|
12
|
-
<el-input v-model="$attrs.formData.configName" clearable/>
|
|
13
|
-
</el-form-item>
|
|
14
|
-
</el-col>
|
|
15
|
-
|
|
16
|
-
<el-col :span="8">
|
|
17
|
-
<el-form-item label="数据源" prop="dbName">
|
|
18
|
-
<olDictTag v-model="$attrs.formData.dbName" :clearable="false" code="db_name"/>
|
|
19
|
-
</el-form-item>
|
|
20
|
-
</el-col>
|
|
21
|
-
</el-row>
|
|
22
|
-
<el-row>
|
|
23
|
-
<el-col :span="8">
|
|
24
|
-
<el-form-item label="转换驼峰" prop="hump">
|
|
25
|
-
<olDictTag v-model="$attrs.formData.hump" type="radio" border code="converting_hump"/>
|
|
26
|
-
</el-form-item>
|
|
27
|
-
</el-col>
|
|
28
|
-
<el-col :span="8">
|
|
29
|
-
<el-form-item label="数据源类型" prop="dataSource">
|
|
30
|
-
<olDictTag v-model="$attrs.formData.dataSource" type="radio" border code="tree_data_type"/>
|
|
31
|
-
</el-form-item>
|
|
32
|
-
</el-col>
|
|
33
|
-
</el-row>
|
|
34
|
-
<el-form-item label="查询表格" prop="table" v-if="$attrs.formData.dataSource == 0">
|
|
35
|
-
<config-core-table ref="configTable"/>
|
|
36
|
-
</el-form-item>
|
|
37
|
-
<el-form-item label="执行SQL" prop="executeSql" v-if="$attrs.formData.dataSource != 2">
|
|
38
|
-
<el-input type="textarea" v-model="$attrs.formData.executeSql" rows="3"></el-input>
|
|
39
|
-
</el-form-item>
|
|
40
|
-
<el-form-item label="where条件" prop="executeWhere" v-if="$attrs.formData.dataSource != 2">
|
|
41
|
-
<el-input v-model="$attrs.formData.executeWhere" type="text" clearable></el-input>
|
|
42
|
-
</el-form-item>
|
|
43
|
-
<el-form-item label="排序" prop="orderBy" v-if="$attrs.formData.dataSource != 2">
|
|
44
|
-
<el-input v-model="$attrs.formData.orderBy" type="text" clearable></el-input>
|
|
45
|
-
</el-form-item>
|
|
46
|
-
<el-form-item label="默认参数" prop="parameterDefault" v-if="$attrs.formData.dataSource != 2">
|
|
47
|
-
<el-input v-model="$attrs.formData.parameterDefault" type="text" clearable></el-input>
|
|
48
|
-
</el-form-item>
|
|
49
|
-
<el-form-item label="API" prop="api" v-if="$attrs.formData.dataSource == 2">
|
|
50
|
-
<el-input v-model="$attrs.formData.api" type="text" clearable></el-input>
|
|
51
|
-
</el-form-item>
|
|
52
|
-
<el-button type="primary" @click="$emit('syncTable')">同步预览数据</el-button>
|
|
53
|
-
<el-button type="primary" status="success"
|
|
54
|
-
@click="$refs.configTable.setFieldConfig(true)">字段配置
|
|
55
|
-
</el-button>
|
|
56
|
-
</el-form>
|
|
57
|
-
|
|
58
|
-
</template>
|
|
59
|
-
|
|
60
|
-
<script>
|
|
61
|
-
import ConfigCoreTable from "@/views/tree/components/config-core-table.vue";
|
|
62
|
-
|
|
63
|
-
export default {
|
|
64
|
-
name: 'configCodeData',
|
|
65
|
-
components: {ConfigCoreTable},
|
|
66
|
-
data() {
|
|
67
|
-
return {
|
|
68
|
-
rules: {
|
|
69
|
-
configName: [
|
|
70
|
-
{required: true, message: '请输入配置名称', trigger: 'blur'},
|
|
71
|
-
],
|
|
72
|
-
executeSql: [
|
|
73
|
-
{required: true, message: '请输入执行SQL', trigger: 'blur'},
|
|
74
|
-
],
|
|
75
|
-
api: [
|
|
76
|
-
{required: true, message: '请输入API', trigger: 'blur'},
|
|
77
|
-
],
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
</script>
|
|
83
|
-
|
|
84
|
-
<style lang="scss" scoped>
|
|
85
|
-
</style>
|