hd-idevvue3 3.0.3 → 3.0.4
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/dist/assets/index.9c127719.css +1 -0
- package/dist/hd-idevvue3.mjs +3521 -3305
- package/dist/hd-idevvue3.umd.js +29 -29
- package/npminstall-debug.log +2 -10
- package/package.json +3 -1
- package/pnpm-lock.yaml +37 -4
- package/src/App.vue +11 -15
- package/src/assets/sound/notify.wav +0 -0
- package/src/demo/demo.vue +9 -10
- package/src/demo/dropdemo.vue +42 -43
- package/src/demo/extsets.vue +140 -39
- package/src/demo/formedit.vue +157 -145
- package/src/demo/hightquery.vue +263 -66
- package/src/demo/inlineedit.vue +129 -35
- package/src/demo/selfdrop.vue +32 -15
- package/src/directive/el-dragDialog/drag.js +13 -13
- package/src/directive/el-dragDialog/index.js +13 -13
- package/src/errorLog.js +3 -3
- package/src/hdcom/BigGrid.js +54 -48
- package/src/hdcom/BillShow.vue +84 -63
- package/src/hdcom/BillUpload.vue +144 -86
- package/src/hdcom/BtnRight.vue +26 -23
- package/src/hdcom/ErrHint.vue +36 -24
- package/src/hdcom/ExtendColumn.vue +97 -90
- package/src/hdcom/ExtendCommon.js +24 -13
- package/src/hdcom/ExtendForm.vue +107 -80
- package/src/hdcom/FacePicUpload.vue +59 -50
- package/src/hdcom/FaceRecTest.vue +87 -77
- package/src/hdcom/GridChart.vue +175 -162
- package/src/hdcom/GridExField.vue +328 -234
- package/src/hdcom/GridShow.vue +89 -39
- package/src/hdcom/HdAside.vue +192 -145
- package/src/hdcom/HdBtn.vue +44 -32
- package/src/hdcom/HdButton.vue +141 -117
- package/src/hdcom/HdComFaceRec.vue +80 -32
- package/src/hdcom/HdComGrid.vue +329 -229
- package/src/hdcom/HdComQuery.vue +179 -90
- package/src/hdcom/HdComQueryDetail.vue +159 -115
- package/src/hdcom/HdComSortDetail.vue +136 -130
- package/src/hdcom/HdDatePicker.vue +32 -16
- package/src/hdcom/HdDialog.vue +62 -44
- package/src/hdcom/HdDrop.vue +163 -138
- package/src/hdcom/HdFileUpload.vue +138 -119
- package/src/hdcom/HdFilterBox.vue +62 -62
- package/src/hdcom/HdFooter.vue +152 -119
- package/src/hdcom/HdForm.vue +276 -203
- package/src/hdcom/HdFormBtn.vue +81 -39
- package/src/hdcom/HdFormItem.vue +14 -10
- package/src/hdcom/HdGrid.vue +353 -156
- package/src/hdcom/HdGridEditBtn.vue +34 -20
- package/src/hdcom/HdGridExt.js +78 -47
- package/src/hdcom/HdGridSel.vue +227 -193
- package/src/hdcom/HdHeader.vue +149 -117
- package/src/hdcom/HdHotKey.vue +70 -67
- package/src/hdcom/HdInputHint.vue +40 -36
- package/src/hdcom/HdMain.vue +25 -27
- package/src/hdcom/HdMessage.vue +180 -171
- package/src/hdcom/HdNum.vue +67 -57
- package/src/hdcom/HdPopSel.vue +46 -24
- package/src/hdcom/HdRightMenu.vue +63 -61
- package/src/hdcom/HdSel/SelGridFieldcod.vue +46 -28
- package/src/hdcom/HdTableColumn.vue +156 -109
- package/src/hdcom/HdTempSave.vue +138 -116
- package/src/hdcom/HdTree.vue +89 -72
- package/src/hdcom/HdTreeTable/eval.js +8 -3
- package/src/hdcom/HdTreeTable/index.vue +229 -174
- package/src/hdcom/ImportExcel.vue +69 -34
- package/src/hdcom/index.js +39 -44
- package/src/idev.common.js +54 -47
- package/src/index.js +3 -6
- package/src/utils/HdQuery.js +25 -14
- package/src/utils/comutils.js +50 -28
- package/src/utils/gogocodeTransfer.js +59 -0
- package/src/utils/utils.js +30 -19
- package/src/vendor/Blob.js +187 -179
- package/src/vendor/Export2Excel.js +231 -220
- package/src/vendor/Export2Zip.js +25 -22
- package/src/views/layout/AppMain.vue +34 -32
- package/src/views/layout/HdLayout.vue +64 -52
- package/src/views/layout/header/ElasticSearch.vue +196 -159
- package/src/views/layout/header/HZRecorder.js +163 -135
- package/src/views/layout/header/HeaderSearch.vue +165 -145
- package/src/views/layout/header/Levelbar.vue +55 -49
- package/src/views/layout/header/MainHeader.vue +233 -189
- package/src/views/layout/header/Navbar.vue +74 -78
- package/src/views/layout/header/ScrollPane.vue +103 -81
- package/src/views/layout/header/TagsView.vue +169 -164
- package/src/views/layout/header/VocRec.vue +86 -78
- package/src/views/layout/header/changepswform.vue +98 -64
- package/src/views/layout/index.js +5 -7
- package/src/views/layout/menu/Hamburger.vue +63 -45
- package/src/views/layout/menu/HdMenu.vue +155 -118
- package/src/views/layout/menu/index.vue +21 -19
- package/src/views/privilege/commsg/commsg.vue +115 -41
- package/src/views/privilege/commsg/commsgOrgn.vue +40 -31
- package/src/views/privilege/commsg/commsgRole.vue +180 -109
- package/src/views/privilege/commsg/commsgform.vue +125 -101
- package/src/views/privilege/commsg/commsgiframe.vue +30 -23
- package/src/views/privilege/commsg/commsgto.vue +163 -84
- package/src/views/privilege/commsg/commsgtoform.vue +64 -58
- package/src/views/privilege/commsg/commsgtrans.vue +187 -115
- package/src/views/privilege/exfield/comexcolumn.vue +133 -43
- package/src/views/privilege/exfield/comexcolumnform.vue +85 -58
- package/src/views/privilege/exfield/comexfield.vue +15 -17
- package/src/views/privilege/exfield/comexfieldform.vue +71 -53
- package/src/views/privilege/exfield/comexfieldsub.vue +137 -46
- package/src/views/privilege/index.js +19 -20
- package/src/views/privilege/menu/comMenu.vue +49 -41
- package/src/views/privilege/menu/menu.vue +166 -49
- package/src/views/privilege/menu/menuinfo.vue +41 -34
- package/src/views/privilege/menu/rolelist.vue +78 -33
- package/src/views/privilege/menu/userlist.vue +76 -33
- package/src/views/privilege/mobile/authmobileupdate.vue +119 -43
- package/src/views/privilege/mobile/authmobileupdateform.vue +76 -46
- package/src/views/privilege/orgDept/authOrgn.vue +157 -65
- package/src/views/privilege/orgDept/authorgnform.vue +50 -38
- package/src/views/privilege/orgDept/orgDept.vue +38 -37
- package/src/views/privilege/orgDept/orgTree.vue +99 -88
- package/src/views/privilege/orgDept/orgnselect.vue +132 -111
- package/src/views/privilege/personDept/authuser.vue +197 -91
- package/src/views/privilege/personDept/authuserform.vue +123 -71
- package/src/views/privilege/personDept/facerec.vue +128 -83
- package/src/views/privilege/personDept/orgncascader.vue +134 -115
- package/src/views/privilege/personDept/personDept.vue +9 -7
- package/src/views/privilege/quartz/comquartzjob.vue +123 -38
- package/src/views/privilege/quartz/comquartzjobform.vue +67 -51
- package/src/views/privilege/quartz/comquartzlog.vue +116 -32
- package/src/views/privilege/role/btnRole.vue +123 -67
- package/src/views/privilege/role/menuRole.vue +65 -45
- package/src/views/privilege/role/orgnRole.vue +63 -41
- package/src/views/privilege/role/role.vue +26 -9
- package/src/views/privilege/role/rolelist.vue +114 -45
- package/src/views/privilege/role/roleselect.vue +34 -17
- package/src/views/privilege/search/comsearch.vue +164 -73
- package/src/views/privilege/search/menu.vue +38 -22
- package/src/views/privilege/syscode/syscode.vue +157 -69
- package/src/views/privilege/syscode/sysfield.vue +96 -43
- package/src/views/privilege/syscode/sysfieldframe.vue +30 -30
- package/src/views/privilege/syslog/menulog.vue +38 -22
- package/src/views/privilege/syslog/syslog.vue +145 -78
- package/src/views/privilege/syslog/syslogconfig.vue +91 -24
- package/src/views/privilege/syslog/syslogform.vue +45 -43
- package/src/views/privilege/syslog/syslogframe.vue +26 -26
- package/src/views/privilege/userRole/userRole.vue +187 -89
- package/vite.config.js +7 -0
- package/dist/assets/index.774ef40e.css +0 -1
- package/src/views/privilege.zip +0 -0
package/src/demo/selfdrop.vue
CHANGED
|
@@ -1,25 +1,42 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<hd-grid-sel
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
<hd-grid-sel
|
|
3
|
+
:txtVal="txtVal"
|
|
4
|
+
:idVal="idVal"
|
|
5
|
+
placeholder="请点击选组织"
|
|
6
|
+
height="50vh"
|
|
7
|
+
:hdQuery="hdQuery"
|
|
8
|
+
:disabled="disabled"
|
|
9
|
+
url="/webresources/login/code/AuthOrgnExt/find"
|
|
10
|
+
@rowClick="doClick"
|
|
11
|
+
:beforeQuery="beforeQuery"
|
|
12
|
+
>
|
|
13
|
+
<el-table-column
|
|
14
|
+
align="left"
|
|
15
|
+
header-align="center"
|
|
16
|
+
label="组织代码"
|
|
17
|
+
prop="orgnCod"
|
|
18
|
+
sortable
|
|
19
|
+
></el-table-column>
|
|
20
|
+
<el-table-column
|
|
21
|
+
align="left"
|
|
22
|
+
header-align="center"
|
|
23
|
+
label="组织名称"
|
|
24
|
+
prop="name"
|
|
25
|
+
sortable
|
|
26
|
+
></el-table-column>
|
|
7
27
|
</hd-grid-sel>
|
|
8
28
|
</template>
|
|
9
29
|
|
|
10
30
|
<script>
|
|
11
|
-
|
|
12
31
|
export default {
|
|
13
32
|
name: 'selauthorgn',
|
|
14
33
|
components: {},
|
|
15
34
|
data() {
|
|
16
35
|
return {
|
|
17
|
-
hdQuery: new HdQuery(this)
|
|
36
|
+
hdQuery: new HdQuery(this),
|
|
18
37
|
}
|
|
19
38
|
},
|
|
20
|
-
mounted() {
|
|
21
|
-
|
|
22
|
-
},
|
|
39
|
+
mounted() {},
|
|
23
40
|
props: { idVal: String, txtVal: String, deptFlag: String, disabled: Boolean }, // 设置value为props属性-必须
|
|
24
41
|
methods: {
|
|
25
42
|
beforeQuery(val) {
|
|
@@ -29,13 +46,13 @@ export default {
|
|
|
29
46
|
doClick(row) {
|
|
30
47
|
this.$emit('update:txtVal', row.shortNam)
|
|
31
48
|
this.$emit('update:idVal', row.orgnId)
|
|
32
|
-
}
|
|
33
|
-
}
|
|
49
|
+
},
|
|
50
|
+
},
|
|
34
51
|
}
|
|
35
52
|
</script>
|
|
36
53
|
|
|
37
54
|
<style>
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
55
|
+
.el-popper {
|
|
56
|
+
z-index: 3000 !important;
|
|
57
|
+
}
|
|
41
58
|
</style>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export default {
|
|
2
|
-
|
|
3
|
-
let isFullScreen = false
|
|
4
|
-
let nowWidth = 0
|
|
5
|
-
let nowHight = 0
|
|
2
|
+
beforeMount(el, binding, vnode) {
|
|
3
|
+
let isFullScreen = false
|
|
4
|
+
let nowWidth = 0
|
|
5
|
+
let nowHight = 0
|
|
6
6
|
//当前顶部高度
|
|
7
|
-
let nowMarginTop = 0
|
|
7
|
+
let nowMarginTop = 0
|
|
8
8
|
|
|
9
9
|
const dialogHeaderEl = el.querySelector('.el-dialog__header')
|
|
10
10
|
const dragDom = el.querySelector('.el-dialog')
|
|
@@ -12,7 +12,7 @@ export default {
|
|
|
12
12
|
dragDom.style.cssText += ';top:0px;'
|
|
13
13
|
|
|
14
14
|
// 获取原有属性 ie dom元素.currentStyle 火狐谷歌 window.getComputedStyle(dom元素, null);
|
|
15
|
-
const getStyle = (function() {
|
|
15
|
+
const getStyle = (function () {
|
|
16
16
|
if (window.document.currentStyle) {
|
|
17
17
|
return (dom, attr) => dom.currentStyle[attr]
|
|
18
18
|
} else {
|
|
@@ -47,7 +47,7 @@ export default {
|
|
|
47
47
|
styT = +styT.replace(/\px/g, '')
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
document.onmousemove = function(e) {
|
|
50
|
+
document.onmousemove = function (e) {
|
|
51
51
|
// 通过事件委托,计算移动的距离
|
|
52
52
|
const left = e.clientX - disX
|
|
53
53
|
let top = e.clientY - disY
|
|
@@ -59,7 +59,7 @@ export default {
|
|
|
59
59
|
// left = maxDragDomLeft
|
|
60
60
|
// }
|
|
61
61
|
|
|
62
|
-
if (-
|
|
62
|
+
if (-top > minDragDomTop) {
|
|
63
63
|
top = -minDragDomTop
|
|
64
64
|
} else if (top > maxDragDomTop) {
|
|
65
65
|
// top = maxDragDomTop
|
|
@@ -69,16 +69,16 @@ export default {
|
|
|
69
69
|
dragDom.style.cssText += `;left:${left + styL}px;top:${top + styT}px;`
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
document.onmouseup = function(e) {
|
|
72
|
+
document.onmouseup = function (e) {
|
|
73
73
|
document.onmousemove = null
|
|
74
74
|
document.onmouseup = null
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
//双击头部全屏效果
|
|
78
78
|
dialogHeaderEl.ondblclick = (e) => {
|
|
79
|
-
|
|
80
|
-
dragDom.style.left = 0
|
|
81
|
-
dragDom.style.top = 0
|
|
79
|
+
binding.instance.nowFull = !binding.instance.nowFull
|
|
80
|
+
dragDom.style.left = 0
|
|
81
|
+
dragDom.style.top = 0
|
|
82
82
|
}
|
|
83
83
|
// dialogHeaderEl.ondblclick = (e) => {
|
|
84
84
|
//
|
|
@@ -120,5 +120,5 @@ export default {
|
|
|
120
120
|
//
|
|
121
121
|
// }
|
|
122
122
|
}
|
|
123
|
-
}
|
|
123
|
+
},
|
|
124
124
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import drag from './drag'
|
|
2
|
-
|
|
3
|
-
const install = function(Vue) {
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
if (window.Vue) {
|
|
8
|
-
window['el-drag-dialog'] = drag
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
drag.install = install
|
|
13
|
-
export default drag
|
|
1
|
+
import drag from './drag'
|
|
2
|
+
|
|
3
|
+
const install = function (Vue) {
|
|
4
|
+
window.$vueApp.directive('el-drag-dialog', drag)
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
if (window.Vue) {
|
|
8
|
+
window['el-drag-dialog'] = drag
|
|
9
|
+
window.$vueApp.use(install) // eslint-disable-line
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
drag.install = install
|
|
13
|
+
export default drag
|
package/src/errorLog.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {createApp} from 'vue'
|
|
1
|
+
import { createApp } from 'vue'
|
|
2
2
|
import errLog from '@/store/errLog'
|
|
3
3
|
|
|
4
4
|
const Vue = createApp({})
|
|
5
5
|
|
|
6
6
|
// 生产环境错误日志
|
|
7
7
|
if (process.env.NODE_ENV === 'production') {
|
|
8
|
-
|
|
8
|
+
window.$vueApp.config.errorHandler = function (err, vm) {
|
|
9
9
|
console.log(err, window.location.href)
|
|
10
10
|
errLog.pushLog({
|
|
11
11
|
err,
|
|
12
12
|
url: window.location.href,
|
|
13
|
-
vm
|
|
13
|
+
vm,
|
|
14
14
|
})
|
|
15
15
|
}
|
|
16
16
|
}
|
package/src/hdcom/BigGrid.js
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
* @module BigGrid
|
|
4
4
|
*/
|
|
5
5
|
export default {
|
|
6
|
-
|
|
7
6
|
data() {
|
|
8
7
|
return {
|
|
9
8
|
gridDataRows: [], //临时显示rows,滚动过多是解决加载慢的问题。
|
|
@@ -18,24 +17,24 @@ export default {
|
|
|
18
17
|
if (!this.visualScroll) {
|
|
19
18
|
return false
|
|
20
19
|
}
|
|
21
|
-
this.scroller = this.$refs.ingrid.$refs.bodyWrapper.scrollTop
|
|
20
|
+
this.scroller = this.$refs.ingrid.$refs.bodyWrapper.scrollTop
|
|
22
21
|
},
|
|
23
22
|
methods: {
|
|
24
23
|
initVisual() {
|
|
25
24
|
if (!this.visualScroll) {
|
|
26
25
|
return false
|
|
27
26
|
}
|
|
28
|
-
this.initTableStyle()
|
|
29
|
-
const bodyWrapper = this.$refs.ingrid.$refs.bodyWrapper
|
|
30
|
-
const that = this
|
|
27
|
+
this.initTableStyle()
|
|
28
|
+
const bodyWrapper = this.$refs.ingrid.$refs.bodyWrapper
|
|
29
|
+
const that = this
|
|
31
30
|
bodyWrapper.onscroll = (e) => {
|
|
32
|
-
that.tmpScrollNum
|
|
33
|
-
this.$refs.ingrid.store.states.hoverRow = 'locked'
|
|
34
|
-
that.scroller = bodyWrapper.scrollTop
|
|
31
|
+
that.tmpScrollNum++
|
|
32
|
+
this.$refs.ingrid.store.states.hoverRow = 'locked'
|
|
33
|
+
that.scroller = bodyWrapper.scrollTop
|
|
35
34
|
setTimeout(() => {
|
|
36
|
-
that.tmpScrollNum
|
|
37
|
-
if(that.tmpScrollNum == 0) {
|
|
38
|
-
this.$refs.ingrid.store.states.hoverRow = null
|
|
35
|
+
that.tmpScrollNum--
|
|
36
|
+
if (that.tmpScrollNum == 0) {
|
|
37
|
+
this.$refs.ingrid.store.states.hoverRow = null
|
|
39
38
|
}
|
|
40
39
|
}, 500)
|
|
41
40
|
}
|
|
@@ -43,16 +42,17 @@ export default {
|
|
|
43
42
|
|
|
44
43
|
//初始化table高度 缓存data用
|
|
45
44
|
initTableStyle() {
|
|
46
|
-
const bodyWrapper = this.$refs.ingrid.$refs.bodyWrapper
|
|
47
|
-
bodyWrapper.querySelector('tbody').style.position = 'absolute'
|
|
45
|
+
const bodyWrapper = this.$refs.ingrid.$refs.bodyWrapper
|
|
46
|
+
bodyWrapper.querySelector('tbody').style.position = 'absolute'
|
|
48
47
|
},
|
|
49
48
|
initTableHeight() {
|
|
50
|
-
const contentHeight =
|
|
51
|
-
const bodyWrapper = this.$refs.ingrid.$refs.bodyWrapper
|
|
49
|
+
const contentHeight = this.hdResult.rows.length * this.trHeight
|
|
50
|
+
const bodyWrapper = this.$refs.ingrid.$refs.bodyWrapper
|
|
52
51
|
//console.log(contentHeight)
|
|
53
|
-
bodyWrapper.querySelector('.el-table__body').style.height =
|
|
52
|
+
bodyWrapper.querySelector('.el-table__body').style.height =
|
|
53
|
+
contentHeight + 'px'
|
|
54
54
|
|
|
55
|
-
this.updateGridDataRows(bodyWrapper.scrollTop, bodyWrapper.clientHeight)
|
|
55
|
+
this.updateGridDataRows(bodyWrapper.scrollTop, bodyWrapper.clientHeight)
|
|
56
56
|
},
|
|
57
57
|
/**
|
|
58
58
|
* 更新GridData, 缓存data用
|
|
@@ -61,15 +61,18 @@ export default {
|
|
|
61
61
|
* contentHeight 内容长度
|
|
62
62
|
*/
|
|
63
63
|
updateGridDataRows(scrollTop, wapperHeight) {
|
|
64
|
-
wapperHeight =
|
|
64
|
+
wapperHeight =
|
|
65
|
+
wapperHeight > this.minRowNum * this.trHeight
|
|
66
|
+
? wapperHeight
|
|
67
|
+
: this.minRowNum * this.trHeight
|
|
65
68
|
//console.log('updateGridDataRows', scrollTop, wapperHeight)
|
|
66
|
-
let start = Math.ceil(scrollTop / this.trHeight)
|
|
67
|
-
start = start < 0 ? 0 : start
|
|
68
|
-
let end = Math.ceil((scrollTop + wapperHeight) / this.trHeight)
|
|
69
|
-
end = end > this.hdResult.rows.length ? this.hdResult.rows.length : end
|
|
70
|
-
this.gridDataRows = this.hdResult.rows.slice(start, end)
|
|
71
|
-
this.startIndex = start
|
|
72
|
-
this.$refs.ingrid.setCurrentRow(this.hdQuery.selRow)
|
|
69
|
+
let start = Math.ceil(scrollTop / this.trHeight)
|
|
70
|
+
start = start < 0 ? 0 : start
|
|
71
|
+
let end = Math.ceil((scrollTop + wapperHeight) / this.trHeight)
|
|
72
|
+
end = end > this.hdResult.rows.length ? this.hdResult.rows.length : end
|
|
73
|
+
this.gridDataRows = this.hdResult.rows.slice(start, end)
|
|
74
|
+
this.startIndex = start
|
|
75
|
+
this.$refs.ingrid.setCurrentRow(this.hdQuery.selRow)
|
|
73
76
|
//console.log(this.gridDataRows)
|
|
74
77
|
},
|
|
75
78
|
getIndex(index) {
|
|
@@ -90,20 +93,21 @@ export default {
|
|
|
90
93
|
if (!this.visualScroll) {
|
|
91
94
|
return false
|
|
92
95
|
}
|
|
93
|
-
const bodyWrapper = this.$refs.ingrid.$refs.bodyWrapper
|
|
94
|
-
const fixedWrapper = this.$refs.ingrid.$refs.fixedBodyWrapper
|
|
95
|
-
const rightFixedWrapper = this.$refs.ingrid.$refs.rightFixedBodyWrapper
|
|
96
|
+
const bodyWrapper = this.$refs.ingrid.$refs.bodyWrapper
|
|
97
|
+
const fixedWrapper = this.$refs.ingrid.$refs.fixedBodyWrapper
|
|
98
|
+
const rightFixedWrapper = this.$refs.ingrid.$refs.rightFixedBodyWrapper
|
|
96
99
|
|
|
97
|
-
const contentHeight = bodyWrapper.clientHeight
|
|
100
|
+
const contentHeight = bodyWrapper.clientHeight
|
|
98
101
|
if (val != oldval) {
|
|
99
|
-
bodyWrapper.querySelector('tbody').style.transform =
|
|
102
|
+
bodyWrapper.querySelector('tbody').style.transform =
|
|
103
|
+
'translate(0px,' + val + 'px)'
|
|
100
104
|
if (fixedWrapper) {
|
|
101
|
-
fixedWrapper.scrollTop = 0
|
|
105
|
+
fixedWrapper.scrollTop = 0
|
|
102
106
|
}
|
|
103
107
|
if (rightFixedWrapper) {
|
|
104
|
-
rightFixedWrapper.scrollTop = 0
|
|
108
|
+
rightFixedWrapper.scrollTop = 0
|
|
105
109
|
}
|
|
106
|
-
this.updateGridDataRows(val, contentHeight)
|
|
110
|
+
this.updateGridDataRows(val, contentHeight)
|
|
107
111
|
}
|
|
108
112
|
},
|
|
109
113
|
// hdResult: function () {
|
|
@@ -122,10 +126,12 @@ export default {
|
|
|
122
126
|
if (!this.visualScroll) {
|
|
123
127
|
return false
|
|
124
128
|
}
|
|
125
|
-
this.hdResult.rows
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
+
this.hdResult.rows
|
|
130
|
+
.filter((v) => !v._isCK)
|
|
131
|
+
.forEach((v) => {
|
|
132
|
+
this.$set(v, '_isCk', false)
|
|
133
|
+
})
|
|
134
|
+
this.initTableHeight()
|
|
129
135
|
},
|
|
130
136
|
// '$refs.ingrid.store.states.hoverRow': function (newval, oldval) {
|
|
131
137
|
// console.log('watch hoverRow',this.tmpScrollNum, newval, oldval)
|
|
@@ -139,35 +145,35 @@ export default {
|
|
|
139
145
|
if (!this.visualScroll) {
|
|
140
146
|
return false
|
|
141
147
|
}
|
|
142
|
-
let r1 = false
|
|
143
|
-
let r2 = false
|
|
148
|
+
let r1 = false
|
|
149
|
+
let r2 = false
|
|
144
150
|
if (!this.hdResult.rows || this.hdResult.rows.length == 0) {
|
|
145
151
|
return false
|
|
146
152
|
}
|
|
147
|
-
this.hdResult.rows.forEach(v => {
|
|
153
|
+
this.hdResult.rows.forEach((v) => {
|
|
148
154
|
if (v._isCK) {
|
|
149
|
-
r1 = true
|
|
155
|
+
r1 = true
|
|
150
156
|
}
|
|
151
157
|
if (!v._isCK) {
|
|
152
|
-
r2 = true
|
|
158
|
+
r2 = true
|
|
153
159
|
}
|
|
154
160
|
})
|
|
155
|
-
return r1 && r2
|
|
161
|
+
return r1 && r2
|
|
156
162
|
},
|
|
157
163
|
isAllChecked() {
|
|
158
164
|
if (!this.visualScroll) {
|
|
159
165
|
return false
|
|
160
166
|
}
|
|
161
|
-
let r = true
|
|
167
|
+
let r = true
|
|
162
168
|
if (!this.hdResult.rows || this.hdResult.rows.length == 0) {
|
|
163
169
|
return false
|
|
164
170
|
}
|
|
165
|
-
this.hdResult.rows.forEach(v => {
|
|
171
|
+
this.hdResult.rows.forEach((v) => {
|
|
166
172
|
if (!v._isCK) {
|
|
167
|
-
r = false
|
|
173
|
+
r = false
|
|
168
174
|
}
|
|
169
175
|
})
|
|
170
176
|
return r
|
|
171
|
-
}
|
|
172
|
-
}
|
|
177
|
+
},
|
|
178
|
+
},
|
|
173
179
|
}
|