app/views/educode_sales/places/index.html.erb in educode_sales-0.5.4 vs app/views/educode_sales/places/index.html.erb in educode_sales-0.5.5
- old
+ new
@@ -15,10 +15,15 @@
<% end %>
<% if can? :destroy, EducodeSales::Place %>
<a class="layui-btn layui-btn-xs layui-btn-danger data-count-delete" lay-event="delete">删除</a>
<% end %>
</script>
+<script type="text/html" id="business_a">
+ <div class="layui-text">
+ <a href="/missions/businesses?place_id={{d.id}}">{{d.businesses_count}}</a>
+ </div>
+</script>
<script type="text/html" id="showchance">
<a href="/missions/businesses" class="layui-table-link">{{ d.chance }}</a>
</script>
@@ -54,23 +59,28 @@
title: '负责区域',
},
{
field: 'businesses_count',
width: 120,
- totalRow:'{{ parseInt(d.TOTAL_NUMS) }}',
- title: '商机'
+ totalRow: true,
+ sort: true,
+ title: '商机',
+ templet: "#business_a",
+
},
{
field: 'amount',
width: 120,
totalRow:true,
- title: '中标'
+ sort: true,
+ title: '中标金额'
},
{
field: 'return_mount',
width: 120,
totalRow:true,
- title: '回款',
+ sort: true,
+ title: '回款金额',
},
{
title: '操作',
width: 120,
toolbar: '#currentTableBar',
\ No newline at end of file