vue2-client 1.2.55-test2 → 1.2.55-test3

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.2.55-test2",
3
+ "version": "1.2.55-test3",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -68,7 +68,7 @@ export default {
68
68
  ...mapState('account', { currUser: 'user' })
69
69
  },
70
70
  created () {
71
- this.uploadedFileList = this.mode.type === 'file' ? [...this.files] : [...this.images]
71
+ this.uploadedFileList = this.model.type === 'file' ? [...this.files] : [...this.images]
72
72
  },
73
73
  methods: {
74
74
  uploadFiles (info) {
@@ -92,7 +92,7 @@ export default {
92
92
  if (this.model.pathKey) {
93
93
  formData.append('pathKey', this.model.pathKey)
94
94
  }
95
- formData.append('stockAlias', this.model.stockAlias)
95
+ // formData.append('stockAlias', this.model.stockAlias)
96
96
  formData.append('formType', this.model.type)
97
97
  formData.append('resUploadStock', this.model.resUploadStock)
98
98
  formData.append('filename', info.file.name)
@@ -259,8 +259,7 @@ export default {
259
259
  this.form = formData
260
260
  this.files = this.modifyModelData.files
261
261
  this.images = this.modifyModelData.images
262
- this.modifyModelData = this.modifyModelData.data
263
- if (Object.keys(this.modifyModelData).length > 0) {
262
+ if (Object.keys(this.modifyModelData.data).length > 0) {
264
263
  this.getModifyModelData()
265
264
  }
266
265
  },
@@ -316,18 +315,18 @@ export default {
316
315
  getModifyModelData () {
317
316
  for (let i = 0; i < this.realJsonData.length; i++) {
318
317
  const item = this.realJsonData[i]
319
- if (this.modifyModelData[item.model] || this.modifyModelData[item.model] === 0) {
320
- this.form[item.model] = this.modifyModelData[item.model] + ''
318
+ if (this.modifyModelData.data[item.model] || this.modifyModelData.data[item.model] === 0) {
319
+ this.form[item.model] = this.modifyModelData.data[item.model] + ''
321
320
  } else {
322
321
  this.form[item.model] = undefined
323
322
  }
324
323
  }
325
324
  // 追加版本号信息
326
325
  for (const item of this.versionJsonData) {
327
- if (!this.modifyModelData[item.model]) {
326
+ if (!this.modifyModelData.data[item.model]) {
328
327
  this.form[item.model] = 0
329
328
  } else {
330
- this.form[item.model] = this.modifyModelData[item.model] + ''
329
+ this.form[item.model] = this.modifyModelData.data[item.model] + ''
331
330
  }
332
331
  }
333
332
  },