文档
测试

customer_time_list

POST
/merchant_info/getAll.action?page=1&rows=200

接口描述

请求后端调取客户期限信息

请求参数

参数名
类型
描述
必填
merchant_info.company_name
文本
客户简称
必填

响应参数

参数名
类型
描述
必填
dataType: "json"
JSON
服务器返回的数据类型
必填

说明 / 示例

$.ajax({ type: "POST", url: url, async:false, cache: false, dataType: "json",//预期服务器返回的数据类型 //contentType: "application/json; charset=utf-8", data : param, success: function (data) { //alert(JSON.stringify(data)); //console.info(data); // if (data.rows.length > 0) { layui.use('table', function () { var table = layui.table; var form = layui.form; var createTable = function () { table.init('demo', tableOptions); }; // console.info(data.rows); //展示已知数据 table.render({ elem: '#demo' , cols: [[ //标题栏 { field: 'id', title: 'ID', width: 60, sort: true } , { field: 'facno', title: '设备编号', width: 100, sort: true} , { field: 'company_name', title: '客户公司名', width: 250, sort: true } , { field: 'company_tel', title: '联系电话', width: 150, sort: true } , { field: 'company_area', title: '客户地址', width: 180, sort: true } , { field: 'account_status', title: '客户状态', width: 100, toolbar: '#statebar' } , { field: 'name_a', title: '告警通知人', width: 100, sort: true } , { field: 'phone_a', title: '告警通知手机', width: 140, sort: true } , { field: '', title: '操作', width: 150, toolbar: '#barDemo' } ]] , data: data.rows , even: true , page: true //是否显示分页 //,limits: [5, 7, 10] , limit: 15 //每页默认显示的数量 });