优化 设计稿件

This commit is contained in:
YuanFeng 2024-09-11 23:10:05 +08:00
parent 01819f1811
commit 2ffe759adb
2 changed files with 11 additions and 2 deletions

View File

@ -18,7 +18,7 @@
"位置信息配置为节点的位置信息。如添加了3个配置数据这时会依次添加到对应位置上。从而实现动态属性配置。"
</el-alert>
<el-form>
<el-row>
<el-row style="min-width: 900px">
<el-col :span="6" :xs="12">
<el-form-item label="组名称">
<el-input v-model="that.configInfo.groupName" placeholder="请输入组名称"/>

View File

@ -1509,15 +1509,24 @@ const removeEmptyGroup = () => {
}
let delIndex = []
let allKey = []
for (let i = 0; i < that.pageConfig.propList.length; i++) {
if(!propGroupIdList.includes(that.pageConfig.propList[i].groupId)){
delIndex.push(i)
continue;
}
allKey.push(that.pageConfig.propList[i].groupId)
}
console.debug("delIndex", delIndex)
for (let i = 0; i < delIndex.length; i++) {
that.pageConfig.propList.splice(delIndex[i], 1)
}
let newArr = []
for (let i = 0; i < that.pageConfig.propOrderByList.length; i++) {
if(allKey.includes(that.pageConfig.propOrderByList[i].key)){
newArr.push(that.pageConfig.propOrderByList[i])
}
}
that.pageConfig.propOrderByList = newArr
}
const orderByPropList = () => {