|
楼主 |
发表于 2018-6-26 10:34:30
|
显示全部楼层
<?xml version="1.0" encoding="utf-8"?>
<div xmlns="http://www.w3.org/1999/xhtml" component="$UI/system/components/justep/window/window" design="device:m;" xid="window" class="window">
<div component="$UI/system/components/justep/model/model" xid="model" style="height:auto;top:382px;left:-16px;">
<div component="$UI/system/components/justep/data/bizData" autoLoad="true" xid="bizData1" concept="WoDYY"><creator xid="default5" action="/wuLianWangApp/appSHouYe/logic/action/createWoDYYAction"></creator>
<reader xid="default6" action="/wuLianWangApp/appSHouYe/logic/action/queryWoDYYAction"></reader>
<writer xid="default7" action="/wuLianWangApp/appSHouYe/logic/action/saveWoDYYAction"></writer></div></div>
<div component="$UI/system/components/justep/panel/panel"
class="x-panel x-full text-primary" xid="panel1">
<div class="x-panel-top" height="48" xid="top2"></div><div class="x-panel-top" xid="top1">
</div>
<div class="x-panel-content" xid="content1"><div component="$UI/system/components/justep/row/row" class="x-row" xid="row12">
<div class="x-col" xid="col46"></div>
<div class="x-col" xid="col47"></div>
<div class="x-col" xid="col48"></div></div><div component="$UI/system/components/justep/titleBar/titleBar" title="资讯部" class="x-titlebar">
<div class="x-titlebar-left">
<a component="$UI/system/components/justep/button/button" label="" class="btn btn-link btn-only-icon" icon="icon-chevron-left" xid="backBtn">
<i class="icon-chevron-left" />
<span></span>
</a>
</div>
<div class="x-titlebar-title">资讯部</div>
<div class="x-titlebar-right reverse">
</div>
</div><div xid="div1" style="height:80%;" class="bg-success"><div component="$UI/system/components/justep/row/row" class="x-row" xid="row2">
<div class="x-col" xid="col4">
<a component="$UI/system/components/justep/button/button" class="btn btn-default center-block" label="A1" xid="button1" style="width:52px;">
<i xid="i1"></i>
<span xid="span1">A1</span></a> </div>
<div class="x-col" xid="col5">
<a component="$UI/system/components/justep/button/button" class="btn btn-default center-block" label="A2" xid="button61" style="width:52px;">
<i xid="i61"></i>
<span xid="span61">A2</span></a> </div>
<div class="x-col" xid="col6">
<a component="$UI/system/components/justep/button/button" class="btn btn-default center-block" label="A3" xid="button62" style="width:52px;">
<i xid="i62"></i>
<span xid="span62">A3</span></a> </div>
<div class="x-col" xid="col7">
<a component="$UI/system/components/justep/button/button" class="btn btn-default center-block" label="A4" xid="button63" style="width:52px;">
<i xid="i63"></i>
<span xid="span63">A4</span></a> </div>
<div class="x-col" xid="col8">
<a component="$UI/system/components/justep/button/button" class="btn btn-default center-block" label="A5" xid="button64" style="width:52px;">
<i xid="i64"></i>
<span xid="span64">A5</span></a> </div> </div>
<div component="$UI/system/components/justep/row/row" class="x-row" xid="row3">
<div class="x-col" xid="col12">
<a component="$UI/system/components/justep/button/button" class="btn btn-default center-block" label="A6" xid="button65" style="width:52px;">
<i xid="i65"></i>
<span xid="span65">A6</span></a> </div>
<div component="$UI/system/components/justep/row/row" class="x-row" xid="row11">
<div class="x-col" xid="col45"></div>
<div class="x-col" xid="col44"></div>
<div class="x-col pull-right center-block" xid="col43">
</div> </div>
</div>
</div>
<span component="$UI/system/components/justep/windowDialog/windowDialog" xid="windowDialog1" style="top:20px;left:22px;" src="$UI/wuLianWangApp/appSHouYe/process/appSHouYe/gongweixinxi.w" status="normal" width="80%" height="80%"></span></div>
define(function(require){
var $ = require("jquery");
var justep = require("$UI/system/lib/justep");
var self;
var Model = function(){
this.callParent();
self=this;
};
Model.prototype.modelLoad = function(event){
};
Model.prototype.button1Click = function(event){
// this.comp("windowDialog1").set({top:"50%",left:"50%"});
self.comp("windowDialog1").open();
};
Model.prototype.modelModelConstruct = function(event){
debugger
alert("hahahhhah ")
var zixun=self.comp("bizData1");
var rowID=zixun.getRowID();
// var currentRowID=zixun.getCurrentRowID();
// alert(currentRowID)
var rowa="1";
var tfShiFKX=zixun.getValueByID("tfXingM",rowa);
alert(tfShiFKX)
self.comp("button1").setCSS({
backgroundColor:"red"
});
// var param = new biz.Request.ActionParam();
// param.setString('para_string', "abc");
};
return Model;
});
这是我刚刚试了另外一张表,表里面也有一条数据,但是这哥获取到的bizdata里面还是没有值。显示Array(0)。 中间有一段代码全是按钮 ,我给删除了一部分。
|
|