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

fix: 联动逻辑数据调整

parent 23b36a54
{
"name": "panda-xform",
"version": "1.6.7",
"description": "1.6.7: 向字段生成分组名称数据",
"version": "1.6.8",
"description": "1.6.8: 联动逻辑数据调整",
"keywords": [
"panda-xform"
],
......
......@@ -34,18 +34,19 @@ const FormDesigner = (props, ref) => {
const getJSON = (json, tableName) => {
let parent = json?.properties
let paths = []
if (isObject(parent)) {
let paths = []
for (let v in parent) {
paths.push(v)
let child = parent[v]?.properties
if (isObject(child)) {
for (let s in child) {
child[s].parent = { tableName, paths }
child[s].parent = { tableName }
}
}
}
}
json.paths = paths
return json
}
......
......@@ -260,7 +260,8 @@ const Device = (props) => {
}
const onOk = () => {
const { paths } = parent
onChange(geometrystr)
let { paths } = addons.getSchemaByPath('#')
if (Array.isArray(paths)) {
paths.forEach(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