Commit 9821b34e by 刘泽奇

123

parent bfe0f4b5
......@@ -58,8 +58,15 @@ module.exports=
},
watch:{
value:function(v){
value:function(v,old){
if(v && this.autoComplete){
var k=this.valueField?this.valueField:"id";
this.refwhere={};
this.refwhere[k]=v;
this.fetchData();
}else{
this.refwhere={};
}
this.sels=v;
},
parentcode:function(v){
......@@ -170,6 +177,7 @@ module.exports=
},
onchange:function(curval){
console.log(this.sels,"bbbbbbbbbbbbbbbbbb");
if(this.fetchtype=="history" && this.showhistory){
if(this.dataSouce && this.dataSouce.length>0){
for(var i=0;i<this.dataSouce.length;i++){
......
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