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.
Files changed (147) hide show
  1. package/dist/assets/index.9c127719.css +1 -0
  2. package/dist/hd-idevvue3.mjs +3521 -3305
  3. package/dist/hd-idevvue3.umd.js +29 -29
  4. package/npminstall-debug.log +2 -10
  5. package/package.json +4 -2
  6. package/pnpm-lock.yaml +37 -4
  7. package/src/App.vue +11 -15
  8. package/src/assets/sound/notify.wav +0 -0
  9. package/src/demo/demo.vue +9 -10
  10. package/src/demo/dropdemo.vue +42 -43
  11. package/src/demo/extsets.vue +140 -39
  12. package/src/demo/formedit.vue +157 -145
  13. package/src/demo/hightquery.vue +263 -66
  14. package/src/demo/inlineedit.vue +129 -35
  15. package/src/demo/selfdrop.vue +32 -15
  16. package/src/directive/el-dragDialog/drag.js +13 -13
  17. package/src/directive/el-dragDialog/index.js +13 -13
  18. package/src/errorLog.js +3 -3
  19. package/src/hdcom/BigGrid.js +54 -48
  20. package/src/hdcom/BillShow.vue +84 -63
  21. package/src/hdcom/BillUpload.vue +144 -86
  22. package/src/hdcom/BtnRight.vue +26 -23
  23. package/src/hdcom/ErrHint.vue +36 -24
  24. package/src/hdcom/ExtendColumn.vue +97 -90
  25. package/src/hdcom/ExtendCommon.js +24 -13
  26. package/src/hdcom/ExtendForm.vue +107 -80
  27. package/src/hdcom/FacePicUpload.vue +59 -50
  28. package/src/hdcom/FaceRecTest.vue +87 -77
  29. package/src/hdcom/GridChart.vue +175 -162
  30. package/src/hdcom/GridExField.vue +328 -234
  31. package/src/hdcom/GridShow.vue +89 -39
  32. package/src/hdcom/HdAside.vue +192 -145
  33. package/src/hdcom/HdBtn.vue +44 -32
  34. package/src/hdcom/HdButton.vue +141 -117
  35. package/src/hdcom/HdComFaceRec.vue +80 -32
  36. package/src/hdcom/HdComGrid.vue +329 -229
  37. package/src/hdcom/HdComQuery.vue +179 -90
  38. package/src/hdcom/HdComQueryDetail.vue +159 -115
  39. package/src/hdcom/HdComSortDetail.vue +136 -130
  40. package/src/hdcom/HdDatePicker.vue +32 -16
  41. package/src/hdcom/HdDialog.vue +62 -44
  42. package/src/hdcom/HdDrop.vue +163 -138
  43. package/src/hdcom/HdFileUpload.vue +138 -119
  44. package/src/hdcom/HdFilterBox.vue +62 -62
  45. package/src/hdcom/HdFooter.vue +152 -119
  46. package/src/hdcom/HdForm.vue +276 -203
  47. package/src/hdcom/HdFormBtn.vue +81 -39
  48. package/src/hdcom/HdFormItem.vue +14 -10
  49. package/src/hdcom/HdGrid.vue +353 -156
  50. package/src/hdcom/HdGridEditBtn.vue +34 -20
  51. package/src/hdcom/HdGridExt.js +78 -47
  52. package/src/hdcom/HdGridSel.vue +227 -193
  53. package/src/hdcom/HdHeader.vue +149 -117
  54. package/src/hdcom/HdHotKey.vue +70 -67
  55. package/src/hdcom/HdInputHint.vue +40 -36
  56. package/src/hdcom/HdMain.vue +25 -27
  57. package/src/hdcom/HdMessage.vue +180 -171
  58. package/src/hdcom/HdNum.vue +67 -57
  59. package/src/hdcom/HdPopSel.vue +46 -24
  60. package/src/hdcom/HdRightMenu.vue +63 -61
  61. package/src/hdcom/HdSel/SelGridFieldcod.vue +46 -28
  62. package/src/hdcom/HdTableColumn.vue +156 -109
  63. package/src/hdcom/HdTempSave.vue +138 -116
  64. package/src/hdcom/HdTree.vue +89 -72
  65. package/src/hdcom/HdTreeTable/eval.js +8 -3
  66. package/src/hdcom/HdTreeTable/index.vue +229 -174
  67. package/src/hdcom/ImportExcel.vue +69 -34
  68. package/src/hdcom/index.js +39 -44
  69. package/src/idev.common.js +54 -47
  70. package/src/index.js +3 -6
  71. package/src/utils/HdQuery.js +25 -14
  72. package/src/utils/comutils.js +50 -28
  73. package/src/utils/gogocodeTransfer.js +59 -0
  74. package/src/utils/utils.js +30 -19
  75. package/src/vendor/Blob.js +187 -179
  76. package/src/vendor/Export2Excel.js +231 -220
  77. package/src/vendor/Export2Zip.js +25 -22
  78. package/src/views/layout/AppMain.vue +34 -32
  79. package/src/views/layout/HdLayout.vue +64 -52
  80. package/src/views/layout/header/ElasticSearch.vue +196 -159
  81. package/src/views/layout/header/HZRecorder.js +163 -135
  82. package/src/views/layout/header/HeaderSearch.vue +165 -145
  83. package/src/views/layout/header/Levelbar.vue +55 -49
  84. package/src/views/layout/header/MainHeader.vue +233 -189
  85. package/src/views/layout/header/Navbar.vue +74 -78
  86. package/src/views/layout/header/ScrollPane.vue +103 -81
  87. package/src/views/layout/header/TagsView.vue +169 -164
  88. package/src/views/layout/header/VocRec.vue +86 -78
  89. package/src/views/layout/header/changepswform.vue +98 -64
  90. package/src/views/layout/index.js +5 -7
  91. package/src/views/layout/menu/Hamburger.vue +63 -45
  92. package/src/views/layout/menu/HdMenu.vue +155 -118
  93. package/src/views/layout/menu/index.vue +21 -19
  94. package/src/views/privilege/commsg/commsg.vue +115 -41
  95. package/src/views/privilege/commsg/commsgOrgn.vue +40 -31
  96. package/src/views/privilege/commsg/commsgRole.vue +180 -109
  97. package/src/views/privilege/commsg/commsgform.vue +125 -101
  98. package/src/views/privilege/commsg/commsgiframe.vue +30 -23
  99. package/src/views/privilege/commsg/commsgto.vue +163 -84
  100. package/src/views/privilege/commsg/commsgtoform.vue +64 -58
  101. package/src/views/privilege/commsg/commsgtrans.vue +187 -115
  102. package/src/views/privilege/exfield/comexcolumn.vue +133 -43
  103. package/src/views/privilege/exfield/comexcolumnform.vue +85 -58
  104. package/src/views/privilege/exfield/comexfield.vue +15 -17
  105. package/src/views/privilege/exfield/comexfieldform.vue +71 -53
  106. package/src/views/privilege/exfield/comexfieldsub.vue +137 -46
  107. package/src/views/privilege/index.js +19 -20
  108. package/src/views/privilege/menu/comMenu.vue +49 -41
  109. package/src/views/privilege/menu/menu.vue +166 -49
  110. package/src/views/privilege/menu/menuinfo.vue +41 -34
  111. package/src/views/privilege/menu/rolelist.vue +78 -33
  112. package/src/views/privilege/menu/userlist.vue +76 -33
  113. package/src/views/privilege/mobile/authmobileupdate.vue +119 -43
  114. package/src/views/privilege/mobile/authmobileupdateform.vue +76 -46
  115. package/src/views/privilege/orgDept/authOrgn.vue +157 -65
  116. package/src/views/privilege/orgDept/authorgnform.vue +50 -38
  117. package/src/views/privilege/orgDept/orgDept.vue +38 -37
  118. package/src/views/privilege/orgDept/orgTree.vue +99 -88
  119. package/src/views/privilege/orgDept/orgnselect.vue +132 -111
  120. package/src/views/privilege/personDept/authuser.vue +197 -91
  121. package/src/views/privilege/personDept/authuserform.vue +123 -71
  122. package/src/views/privilege/personDept/facerec.vue +128 -83
  123. package/src/views/privilege/personDept/orgncascader.vue +134 -115
  124. package/src/views/privilege/personDept/personDept.vue +9 -7
  125. package/src/views/privilege/quartz/comquartzjob.vue +123 -38
  126. package/src/views/privilege/quartz/comquartzjobform.vue +67 -51
  127. package/src/views/privilege/quartz/comquartzlog.vue +116 -32
  128. package/src/views/privilege/role/btnRole.vue +123 -67
  129. package/src/views/privilege/role/menuRole.vue +65 -45
  130. package/src/views/privilege/role/orgnRole.vue +63 -41
  131. package/src/views/privilege/role/role.vue +26 -9
  132. package/src/views/privilege/role/rolelist.vue +114 -45
  133. package/src/views/privilege/role/roleselect.vue +34 -17
  134. package/src/views/privilege/search/comsearch.vue +164 -73
  135. package/src/views/privilege/search/menu.vue +38 -22
  136. package/src/views/privilege/syscode/syscode.vue +157 -69
  137. package/src/views/privilege/syscode/sysfield.vue +96 -43
  138. package/src/views/privilege/syscode/sysfieldframe.vue +30 -30
  139. package/src/views/privilege/syslog/menulog.vue +38 -22
  140. package/src/views/privilege/syslog/syslog.vue +145 -78
  141. package/src/views/privilege/syslog/syslogconfig.vue +91 -24
  142. package/src/views/privilege/syslog/syslogform.vue +45 -43
  143. package/src/views/privilege/syslog/syslogframe.vue +26 -26
  144. package/src/views/privilege/userRole/userRole.vue +187 -89
  145. package/vite.config.js +7 -0
  146. package/dist/assets/index.774ef40e.css +0 -1
  147. package/src/views/privilege.zip +0 -0
@@ -1,81 +1,149 @@
1
1
  <template>
2
- <el-dialog title="高级查询" :visible.sync="visible" width='80%' append-to-body top="2vh">
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 v-model="selQueryId" filterable default-first-option placeholder="请选择方案" @change="change">
5
- <el-option v-for="item in proLs" :key="item.queryId" :label="item.name" :value="item.queryId">
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 class="filter-item" @click="remove" type="primary" :hotKeyRange="$options.name">{{$t('删除方案')}}
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 class="filter-item" @click="proSaveVisible=true" type="primary" :hotKeyRange="$options.name">
12
- {{$t('方案保存')}}
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 class="filter-item" @click="add" type="primary" :hotKeyRange="$options.name">{{$t('新增条件')}}
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 :allColumn="allColumn" ref="LQuery" :list="leftLs" title="组一"></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 style="width: 100%;position: relative;top:50px;text-align: center">{{$t('或者')}}</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 :allColumn="allColumn" ref="RQuery" :list="rightLs" title="组二"></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 :allColumn="allColumn" ref="RQuery" :list="sortLs" title="排序"></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
- <el-main>
42
- <el-container>
43
- <el-aside width="45%" title="组1" :arrowShow="false" style="padding-top: 0px">
44
- <HdComQueryDetail :allColumn="allColumn" ref="LQuery" :list="leftLs"></HdComQueryDetail>
45
- </el-aside>
46
- <ex-aside width="5%" :arrowShow="false">
47
- <div style="width: 100%;position: relative;top:50px;text-align: center">{{$t('或者')}}</div>
48
- </ex-aside>
49
- <el-aside width="45%" title="组2" :arrowShow="false" style="padding-top: 0px">
50
- <HdComQueryDetail :allColumn="allColumn" ref="RQuery" :list="rightLs"></HdComQueryDetail>
51
- </el-aside>
52
- </el-container>
53
- </el-main>
54
- <el-footer :arrowShow="false" height="100px" title="排序">
55
- </el-footer>
56
- </el-container>-->
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()">{{$t('关闭') + '(' + $t('保留条件') + ')'}}</el-button>
59
- <el-button @click="doCloseAndClear">{{$t('关闭')}}</el-button>
60
- <el-button @click="doQueryRs" type="primary" :hotKeyRange="$options.name">{{$t('查询')}}</el-button>
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 title="方案保存" :visible.sync="proSaveVisible" width='30%' append-to-body top="2vh">
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 "./HdComSortDetail";
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 = { vueleftQueryLs: [], vuerightQueryLs: [], sorts: { params: this.sortLs } }
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.post('/webresources/login/com/ComQuery/saveone/', comQuery).then(response => {
117
- const data = response.data
118
- this.$message({
119
- type: data.code == '-1' ? 'error' : 'success',
120
- showClose: true,
121
- duration: 1500,
122
- message: data.message
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.post('/webresources/login/com/ComQuery/remove/', comQuery).then(response => {
143
- const data = response.data
144
- for (let i = 0; i < this.proLs.length; i++) {
145
- if (this.proLs[i].queryId == this.selQueryId) {
146
- this.proLs.splice(i, 1)
147
- this.selQueryId = null
148
- break
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
- this.$message({
152
- type: data.code == '-1' ? 'error' : 'success',
153
- showClose: true,
154
- duration: 1500,
155
- message: data.message
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.post('/webresources/login/com/ComQuery/find/', innHdQuery).then(response => {
180
- this.proLs = response.data
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.post('/webresources/login/com/ComQuery/findDetail?queryId=' + val).then(response => {
194
- const data = response.data
195
- this.leftLs = this.listInit(data[0])
196
- this.rightLs = this.listInit(data[1])
197
- this.sortLs = this.sortInit(data[2])
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: this.allColumn.find(v => v.$attrs.prop == sort.key).$attrs.label + '/' + (sort.value == 'ASC' ? '升序' : '降序')
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().doQuery().then(() => {
235
- this.visible = false
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({ key: input.key, rel: input.rel, value: input.value, type: input.type })
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>