lw-cdp-ui 1.3.48 → 1.3.50

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.
@@ -4,7 +4,7 @@
4
4
  ref="table"
5
5
  :columns="config.formItems"
6
6
  :max-height="maxHeight"
7
- :row-key="config.rowKey || 'id'"
7
+ :row-key="config.rowKey || 'tableUUID'"
8
8
  :tree-props="config?.treeProps || { children: 'children', hasChildren: 'hasChildren' }"
9
9
  style="width: 100%">
10
10
  <el-table-column v-for="(item, index) in config.formItems"
@@ -522,13 +522,11 @@ export default {
522
522
  // 校验通过后才推送数据
523
523
  let id = this.$tool.getUUID(this.config.rowKey, '4')
524
524
  tableData.push({
525
- [this.config.rowKey]: id,
525
+ tableUUID: id,
526
526
  ...this.itemConfig,
527
- ...form
527
+ ...form,
528
+ [this.config.rowKey]: id
528
529
  })
529
-
530
- // 用于识别是否是新增的
531
- this.ids.push(id)
532
530
  },
533
531
  // 二级 新增/删除
534
532
  clickFun(type, row, index) {
@@ -561,7 +559,7 @@ export default {
561
559
  },
562
560
  // 是否禁用
563
561
  isDisabled(item, row) {
564
- return (!this.ids.includes(row[this.config.rowKey]) && item.options?.disabled) || this.isView
562
+ return (!row?.tableUUID && item.options?.disabled) || this.isView
565
563
  },
566
564
  //合并深结构对象
567
565
  deepMerge(obj1, obj2) {
@@ -151,7 +151,7 @@ export default {
151
151
  return {
152
152
  code: 200,//分析状态字段结构
153
153
  fileName: res.fileName,//分析文件名称
154
- src: res.previewInfo.url, //分析图片远程地址结构
154
+ src: res?.previewInfo?.prefix ? `${res.previewInfo.prefix}${res.path}` : res.previewInfo.url, //分析图片远程地址结构
155
155
  msg: res.message //分析描述字段结构
156
156
  }
157
157
  }