hd-idevvue3 3.0.2 → 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 +4 -2
- 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
|
@@ -1,88 +1,99 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<hd-tree
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
this
|
|
39
|
-
this
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
}
|
|
88
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<hd-tree
|
|
3
|
+
ref="tree"
|
|
4
|
+
:show-checkbox="false"
|
|
5
|
+
:highlight-current="true"
|
|
6
|
+
:expand-on-click-node="false"
|
|
7
|
+
:data="hdResult"
|
|
8
|
+
:props="opts"
|
|
9
|
+
@node-click="handleNodeClick"
|
|
10
|
+
node-key="id"
|
|
11
|
+
:filter-node-method="filterNode"
|
|
12
|
+
:default-expanded-keys="defaultExpandedKeys"
|
|
13
|
+
></hd-tree>
|
|
14
|
+
</template>
|
|
15
|
+
|
|
16
|
+
<script>
|
|
17
|
+
export default {
|
|
18
|
+
name: 'orgTree',
|
|
19
|
+
data() {
|
|
20
|
+
return {
|
|
21
|
+
hdQuery: new HdQuery(this),
|
|
22
|
+
hdResult: [],
|
|
23
|
+
listLoading: true,
|
|
24
|
+
visible: false,
|
|
25
|
+
opts: {
|
|
26
|
+
label: 'text',
|
|
27
|
+
},
|
|
28
|
+
currentNodeData: {},
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
props: { idVal: String }, // 设置value为props属性-必须
|
|
32
|
+
mounted() {
|
|
33
|
+
this.doQuery()
|
|
34
|
+
},
|
|
35
|
+
methods: {
|
|
36
|
+
doQuery() {
|
|
37
|
+
// 显示loading框
|
|
38
|
+
this.listLoading = true
|
|
39
|
+
this.$http
|
|
40
|
+
.post('/webresources/login/privilege/AuthOrgn/gentree', this.hdQuery)
|
|
41
|
+
.then((response) => {
|
|
42
|
+
const data = response.data
|
|
43
|
+
this.hdResult = data
|
|
44
|
+
this.listLoading = false
|
|
45
|
+
})
|
|
46
|
+
},
|
|
47
|
+
handleNodeClick(data) {
|
|
48
|
+
this.$emit('org-node-click', data)
|
|
49
|
+
this.currentNodeData = data
|
|
50
|
+
},
|
|
51
|
+
refresh: function (data) {
|
|
52
|
+
const tree = this.$refs.tree.$refs.eltree
|
|
53
|
+
if (data.type === 'add') {
|
|
54
|
+
this.currentNodeData.children.push(data.data)
|
|
55
|
+
} else if (data.type === 'edit') {
|
|
56
|
+
const array = this.currentNodeData.children
|
|
57
|
+
for (let i = 0; i < array.length; i++) {
|
|
58
|
+
const obj = array[i]
|
|
59
|
+
if (obj.id === data.data.id) {
|
|
60
|
+
Object.assign(array[i], data.data)
|
|
61
|
+
break
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
} else if (data.type === 'remove') {
|
|
65
|
+
const array = this.currentNodeData.children
|
|
66
|
+
for (let i = 0; i < array.length; i++) {
|
|
67
|
+
const obj = array[i]
|
|
68
|
+
if (obj.id === data.data.id) {
|
|
69
|
+
array.splice(i, 1)
|
|
70
|
+
break
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
filterNode(value, data) {
|
|
76
|
+
if (!value) return true
|
|
77
|
+
return data.text.indexOf(value) !== -1
|
|
78
|
+
},
|
|
79
|
+
filter(val) {
|
|
80
|
+
this.$refs.tree.$refs.eltree.filter(val)
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
watch: {
|
|
84
|
+
// 都有值才适合查询
|
|
85
|
+
idVal: function (newVal) {
|
|
86
|
+
this.$refs.tree.$refs.eltree.setCurrentKey(this.idVal)
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
computed: {
|
|
90
|
+
// 给外层v-model赋值
|
|
91
|
+
defaultExpandedKeys() {
|
|
92
|
+
if (this.idVal) {
|
|
93
|
+
return [this.idVal]
|
|
94
|
+
}
|
|
95
|
+
return []
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
}
|
|
99
|
+
</script>
|
|
@@ -1,134 +1,155 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
|
-
<el-popover
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
<el-popover
|
|
4
|
+
:disabled="disabled"
|
|
5
|
+
placement="bottom-start"
|
|
6
|
+
ref="popSel"
|
|
7
|
+
v-model="visible"
|
|
8
|
+
>
|
|
9
|
+
<div :style="{ height: height }">
|
|
10
|
+
<orgTree :idVal="idVal" @org-node-click="doSel" ref="orgTree"></orgTree>
|
|
6
11
|
</div>
|
|
7
12
|
</el-popover>
|
|
8
13
|
<div>
|
|
9
14
|
<!--readonly 在选择区隐藏时,不能输入-->
|
|
10
|
-
<el-input
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
<el-input
|
|
16
|
+
:clearable="false"
|
|
17
|
+
:disabled="disabled"
|
|
18
|
+
:placeholder="placeholder ? this.$t(placeholder) : this.$t('请选择')"
|
|
19
|
+
:readonly="!visible"
|
|
20
|
+
@focus="focus"
|
|
21
|
+
@mouseenter.native="doMouseEnter"
|
|
22
|
+
@mouseleave.native="doMouseLeave"
|
|
23
|
+
ref="sel"
|
|
24
|
+
v-model="searchVal"
|
|
25
|
+
v-popover:popSel
|
|
26
|
+
>
|
|
27
|
+
<el-icon class="el-input__icon" style="cursor: pointer"
|
|
28
|
+
><el-icon-circle-close
|
|
29
|
+
/></el-icon>
|
|
30
|
+
<el-icon class="el-input__icon" style="cursor: pointer"
|
|
31
|
+
><el-icon-more
|
|
32
|
+
/></el-icon>
|
|
18
33
|
</el-input>
|
|
19
34
|
</div>
|
|
20
35
|
</div>
|
|
21
36
|
</template>
|
|
22
|
-
|
|
23
|
-
.lucencyInput .el-input__inner {
|
|
24
|
-
border: 0px;
|
|
25
|
-
}
|
|
26
|
-
</style>
|
|
37
|
+
|
|
27
38
|
<script>
|
|
28
|
-
|
|
39
|
+
import {
|
|
40
|
+
CircleClose as ElIconCircleClose,
|
|
41
|
+
More as ElIconMore,
|
|
42
|
+
} from '@element-plus/icons'
|
|
43
|
+
import orgTree from './orgTree'
|
|
29
44
|
|
|
45
|
+
export default {
|
|
46
|
+
components: {
|
|
47
|
+
orgTree,
|
|
48
|
+
ElIconCircleClose,
|
|
49
|
+
ElIconMore,
|
|
50
|
+
},
|
|
51
|
+
name: 'orgnselect',
|
|
52
|
+
data() {
|
|
53
|
+
return {
|
|
54
|
+
threePointShow: true,
|
|
55
|
+
searchVal: this.txtVal,
|
|
56
|
+
// isFocus: false,
|
|
57
|
+
visible: false,
|
|
58
|
+
isFirst: true, // 是否第一次打开
|
|
59
|
+
searchHandler: Object,
|
|
60
|
+
isSoftFocus: false, // 点击弹窗内容时,input重新获得焦点,但是不能触发focus
|
|
61
|
+
// focusTime: 0
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
inheritAttrs: false,
|
|
30
65
|
/**
|
|
31
|
-
*
|
|
32
|
-
* @
|
|
66
|
+
* Props 继承hd-com-grid的属性和事件
|
|
67
|
+
* @prop {String} txtVal 双向绑定 这里是为了clear清空用
|
|
68
|
+
* @prop {String} idVal 双向绑定 这里是为了clear清空用
|
|
69
|
+
* @prop {String} placeholder
|
|
70
|
+
* @prop {String} disabled 只读
|
|
71
|
+
* @prop {Object} hdQuery 查询封装类
|
|
72
|
+
* @prop {String} height 默认为40vh
|
|
73
|
+
* @prop {Function} beforeQuery 查询前的事件,通常需要绑定anyQuery
|
|
33
74
|
*/
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
75
|
+
// 设置value为props属性-必须
|
|
76
|
+
props: {
|
|
77
|
+
txtVal: String,
|
|
78
|
+
idVal: String,
|
|
79
|
+
placeholder: String,
|
|
80
|
+
disabled: Boolean,
|
|
81
|
+
hdQuery: Object,
|
|
82
|
+
url: String, // 全路径
|
|
83
|
+
height: {
|
|
84
|
+
// 高度
|
|
85
|
+
type: String,
|
|
86
|
+
default: '40vh',
|
|
38
87
|
},
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
88
|
+
beforeQuery: Function,
|
|
89
|
+
},
|
|
90
|
+
mounted() {
|
|
91
|
+
$(this.$parent.$el).find('.el-popover__reference').removeAttr('tabIndex') // 焦点用
|
|
92
|
+
},
|
|
93
|
+
methods: {
|
|
94
|
+
focus() {
|
|
95
|
+
// this.focusTime = new Date().getTime()
|
|
96
|
+
this.$emit('focus')
|
|
97
|
+
if (this.isSoftFocus) {
|
|
98
|
+
// click时
|
|
99
|
+
this.isSoftFocus = false // 点击时,防止焦点触发
|
|
100
|
+
return false
|
|
49
101
|
}
|
|
102
|
+
setTimeout(() => {
|
|
103
|
+
// 否则会和默认的冲突
|
|
104
|
+
this.visible = true
|
|
105
|
+
}, 150)
|
|
106
|
+
// this.isFocus = true
|
|
50
107
|
},
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
* @prop {String} idVal 双向绑定 这里是为了clear清空用
|
|
56
|
-
* @prop {String} placeholder
|
|
57
|
-
* @prop {String} disabled 只读
|
|
58
|
-
* @prop {Object} hdQuery 查询封装类
|
|
59
|
-
* @prop {String} height 默认为40vh
|
|
60
|
-
* @prop {Function} beforeQuery 查询前的事件,通常需要绑定anyQuery
|
|
61
|
-
*/
|
|
62
|
-
props: {
|
|
63
|
-
txtVal: String,
|
|
64
|
-
idVal: String,
|
|
65
|
-
placeholder: String,
|
|
66
|
-
disabled: Boolean,
|
|
67
|
-
hdQuery: Object,
|
|
68
|
-
url: String, // 全路径
|
|
69
|
-
height: {// 高度
|
|
70
|
-
type: String,
|
|
71
|
-
default: '40vh'
|
|
72
|
-
},
|
|
73
|
-
beforeQuery: Function
|
|
74
|
-
}, // 设置value为props属性-必须
|
|
75
|
-
mounted() {
|
|
76
|
-
$(this.$parent.$el).find('.el-popover__reference').removeAttr('tabIndex')// 焦点用
|
|
108
|
+
doClear() {
|
|
109
|
+
this.$emit('update:txtVal', '')
|
|
110
|
+
this.$emit('update:idVal', '')
|
|
111
|
+
this.$emit('clear')
|
|
77
112
|
},
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
return false
|
|
85
|
-
}
|
|
86
|
-
setTimeout(() => { // 否则会和默认的冲突
|
|
87
|
-
this.visible = true
|
|
88
|
-
}, 150)
|
|
89
|
-
// this.isFocus = true
|
|
90
|
-
},
|
|
91
|
-
doClear() {
|
|
92
|
-
this.$emit('update:txtVal', '')
|
|
93
|
-
this.$emit('update:idVal', '')
|
|
94
|
-
this.$emit('clear')
|
|
95
|
-
},
|
|
96
|
-
doMouseEnter() {
|
|
97
|
-
if (this.disabled) {
|
|
98
|
-
return false
|
|
99
|
-
}
|
|
100
|
-
if (this.idVal) {
|
|
101
|
-
this.threePointShow = false
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
doMouseLeave() {
|
|
105
|
-
this.threePointShow = true
|
|
106
|
-
},
|
|
107
|
-
doSel(data) {
|
|
108
|
-
this.$emit('update:txtVal', data.text)
|
|
109
|
-
this.$emit('update:idVal', data.id)
|
|
110
|
-
this.visible = false
|
|
113
|
+
doMouseEnter() {
|
|
114
|
+
if (this.disabled) {
|
|
115
|
+
return false
|
|
116
|
+
}
|
|
117
|
+
if (this.idVal) {
|
|
118
|
+
this.threePointShow = false
|
|
111
119
|
}
|
|
112
120
|
},
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
121
|
+
doMouseLeave() {
|
|
122
|
+
this.threePointShow = true
|
|
123
|
+
},
|
|
124
|
+
doSel(data) {
|
|
125
|
+
this.$emit('update:txtVal', data.text)
|
|
126
|
+
this.$emit('update:idVal', data.id)
|
|
127
|
+
this.visible = false
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
watch: {
|
|
131
|
+
// searchVal: function(newVal) {
|
|
132
|
+
// this.$refs.orgTree.filter(newVal)
|
|
133
|
+
// // this.visible = true
|
|
134
|
+
// },
|
|
135
|
+
txtVal: function (newVal) {
|
|
136
|
+
this.searchVal = this.txtVal
|
|
137
|
+
},
|
|
138
|
+
visible: function (newVal) {
|
|
139
|
+
console.log('newVal', newVal)
|
|
140
|
+
console.log(this.$refs.orgTree)
|
|
141
|
+
if (newVal) {
|
|
142
|
+
this.$refs.orgTree.filter('')
|
|
143
|
+
} else {
|
|
120
144
|
this.searchVal = this.txtVal
|
|
121
|
-
},
|
|
122
|
-
visible: function (newVal) {
|
|
123
|
-
console.log('newVal', newVal)
|
|
124
|
-
console.log(this.$refs.orgTree)
|
|
125
|
-
if (newVal) {
|
|
126
|
-
this.$refs.orgTree.filter('')
|
|
127
|
-
} else {
|
|
128
|
-
this.searchVal = this.txtVal
|
|
129
|
-
}
|
|
130
145
|
}
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
|
|
146
|
+
},
|
|
147
|
+
},
|
|
148
|
+
}
|
|
134
149
|
</script>
|
|
150
|
+
|
|
151
|
+
<style>
|
|
152
|
+
.lucencyInput .el-input__inner {
|
|
153
|
+
border: 0px;
|
|
154
|
+
}
|
|
155
|
+
</style>
|