|
@@ -27,11 +27,6 @@
|
|
<div class="layui-row layui-col-space15">
|
|
<div class="layui-row layui-col-space15">
|
|
<div class="layui-col-md12">
|
|
<div class="layui-col-md12">
|
|
<table class="layui-hide" id="datagrid_customer_vehicle" lay-filter="datagrid-operate"></table>
|
|
<table class="layui-hide" id="datagrid_customer_vehicle" lay-filter="datagrid-operate"></table>
|
|
- <script type="text/html" id="customer_vehicle-operate-bar">
|
|
|
|
- <div class="layui-btn-group">
|
|
|
|
- <a class="layui-btn layui-btn-xs" lay-event="license" >行驶证</a>
|
|
|
|
- </div>
|
|
|
|
- </script>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -56,28 +51,16 @@
|
|
,url: '/customer/vehicle/?customer=' + id
|
|
,url: '/customer/vehicle/?customer=' + id
|
|
,id: 'datagrid_customer_vehicle'
|
|
,id: 'datagrid_customer_vehicle'
|
|
,cols: [[
|
|
,cols: [[
|
|
- {field:'number', title:'车牌号',width: 150}
|
|
|
|
|
|
+ {field:'name', title:'姓名',width: 150}
|
|
|
|
+ ,{field:'tel', title:'电话',width: 150}
|
|
|
|
+ ,{field:'number', title:'车牌号',width: 150}
|
|
|
|
+ ,{field:'vin', title:'车架号',width: 200}
|
|
,{field:'model', title:'车型',width: 150}
|
|
,{field:'model', title:'车型',width: 150}
|
|
- ,{field:'mileage', title:'里程',width: 150}
|
|
|
|
- ,{width:80, align:'center', fixed: 'right', toolbar: '#customer_vehicle-operate-bar'}
|
|
|
|
]]
|
|
]]
|
|
,page:true
|
|
,page:true
|
|
,height: 'full-108'
|
|
,height: 'full-108'
|
|
});
|
|
});
|
|
|
|
|
|
- table.on('tool(datagrid-operate)', function(obj){
|
|
|
|
- var data = obj.data;
|
|
|
|
- if(obj.event === 'license'){
|
|
|
|
- layer.open({
|
|
|
|
- type: 2,
|
|
|
|
- title: data.number + '的行驶证',
|
|
|
|
- shadeClose: false,
|
|
|
|
- area: ['60%', '80%'],
|
|
|
|
- content: 'license.html?img='+data.img_url
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
-
|
|
|
|
});
|
|
});
|
|
</script>
|
|
</script>
|
|
</body>
|
|
</body>
|