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
|
@@ -1,20 +1,38 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<el-dialog
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
2
|
+
<el-dialog
|
|
3
|
+
:visible.sync="fileUploadVisible"
|
|
4
|
+
append-to-body
|
|
5
|
+
title="文件上传"
|
|
6
|
+
width="450px"
|
|
7
|
+
>
|
|
8
|
+
<el-alert
|
|
9
|
+
:closable="false"
|
|
10
|
+
:title="$t('点击文件即可下载')"
|
|
11
|
+
type="warning"
|
|
12
|
+
></el-alert>
|
|
13
|
+
<el-upload
|
|
14
|
+
:action="upUrl"
|
|
15
|
+
:auto-upload="false"
|
|
16
|
+
:before-remove="beforeRemove"
|
|
17
|
+
:before-upload="beforeUpload"
|
|
18
|
+
:file-list="fileList"
|
|
19
|
+
:multiple="multiple"
|
|
20
|
+
:on-preview="handlePreview"
|
|
21
|
+
:on-remove="handleRemove"
|
|
22
|
+
:on-success="onUpSuccess"
|
|
23
|
+
ref="upload"
|
|
24
|
+
style="min-height: 300px; width: 400px"
|
|
25
|
+
v-bind="$attrs"
|
|
26
|
+
>
|
|
27
|
+
<el-button slot="trigger" type="primary" v-if="canEdit">{{
|
|
28
|
+
$t('选取文件')
|
|
29
|
+
}}</el-button>
|
|
30
|
+
<el-button
|
|
31
|
+
@click="submitUpload"
|
|
32
|
+
style="margin-left: 10px"
|
|
33
|
+
type="success"
|
|
34
|
+
v-if="canEdit"
|
|
35
|
+
>{{ $t('上传到服务器') }}
|
|
18
36
|
</el-button>
|
|
19
37
|
<div class="el-upload__tip" slot="tip"></div>
|
|
20
38
|
</el-upload>
|
|
@@ -22,127 +40,128 @@
|
|
|
22
40
|
</template>
|
|
23
41
|
|
|
24
42
|
<script>
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
43
|
+
var FileSaver = require('file-saver')
|
|
44
|
+
/**
|
|
45
|
+
* 文件上传 包括上传和下载后台idev8入口为comfileupload
|
|
46
|
+
* @module HdFileUpload
|
|
47
|
+
*/
|
|
30
48
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
49
|
+
export default {
|
|
50
|
+
components: {},
|
|
51
|
+
name: 'HdFileUpload',
|
|
52
|
+
/**
|
|
53
|
+
* @prop 参考element-ui的el-upload
|
|
54
|
+
* */
|
|
55
|
+
props: {
|
|
56
|
+
url: {
|
|
57
|
+
type: String,
|
|
58
|
+
default: '/webresources/login/com/SysFile/comfileupload',
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
inheritAttrs: false,
|
|
62
|
+
data() {
|
|
63
|
+
return {
|
|
64
|
+
upUrl: '',
|
|
65
|
+
fileUploadVisible: false,
|
|
66
|
+
fileDownVisible: false,
|
|
67
|
+
fileList: [],
|
|
68
|
+
entityId: '',
|
|
69
|
+
entityName: '',
|
|
70
|
+
canEdit: true,
|
|
71
|
+
uploadNum: 0,
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
mounted() {},
|
|
75
|
+
methods: {
|
|
76
|
+
beforeUpload(file) {
|
|
77
|
+
this.uploadNum++
|
|
78
|
+
},
|
|
34
79
|
/**
|
|
35
|
-
* @
|
|
36
|
-
*
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
80
|
+
* @method open
|
|
81
|
+
* @param entityName 区分名
|
|
82
|
+
* @param entityId 区分id
|
|
83
|
+
* @param canEdit 是否可编辑
|
|
84
|
+
* @event complete 文件全部上传完结束的事件
|
|
85
|
+
*/
|
|
86
|
+
open(entityName, entityId, canEdit) {
|
|
87
|
+
this.entityId = entityId
|
|
88
|
+
this.entityName = entityName
|
|
89
|
+
this.fileUploadVisible = true
|
|
90
|
+
this.canEdit = canEdit
|
|
91
|
+
this.upUrl = `${this.url}/upload?entityId=${this.entityId}&entityName=${this.entityName}`
|
|
92
|
+
this.doQuery()
|
|
42
93
|
},
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
return {
|
|
46
|
-
upUrl: '',
|
|
47
|
-
fileUploadVisible: false,
|
|
48
|
-
fileDownVisible: false,
|
|
49
|
-
fileList: [],
|
|
50
|
-
entityId: '',
|
|
51
|
-
entityName: '',
|
|
52
|
-
canEdit: true,
|
|
53
|
-
uploadNum: 0
|
|
54
|
-
}
|
|
94
|
+
downShow() {
|
|
95
|
+
this.fileDownVisible = true
|
|
55
96
|
},
|
|
56
|
-
|
|
97
|
+
doQuery() {
|
|
98
|
+
const url = `${this.url}/find?entityId=${this.entityId}&entityName=${this.entityName}`
|
|
99
|
+
this.$http.post(url).then((response) => {
|
|
100
|
+
const fileLs = response.data
|
|
101
|
+
this.fileList = []
|
|
102
|
+
for (let i = 0; i < fileLs.length; i++) {
|
|
103
|
+
const fileOne = fileLs[i]
|
|
104
|
+
const oneObj = {}
|
|
105
|
+
oneObj.name = fileOne.fileName
|
|
106
|
+
oneObj.uploadId = fileOne.uploadId
|
|
107
|
+
this.fileList.push(oneObj)
|
|
108
|
+
}
|
|
109
|
+
})
|
|
110
|
+
},
|
|
111
|
+
submitUpload() {
|
|
112
|
+
this.$refs.upload.submit()
|
|
113
|
+
},
|
|
114
|
+
onUpSuccess(response, file, fileList) {
|
|
115
|
+
this.uploadNum--
|
|
116
|
+
if (this.uploadNum == 0) {
|
|
117
|
+
this.$emit('complete')
|
|
118
|
+
}
|
|
119
|
+
file.uploadId = response.message
|
|
57
120
|
},
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
this
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
* @method open
|
|
64
|
-
* @param entityName 区分名
|
|
65
|
-
* @param entityId 区分id
|
|
66
|
-
* @param canEdit 是否可编辑
|
|
67
|
-
* @event complete 文件全部上传完结束的事件
|
|
68
|
-
*/
|
|
69
|
-
open(entityName, entityId, canEdit) {
|
|
70
|
-
this.entityId = entityId
|
|
71
|
-
this.entityName = entityName
|
|
72
|
-
this.fileUploadVisible = true
|
|
73
|
-
this.canEdit = canEdit
|
|
74
|
-
this.upUrl = `${this.url}/upload?entityId=${this.entityId}&entityName=${this.entityName}`
|
|
75
|
-
this.doQuery()
|
|
76
|
-
},
|
|
77
|
-
downShow() {
|
|
78
|
-
this.fileDownVisible = true
|
|
79
|
-
},
|
|
80
|
-
doQuery() {
|
|
81
|
-
const url = `${this.url}/find?entityId=${this.entityId}&entityName=${this.entityName}`
|
|
82
|
-
this.$http.post(url).then(response => {
|
|
83
|
-
const fileLs = response.data
|
|
84
|
-
this.fileList = []
|
|
85
|
-
for (let i = 0; i < fileLs.length; i++) {
|
|
86
|
-
const fileOne = fileLs[i]
|
|
87
|
-
const oneObj = {}
|
|
88
|
-
oneObj.name = fileOne.fileName
|
|
89
|
-
oneObj.uploadId = fileOne.uploadId
|
|
90
|
-
this.fileList.push(oneObj)
|
|
91
|
-
}
|
|
121
|
+
beforeRemove(file, fileList) {
|
|
122
|
+
if (!this.canEdit) {
|
|
123
|
+
this.$message({
|
|
124
|
+
type: 'error',
|
|
125
|
+
message: this.$t('无权删除'),
|
|
92
126
|
})
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
this.uploadNum--;
|
|
99
|
-
if (this.uploadNum == 0) {
|
|
100
|
-
this.$emit('complete')
|
|
101
|
-
}
|
|
102
|
-
file.uploadId = response.message
|
|
103
|
-
},
|
|
104
|
-
beforeRemove(file, fileList) {
|
|
105
|
-
if (!this.canEdit) {
|
|
106
|
-
this.$message({
|
|
107
|
-
type: 'error',
|
|
108
|
-
message: this.$t('无权删除')
|
|
109
|
-
})
|
|
110
|
-
return false
|
|
127
|
+
return false
|
|
128
|
+
}
|
|
129
|
+
return this.$confirm(this.$t('确定删除') + file.name + '?').then(() => {
|
|
130
|
+
if (!file.uploadId) {
|
|
131
|
+
return true
|
|
111
132
|
}
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
}
|
|
116
|
-
this.$http.post(`${this.url}/delete?uploadId=${file.uploadId}`).then(response => {
|
|
133
|
+
this.$http
|
|
134
|
+
.post(`${this.url}/delete?uploadId=${file.uploadId}`)
|
|
135
|
+
.then((response) => {
|
|
117
136
|
const data = response.data
|
|
118
137
|
this.$message({
|
|
119
138
|
type: data.code == '-1' ? 'error' : 'success',
|
|
120
|
-
message: this.$t('操作成功')
|
|
139
|
+
message: this.$t('操作成功'),
|
|
121
140
|
})
|
|
122
141
|
if (data.code == '-1') {
|
|
123
142
|
return false
|
|
124
143
|
}
|
|
125
144
|
// this.doQuery()
|
|
126
145
|
})
|
|
146
|
+
})
|
|
147
|
+
},
|
|
148
|
+
handleRemove(file, fileList) {},
|
|
149
|
+
handlePreview(file) {
|
|
150
|
+
if (!file.uploadId) {
|
|
151
|
+
this.$message({
|
|
152
|
+
type: 'error',
|
|
153
|
+
message: this.$t('这是未上传的文件'),
|
|
127
154
|
})
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
this.$message({
|
|
135
|
-
type: 'error',
|
|
136
|
-
message: this.$t('这是未上传的文件')
|
|
137
|
-
})
|
|
138
|
-
return false
|
|
139
|
-
}
|
|
140
|
-
const url = `${this.url}/download?uploadId=${file.uploadId}`
|
|
141
|
-
this.$http.post(url, {}, {responseType: 'arraybuffer'}).then(response => {
|
|
155
|
+
return false
|
|
156
|
+
}
|
|
157
|
+
const url = `${this.url}/download?uploadId=${file.uploadId}`
|
|
158
|
+
this.$http
|
|
159
|
+
.post(url, {}, { responseType: 'arraybuffer' })
|
|
160
|
+
.then((response) => {
|
|
142
161
|
var blob = new Blob([response.data])
|
|
143
162
|
FileSaver.saveAs(blob, file.name)
|
|
144
163
|
})
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
164
|
+
},
|
|
165
|
+
},
|
|
166
|
+
}
|
|
148
167
|
</script>
|
|
@@ -2,17 +2,19 @@
|
|
|
2
2
|
<el-row>
|
|
3
3
|
<el-col :span="10" align="left">
|
|
4
4
|
<div class="icon" @click.stop.prevent="doShrink" v-show="shrinkVisable">
|
|
5
|
-
<i :class="[fa, arrowClass]" style="cursor:pointer
|
|
5
|
+
<i :class="[fa, arrowClass]" style="cursor: pointer" />
|
|
6
6
|
</div>
|
|
7
|
-
<div
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
<div
|
|
8
|
+
ref="searchBox"
|
|
9
|
+
class="filter-item-box"
|
|
10
|
+
:style="{ height: nowHeight }"
|
|
11
|
+
>
|
|
12
|
+
<slot> </slot>
|
|
10
13
|
</div>
|
|
11
14
|
</el-col>
|
|
12
15
|
<el-col :span="4" align="left">
|
|
13
16
|
<div class="filter-btn-search">
|
|
14
|
-
<slot name="searchBtn">
|
|
15
|
-
</slot>
|
|
17
|
+
<slot name="searchBtn"> </slot>
|
|
16
18
|
</div>
|
|
17
19
|
</el-col>
|
|
18
20
|
<el-col :span="10" align="right">
|
|
@@ -24,67 +26,65 @@
|
|
|
24
26
|
</template>
|
|
25
27
|
|
|
26
28
|
<script>
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
29
|
+
export default {
|
|
30
|
+
name: 'HdFilterBoxTmp',
|
|
31
|
+
data() {
|
|
32
|
+
return {
|
|
33
|
+
arrowClass: 'fa-chevron-down',
|
|
34
|
+
fa: 'fa',
|
|
35
|
+
isShrink: false,
|
|
36
|
+
nowHeight: '28px',
|
|
37
|
+
nowWidth: null,
|
|
38
|
+
shrinkVisable: false,
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
mounted() {
|
|
42
|
+
let elementResizeDetectorMaker = require('element-resize-detector')
|
|
43
|
+
let erd = elementResizeDetectorMaker()
|
|
44
|
+
// console.log('this.$refs.searchBox.$el', this.$refs.searchBox)
|
|
45
|
+
erd.listenTo(this.$refs.searchBox, (element) => {
|
|
46
|
+
if (element.scrollHeight < 40) {
|
|
47
|
+
this.shrinkVisable = false
|
|
48
|
+
} else {
|
|
49
|
+
this.shrinkVisable = true
|
|
37
50
|
}
|
|
51
|
+
})
|
|
52
|
+
},
|
|
53
|
+
methods: {
|
|
54
|
+
doShrink() {
|
|
55
|
+
if (this.isShrink) {
|
|
56
|
+
this.nowHeight = '28px'
|
|
57
|
+
this.arrowClass = 'fa-chevron-down'
|
|
58
|
+
} else {
|
|
59
|
+
this.nowHeight = '100%'
|
|
60
|
+
this.arrowClass = 'fa-chevron-up'
|
|
61
|
+
}
|
|
62
|
+
this.isShrink = !this.isShrink
|
|
38
63
|
},
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
erd.listenTo(this.$refs.searchBox, element => {
|
|
45
|
-
if (element.scrollHeight < 40) {
|
|
46
|
-
this.shrinkVisable = false
|
|
47
|
-
} else {
|
|
48
|
-
this.shrinkVisable = true
|
|
49
|
-
}
|
|
50
|
-
})
|
|
51
|
-
},
|
|
52
|
-
methods: {
|
|
53
|
-
doShrink() {
|
|
54
|
-
if (this.isShrink) {
|
|
55
|
-
this.nowHeight = "28px"
|
|
56
|
-
this.arrowClass = 'fa-chevron-down'
|
|
57
|
-
} else {
|
|
58
|
-
this.nowHeight = "100%"
|
|
59
|
-
this.arrowClass = 'fa-chevron-up'
|
|
60
|
-
}
|
|
61
|
-
this.isShrink = !this.isShrink
|
|
62
|
-
},
|
|
64
|
+
},
|
|
65
|
+
computed: {
|
|
66
|
+
searchBoxWidth() {
|
|
67
|
+
// return this.nowWidth ? this.nowWidth%180 + 'px' : 'auto';
|
|
68
|
+
return 'auto'
|
|
63
69
|
},
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
// return this.nowWidth ? this.nowWidth%180 + 'px' : 'auto';
|
|
67
|
-
return 'auto'
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
70
|
+
},
|
|
71
|
+
}
|
|
71
72
|
</script>
|
|
72
73
|
|
|
73
74
|
<style scoped>
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
.icon {
|
|
82
|
-
margin-top: 0px;
|
|
83
|
-
/*margin-right: 10px;*/
|
|
84
|
-
line-height: 28px;
|
|
85
|
-
font-size: 14px;
|
|
86
|
-
color: #bbbbbb;
|
|
87
|
-
float: right;
|
|
88
|
-
}
|
|
75
|
+
.filter-item-box {
|
|
76
|
+
overflow: hidden;
|
|
77
|
+
display: flex;
|
|
78
|
+
flex-wrap: wrap;
|
|
79
|
+
/*height: 28px;*/
|
|
80
|
+
}
|
|
89
81
|
|
|
82
|
+
.icon {
|
|
83
|
+
margin-top: 0px;
|
|
84
|
+
/*margin-right: 10px;*/
|
|
85
|
+
line-height: 28px;
|
|
86
|
+
font-size: 14px;
|
|
87
|
+
color: #bbbbbb;
|
|
88
|
+
float: right;
|
|
89
|
+
}
|
|
90
90
|
</style>
|