Commit 41b593da by 蒋勇

Merge branch 'bigdata' of gitlab.gongsibao.com:jiangyong/zhichan into bigdata

parents f83afa7a 3558e855
var tmpl=`
/**说明:添加了获取焦点时显示历史客户的功能 目前应用于agencytmreg页面 */
<div>
<el-select style="width:353px" size="small" :value="value" @change="onchange" v-model="sels" clearable
<el-select style="width:353px" size="small" :value="value" @change="onchange" @blur="blur" v-model="sels" clearable
@focus="focus"
:placeholder="placeHolder"
:default-first-option="isFirstDefault"
......@@ -58,7 +58,7 @@ module.exports=
},
watch:{
value:function(v){
value:function(v,old){
if(v && this.autoComplete){
var k=this.valueField?this.valueField:"id";
this.refwhere={};
......@@ -89,6 +89,9 @@ module.exports=
this.fetchHistoryData();
}
},
blur(e){
this.$emit("input",this.sels,e);
},
fetchHistoryData(){
console.log("this.frombrowser");
console.log(this.frombrowser);
......@@ -174,6 +177,7 @@ module.exports=
},
onchange:function(curval){
console.log(this.sels,curval,"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