Commit 0da04954 authored by 田翔's avatar 田翔

fix: 联动逻辑数据调整

parent 23b36a54
{ {
"name": "panda-xform", "name": "panda-xform",
"version": "1.6.7", "version": "1.6.8",
"description": "1.6.7: 向字段生成分组名称数据", "description": "1.6.8: 联动逻辑数据调整",
"keywords": [ "keywords": [
"panda-xform" "panda-xform"
], ],
......
...@@ -34,18 +34,19 @@ const FormDesigner = (props, ref) => { ...@@ -34,18 +34,19 @@ const FormDesigner = (props, ref) => {
const getJSON = (json, tableName) => { const getJSON = (json, tableName) => {
let parent = json?.properties let parent = json?.properties
if (isObject(parent)) {
let paths = [] let paths = []
if (isObject(parent)) {
for (let v in parent) { for (let v in parent) {
paths.push(v) paths.push(v)
let child = parent[v]?.properties let child = parent[v]?.properties
if (isObject(child)) { if (isObject(child)) {
for (let s in child) { for (let s in child) {
child[s].parent = { tableName, paths } child[s].parent = { tableName }
} }
} }
} }
} }
json.paths = paths
return json return json
} }
......
...@@ -260,7 +260,8 @@ const Device = (props) => { ...@@ -260,7 +260,8 @@ const Device = (props) => {
} }
const onOk = () => { const onOk = () => {
const { paths } = parent onChange(geometrystr)
let { paths } = addons.getSchemaByPath('#')
if (Array.isArray(paths)) { if (Array.isArray(paths)) {
paths.forEach(v => { paths.forEach(v => {
let values = addons.getValue(v) let values = addons.getValue(v)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment