feat: 新增参数配置Tree/调整参数配置Form

This commit is contained in:
TsMask
2023-11-15 14:59:43 +08:00
parent 4f18fe2552
commit de6271df00
5 changed files with 1800 additions and 37 deletions

View File

@@ -57,6 +57,7 @@ async function getParamConfigInfo(
params: {
SQL: `SELECT param_json FROM param_config WHERE ne_type = '${neType}' AND top_tag='${topTag}'`,
},
timeout: 1_000,
}),
// 获取对应信息
request({
@@ -65,6 +66,7 @@ async function getParamConfigInfo(
params: {
ne_id: neId,
},
timeout: 1_000,
}),
]).then(resArr => {
let wrRule: Record<string, any> = {};
@@ -333,7 +335,7 @@ export async function getParamConfigInfoForm(
result.data.data = dataArray;
// 无数据时,用于新增
result.data.dataRule = { title: `Index-0`, key: 0, record : [ruleArr]} ;
result.data.dataRule = { title: `Index-0`, key: 0, record : ruleArr} ;
}
return result;
}