起步软件技术论坛
搜索
 找回密码
 注册

QQ登录

只需一步,快速开始

楼主: zzqqstc

[结贴] radioGroup 设置 item报错

[复制链接]

87

主题

250

帖子

660

积分

高级会员

Rank: 4

积分
660
QQ
 楼主| 发表于 2017-3-23 14:13:47 | 显示全部楼层

<?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:208px;left:769px;">
  <div component="$UI/system/components/justep/data/baasData" autoLoad="true" xid="wjData" queryAction="queryVote" saveAction="saveVote" url="/justep/wj_action" tableName="vote" idColumn="id"><column label="序号" name="id" type="String" xid="default1"></column>
  <column label="地址" name="ip" type="String" xid="default2"></column>
  <column label="11" name="11" type="String" xid="default3"></column>
  <column label="12" name="12" type="String" xid="default4"></column>
  <column label="13" name="13" type="String" xid="default5"></column>
  <column label="14" name="14" type="String" xid="default6"></column>
  <column label="15" name="15" type="String" xid="default7"></column>
  <column label="16" name="16" type="String" xid="default8"></column>
  <column label="17" name="17" type="String" xid="default9"></column>
  <column label="18" name="18" type="String" xid="default10"></column>
  <column label="19" name="19" type="String" xid="default11"></column></div>
  <div component="$UI/system/components/justep/data/data" autoLoad="true" xid="PData" idColumn="id"><column label="部门" name="dep" type="String" xid="xid1"></column>
  <column label="编号" name="id" type="String" xid="xid2"></column>
  <data xid="default12">[{&quot;dep&quot;:&quot;市场开发处&quot;,&quot;id&quot;:&quot;1&quot;},{&quot;dep&quot;:&quot;国际业务处&quot;,&quot;id&quot;:&quot;2&quot;}]</data></div></div>  
  <div component="$UI/system/components/justep/panel/panel"
    class="x-panel x-full" xid="panel1">
      <div class="x-panel-top" xid="top1">
        <div component="$UI/system/components/justep/titleBar/titleBar" title="管理部门服务满意度调查问卷"
          class="x-titlebar">
          <div class="x-titlebar-left">
            </div>  
          <div class="x-titlebar-title">管理部门服务满意度调查问卷</div>  
          <div class="x-titlebar-right reverse">
          </div>
        </div>
      </div>  
    <div class="x-panel-content" xid="content1" _xid="C775D4C8B4F0000172D116001490E1C0" style="bottom: 0px;height:70%;width:1800px;"><div component="$UI/system/components/justep/list/list" class="x-list" xid="list2" data="wjData">
   <ul class="x-list-template" xid="listTemplateUl1">
    <li xid="li2"><div component="$UI/system/components/justep/row/row" class="x-row" xid="row1">
   <div class="x-col" xid="col1"></div>
   </div>
  <div component="$UI/system/components/justep/row/row" class="x-row" xid="row2">
   <div class="x-col" xid="col2">尊敬的各位领导及同事:<br/>
您们好!感谢大家一直以来对公司管理工作的关心、支持、理解!为了改善与提高公司管理服务质量,让员工能充分享有对公司管理工作评价、反馈建议的权利,公司特制定了此表,将按季度征询生产、经营相关部门对管理部门的综合评价,请您在百忙之中抽出宝贵时间填写此表!</div></div><div component="$UI/system/components/justep/row/row" class="x-row" xid="row3">
   <div class="x-col" xid="col3"></div></div><div component="$UI/system/components/justep/row/row" class="x-row" xid="row4" style="background-color:#C0C0C0;">
   <div class="x-col" xid="col7"><label xid="label4"><![CDATA[填报人信息]]></label></div></div><div component="$UI/system/components/justep/row/row" class="x-row" xid="row5" style="background-color:#C0C0C0;">
   <div class="x-col" xid="col8"><label xid="label7"><![CDATA[归属部门]]></label></div>
  <div class="x-col" xid="col13"><label xid="label8"><![CDATA[工作类型]]></label></div>
  <div class="x-col" xid="col14"><label xid="label9"><![CDATA[工作年限(自入院起)]]></label></div>
  <div class="x-col" xid="col15"><label xid="label10"><![CDATA[是否担任部门行政副职、二级项目经理及以上职务]]></label></div>
  <div class="x-col" xid="col16"><label xid="label11"><![CDATA[填报时间]]></label></div></div><div component="$UI/system/components/justep/row/row" class="x-row" xid="row6">
   <div class="x-col" xid="col9"><span component="$UI/system/components/justep/select/radioGroup" class="x-radio-group x-radio-group-vertical" xid="radioGroup2" bind-itemset="$model.PData" bind-itemsetValue='ref("dep")' bind-itemsetLabel='ref("dep")'></span></div>
  <div class="x-col" xid="col10"><span component="$UI/system/components/justep/select/radioGroup" class="x-radio-group x-radio-group-vertical" xid="radioGroup3"></span></div>
  <div class="x-col" xid="col11"><input type="text" value="" xid="input3"></input></div>
  <div class="x-col" xid="col12"><span component="$UI/system/components/justep/select/radioGroup" class="x-radio-group x-radio-group-vertical" xid="radioGroup4"></span></div>
  <div class="x-col" xid="col17"><input type="text" value="" xid="input4"></input></div></div><div component="$UI/system/components/justep/row/row" class="x-row" xid="row40">
   <div class="x-col" xid="col4"><span component="$UI/system/components/justep/select/radioGroup" class="x-radio-group x-radio-group-vertical" xid="radioGroup1" bind-ref='ref("11")'></span></div>
   <div class="x-col" xid="col5"></div>
   <div class="x-col" xid="col6"></div></div>
  </li></ul> </div></div>
  </div>
</div>
回复 支持 反对

使用道具 举报

87

主题

250

帖子

660

积分

高级会员

Rank: 4

积分
660
QQ
 楼主| 发表于 2017-3-23 14:15:10 | 显示全部楼层
本帖最后由 zzqqstc 于 2017-3-23 14:16 编辑

jishuang 发表于 2017-3-23 14:10
发完整的.w




回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
35920
发表于 2017-3-23 14:24:27 | 显示全部楼层
radioGroup中的bind-itemset都没有设置
data.png
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

87

主题

250

帖子

660

积分

高级会员

Rank: 4

积分
660
QQ
 楼主| 发表于 2017-3-23 14:36:15 | 显示全部楼层
jishuang 发表于 2017-3-23 14:24
radioGroup中的bind-itemset都没有设置
真设了  还是错的


<?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:208px;left:769px;">
  <div component="$UI/system/components/justep/data/baasData" autoLoad="true" xid="wjData" queryAction="queryVote" saveAction="saveVote" url="/justep/wj_action" tableName="vote" idColumn="id"><column label="序号" name="id" type="String" xid="default1"></column>
  <column label="地址" name="ip" type="String" xid="default2"></column>
  <column label="11" name="11" type="String" xid="default3"></column>
  <column label="12" name="12" type="String" xid="default4"></column>
  <column label="13" name="13" type="String" xid="default5"></column>
  <column label="14" name="14" type="String" xid="default6"></column>
  <column label="15" name="15" type="String" xid="default7"></column>
  <column label="16" name="16" type="String" xid="default8"></column>
  <column label="17" name="17" type="String" xid="default9"></column>
  <column label="18" name="18" type="String" xid="default10"></column>
  <column label="19" name="19" type="String" xid="default11"></column></div>
  <div component="$UI/system/components/justep/data/data" autoLoad="true" xid="PData" idColumn="id"><column label="部门" name="dep" type="String" xid="xid1"></column>
  <column label="编号" name="id" type="String" xid="xid2"></column>
  <data xid="default12">[{"dep":"市场开发处","id":"1"},{"dep":"国际业务处","id":"2"}]</data></div></div>  
  <div component="$UI/system/components/justep/panel/panel"
    class="x-panel x-full" xid="panel1">
      <div class="x-panel-top" xid="top1">
        <div component="$UI/system/components/justep/titleBar/titleBar" title="管理部门服务满意度调查问卷"
          class="x-titlebar">
          <div class="x-titlebar-left">
            </div>  
          <div class="x-titlebar-title">管理部门服务满意度调查问卷</div>  
          <div class="x-titlebar-right reverse">
          </div>
        </div>
      </div>  
    <div class="x-panel-content" xid="content1" _xid="C775D4C8B4F0000172D116001490E1C0" style="bottom: 0px;height:70%;width:1800px;"><div component="$UI/system/components/justep/list/list" class="x-list" xid="list2" data="wjData">
   <ul class="x-list-template" xid="listTemplateUl1">
    <li xid="li2"><div component="$UI/system/components/justep/row/row" class="x-row" xid="row1">
   <div class="x-col" xid="col1"></div>
   </div>
  <div component="$UI/system/components/justep/row/row" class="x-row" xid="row2">
   <div class="x-col" xid="col2">尊敬的各位领导及同事:<br/>
您们好!感谢大家一直以来对公司管理工作的关心、支持、理解!为了改善与提高公司管理服务质量,让员工能充分享有对公司管理工作评价、反馈建议的权利,公司特制定了此表,将按季度征询生产、经营相关部门对管理部门的综合评价,请您在百忙之中抽出宝贵时间填写此表!</div></div><div component="$UI/system/components/justep/row/row" class="x-row" xid="row3">
   <div class="x-col" xid="col3"></div></div><div component="$UI/system/components/justep/row/row" class="x-row" xid="row4" style="background-color:#C0C0C0;">
   <div class="x-col" xid="col7"><label xid="label4"><![CDATA[填报人信息]]></label></div></div><div component="$UI/system/components/justep/row/row" class="x-row" xid="row5" style="background-color:#C0C0C0;">
   <div class="x-col" xid="col8"><label xid="label7"><![CDATA[归属部门]]></label></div>
  <div class="x-col" xid="col13"><label xid="label8"><![CDATA[工作类型]]></label></div>
  <div class="x-col" xid="col14"><label xid="label9"><![CDATA[工作年限(自入院起)]]></label></div>
  <div class="x-col" xid="col15"><label xid="label10"><![CDATA[是否担任部门行政副职、二级项目经理及以上职务]]></label></div>
  <div class="x-col" xid="col16"><label xid="label11"><![CDATA[填报时间]]></label></div></div><div component="$UI/system/components/justep/row/row" class="x-row" xid="row6">
   <div class="x-col" xid="col9"><span component="$UI/system/components/justep/select/radioGroup" class="x-radio-group x-radio-group-vertical" xid="radioGroup2" bind-itemset="$model.PData" bind-itemsetValue='ref("dep")' bind-itemsetLabel='ref("dep")' bind-ref='ref("11")'></span></div>
  <div class="x-col" xid="col10"></div>
  <div class="x-col" xid="col11"></div>
  <div class="x-col" xid="col12"></div>
  <div class="x-col" xid="col17"></div></div><div component="$UI/system/components/justep/row/row" class="x-row" xid="row40">
   <div class="x-col" xid="col4"><span component="$UI/system/components/justep/select/radioGroup" class="x-radio-group x-radio-group-vertical" xid="radioGroup1" bind-ref='ref("11")'></span></div>
   <div class="x-col" xid="col5"></div>
   <div class="x-col" xid="col6"></div></div>
  </li></ul> </div></div>
  </div>
</div>
def.png
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
35920
发表于 2017-3-23 14:44:03 | 显示全部楼层
确认放的都设置了?
radio.png
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

87

主题

250

帖子

660

积分

高级会员

Rank: 4

积分
660
QQ
 楼主| 发表于 2017-3-23 14:49:58 | 显示全部楼层
jishuang 发表于 2017-3-23 14:44
确认放的都设置了?

删掉多余的radioGroup 组件,还是报错

其实不设置 itemset  是不会报错的

Unable to process binding "foreach: function (){return {data:$model.PData.datas,afterRender:$model.comp($element)['_doUpdate'].bind($model.comp($element))} }"
Message: Cannot read property 'datas' of undefined

<?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:208px;left:769px;">
  <div component="$UI/system/components/justep/data/baasData" autoLoad="true" xid="wjData" queryAction="queryVote" saveAction="saveVote" url="/justep/wj_action" tableName="vote" idColumn="id"><column label="序号" name="id" type="String" xid="default1"></column>
  <column label="地址" name="ip" type="String" xid="default2"></column>
  <column label="11" name="11" type="String" xid="default3"></column>
  <column label="12" name="12" type="String" xid="default4"></column>
  <column label="13" name="13" type="String" xid="default5"></column>
  <column label="14" name="14" type="String" xid="default6"></column>
  <column label="15" name="15" type="String" xid="default7"></column>
  <column label="16" name="16" type="String" xid="default8"></column>
  <column label="17" name="17" type="String" xid="default9"></column>
  <column label="18" name="18" type="String" xid="default10"></column>
  <column label="19" name="19" type="String" xid="default11"></column></div>
  <div component="$UI/system/components/justep/data/data" autoLoad="true" xid="PData" idColumn="id"><column label="部门" name="dep" type="String" xid="xid1"></column>
  <column label="编号" name="id" type="String" xid="xid2"></column>
  <data xid="default12">[{"dep":"市场开发处","id":"1"},{"dep":"国际业务处","id":"2"}]</data></div></div>  
  <div component="$UI/system/components/justep/panel/panel"
    class="x-panel x-full" xid="panel1">
      <div class="x-panel-top" xid="top1">
        <div component="$UI/system/components/justep/titleBar/titleBar" title="管理部门服务满意度调查问卷"
          class="x-titlebar">
          <div class="x-titlebar-left">
            </div>  
          <div class="x-titlebar-title">管理部门服务满意度调查问卷</div>  
          <div class="x-titlebar-right reverse">
          </div>
        </div>
      </div>  
    <div class="x-panel-content" xid="content1" _xid="C775D4C8B4F0000172D116001490E1C0" style="bottom: 0px;height:70%;width:1800px;"><div component="$UI/system/components/justep/list/list" class="x-list" xid="list2" data="wjData">
   <ul class="x-list-template" xid="listTemplateUl1">
    <li xid="li2"><div component="$UI/system/components/justep/row/row" class="x-row" xid="row1">
   <div class="x-col" xid="col1"></div>
   </div>
  <div component="$UI/system/components/justep/row/row" class="x-row" xid="row2">
   <div class="x-col" xid="col2">尊敬的各位领导及同事:<br/>
您们好!感谢大家一直以来对公司管理工作的关心、支持、理解!为了改善与提高公司管理服务质量,让员工能充分享有对公司管理工作评价、反馈建议的权利,公司特制定了此表,将按季度征询生产、经营相关部门对管理部门的综合评价,请您在百忙之中抽出宝贵时间填写此表!</div></div><div component="$UI/system/components/justep/row/row" class="x-row" xid="row3">
   <div class="x-col" xid="col3"></div></div><div component="$UI/system/components/justep/row/row" class="x-row" xid="row4" style="background-color:#C0C0C0;">
   <div class="x-col" xid="col7"><label xid="label4"><![CDATA[填报人信息]]></label></div></div><div component="$UI/system/components/justep/row/row" class="x-row" xid="row5" style="background-color:#C0C0C0;">
   <div class="x-col" xid="col8"><label xid="label7"><![CDATA[归属部门]]></label></div>
  <div class="x-col" xid="col13"><label xid="label8"><![CDATA[工作类型]]></label></div>
  <div class="x-col" xid="col14"><label xid="label9"><![CDATA[工作年限(自入院起)]]></label></div>
  <div class="x-col" xid="col15"><label xid="label10"><![CDATA[是否担任部门行政副职、二级项目经理及以上职务]]></label></div>
  <div class="x-col" xid="col16"><label xid="label11"><![CDATA[填报时间]]></label></div></div><div component="$UI/system/components/justep/row/row" class="x-row" xid="row6">
   <div class="x-col" xid="col9"><span component="$UI/system/components/justep/select/radioGroup" class="x-radio-group x-radio-group-vertical" xid="radioGroup2" bind-itemset="$model.PData" bind-itemsetValue='ref("dep")' bind-itemsetLabel='ref("dep")' bind-ref='ref("11")'></span></div>
  <div class="x-col" xid="col10"></div>
  <div class="x-col" xid="col11"></div>
  <div class="x-col" xid="col12"></div>
  <div class="x-col" xid="col17"></div></div><div component="$UI/system/components/justep/row/row" class="x-row" xid="row40">
   <div class="x-col" xid="col4"></div>
   <div class="x-col" xid="col5"></div>
   <div class="x-col" xid="col6"></div></div>
  </li></ul> </div></div>
  </div>
</div>
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
35920
发表于 2017-3-23 14:57:50 | 显示全部楼层
运行看看报错吗?

mainActivity.w

5.13 KB, 下载次数: 41

远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

87

主题

250

帖子

660

积分

高级会员

Rank: 4

积分
660
QQ
 楼主| 发表于 2017-3-23 15:10:11 | 显示全部楼层
jishuang 发表于 2017-3-23 14:57
运行看看报错吗?

怎么回事,把baas的调用注掉了?
而且cdata的定义也不一样了
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
35920
发表于 2017-3-23 15:23:52 | 显示全部楼层
报错的是bind-itemset设置的data

我这没有你的baasdata的资源肯定不能运行啊
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

87

主题

250

帖子

660

积分

高级会员

Rank: 4

积分
660
QQ
 楼主| 发表于 2017-3-23 15:31:51 | 显示全部楼层
本帖最后由 zzqqstc 于 2017-3-23 15:41 编辑
jishuang 发表于 2017-3-23 15:23
报错的是bind-itemset设置的data

我这没有你的baasdata的资源肯定不能运行啊

是cdata定义得有问题?
更奇怪的是,把你给的代码全部拷贝到  index.w里运行,还是报错,你的就没问题。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|X3技术论坛|Justep Inc.    

GMT+8, 2024-5-4 06:33 , Processed in 0.061539 second(s), 25 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表