three-trees-ui 1.0.39 → 1.0.41
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/three-trees-ui.common.js +92 -93
- package/lib/three-trees-ui.css +1 -1
- package/lib/three-trees-ui.umd.js +92 -93
- package/lib/three-trees-ui.umd.min.js +1 -1
- package/package.json +1 -1
- package/packages/File/src/FileCard.vue +2 -2
- package/packages/File/src/FileList.vue +5 -5
- package/packages/Table/src/Table.vue +13 -5
- package/packages/TemplateForm/src/main.vue +1 -1
- package/src/mixins/querySqlPreview.js +1 -1
- package/src/mixins/templatePreview.js +29 -60
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
class="el-upload-list el-upload-list--picture-card"
|
|
5
5
|
tag="ul"
|
|
6
6
|
v-bind="dragOptions"
|
|
7
|
-
handle=".
|
|
7
|
+
handle=".sort_handle"
|
|
8
8
|
@start="isDragging = true"
|
|
9
9
|
@end="isDragging = false"
|
|
10
10
|
>
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
>
|
|
45
45
|
<span
|
|
46
46
|
v-if="sortable && inputWriteable"
|
|
47
|
-
class="
|
|
47
|
+
class="sort_handle"
|
|
48
48
|
:title="t('ht.file.sort')"
|
|
49
49
|
>
|
|
50
50
|
<i class="el-icon-rank"></i>
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
class="file-list__wrap"
|
|
5
5
|
tag="ul"
|
|
6
6
|
v-bind="dragOptions"
|
|
7
|
-
handle=".
|
|
7
|
+
handle=".sort_handle"
|
|
8
8
|
@start="isDragging = true"
|
|
9
9
|
@end="isDragging = false"
|
|
10
10
|
>
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
]"
|
|
23
23
|
>
|
|
24
|
-
<ht-icon v-if="sortable && inputWriteable" name="sort" class="
|
|
24
|
+
<ht-icon v-if="sortable && inputWriteable" name="sort" class="sort_handle" />
|
|
25
25
|
<ht-icon name="file" class="file_icon" />
|
|
26
26
|
<p
|
|
27
27
|
class="file__name"
|
|
@@ -154,17 +154,17 @@
|
|
|
154
154
|
color: $base-color-blue;
|
|
155
155
|
cursor: pointer;
|
|
156
156
|
}
|
|
157
|
-
.
|
|
157
|
+
.sort_handle {
|
|
158
158
|
display: initial;
|
|
159
159
|
}
|
|
160
|
-
.
|
|
160
|
+
.sort_handle + .file_icon {
|
|
161
161
|
display: none;
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
164
|
svg {
|
|
165
165
|
margin-right: 5px;
|
|
166
166
|
}
|
|
167
|
-
.
|
|
167
|
+
.sort_handle {
|
|
168
168
|
display: none;
|
|
169
169
|
cursor: move;
|
|
170
170
|
}
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
<el-table
|
|
96
96
|
v-if="!isCardView"
|
|
97
97
|
ref="htTable"
|
|
98
|
-
v-loading="
|
|
98
|
+
v-loading="isLoading"
|
|
99
99
|
:stripe="stripe"
|
|
100
100
|
border
|
|
101
101
|
class="ht-table"
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
</el-table>
|
|
137
137
|
<div
|
|
138
138
|
v-else
|
|
139
|
-
v-loading="
|
|
139
|
+
v-loading="isLoading"
|
|
140
140
|
class="ht-card"
|
|
141
141
|
:style="{ height: `${tableMaxHeight}` + 'px' }"
|
|
142
142
|
>
|
|
@@ -417,6 +417,11 @@
|
|
|
417
417
|
tablePaginationJustify() {
|
|
418
418
|
return this.$allPaginationJustify || this.paginationJustify
|
|
419
419
|
},
|
|
420
|
+
isLoading() {
|
|
421
|
+
return this.$route.name === 'TemplatePreview'
|
|
422
|
+
? false
|
|
423
|
+
: this.loading && !this.noLoading
|
|
424
|
+
},
|
|
420
425
|
},
|
|
421
426
|
watch: {
|
|
422
427
|
justShowSearch: {
|
|
@@ -842,10 +847,13 @@
|
|
|
842
847
|
this.$refs.toolbarContainer.clientHeight) ||
|
|
843
848
|
0
|
|
844
849
|
|
|
850
|
+
// templatePreview 中 nopagination 为 true,且有自定义的分页控件 占用 50
|
|
845
851
|
const paginationPanelHeight =
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
852
|
+
this.$route.name === 'TemplatePreview' && this.nopagination
|
|
853
|
+
? 50
|
|
854
|
+
: (this.$refs.paginationPanel &&
|
|
855
|
+
this.$refs.paginationPanel.clientHeight) ||
|
|
856
|
+
0
|
|
849
857
|
// 下外边距
|
|
850
858
|
const searchPanelBottom = searchPanelHeight > 0 ? 18 : 0
|
|
851
859
|
const toolbarPanelBottom = toolbarPanelHeight > 0 ? 18 : 0
|
|
@@ -584,7 +584,7 @@ export default {
|
|
|
584
584
|
this.dialogExportVisible = true
|
|
585
585
|
} else {
|
|
586
586
|
// 增加导出字段限制
|
|
587
|
-
const checkField = this.getCheckField().map((item) => item.
|
|
587
|
+
const checkField = this.getCheckField().map((item) => item.key)
|
|
588
588
|
this.exportData.expField = this.displayFields.filter((item) =>
|
|
589
589
|
checkField.includes(item.fieldName)
|
|
590
590
|
)
|
|
@@ -11,7 +11,7 @@ const { saveAs } = require('file-saver')
|
|
|
11
11
|
import _ from 'lodash'
|
|
12
12
|
import { decode } from '@/util/base64'
|
|
13
13
|
|
|
14
|
-
const req = function(url, data = {}, option = {}) {
|
|
14
|
+
const req = function (url, data = {}, option = {}) {
|
|
15
15
|
const requestData = {
|
|
16
16
|
url: url,
|
|
17
17
|
data: data,
|
|
@@ -251,7 +251,7 @@ export default {
|
|
|
251
251
|
deep: true,
|
|
252
252
|
},
|
|
253
253
|
ents: {
|
|
254
|
-
handler: function(newVal, oldValue) {
|
|
254
|
+
handler: function (newVal, oldValue) {
|
|
255
255
|
if (newVal && newVal.length >= 1 && newVal != oldValue) {
|
|
256
256
|
this.getSubData(this, this.refId)
|
|
257
257
|
}
|
|
@@ -260,7 +260,7 @@ export default {
|
|
|
260
260
|
immediate: true,
|
|
261
261
|
},
|
|
262
262
|
templateInfo: {
|
|
263
|
-
handler: function(newVal) {
|
|
263
|
+
handler: function (newVal) {
|
|
264
264
|
if (newVal && newVal.id) {
|
|
265
265
|
let _me = this
|
|
266
266
|
_me.templateInfo = newVal
|
|
@@ -380,13 +380,13 @@ export default {
|
|
|
380
380
|
deep: true,
|
|
381
381
|
immediate: true,
|
|
382
382
|
},
|
|
383
|
-
currentTabName: function(newVal) {
|
|
383
|
+
currentTabName: function (newVal) {
|
|
384
384
|
if (newVal) {
|
|
385
385
|
this.querySubValue = ''
|
|
386
386
|
}
|
|
387
387
|
},
|
|
388
388
|
rows: {
|
|
389
|
-
handler: function(newVal) {
|
|
389
|
+
handler: function (newVal) {
|
|
390
390
|
if (this.templateInfo.defId) {
|
|
391
391
|
let this_ = this
|
|
392
392
|
let boAlias = this.templateInfo.boDefAlias
|
|
@@ -430,9 +430,8 @@ export default {
|
|
|
430
430
|
if (val) {
|
|
431
431
|
this.$nextTick(() => {
|
|
432
432
|
if (document.getElementById('summaryDiv')) {
|
|
433
|
-
this.summaryTableHeight =
|
|
434
|
-
'summaryDiv'
|
|
435
|
-
).clientHeight
|
|
433
|
+
this.summaryTableHeight =
|
|
434
|
+
document.getElementById('summaryDiv').clientHeight
|
|
436
435
|
}
|
|
437
436
|
})
|
|
438
437
|
}
|
|
@@ -443,7 +442,7 @@ export default {
|
|
|
443
442
|
//如果当前页面被嵌入iframe里面不显示草稿
|
|
444
443
|
return !this.isJoinFlow
|
|
445
444
|
},
|
|
446
|
-
navbarCollapseStyle: function() {
|
|
445
|
+
navbarCollapseStyle: function () {
|
|
447
446
|
if (this.asideShow) {
|
|
448
447
|
return { left: '200px' }
|
|
449
448
|
}
|
|
@@ -482,7 +481,7 @@ export default {
|
|
|
482
481
|
})
|
|
483
482
|
this.handelBindFiledValua()
|
|
484
483
|
let this_ = this
|
|
485
|
-
this.$on('data-reload-success', function() {
|
|
484
|
+
this.$on('data-reload-success', function () {
|
|
486
485
|
this_.calcScriptBtnPermission()
|
|
487
486
|
})
|
|
488
487
|
this.$emit('afterMounted')
|
|
@@ -808,7 +807,7 @@ export default {
|
|
|
808
807
|
this.listSelectable = false
|
|
809
808
|
}
|
|
810
809
|
let _this = this
|
|
811
|
-
setTimeout(function() {
|
|
810
|
+
setTimeout(function () {
|
|
812
811
|
let tdDom = _this.$el.querySelector('td.right_menu')
|
|
813
812
|
if (
|
|
814
813
|
!tdDom ||
|
|
@@ -913,7 +912,7 @@ export default {
|
|
|
913
912
|
selectList[i].selectValue = value
|
|
914
913
|
|
|
915
914
|
//添加监听
|
|
916
|
-
pInst.$watch(path, function(newVal, oldVal) {
|
|
915
|
+
pInst.$watch(path, function (newVal, oldVal) {
|
|
917
916
|
// 监听中使用间隔请求,减少请求次数
|
|
918
917
|
clearTimeout(this.timeout)
|
|
919
918
|
this.timeout = setTimeout(() => {
|
|
@@ -936,7 +935,7 @@ export default {
|
|
|
936
935
|
const value = utils.getValueByPath(pInst, path)
|
|
937
936
|
|
|
938
937
|
bindList[i].fillValue = value
|
|
939
|
-
pInst.$watch(path, function(newVal, oldVal) {
|
|
938
|
+
pInst.$watch(path, function (newVal, oldVal) {
|
|
940
939
|
// 监听中使用间隔请求,减少请求次数
|
|
941
940
|
clearTimeout(this.timeout)
|
|
942
941
|
this.timeout = setTimeout(() => {
|
|
@@ -1194,7 +1193,7 @@ export default {
|
|
|
1194
1193
|
}
|
|
1195
1194
|
let msg = document.createElement('canvas')
|
|
1196
1195
|
|
|
1197
|
-
this.$qrcode.toCanvas(msg, QRCodeurl, function(error) {
|
|
1196
|
+
this.$qrcode.toCanvas(msg, QRCodeurl, function (error) {
|
|
1198
1197
|
console.error(error)
|
|
1199
1198
|
})
|
|
1200
1199
|
let _canvas = document.createElement('div')
|
|
@@ -1234,7 +1233,7 @@ export default {
|
|
|
1234
1233
|
.generateAsync({
|
|
1235
1234
|
type: 'blob',
|
|
1236
1235
|
})
|
|
1237
|
-
.then(function(content) {
|
|
1236
|
+
.then(function (content) {
|
|
1238
1237
|
let eleLink = document.createElement('a')
|
|
1239
1238
|
eleLink.download = '二维码.zip'
|
|
1240
1239
|
eleLink.style.display = 'none'
|
|
@@ -1287,7 +1286,7 @@ export default {
|
|
|
1287
1286
|
context.scale(2, 2)
|
|
1288
1287
|
return html2canvas(document.querySelector(classs), {
|
|
1289
1288
|
canvas: canvas2,
|
|
1290
|
-
}).then(function(canvas) {
|
|
1289
|
+
}).then(function (canvas) {
|
|
1291
1290
|
resolve(canvas)
|
|
1292
1291
|
})
|
|
1293
1292
|
})
|
|
@@ -1329,7 +1328,7 @@ export default {
|
|
|
1329
1328
|
// Base64.encode(this.$store.state.login.currentUser.account);
|
|
1330
1329
|
let msg = document.getElementById('QRCode')
|
|
1331
1330
|
|
|
1332
|
-
this.$qrcode.toCanvas(msg, this.QRCodeurl, function(error) {
|
|
1331
|
+
this.$qrcode.toCanvas(msg, this.QRCodeurl, function (error) {
|
|
1333
1332
|
console.log(error)
|
|
1334
1333
|
})
|
|
1335
1334
|
this.QRCodeShow = true
|
|
@@ -1352,13 +1351,13 @@ export default {
|
|
|
1352
1351
|
this.rowTemplateId = templateId
|
|
1353
1352
|
this.rowId = id
|
|
1354
1353
|
},
|
|
1355
|
-
handleSizeChange: function(size) {
|
|
1354
|
+
handleSizeChange: function (size) {
|
|
1356
1355
|
//每页下拉显示数据
|
|
1357
1356
|
this.pagination.page = 1
|
|
1358
1357
|
this.pagination.pageSize = size
|
|
1359
1358
|
this.$refs.multipleTemplateTable.handleFilterChange()
|
|
1360
1359
|
},
|
|
1361
|
-
handleCurrentChange: function(currentPage) {
|
|
1360
|
+
handleCurrentChange: function (currentPage) {
|
|
1362
1361
|
//点击第几页
|
|
1363
1362
|
this.pagination.page = currentPage
|
|
1364
1363
|
this.$refs.multipleTemplateTable.handleFilterChange()
|
|
@@ -1860,18 +1859,10 @@ export default {
|
|
|
1860
1859
|
? operationType[operation]
|
|
1861
1860
|
: operation
|
|
1862
1861
|
} else if (
|
|
1863
|
-
typeof $(searchItems[i])
|
|
1864
|
-
.children()
|
|
1865
|
-
.attr('ht-query') != 'undefined'
|
|
1862
|
+
typeof $(searchItems[i]).children().attr('ht-query') != 'undefined'
|
|
1866
1863
|
) {
|
|
1867
|
-
operation = $(searchItems[i])
|
|
1868
|
-
|
|
1869
|
-
.attr('operation')
|
|
1870
|
-
operationMap[
|
|
1871
|
-
$(searchItems[i])
|
|
1872
|
-
.children()
|
|
1873
|
-
.attr('ht-query')
|
|
1874
|
-
] =
|
|
1864
|
+
operation = $(searchItems[i]).children().attr('operation')
|
|
1865
|
+
operationMap[$(searchItems[i]).children().attr('ht-query')] =
|
|
1875
1866
|
typeof operationType[operation] != 'undefined'
|
|
1876
1867
|
? operationType[operation]
|
|
1877
1868
|
: operation
|
|
@@ -1897,18 +1888,10 @@ export default {
|
|
|
1897
1888
|
? operationType[operation]
|
|
1898
1889
|
: operation
|
|
1899
1890
|
} else if (
|
|
1900
|
-
typeof $(searchItems[i])
|
|
1901
|
-
.children()
|
|
1902
|
-
.attr('ht-query') != 'undefined'
|
|
1891
|
+
typeof $(searchItems[i]).children().attr('ht-query') != 'undefined'
|
|
1903
1892
|
) {
|
|
1904
|
-
operation = $(searchItems[i])
|
|
1905
|
-
|
|
1906
|
-
.attr('type')
|
|
1907
|
-
operationMap[
|
|
1908
|
-
$(searchItems[i])
|
|
1909
|
-
.children()
|
|
1910
|
-
.attr('ht-query')
|
|
1911
|
-
] =
|
|
1893
|
+
operation = $(searchItems[i]).children().attr('type')
|
|
1894
|
+
operationMap[$(searchItems[i]).children().attr('ht-query')] =
|
|
1912
1895
|
typeof operationType[operation] != 'undefined'
|
|
1913
1896
|
? operationType[operation]
|
|
1914
1897
|
: operation
|
|
@@ -1931,19 +1914,12 @@ export default {
|
|
|
1931
1914
|
? true
|
|
1932
1915
|
: false
|
|
1933
1916
|
} else if (
|
|
1934
|
-
typeof $(searchItems[i])
|
|
1935
|
-
.children()
|
|
1936
|
-
.attr('ht-query') != 'undefined'
|
|
1917
|
+
typeof $(searchItems[i]).children().attr('ht-query') != 'undefined'
|
|
1937
1918
|
) {
|
|
1938
1919
|
//查询条件字段
|
|
1939
|
-
fieldQueryMap[
|
|
1940
|
-
$(searchItems[i])
|
|
1941
|
-
|
|
1942
|
-
.attr('ht-query')
|
|
1943
|
-
] =
|
|
1944
|
-
typeof $(searchItems[i])
|
|
1945
|
-
.children()
|
|
1946
|
-
.attr('special-query') != 'undefined'
|
|
1920
|
+
fieldQueryMap[$(searchItems[i]).children().attr('ht-query')] =
|
|
1921
|
+
typeof $(searchItems[i]).children().attr('special-query') !=
|
|
1922
|
+
'undefined'
|
|
1947
1923
|
? true
|
|
1948
1924
|
: false
|
|
1949
1925
|
}
|
|
@@ -2011,7 +1987,7 @@ export default {
|
|
|
2011
1987
|
}
|
|
2012
1988
|
},
|
|
2013
1989
|
//回车查询
|
|
2014
|
-
searchEnterFun: function(e) {
|
|
1990
|
+
searchEnterFun: function (e) {
|
|
2015
1991
|
let keyCode = window.event ? e.keyCode : e.which
|
|
2016
1992
|
if (keyCode == 13) {
|
|
2017
1993
|
this.search()
|
|
@@ -2773,13 +2749,6 @@ export default {
|
|
|
2773
2749
|
operation: 'EQUAL',
|
|
2774
2750
|
relation: 'AND',
|
|
2775
2751
|
},
|
|
2776
|
-
{
|
|
2777
|
-
property: 'bo_alias_',
|
|
2778
|
-
value: this.templateInfo.boDefAlias,
|
|
2779
|
-
group: 'main',
|
|
2780
|
-
operation: 'EQUAL',
|
|
2781
|
-
relation: 'AND',
|
|
2782
|
-
},
|
|
2783
2752
|
],
|
|
2784
2753
|
}
|
|
2785
2754
|
this.recordTableLoading = true
|