index.wxml 1.0 KB

12345678910111213141516171819
  1. <navigator url="#" class="{{prefix ? 'node child' : 'node'}}" hover-class="node-hover" hover-start-time="50" hover-stay-time="100" wx:for="{{nodes}}" key="sa_workorder_nodeid" data-item="{{item}}" catch:tap="toWork">
  2. <view class="number">
  3. {{ (prefix ? prefix + '-' : '') + item.rowindex }}.
  4. </view>
  5. <view style="flex: 1;">
  6. <view class="label">
  7. {{ item.workpresetjson.workname }}
  8. </view>
  9. <Nodes wx:if="{{!prefix && item.child.length}}" status='{{status}}' nodes="{{item.child}}" prefix="{{(prefix ? prefix + '-' : '') + item.rowindex}}" />
  10. <block wx:else>
  11. <Yl_Files id="Yl_Files" attinfos='{{item.attinfos}}' />
  12. <view class="stuta">
  13. <view class="tag" style="background-color:{{sColors['未完成']}};" wx:if="{{item.status == '0'}}">未完成</view>
  14. <view class="tag" style="background-color:{{sColors['已完成']}};" wx:if="{{item.status == '1'}}">已完成</view>
  15. <view class="tag" style="background-color:{{sColors['进行中']}};" wx:if="{{item.status == '2'}}">进行中</view>
  16. </view>
  17. </block>
  18. </view>
  19. </navigator>