Commit 428a77a3 authored by jingnan's avatar jingnan 👀

合并产品【10315】合并10139 【陕飞】app配置中心...

parent ccd2ddfa
...@@ -93,6 +93,10 @@ export default { ...@@ -93,6 +93,10 @@ export default {
type: Boolean, type: Boolean,
default: () => false default: () => false
}, },
onlyBaseProp: {
type: Boolean,
default: () => false
},
splitIcon: { splitIcon: {
type: String, type: String,
default: () => '.' default: () => '.'
...@@ -240,6 +244,14 @@ export default { ...@@ -240,6 +244,14 @@ export default {
}, },
methods: { methods: {
updateOption(option) { updateOption(option) {
if (this.onlyBaseProp) {
const baseType = ['Long', 'String', 'Integer', 'Boolean', 'Short', 'Float', 'BigInteger', 'Double', 'BidDecimal', 'LocalDataTime', 'DictDataVO']
option.forEach(el => {
if (!baseType.includes(el.fildProp.type)) {
el.disabled = true
}
})
}
const updateTree = (tree, index) => { const updateTree = (tree, index) => {
tree.forEach(item => { tree.forEach(item => {
if (!isNaN(Number(index))) { if (!isNaN(Number(index))) {
......
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