vue2-client 1.8.281 → 1.8.282

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.8.281",
3
+ "version": "1.8.282",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -314,13 +314,13 @@ export default {
314
314
  formData[item.model] = this.getDateRange(item.type, item.formDefault)
315
315
  } else if (['treeSelect', 'select', 'checkbox'].includes(item.type) && ['curOrgId', 'curDepId', 'curUserId'].includes(item.queryFormDefault)) {
316
316
  if (item.queryFormDefault === 'curOrgId') {
317
- formData[item.model] = [this.currUser.orgid]
317
+ formData[item.model] = item.type === 'select' ? this.currUser.orgid : [this.currUser.orgid]
318
318
  }
319
319
  if (item.queryFormDefault === 'curDepId') {
320
- formData[item.model] = [this.currUser.depids]
320
+ formData[item.model] = item.type === 'select' ? this.currUser.depids : [this.currUser.depids]
321
321
  }
322
322
  if (item.queryFormDefault === 'curUserId') {
323
- formData[item.model] = [this.currUser.id]
323
+ formData[item.model] = item.type === 'select' ? this.currUser.id : [this.currUser.id]
324
324
  }
325
325
  } else {
326
326
  formData[item.model] = item.formDefault
@@ -187,13 +187,13 @@ export default {
187
187
  formData[item.model] = this.getDateRange(item.type, item.queryFormDefault)
188
188
  } else if (['treeSelect', 'select', 'checkbox'].includes(item.type) && ['curOrgId', 'curDepId', 'curUserId'].includes(item.queryFormDefault)) {
189
189
  if (item.queryFormDefault === 'curOrgId') {
190
- formData[item.model] = [this.currUser.orgid]
190
+ formData[item.model] = item.type === 'select' ? this.currUser.orgid : [this.currUser.orgid]
191
191
  }
192
192
  if (item.queryFormDefault === 'curDepId') {
193
- formData[item.model] = [this.currUser.depids]
193
+ formData[item.model] = item.type === 'select' ? this.currUser.depids : [this.currUser.depids]
194
194
  }
195
195
  if (item.queryFormDefault === 'curUserId') {
196
- formData[item.model] = [this.currUser.id]
196
+ formData[item.model] = item.type === 'select' ? this.currUser.id : [this.currUser.id]
197
197
  }
198
198
  } else {
199
199
  formData[item.model] = item.queryFormDefault