提交 85f140dc 编写于 作者: KK's avatar KK

picker 回填外键值文本

上级 6b7c4771
......@@ -273,7 +273,7 @@ export default class AppPicker extends Vue {
* @memberof AppPicker
*/
public created() {
if (Object.is(this.editortype, 'dropdown')) {
if (this.acParams && this.service) {
this.onSearch("", null, true);
}
this.inputImageStabilizationEvent = this.inputImageStabilization.pipe(
......@@ -364,6 +364,7 @@ export default class AppPicker extends Vue {
if (callback) {
callback(this.items);
}
this.parseValue();
}).catch((response: any) => {
if (callback) {
callback([]);
......@@ -373,6 +374,17 @@ export default class AppPicker extends Vue {
}
}
/**
* 解析回填文本
*/
public parseValue(){
let index = this.items.findIndex((item)=>{return Object.is(item[this.deKeyField],this.refvalue)});
if(index > -1){
this.curvalue = this.items[index][this.deMajorField];
}
}
/**
* 选中数据回调
* @param item
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册