57 lines
1.7 KiB
HTML
57 lines
1.7 KiB
HTML
<html login="false" auth="false">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>热线等级</title>
|
|
</head>
|
|
<body>
|
|
<div widget="toolbar" style="padding:5px;border:0;">
|
|
|
|
</div>
|
|
<div widget="autosize">
|
|
<div widget="datagrid" name="grid" style="width: 100%; height: 100%;" url="rush/hot/getlist">
|
|
<div type="indexcolumn" width="35" header="序号"></div>
|
|
<div field="id" visible="id"></div>
|
|
<div field="khid" visible="id"></div>
|
|
<div field="custname" width="60" header="客户名称" align="center"></div>
|
|
<div field="custtaxno" width="60" header="客户税号" align="center"></div>
|
|
<div field="createdate" width="60" header="创建日期" align="center"></div>
|
|
<div field="mobile" width="50" header="联系电话" align="center"></div>
|
|
<div field="enddate" width="35" header="到期日期" align="center"></div>
|
|
<div field="orgname" width="50" header="分公司" align="center"></div>
|
|
<div field="state" width="30" header="状态" renderer="statetype" align="center"></div>
|
|
<div field="mlevel" width="30" header="等级" align="center"></div>
|
|
<div field="mprice" width="40" header="金额" align="center"></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
|
|
<script type="text/javascript">
|
|
|
|
var grid = aos.get('grid');
|
|
function init(params) {
|
|
var grid = aos.get('grid');
|
|
|
|
grid.load(params);
|
|
}
|
|
|
|
|
|
|
|
|
|
function statetype(e) {
|
|
var row = e.row;
|
|
var value = row.state;
|
|
if (value == '0') {
|
|
return '<p style="color:red;">无效</p>';
|
|
}
|
|
if (value == '1') {
|
|
return '<p style="color:green;">有效</p>';
|
|
|
|
} else {
|
|
return value;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
</script>
|
|
</html> |