提交 5579d09d 编写于 作者: Neuromancer255's avatar Neuromancer255

数据选择(下拉视图)调整 --fix2

上级 c9cd5686
......@@ -214,15 +214,18 @@ export default class AppSelectDropDown extends Vue {
* @memberof AppSelectDropDown
*/
get curvalue() {
if(this.value && this.items.length > 0){
if(this.value && this.items.length > 0){ // 判断是否拿到表单传来的值、列表项是否加载完成
let isIncluded = this.items.some((item:any)=>{return item.name === this.value})
if (isIncluded) {
return this.value;
} else {
return "";
}
} else if (this.valueitem && this.data) { // 是否有配置值项
return this.data[this.valueitem];
} else {
return "";
}
return "";
}
/**
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册