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/hdcom/HdComQuery.vue
CHANGED
|
@@ -1,81 +1,149 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<el-dialog
|
|
2
|
+
<el-dialog
|
|
3
|
+
title="高级查询"
|
|
4
|
+
:visible.sync="visible"
|
|
5
|
+
width="80%"
|
|
6
|
+
append-to-body
|
|
7
|
+
top="2vh"
|
|
8
|
+
>
|
|
3
9
|
<div class="filter-container" style="padding: 0">
|
|
4
|
-
<el-select
|
|
5
|
-
|
|
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
|
+
>
|
|
6
23
|
</el-option>
|
|
7
24
|
</el-select>
|
|
8
25
|
|
|
9
|
-
<el-button
|
|
26
|
+
<el-button
|
|
27
|
+
class="filter-item"
|
|
28
|
+
@click="remove"
|
|
29
|
+
type="primary"
|
|
30
|
+
:hotKeyRange="$options.name"
|
|
31
|
+
>{{ $t('删除方案') }}
|
|
10
32
|
</el-button>
|
|
11
|
-
<el-button
|
|
12
|
-
|
|
33
|
+
<el-button
|
|
34
|
+
class="filter-item"
|
|
35
|
+
@click="proSaveVisible = true"
|
|
36
|
+
type="primary"
|
|
37
|
+
:hotKeyRange="$options.name"
|
|
38
|
+
>
|
|
39
|
+
{{ $t('方案保存') }}
|
|
13
40
|
</el-button>
|
|
14
|
-
<el-button
|
|
41
|
+
<el-button
|
|
42
|
+
class="filter-item"
|
|
43
|
+
@click="add"
|
|
44
|
+
type="primary"
|
|
45
|
+
:hotKeyRange="$options.name"
|
|
46
|
+
>{{ $t('新增条件') }}
|
|
15
47
|
</el-button>
|
|
16
48
|
</div>
|
|
17
49
|
<div style="height: 360px">
|
|
18
50
|
<el-row>
|
|
19
51
|
<el-col :span="11">
|
|
20
|
-
<div style="padding-top: 0px;height: 250px">
|
|
21
|
-
<HdComQueryDetail
|
|
52
|
+
<div style="padding-top: 0px; height: 250px">
|
|
53
|
+
<HdComQueryDetail
|
|
54
|
+
:allColumn="allColumn"
|
|
55
|
+
ref="LQuery"
|
|
56
|
+
:list="leftLs"
|
|
57
|
+
title="组一"
|
|
58
|
+
></HdComQueryDetail>
|
|
22
59
|
</div>
|
|
23
60
|
</el-col>
|
|
24
61
|
<el-col :span="2">
|
|
25
|
-
<div
|
|
62
|
+
<div
|
|
63
|
+
style="
|
|
64
|
+
width: 100%;
|
|
65
|
+
position: relative;
|
|
66
|
+
top: 50px;
|
|
67
|
+
text-align: center;
|
|
68
|
+
"
|
|
69
|
+
>
|
|
70
|
+
{{ $t('或者') }}
|
|
71
|
+
</div>
|
|
26
72
|
</el-col>
|
|
27
73
|
<el-col :span="11">
|
|
28
|
-
<div style="padding-top: 0px;height: 250px">
|
|
29
|
-
<HdComQueryDetail
|
|
74
|
+
<div style="padding-top: 0px; height: 250px">
|
|
75
|
+
<HdComQueryDetail
|
|
76
|
+
:allColumn="allColumn"
|
|
77
|
+
ref="RQuery"
|
|
78
|
+
:list="rightLs"
|
|
79
|
+
title="组二"
|
|
80
|
+
></HdComQueryDetail>
|
|
30
81
|
</div>
|
|
31
82
|
</el-col>
|
|
32
83
|
</el-row>
|
|
33
84
|
|
|
34
85
|
<el-row>
|
|
35
|
-
<div style="padding-top: 0px;height: 100px">
|
|
36
|
-
<HdComSortDetail
|
|
86
|
+
<div style="padding-top: 0px; height: 100px">
|
|
87
|
+
<HdComSortDetail
|
|
88
|
+
:allColumn="allColumn"
|
|
89
|
+
ref="RQuery"
|
|
90
|
+
:list="sortLs"
|
|
91
|
+
title="排序"
|
|
92
|
+
></HdComSortDetail>
|
|
37
93
|
</div>
|
|
38
94
|
</el-row>
|
|
39
95
|
</div>
|
|
40
96
|
<!-- <el-container style="height: 260px">
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
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>-->
|
|
57
113
|
<div slot="footer" class="dialog-footer">
|
|
58
|
-
<el-button @click="doCloseAndKeep()">{{
|
|
59
|
-
|
|
60
|
-
|
|
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
|
+
>
|
|
61
124
|
</div>
|
|
62
|
-
<el-dialog
|
|
125
|
+
<el-dialog
|
|
126
|
+
title="方案保存"
|
|
127
|
+
:visible.sync="proSaveVisible"
|
|
128
|
+
width="30%"
|
|
129
|
+
append-to-body
|
|
130
|
+
top="2vh"
|
|
131
|
+
>
|
|
63
132
|
<el-row>
|
|
64
133
|
<el-col :span="20">
|
|
65
134
|
<el-input v-model="proName"></el-input>
|
|
66
135
|
</el-col>
|
|
67
136
|
<el-col :span="4">
|
|
68
|
-
<el-button @click="doSave" type="primary">{{$t('保存')}}</el-button>
|
|
137
|
+
<el-button @click="doSave" type="primary">{{ $t('保存') }}</el-button>
|
|
69
138
|
</el-col>
|
|
70
139
|
</el-row>
|
|
71
140
|
</el-dialog>
|
|
72
141
|
</el-dialog>
|
|
73
|
-
|
|
74
142
|
</template>
|
|
75
143
|
|
|
76
144
|
<script>
|
|
77
145
|
import HdComQueryDetail from './HdComQueryDetail'
|
|
78
|
-
import HdComSortDetail from
|
|
146
|
+
import HdComSortDetail from './HdComSortDetail'
|
|
79
147
|
|
|
80
148
|
export default {
|
|
81
149
|
name: 'HdComQuery',
|
|
@@ -91,13 +159,13 @@ export default {
|
|
|
91
159
|
selQueryId: '',
|
|
92
160
|
proName: '',
|
|
93
161
|
proLs: [],
|
|
94
|
-
keepQueryUse: false
|
|
162
|
+
keepQueryUse: false,
|
|
95
163
|
}
|
|
96
164
|
},
|
|
97
165
|
inheritAttrs: false,
|
|
98
166
|
props: {
|
|
99
167
|
hdQuery: Object,
|
|
100
|
-
allColumn: Array
|
|
168
|
+
allColumn: Array,
|
|
101
169
|
},
|
|
102
170
|
mounted() {
|
|
103
171
|
this.doQuery()
|
|
@@ -108,24 +176,30 @@ export default {
|
|
|
108
176
|
comQuery.name = this.proName
|
|
109
177
|
comQuery.menuId = this.$route.name
|
|
110
178
|
comQuery.gridId = this.getHdComGrid().$refs.hdgrid.gridId
|
|
111
|
-
const innHdQuery = {
|
|
179
|
+
const innHdQuery = {
|
|
180
|
+
vueleftQueryLs: [],
|
|
181
|
+
vuerightQueryLs: [],
|
|
182
|
+
sorts: { params: this.sortLs },
|
|
183
|
+
}
|
|
112
184
|
this.addToHdQuery(innHdQuery.vueleftQueryLs, this.leftLs)
|
|
113
185
|
innHdQuery.vueGroupRel = 'or'
|
|
114
186
|
this.addToHdQuery(innHdQuery.vuerightQueryLs, this.rightLs)
|
|
115
187
|
comQuery.hdQuery = innHdQuery
|
|
116
|
-
this.$http
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
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
|
|
123
202
|
})
|
|
124
|
-
this.proLs.push(data.data)
|
|
125
|
-
this.selQueryId = data.data.queryId
|
|
126
|
-
this.proSaveVisible = false
|
|
127
|
-
this.getHdComGrid().adQueryTemplateNameList = this.proLs;
|
|
128
|
-
})
|
|
129
203
|
},
|
|
130
204
|
remove() {
|
|
131
205
|
if (!this.selQueryId) {
|
|
@@ -133,29 +207,31 @@ export default {
|
|
|
133
207
|
type: 'error',
|
|
134
208
|
message: this.$t('请先选择要删除的方案'),
|
|
135
209
|
showClose: true,
|
|
136
|
-
duration: 1500
|
|
210
|
+
duration: 1500,
|
|
137
211
|
})
|
|
138
212
|
return false
|
|
139
213
|
}
|
|
140
214
|
const comQuery = {}
|
|
141
215
|
comQuery.queryId = this.selQueryId
|
|
142
|
-
this.$http
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
this.selQueryId
|
|
148
|
-
|
|
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
|
+
}
|
|
149
226
|
}
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
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
|
|
156
234
|
})
|
|
157
|
-
this.getHdComGrid().adQueryTemplateNameList = this.proLs;
|
|
158
|
-
})
|
|
159
235
|
},
|
|
160
236
|
doQuery() {
|
|
161
237
|
// 默认三个
|
|
@@ -176,9 +252,11 @@ export default {
|
|
|
176
252
|
innHdQuery.query.menuId = this.$route.name
|
|
177
253
|
innHdQuery.query.gridId = this.getHdComGrid().$refs.hdgrid.gridId
|
|
178
254
|
if (this.isFirst) {
|
|
179
|
-
this.$http
|
|
180
|
-
|
|
181
|
-
|
|
255
|
+
this.$http
|
|
256
|
+
.post('/webresources/login/com/ComQuery/find/', innHdQuery)
|
|
257
|
+
.then((response) => {
|
|
258
|
+
this.proLs = response.data
|
|
259
|
+
})
|
|
182
260
|
}
|
|
183
261
|
this.isFirst = false
|
|
184
262
|
},
|
|
@@ -190,12 +268,14 @@ export default {
|
|
|
190
268
|
this.visible = false
|
|
191
269
|
},
|
|
192
270
|
change(val) {
|
|
193
|
-
this.$http
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
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
|
+
})
|
|
199
279
|
// this.selCol = val
|
|
200
280
|
},
|
|
201
281
|
listInit(list) {
|
|
@@ -212,12 +292,15 @@ export default {
|
|
|
212
292
|
return list
|
|
213
293
|
},
|
|
214
294
|
sortInit(list) {
|
|
215
|
-
return list.map(sort => {
|
|
295
|
+
return list.map((sort) => {
|
|
216
296
|
return {
|
|
217
297
|
sortProperty: sort.key,
|
|
218
298
|
sortType: sort.value,
|
|
219
299
|
alias: sort.rel,
|
|
220
|
-
text:
|
|
300
|
+
text:
|
|
301
|
+
this.allColumn.find((v) => v.$attrs.prop == sort.key).$attrs.label +
|
|
302
|
+
'/' +
|
|
303
|
+
(sort.value == 'ASC' ? '升序' : '降序'),
|
|
221
304
|
}
|
|
222
305
|
})
|
|
223
306
|
},
|
|
@@ -229,19 +312,24 @@ export default {
|
|
|
229
312
|
this.addToHdQuery(this.hdQuery.vuerightQueryLs, this.rightLs)
|
|
230
313
|
this.hdQuery.sorts = { params: this.sortLs }
|
|
231
314
|
this.hdQuery.sort = ''
|
|
232
|
-
//
|
|
315
|
+
//
|
|
233
316
|
// console.log(this.hdQuery, this.leftLs, this.rightLs)
|
|
234
|
-
this.getHdComGrid()
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
317
|
+
this.getHdComGrid()
|
|
318
|
+
.doQuery()
|
|
319
|
+
.then(() => {
|
|
320
|
+
this.visible = false
|
|
321
|
+
})
|
|
239
322
|
},
|
|
240
323
|
addToHdQuery(queryLs, inputLs) {
|
|
241
324
|
for (let i = 0; i < inputLs.length; i++) {
|
|
242
325
|
const input = inputLs[i]
|
|
243
326
|
if (input.key) {
|
|
244
|
-
queryLs.push({
|
|
327
|
+
queryLs.push({
|
|
328
|
+
key: input.key,
|
|
329
|
+
rel: input.rel,
|
|
330
|
+
value: input.value,
|
|
331
|
+
type: input.type,
|
|
332
|
+
})
|
|
245
333
|
}
|
|
246
334
|
}
|
|
247
335
|
},
|
|
@@ -254,11 +342,12 @@ export default {
|
|
|
254
342
|
par = par.$parent
|
|
255
343
|
}
|
|
256
344
|
return null
|
|
257
|
-
}
|
|
345
|
+
},
|
|
258
346
|
},
|
|
259
347
|
watch: {
|
|
260
348
|
visible: function (val) {
|
|
261
|
-
if (!val) {
|
|
349
|
+
if (!val) {
|
|
350
|
+
// 隐藏时
|
|
262
351
|
if (!this.keepQueryUse) {
|
|
263
352
|
this.hdQuery.vueleftQueryLs = []
|
|
264
353
|
this.hdQuery.vuerightQueryLs = []
|
|
@@ -267,7 +356,7 @@ export default {
|
|
|
267
356
|
this.keepQueryUse = false
|
|
268
357
|
}
|
|
269
358
|
}
|
|
270
|
-
}
|
|
271
|
-
}
|
|
359
|
+
},
|
|
360
|
+
},
|
|
272
361
|
}
|
|
273
362
|
</script>
|