mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-11 06:07:24 +08:00
优化一些bug
This commit is contained in:
parent
844ffae43a
commit
9ce23427bf
@ -67,6 +67,21 @@ export default {
|
|||||||
const reg = `#${rname}#`
|
const reg = `#${rname}#`
|
||||||
this.contractTypeAttrs.push(reg)
|
this.contractTypeAttrs.push(reg)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// 处理基本属性
|
||||||
|
if (data.baseRepalce) {
|
||||||
|
data.baseRepalce.forEach(e => {
|
||||||
|
const rname = e.name
|
||||||
|
const rkey = e.key
|
||||||
|
const contractarr = Object.keys(data.contract[0] || {})
|
||||||
|
for (const a in contractarr) {
|
||||||
|
if (rkey === contractarr[a]) {
|
||||||
|
const reg = `#${rname}#`
|
||||||
|
this.contractTypeAttrs.push(reg)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('加载合同属性失败:', error)
|
console.error('加载合同属性失败:', error)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user