|
component="$UI/system/components/justep/list/list" 组件,自定义 ACTION 查询 在本机测试和本机打包APP测试没有发现数据乱跳情况,放部署服务器上后,第40行和41行总是变化,有时是同一个人,有时跳成另一个人.程序是同一套,后台数据库数据无修改新增的情况下测试的,帮查看一下原因,谢谢
Model.prototype.zybrCustomRefresh = function(event){
//判断是否登陆
var userLocal = (localStorage.getItem("userUUID") && JSON.parse(localStorage.getItem("userUUID"))) || null;
if (userLocal) {
user_id=userLocal.user_id;
user_name=userLocal.user_name;
user_role=userLocal.user_role;
user_jgdm=userLocal.user_jgdm;
var v_jgdm = $.trim(this.getElementByXid('f_jgdm').value) === "" ?user_jgdm:this.getElementByXid('f_jgdm').value;
var v_ksdm=$.trim(this.getElementByXid('f_ksdm').value) === "" ?"%":this.getElementByXid('f_ksdm').value;
var zybrData = this.comp('zybrData');
justep.Baas.sendRequest({
"url" : "/jg/Cxtj",
"action" : "cx_zybr_color",
"async" : false,
"params" : {
"zysj" : justep.Date.toString(new Date(),'yyyy-MM-dd'),
"user_id" : user_id,
"jgdm" : v_jgdm,
"ksdm" : v_ksdm,
"columns" : Baas.getDataColumns(event.source),
"limit" : event.limit,
"offset" : event.offset
},
"success" : function(resultData) {
var append = event.options && event.options.append;
zybrData.loadData(resultData, append);
}
});
} else {
this.getParent().comp("loginWinDialog").open(); //进入登陆页面
}
};
<div class="x-scroll-content" xid="div19">
<table style="text-align:center;" component="$UI/system/components/justep/list/list" class="x-list table" xid="zybrList" data="zybrData" limit="-1" autoLoad="true" disablePullToRefresh="true" disableInfiniteLoad="false">
<thead xid="thead1">
<tr xid="tr1">
<th xid="default11">序号</th>
<th xid="default3">姓名</th>
<th xid="default7">性别</th>
<th xid="default10">入院时间</th>
<th xid="default2">床号</th>
<th xid="default5">操作</th>
</tr>
</thead>
<tbody class="x-list-template x-min-height" xid="listTemplate1" componentname="$UI/system/components/justep/list/list#listTemplate" id="undefined_listTemplate1">
<tr xid="tr2" class="x-min-height" componentname="tr" id="undefined_tr2" bind-css='{"tr-all":val("zl")=="1" && val("ws")=="1" ,"tr-zl":val("zl")=="1" && val("ws")=="0" ,"tr-ws":val("zl")=="0" && val("ws")=="1","tr-red":val("zl")=="0" && val("ws")=="0" }'>
<td xid="td3" bind-text="$index()+1" style="display:table-cell; vertical-align:middle" bind-click="listLineClick">1</td>
<td xid="td3" bind-click="listLineClick">
<div component="$UI/system/components/justep/output/output" class="x-output" xid="output9" bind-ref='ref("xm")' bind-css='{"font-red":val("bq")=="1"}'></div></td>
<td xid="td3">
<div component="$UI/system/components/justep/output/output" class="x-output" xid="output10" bind-ref='ref("xb")'></div></td>
<td xid="td3">
<div component="$UI/system/components/justep/output/output" class="x-output" xid="output3" bind-ref='ref("rysj")' format="yyyy-MM-dd"></div></td>
<td xid="td3">
<div component="$UI/system/components/justep/output/output" class="x-output" xid="output11" bind-ref='ref("ch")'></div></td>
<td xid="td3">
<a component="$UI/system/components/justep/button/button" class="btn btn-link btn-icon-left btn-only-icon" label="操作" xid="button5" icon="linear linear-camera">
<i xid="i11" class="linear linear-camera"></i>
<span xid="span23">操作</span></a></td>
</tr> </tbody> </table> </div>
|
|