vue2-client 1.2.61 → 1.2.62
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/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -316,6 +316,11 @@ export default {
|
|
|
316
316
|
},
|
|
317
317
|
getModifyModelData () {
|
|
318
318
|
for (let i = 0; i < this.realJsonData.length; i++) {
|
|
319
|
+
if (['FilesId', 'Images'].includes(this.realJsonData[i])) {
|
|
320
|
+
// 附件需要跳过 因为会通过 modifyModelData中的files,images属性给upload赋值
|
|
321
|
+
// 新增修改表单每次提交时只会提交最新添加的文件
|
|
322
|
+
continue
|
|
323
|
+
}
|
|
319
324
|
const item = this.realJsonData[i]
|
|
320
325
|
if (this.modifyModelData.data[item.model] || this.modifyModelData.data[item.model] === 0) {
|
|
321
326
|
this.form[item.model] = this.modifyModelData.data[item.model] + ''
|
|
@@ -293,6 +293,11 @@ export default {
|
|
|
293
293
|
},
|
|
294
294
|
getModifyModelData () {
|
|
295
295
|
for (let i = 0; i < this.realJsonData.length; i++) {
|
|
296
|
+
if (['FilesId', 'Images'].includes(this.realJsonData[i])) {
|
|
297
|
+
// 附件需要跳过 因为会通过 modifyModelData中的files,images属性给upload赋值
|
|
298
|
+
// 新增修改表单每次提交时只会提交最新添加的文件
|
|
299
|
+
continue
|
|
300
|
+
}
|
|
296
301
|
const item = this.realJsonData[i]
|
|
297
302
|
if (this.modifyModelData.data[item.model] || this.modifyModelData.data[item.model] === 0) {
|
|
298
303
|
this.form[item.model] = this.modifyModelData.data[item.model] + ''
|