Commit 45dc10f4 authored by duxinyuan's avatar duxinyuan

q

parent 1b3d3db5
......@@ -23,4 +23,4 @@
if(!doc.addEventListener) return;
win.addEventListener(resizeEvt, recalc, false);
doc.addEventListener('DOMContentLoaded', recalc, false);
})(document, window);</script><link href=./static/css/app.bc314be39ee1088daded78860f765a08.css rel=stylesheet></head><body><div id=app></div><script src=https://api.tonglianjituan.com/app/js/libs/vue.min.js></script><script src=https://api.tonglianjituan.com/app/js/libs/vue-router.min.js></script><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.1b35a927314506fe4a4f.js></script><script type=text/javascript src=./static/js/app.d5b6112a61eba7d93589.js></script></body></html>
\ No newline at end of file
})(document, window);</script><link href=./static/css/app.305adf706f60a9d465b006f5518530e8.css rel=stylesheet></head><body><div id=app></div><script src=https://api.tonglianjituan.com/app/js/libs/vue.min.js></script><script src=https://api.tonglianjituan.com/app/js/libs/vue-router.min.js></script><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.1b35a927314506fe4a4f.js></script><script type=text/javascript src=./static/js/app.3adece7c63e0e4fd6a6a.js></script></body></html>
\ No newline at end of file
......@@ -5,8 +5,9 @@
<div class="search_area" style="padding-left:.1rem;margin-top:0.1rem;">
<myDatepicker @change="changeTime" :date="startTime" :option="multiOption" :limit="limit"></myDatepicker> -
<myDatepicker @change="changeTime1" :date="endtime" :option="timeoption" :limit="limit"></myDatepicker>
<input @change="changeStr1" style="padding:.1rem .05rem ;line-height: 1;border :1px solid #eeeeee;width :1rem"placeholder="客户ID">
<input @change="changeStr2" style="padding:.1rem .05rem ;line-height: 1;border :1px solid #eeeeee;width :1.1rem"placeholder="房东编号">
<!--@change="changeStr2"-->
<input v-model="input1" style="padding:.1rem .05rem ;line-height: 1;border :1px solid #eeeeee;width :1rem"placeholder="客户ID">
<input v-model="input2" style="padding:.1rem .05rem ;line-height: 1;border :1px solid #eeeeee;width :1.1rem"placeholder="房东编号">
<div style="color : #ffffff; border-radius:.05rem;width :.88rem ;height : 0.35rem;background-color : #ff8018;float:right;margin-right:.25rem;text-align:center;padding:.1rem .05rem ;">
<span @click="searchInfo">筛选</span>
</div>
......@@ -184,7 +185,10 @@
intoID : '' ,
userType : 0,
i:0,
pageNo : 1
pageNo : 1,
allow : true ,
input1 : "",
input2 : ""
}
},
created() {
......@@ -216,6 +220,7 @@
searchInfo : function(){
var that = this ;
this.pageNo = 1 ;
that.items = [] ;
that.initData();
},
initThisDay : function(date){
......@@ -240,20 +245,68 @@
},
changeStr1 : function(a,b,c){
var that = this ;
if ( that.userType == 1 && that.intoID != "") {
layer.tipsX("仅可以填写客户ID或房东编号");
that.allow = false;
return false ;
}
that.userType = 0 ;
if( a.path[0].value == "" ){
that.userType = 0 ;
that.intoID = a;
// that.allow = false;
// return false ;
}
if (that.intoID == "" && a.path[0].value== "") {
that.allow = true ;
}
that.allow = true ;
that.intoID = a.path[0].value;
},
changeStr2 : function(a,b,c){
var that = this ;
if ( that.userType == 0 && that.intoID != "") {
layer.tipsX("仅可以填写客户ID或房东编号");
that.allow = false;
return false ;
}
if( a.path[0].value == "" ){
that.userType = 0 ;
// that.allow = false ;
// return false ;
}
if (that.intoID == "" && a.path[0].value== "") {
that.allow = true ;
}
that.allow = true ;
that.userType = 1 ;
that.intoID = a
that.intoID = a.path[0].value
},
initData : function(){
var that = this ;
var inp1 = that.input1;
var inp2 = that.input2;
console.log(inp1);
console.log(inp2);
if (inp1 == "" && inp2 == "") {
var status = 0;
var id = "";
} else if (inp1 == "" && inp2 != "") {
var status = 1;
var id = inp2;
} else if (inp1 != "" && inp2 == "") {
var status = 0;
var id = inp1;
} else if (inp1 != "" && inp2 != "") {
layer.tipsX("仅可以填写客户ID或房东编号");
return false ;
} else {
var status =0
var id = "";
}
this.isLoading = false ;
var startTime = that.startTime0 ;
var endTime = that.endTime0;
var id = that.intoID;
// var id = that.intoID;
var startTimeArr = startTime.split("-");
var startTimeStr = startTimeArr[0]+startTimeArr[1]+startTimeArr[2]-0;
var endTimeArr = endTime.split("-");
......@@ -269,7 +322,7 @@
"agents_id" : that.urlParams.agents_id ,
'AuthToken' : that.urlParams.token,
"users_id" : id,
"users_type" : that.userType,
"users_type" : status,//that.userType,
'pageNo' : pageNo,
"pageSize" : 30
}
......
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