hd-idevvue3 3.0.5 → 3.0.8

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.
Files changed (155) hide show
  1. package/dist/static/css/index-DRHIlcVU.css +1 -0
  2. package/dist/static/js/index-DbUA6jg0.js +184 -0
  3. package/dist/static/js/index-Dl4O91nB.js +73768 -0
  4. package/package.json +16 -16
  5. package/.env.development +0 -5
  6. package/.env.production +0 -5
  7. package/.eslintrc.js +0 -151
  8. package/dist/assets/index.431f21ca.css +0 -1
  9. package/dist/hd-idevvue3.mjs +0 -45878
  10. package/dist/hd-idevvue3.umd.js +0 -153
  11. package/index.html +0 -18
  12. package/npminstall-debug.log +0 -200
  13. package/pnpm-lock.yaml +0 -2813
  14. package/src/App.vue +0 -11
  15. package/src/assets/sound/notify.wav +0 -0
  16. package/src/demo/demo.vue +0 -42
  17. package/src/demo/dropdemo.vue +0 -42
  18. package/src/demo/extsets.vue +0 -208
  19. package/src/demo/formedit.vue +0 -157
  20. package/src/demo/hightquery.vue +0 -366
  21. package/src/demo/inlineedit.vue +0 -182
  22. package/src/demo/selfdrop.vue +0 -58
  23. package/src/demo//350/241/214/345/206/205/347/272/247/350/201/224.txt +0 -2
  24. package/src/directive/el-dragDialog/drag.js +0 -124
  25. package/src/directive/el-dragDialog/index.js +0 -13
  26. package/src/errorLog.js +0 -16
  27. package/src/hdcom/BigGrid.js +0 -179
  28. package/src/hdcom/BillShow.vue +0 -111
  29. package/src/hdcom/BillUpload.vue +0 -311
  30. package/src/hdcom/BtnRight.vue +0 -101
  31. package/src/hdcom/ErrHint.vue +0 -42
  32. package/src/hdcom/ExtendColumn.vue +0 -115
  33. package/src/hdcom/ExtendCommon.js +0 -40
  34. package/src/hdcom/ExtendForm.vue +0 -141
  35. package/src/hdcom/FacePicUpload.vue +0 -80
  36. package/src/hdcom/FaceRecTest.vue +0 -114
  37. package/src/hdcom/GridChart.vue +0 -207
  38. package/src/hdcom/GridExField.vue +0 -375
  39. package/src/hdcom/GridShow.vue +0 -288
  40. package/src/hdcom/HdAside.vue +0 -225
  41. package/src/hdcom/HdBtn.vue +0 -125
  42. package/src/hdcom/HdButton.vue +0 -161
  43. package/src/hdcom/HdComFaceRec.vue +0 -106
  44. package/src/hdcom/HdComGrid.vue +0 -876
  45. package/src/hdcom/HdComQuery.vue +0 -362
  46. package/src/hdcom/HdComQueryDetail.vue +0 -205
  47. package/src/hdcom/HdComSortDetail.vue +0 -161
  48. package/src/hdcom/HdDatePicker.vue +0 -94
  49. package/src/hdcom/HdDialog.vue +0 -81
  50. package/src/hdcom/HdDrop.vue +0 -188
  51. package/src/hdcom/HdFileUpload.vue +0 -167
  52. package/src/hdcom/HdFilterBox.vue +0 -90
  53. package/src/hdcom/HdFooter.vue +0 -182
  54. package/src/hdcom/HdForm.vue +0 -351
  55. package/src/hdcom/HdFormBtn.vue +0 -131
  56. package/src/hdcom/HdFormItem.vue +0 -39
  57. package/src/hdcom/HdGctosGrid +0 -0
  58. package/src/hdcom/HdGrid.vue +0 -1022
  59. package/src/hdcom/HdGridEditBtn.vue +0 -58
  60. package/src/hdcom/HdGridExt.js +0 -250
  61. package/src/hdcom/HdGridSel.vue +0 -257
  62. package/src/hdcom/HdHeader.vue +0 -180
  63. package/src/hdcom/HdHotKey.vue +0 -84
  64. package/src/hdcom/HdInputHint.vue +0 -53
  65. package/src/hdcom/HdMain.vue +0 -41
  66. package/src/hdcom/HdMessage.vue +0 -201
  67. package/src/hdcom/HdNum.vue +0 -79
  68. package/src/hdcom/HdPopSel.vue +0 -80
  69. package/src/hdcom/HdRightMenu.vue +0 -63
  70. package/src/hdcom/HdSel/SelGridFieldcod.vue +0 -54
  71. package/src/hdcom/HdTableColumn.vue +0 -381
  72. package/src/hdcom/HdTempSave.vue +0 -162
  73. package/src/hdcom/HdTree.vue +0 -103
  74. package/src/hdcom/HdTreeTable/eval.js +0 -39
  75. package/src/hdcom/HdTreeTable/index.vue +0 -229
  76. package/src/hdcom/ImportExcel.vue +0 -178
  77. package/src/hdcom/index.js +0 -75
  78. package/src/idev.common.js +0 -79
  79. package/src/index.js +0 -11
  80. package/src/utils/HdQuery.js +0 -65
  81. package/src/utils/comutils.js +0 -120
  82. package/src/utils/gogocodeTransfer.js +0 -59
  83. package/src/utils/utils.js +0 -116
  84. package/src/vendor/Blob.js +0 -187
  85. package/src/vendor/Export2Excel.js +0 -231
  86. package/src/vendor/Export2Zip.js +0 -25
  87. package/src/views/layout/AppMain.vue +0 -34
  88. package/src/views/layout/HdLayout.vue +0 -90
  89. package/src/views/layout/header/ElasticSearch.vue +0 -262
  90. package/src/views/layout/header/HZRecorder.js +0 -259
  91. package/src/views/layout/header/HeaderSearch.vue +0 -218
  92. package/src/views/layout/header/Levelbar.vue +0 -55
  93. package/src/views/layout/header/MainHeader.vue +0 -315
  94. package/src/views/layout/header/Navbar.vue +0 -101
  95. package/src/views/layout/header/ScrollPane.vue +0 -103
  96. package/src/views/layout/header/TagsView.vue +0 -215
  97. package/src/views/layout/header/VocRec.vue +0 -105
  98. package/src/views/layout/header/changepswform.vue +0 -130
  99. package/src/views/layout/index.js +0 -10
  100. package/src/views/layout/menu/Hamburger.vue +0 -63
  101. package/src/views/layout/menu/HdMenu.vue +0 -204
  102. package/src/views/layout/menu/css/menu.css +0 -288
  103. package/src/views/layout/menu/index.vue +0 -27
  104. package/src/views/privilege/commsg/commsg.vue +0 -152
  105. package/src/views/privilege/commsg/commsgOrgn.vue +0 -51
  106. package/src/views/privilege/commsg/commsgRole.vue +0 -220
  107. package/src/views/privilege/commsg/commsgform.vue +0 -184
  108. package/src/views/privilege/commsg/commsgiframe.vue +0 -40
  109. package/src/views/privilege/commsg/commsgto.vue +0 -199
  110. package/src/views/privilege/commsg/commsgtoform.vue +0 -114
  111. package/src/views/privilege/commsg/commsgtrans.vue +0 -227
  112. package/src/views/privilege/exfield/comexcolumn.vue +0 -161
  113. package/src/views/privilege/exfield/comexcolumnform.vue +0 -128
  114. package/src/views/privilege/exfield/comexfield.vue +0 -29
  115. package/src/views/privilege/exfield/comexfieldform.vue +0 -112
  116. package/src/views/privilege/exfield/comexfieldsub.vue +0 -163
  117. package/src/views/privilege/index.js +0 -41
  118. package/src/views/privilege/menu/comMenu.vue +0 -49
  119. package/src/views/privilege/menu/menu.vue +0 -250
  120. package/src/views/privilege/menu/menuinfo.vue +0 -63
  121. package/src/views/privilege/menu/rolelist.vue +0 -92
  122. package/src/views/privilege/menu/userlist.vue +0 -92
  123. package/src/views/privilege/mobile/authmobileupdate.vue +0 -145
  124. package/src/views/privilege/mobile/authmobileupdateform.vue +0 -120
  125. package/src/views/privilege/orgDept/authOrgn.vue +0 -188
  126. package/src/views/privilege/orgDept/authorgnform.vue +0 -157
  127. package/src/views/privilege/orgDept/orgDept.vue +0 -38
  128. package/src/views/privilege/orgDept/orgTree.vue +0 -99
  129. package/src/views/privilege/orgDept/orgnselect.vue +0 -155
  130. package/src/views/privilege/personDept/authuser.vue +0 -229
  131. package/src/views/privilege/personDept/authuserform.vue +0 -206
  132. package/src/views/privilege/personDept/facerec.vue +0 -162
  133. package/src/views/privilege/personDept/orgncascader.vue +0 -144
  134. package/src/views/privilege/personDept/personDept.vue +0 -33
  135. package/src/views/privilege/quartz/comquartzjob.vue +0 -150
  136. package/src/views/privilege/quartz/comquartzjobform.vue +0 -115
  137. package/src/views/privilege/quartz/comquartzlog.vue +0 -143
  138. package/src/views/privilege/role/btnRole.vue +0 -173
  139. package/src/views/privilege/role/menuRole.vue +0 -84
  140. package/src/views/privilege/role/orgnRole.vue +0 -78
  141. package/src/views/privilege/role/role.vue +0 -84
  142. package/src/views/privilege/role/rolelist.vue +0 -136
  143. package/src/views/privilege/role/roleselect.vue +0 -74
  144. package/src/views/privilege/search/comsearch.vue +0 -196
  145. package/src/views/privilege/search/menu.vue +0 -68
  146. package/src/views/privilege/syscode/syscode.vue +0 -191
  147. package/src/views/privilege/syscode/sysfield.vue +0 -119
  148. package/src/views/privilege/syscode/sysfieldframe.vue +0 -30
  149. package/src/views/privilege/syslog/menulog.vue +0 -68
  150. package/src/views/privilege/syslog/syslog.vue +0 -182
  151. package/src/views/privilege/syslog/syslogconfig.vue +0 -128
  152. package/src/views/privilege/syslog/syslogform.vue +0 -85
  153. package/src/views/privilege/syslog/syslogframe.vue +0 -26
  154. package/src/views/privilege/userRole/userRole.vue +0 -220
  155. package/vite.config.js +0 -103
@@ -1,362 +0,0 @@
1
- <template>
2
- <el-dialog
3
- title="高级查询"
4
- :visible.sync="visible"
5
- width="80%"
6
- append-to-body
7
- top="2vh"
8
- >
9
- <div class="filter-container" style="padding: 0">
10
- <el-select
11
- v-model="selQueryId"
12
- filterable
13
- default-first-option
14
- placeholder="请选择方案"
15
- @change="change"
16
- >
17
- <el-option
18
- v-for="item in proLs"
19
- :key="item.queryId"
20
- :label="item.name"
21
- :value="item.queryId"
22
- >
23
- </el-option>
24
- </el-select>
25
-
26
- <el-button
27
- class="filter-item"
28
- @click="remove"
29
- type="primary"
30
- :hotKeyRange="$options.name"
31
- >{{ $t('删除方案') }}
32
- </el-button>
33
- <el-button
34
- class="filter-item"
35
- @click="proSaveVisible = true"
36
- type="primary"
37
- :hotKeyRange="$options.name"
38
- >
39
- {{ $t('方案保存') }}
40
- </el-button>
41
- <el-button
42
- class="filter-item"
43
- @click="add"
44
- type="primary"
45
- :hotKeyRange="$options.name"
46
- >{{ $t('新增条件') }}
47
- </el-button>
48
- </div>
49
- <div style="height: 360px">
50
- <el-row>
51
- <el-col :span="11">
52
- <div style="padding-top: 0px; height: 250px">
53
- <HdComQueryDetail
54
- :allColumn="allColumn"
55
- ref="LQuery"
56
- :list="leftLs"
57
- title="组一"
58
- ></HdComQueryDetail>
59
- </div>
60
- </el-col>
61
- <el-col :span="2">
62
- <div
63
- style="
64
- width: 100%;
65
- position: relative;
66
- top: 50px;
67
- text-align: center;
68
- "
69
- >
70
- {{ $t('或者') }}
71
- </div>
72
- </el-col>
73
- <el-col :span="11">
74
- <div style="padding-top: 0px; height: 250px">
75
- <HdComQueryDetail
76
- :allColumn="allColumn"
77
- ref="RQuery"
78
- :list="rightLs"
79
- title="组二"
80
- ></HdComQueryDetail>
81
- </div>
82
- </el-col>
83
- </el-row>
84
-
85
- <el-row>
86
- <div style="padding-top: 0px; height: 100px">
87
- <HdComSortDetail
88
- :allColumn="allColumn"
89
- ref="RQuery"
90
- :list="sortLs"
91
- title="排序"
92
- ></HdComSortDetail>
93
- </div>
94
- </el-row>
95
- </div>
96
- <!-- <el-container style="height: 260px">
97
- <el-main>
98
- <el-container>
99
- <el-aside width="45%" title="组1" :arrowShow="false" style="padding-top: 0px">
100
- <HdComQueryDetail :allColumn="allColumn" ref="LQuery" :list="leftLs"></HdComQueryDetail>
101
- </el-aside>
102
- <ex-aside width="5%" :arrowShow="false">
103
- <div style="width: 100%;position: relative;top:50px;text-align: center">{{$t('或者')}}</div>
104
- </ex-aside>
105
- <el-aside width="45%" title="组2" :arrowShow="false" style="padding-top: 0px">
106
- <HdComQueryDetail :allColumn="allColumn" ref="RQuery" :list="rightLs"></HdComQueryDetail>
107
- </el-aside>
108
- </el-container>
109
- </el-main>
110
- <el-footer :arrowShow="false" height="100px" title="排序">
111
- </el-footer>
112
- </el-container>-->
113
- <div slot="footer" class="dialog-footer">
114
- <el-button @click="doCloseAndKeep()">{{
115
- $t('关闭') + '(' + $t('保留条件') + ')'
116
- }}</el-button>
117
- <el-button @click="doCloseAndClear">{{ $t('关闭') }}</el-button>
118
- <el-button
119
- @click="doQueryRs"
120
- type="primary"
121
- :hotKeyRange="$options.name"
122
- >{{ $t('查询') }}</el-button
123
- >
124
- </div>
125
- <el-dialog
126
- title="方案保存"
127
- :visible.sync="proSaveVisible"
128
- width="30%"
129
- append-to-body
130
- top="2vh"
131
- >
132
- <el-row>
133
- <el-col :span="20">
134
- <el-input v-model="proName"></el-input>
135
- </el-col>
136
- <el-col :span="4">
137
- <el-button @click="doSave" type="primary">{{ $t('保存') }}</el-button>
138
- </el-col>
139
- </el-row>
140
- </el-dialog>
141
- </el-dialog>
142
- </template>
143
-
144
- <script>
145
- import HdComQueryDetail from './HdComQueryDetail'
146
- import HdComSortDetail from './HdComSortDetail'
147
-
148
- export default {
149
- name: 'HdComQuery',
150
- components: { HdComSortDetail, HdComQueryDetail },
151
- data() {
152
- return {
153
- isFirst: true,
154
- visible: false,
155
- proSaveVisible: false,
156
- leftLs: [],
157
- rightLs: [],
158
- sortLs: [],
159
- selQueryId: '',
160
- proName: '',
161
- proLs: [],
162
- keepQueryUse: false,
163
- }
164
- },
165
- inheritAttrs: false,
166
- props: {
167
- hdQuery: Object,
168
- allColumn: Array,
169
- },
170
- mounted() {
171
- this.doQuery()
172
- },
173
- methods: {
174
- doSave() {
175
- const comQuery = {}
176
- comQuery.name = this.proName
177
- comQuery.menuId = this.$route.name
178
- comQuery.gridId = this.getHdComGrid().$refs.hdgrid.gridId
179
- const innHdQuery = {
180
- vueleftQueryLs: [],
181
- vuerightQueryLs: [],
182
- sorts: { params: this.sortLs },
183
- }
184
- this.addToHdQuery(innHdQuery.vueleftQueryLs, this.leftLs)
185
- innHdQuery.vueGroupRel = 'or'
186
- this.addToHdQuery(innHdQuery.vuerightQueryLs, this.rightLs)
187
- comQuery.hdQuery = innHdQuery
188
- this.$http
189
- .post('/webresources/login/com/ComQuery/saveone/', comQuery)
190
- .then((response) => {
191
- const data = response.data
192
- this.$message({
193
- type: data.code == '-1' ? 'error' : 'success',
194
- showClose: true,
195
- duration: 1500,
196
- message: data.message,
197
- })
198
- this.proLs.push(data.data)
199
- this.selQueryId = data.data.queryId
200
- this.proSaveVisible = false
201
- this.getHdComGrid().adQueryTemplateNameList = this.proLs
202
- })
203
- },
204
- remove() {
205
- if (!this.selQueryId) {
206
- this.$message({
207
- type: 'error',
208
- message: this.$t('请先选择要删除的方案'),
209
- showClose: true,
210
- duration: 1500,
211
- })
212
- return false
213
- }
214
- const comQuery = {}
215
- comQuery.queryId = this.selQueryId
216
- this.$http
217
- .post('/webresources/login/com/ComQuery/remove/', comQuery)
218
- .then((response) => {
219
- const data = response.data
220
- for (let i = 0; i < this.proLs.length; i++) {
221
- if (this.proLs[i].queryId == this.selQueryId) {
222
- this.proLs.splice(i, 1)
223
- this.selQueryId = null
224
- break
225
- }
226
- }
227
- this.$message({
228
- type: data.code == '-1' ? 'error' : 'success',
229
- showClose: true,
230
- duration: 1500,
231
- message: data.message,
232
- })
233
- this.getHdComGrid().adQueryTemplateNameList = this.proLs
234
- })
235
- },
236
- doQuery() {
237
- // 默认三个
238
- this.leftLs.push({ selCol: {}, rel: '=' })
239
- this.leftLs.push({ selCol: {}, rel: '=' })
240
- this.leftLs.push({ selCol: {}, rel: '=' })
241
- this.rightLs.push({ selCol: {}, rel: '=' })
242
- this.rightLs.push({ selCol: {}, rel: '=' })
243
- this.rightLs.push({ selCol: {}, rel: '=' })
244
- },
245
- add() {
246
- this.leftLs.push({ selCol: {}, rel: '=' })
247
- this.rightLs.push({ selCol: {}, rel: '=' })
248
- },
249
- show() {
250
- this.visible = true
251
- const innHdQuery = { query: {} }
252
- innHdQuery.query.menuId = this.$route.name
253
- innHdQuery.query.gridId = this.getHdComGrid().$refs.hdgrid.gridId
254
- if (this.isFirst) {
255
- this.$http
256
- .post('/webresources/login/com/ComQuery/find/', innHdQuery)
257
- .then((response) => {
258
- this.proLs = response.data
259
- })
260
- }
261
- this.isFirst = false
262
- },
263
- doCloseAndClear() {
264
- this.visible = false
265
- },
266
- doCloseAndKeep() {
267
- this.keepQueryUse = true
268
- this.visible = false
269
- },
270
- change(val) {
271
- this.$http
272
- .post('/webresources/login/com/ComQuery/findDetail?queryId=' + val)
273
- .then((response) => {
274
- const data = response.data
275
- this.leftLs = this.listInit(data[0])
276
- this.rightLs = this.listInit(data[1])
277
- this.sortLs = this.sortInit(data[2])
278
- })
279
- // this.selCol = val
280
- },
281
- listInit(list) {
282
- for (let i = 0; i < list.length; i++) {
283
- const one = list[i]
284
- for (let j = 0; j < this.allColumn.length; j++) {
285
- const column = this.allColumn[j]
286
- if (column.$attrs && one.key == column.$attrs.prop) {
287
- one.selCol = column
288
- break
289
- }
290
- }
291
- }
292
- return list
293
- },
294
- sortInit(list) {
295
- return list.map((sort) => {
296
- return {
297
- sortProperty: sort.key,
298
- sortType: sort.value,
299
- alias: sort.rel,
300
- text:
301
- this.allColumn.find((v) => v.$attrs.prop == sort.key).$attrs.label +
302
- '/' +
303
- (sort.value == 'ASC' ? '升序' : '降序'),
304
- }
305
- })
306
- },
307
- doQueryRs() {
308
- this.hdQuery.vueleftQueryLs = []
309
- this.hdQuery.vuerightQueryLs = []
310
- this.addToHdQuery(this.hdQuery.vueleftQueryLs, this.leftLs)
311
- this.hdQuery.vueGroupRel = 'or'
312
- this.addToHdQuery(this.hdQuery.vuerightQueryLs, this.rightLs)
313
- this.hdQuery.sorts = { params: this.sortLs }
314
- this.hdQuery.sort = ''
315
- //
316
- // console.log(this.hdQuery, this.leftLs, this.rightLs)
317
- this.getHdComGrid()
318
- .doQuery()
319
- .then(() => {
320
- this.visible = false
321
- })
322
- },
323
- addToHdQuery(queryLs, inputLs) {
324
- for (let i = 0; i < inputLs.length; i++) {
325
- const input = inputLs[i]
326
- if (input.key) {
327
- queryLs.push({
328
- key: input.key,
329
- rel: input.rel,
330
- value: input.value,
331
- type: input.type,
332
- })
333
- }
334
- }
335
- },
336
- getHdComGrid() {
337
- let par = this.$parent
338
- while (par) {
339
- if (par.$options.name == 'HdComGrid') {
340
- return par
341
- }
342
- par = par.$parent
343
- }
344
- return null
345
- },
346
- },
347
- watch: {
348
- visible: function (val) {
349
- if (!val) {
350
- // 隐藏时
351
- if (!this.keepQueryUse) {
352
- this.hdQuery.vueleftQueryLs = []
353
- this.hdQuery.vuerightQueryLs = []
354
- this.hdQuery.vueGroupRel = null
355
- } else {
356
- this.keepQueryUse = false
357
- }
358
- }
359
- },
360
- },
361
- }
362
- </script>
@@ -1,205 +0,0 @@
1
- <template>
2
- <el-container>
3
- <el-main class="gridShow" :title="title">
4
- <el-table :data="list" row-key="property">
5
- <el-table-column align="center" label="条件" width="120px" noQuery>
6
- <template slot-scope="scope">
7
- <el-select
8
- v-model="scope.row.selCol"
9
- clearable
10
- :placeholder="$t('请选择')"
11
- style="width: 100%"
12
- value-key="$attrs.prop"
13
- @change="(v) => change(v, scope.row)"
14
- >
15
- <el-option
16
- v-for="one in allColumn"
17
- :key="one.$attrs.prop"
18
- :label="one.$attrs.label"
19
- :value="one"
20
- >
21
- </el-option>
22
- </el-select>
23
- </template>
24
- </el-table-column>
25
- <el-table-column
26
- align="center"
27
- label="关系"
28
- prop="width"
29
- width="80px"
30
- noQuery
31
- >
32
- <template slot-scope="scope">
33
- <el-select
34
- v-model="scope.row.rel"
35
- :placeholder="$t('请选择')"
36
- style="width: 100%"
37
- >
38
- <el-option :label="'='" :value="'='"></el-option>
39
- <el-option :label="$t('包含')" value="%like%"></el-option>
40
- <el-option label=">=" value=">="></el-option>
41
- <el-option label="<=" value="<="></el-option>
42
- <el-option :label="$t('非空')" value="not null"></el-option>
43
- <el-option :label="$t('为空')" value="is null"></el-option>
44
- </el-select>
45
- </template>
46
- </el-table-column>
47
- <el-table-column align="center" label="值" noQuery width="160px">
48
- <template slot-scope="scope">
49
- <component
50
- :is="scope.row.selCol.input ? scope.row.selCol.input : 'ElInput'"
51
- v-model="scope.row.value"
52
- v-bind="scope.row.selCol.inputProp"
53
- :idVal.sync="scope.row.value"
54
- :txtVal.sync="scope.row.showName"
55
- style="width: 100%"
56
- ></component>
57
- </template>
58
- </el-table-column>
59
- <el-table-column width="100px" align="center" label="操作">
60
- <template slot-scope="scope">
61
- <hd-btn
62
- icon="el-icon-circle-plus-outline"
63
- hint="复制"
64
- @click.stop="doCopy(scope.row, scope.index)"
65
- ></hd-btn>
66
- <hd-btn
67
- icon="el-icon-delete"
68
- hint="删除"
69
- @click.stop="doRemove(scope.row)"
70
- ></hd-btn>
71
- </template>
72
- </el-table-column>
73
- </el-table>
74
- </el-main>
75
- </el-container>
76
- </template>
77
-
78
- <script>
79
- export default {
80
- data() {
81
- return {
82
- // showName: '',//自定义下拉会用到
83
- // selCol: {},
84
- // queryRel: {key: '', rel: '=', value: '', type: ''},//查询的关系 prop='结果'
85
- }
86
- },
87
- inheritAttrs: false,
88
- props: {
89
- allColumn: Array,
90
- list: Array,
91
- title: String,
92
- },
93
- mounted() {},
94
- methods: {
95
- doCopy(row, index) {
96
- this.list.splice(index, 0, Object.assign({}, row))
97
- },
98
- doRemove(index) {
99
- this.list.splice(index, 1)
100
- },
101
- change(val, row) {
102
- if (!val) {
103
- // clear触发
104
- row.key = ''
105
- // this.queryRel.value = ''
106
- return false
107
- }
108
- row.selCol = val
109
- row.key = val.$attrs.prop
110
- // this.queryRel.value = ''//切换时先清
111
- if (!row.selCol.input) {
112
- return false
113
- }
114
-
115
- row.type = '' // 默认字符串
116
- if (typeof val.input != 'string') {
117
- // 自定义组件会传入function
118
- return false
119
- }
120
- if (val.input.indexOf('date') >= 0 || val.input.indexOf('Date') >= 0) {
121
- // 日期格式
122
- if (val.inputProp.type == 'date') {
123
- row.type = 'date'
124
- }
125
- if (val.inputProp.type == 'datetime') {
126
- row.type = 'datetime'
127
- }
128
- // row = val
129
- }
130
- if (val.input.indexOf('num') >= 0 || val.input.indexOf('Num') >= 0) {
131
- // 数字格式
132
- row.type = 'number'
133
- }
134
- },
135
- },
136
- }
137
- </script>
138
-
139
- <style lang="scss" rel="stylesheet/scss">
140
- .gridShow {
141
- .el-table {
142
- height: 100%;
143
- width: 100%;
144
- .el-table__body-wrapper {
145
- width: 100%;
146
- }
147
- .el-table__header-wrapper th {
148
- //列表标题
149
- background-color: #f6f6f6;
150
- }
151
-
152
- .el-table__fixed-header-wrapper th {
153
- //固定的列表标题
154
- background-color: #f6f6f6;
155
- }
156
-
157
- td,
158
- th {
159
- //列表标题及内容
160
- padding: 1px 0;
161
- }
162
- .cell,
163
- .el-table th div,
164
- .el-table--border th:first-child .cell,
165
- .el-table--border td:first-child .cell {
166
- //列表的margin
167
- padding-left: 5px !important;
168
- padding-right: 1px !important;
169
- padding-top: 1.5px !important;
170
- padding-bottom: 1.5px !important;
171
- }
172
- .el-table__empty-block {
173
- position: static;
174
- text-align: center;
175
- width: 100%;
176
- height: 80%;
177
- }
178
- .el-table__body {
179
- //列表下面加了空白
180
- margin-bottom: 10px;
181
- }
182
- .el-table__body-wrapper {
183
- height: 100%;
184
- overflow-y: auto;
185
- }
186
- .el-input__inner {
187
- height: 27px;
188
- margin-bottom: 0px;
189
- }
190
- .el-input,
191
- .el-form-item__content,
192
- .el-form-item__label,
193
- .el-input__icon {
194
- line-height: 30px;
195
- }
196
- .el-input__inner {
197
- padding: 5px;
198
- }
199
- .el-input--prefix .el-input__inner {
200
- //日期的有logo不一样
201
- padding-left: 30px;
202
- }
203
- }
204
- }
205
- </style>