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
@@ -1,10 +1,11 @@
1
1
  # Change Log
2
2
  > 所有关于本项目的变化都在该文档里。
3
3
 
4
- **1.2.57 - 1.2.61 -2022-05-23 @张振宇**
4
+ **1.2.57 - 1.2.62 -2022-05-25 @张振宇**
5
5
  - 功能修改:
6
6
  - 文件上传 基础表单相关修改
7
7
  - 简单表单生成 数据字段提取出来
8
+ - 新增修改表单加载时不带出 文件属性
8
9
 
9
10
  **1.2.55 -2022-05-20 @江超**
10
11
  - 问题修复:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.2.61",
3
+ "version": "1.2.62",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -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] + ''