wangting
2024-12-02 975cf97d476e6e38bd207efc42f383d46ecc7c0e
修改sourceData传值
已修改3个文件
15 ■■■■ 文件已修改
Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-form.vue 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-table.vue 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-tree.vue 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-form.vue
@@ -134,11 +134,14 @@
        for (let i in this.sourceData) {
          const item = this.sourceData[i]
          //if (item && item.constructor === Object) continue; //树节点子集是对象
          if (['type', 'context', 'content', 'querytemplate', 'querytype'].includes(i)) continue;
          if (item && item.constructor === Object) {
            sourceDataMap['sourceData["' + i + '"]'] = JSON.stringify(item)
          }else {
          sourceDataMap['sourceData["' + i + '"]'] = item
        }
      }
      }
      if (Object.keys(this.paramVOS).length > 0) {
        for (let j in this.paramVOS) {
Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-table.vue
@@ -319,11 +319,14 @@
        for (let i in this.sourceData) {
          const item = this.sourceData[i]
          //if (item && item.constructor === Object) continue; //树节点子集是对象
          if (['type', 'context', 'content', 'querytemplate', 'querytype'].includes(i)) continue;
          if (item && item.constructor === Object) {
            sourceDataMap['sourceData["' + i + '"]'] = JSON.stringify(item)
          }else {
          sourceDataMap['sourceData["' + i + '"]'] = item
        }
      }
      }
      if (Object.keys(this.paramVOS).length>0) {
        for (let j in this.paramVOS) {
Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-tree.vue
@@ -179,11 +179,14 @@
        }
        for (let i in this.sourceData) {
          const item = this.sourceData[i]
          if (item && item.constructor === Object) continue;
          if (['type', 'context', 'content', 'querytemplate', 'querytype'].includes(i)) continue;
          if (item && item.constructor === Object) {
            sourceDataMap['sourceData["' + i + '"]'] = JSON.stringify(item)
          }else {
          sourceDataMap['sourceData["' + i + '"]'] = item
        }
      }
      }
      if (Object.keys(this.paramVOS).length > 0) {
        for (let j in this.paramVOS) {