试验管理

This commit is contained in:
lSun 2024-07-31 15:37:28 +08:00
parent 53b7f0cf03
commit 2c006c49d2
2 changed files with 16 additions and 3 deletions

View File

@ -68,14 +68,18 @@ function initTable(dataList, limit, page) {
limit: limit, limit: limit,
cols: [ cols: [
[ [
{type: 'checkbox', fixed: 'left'}, {type: 'checkbox', fixed: 'left',align: "center"},
//表头 //表头
{title: "序号", width: 80, unresize: true, align: "center", {title: "序号", width: 80, unresize: true, align: "center",
templet: function (d) { templet: function (d) {
return (page - 1) * limit + d.LAY_NUM; return (page - 1) * limit + d.LAY_NUM;
} }
}, },
{field: "customName", title: "送样单位", unresize: true, align: "center",width: 150}, // {field: "customName", title: "送样单位", unresize: true, align: "center",width: 260},
{field: "customName", width:200,title: "送样单位", unresize: true, align: "center", templet: function (d) {
return `<div class="ellipsis" title="${d.customName}">${d.customName}</div>`;
}},
{field: "sampleTime", title: "送样时间", unresize: true, align: "center",width: 150}, {field: "sampleTime", title: "送样时间", unresize: true, align: "center",width: 150},
{field: "sampleDev", title: "送样设备", unresize: true, align: "center",width: 150}, {field: "sampleDev", title: "送样设备", unresize: true, align: "center",width: 150},
{field: "customNum", title: "送样数量", unresize: true, align: "center",width: 150}, {field: "customNum", title: "送样数量", unresize: true, align: "center",width: 150},
@ -83,7 +87,7 @@ function initTable(dataList, limit, page) {
{field: "sampleDate", title: "收样时间", unresize: true, align: "center",width: 150}, {field: "sampleDate", title: "收样时间", unresize: true, align: "center",width: 150},
{field: "dispatchUserName", title: "派工人", unresize: true, align: "center",width: 150}, {field: "dispatchUserName", title: "派工人", unresize: true, align: "center",width: 150},
{field: "teamName", title: "试验班组", unresize: true, align: "center",width: 150}, {field: "teamName", title: "试验班组", unresize: true, align: "center",width: 150},
{field: "", title: "状态", unresize: true, align: "center",width: 150, {field: "", title: "状态", unresize: true, align: "center",width: 100,
templet: function (d) { templet: function (d) {
if (d.audtiStatus == "待试验") { if (d.audtiStatus == "待试验") {
var html = " <span style='color: #9BB0FF'>待试验</span>"; var html = " <span style='color: #9BB0FF'>待试验</span>";

View File

@ -15,6 +15,15 @@
<script src="../../../js/ajaxRequest.js"></script> <script src="../../../js/ajaxRequest.js"></script>
<script type="text/javascript" src="../../../js/my/permission.js"></script> <script type="text/javascript" src="../../../js/my/permission.js"></script>
<title>试验管理</title> <title>试验管理</title>
<style>
.ellipsis {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 150px; /* 根据需要调整宽度 */
display: block;
}
</style>
</head> </head>
<body> <body>
<div id="content"> <div id="content">