From fe1a4ed8d3a161bc555d4b3fbbce3a7e10a5fbcd Mon Sep 17 00:00:00 2001
From: wtt <1985833171@qq.com>
Date: 星期四, 21 八月 2025 11:12:07 +0800
Subject: [PATCH] Merge branch 'master' of http://101.37.171.70:10101/r/MES-WEB-LayUI
---
WebTM/views/Baseset/SRM_OpenTmpList.html | 33 +++++++++++++++++++++------------
1 files changed, 21 insertions(+), 12 deletions(-)
diff --git a/WebTM/views/Baseset/SRM_OpenTmpList.html b/WebTM/views/Baseset/SRM_OpenTmpList.html
index b02e4d3..f7fa5ab 100644
--- a/WebTM/views/Baseset/SRM_OpenTmpList.html
+++ b/WebTM/views/Baseset/SRM_OpenTmpList.html
@@ -35,7 +35,7 @@
<div class="layui-tab-content">
<div class="layui-tab-item layui-show">
- <table class="layui-hide" id="mainTable"></table>
+ <table class="layui-hide" id="mainTable" lay-filter="mainTable"></table>
</div>
</div>
</div>
@@ -66,10 +66,10 @@
, loading: false
, cols: [[
{ type: 'radio' }
- , { field: 'HItemID', width: 150, title: 'ID', hide: true }
- , { field: 'HNumber', width: 150, title: '妯″潡浠g爜' }
- , { field: 'HName', width: 150, title: '妯″潡鍚嶇О', hide: true }
- , { field: '妯℃澘鍚嶇О', width: 150, title: '妯℃澘鍚嶇О' }
+ , { field: 'HItemID', title: 'ID', hide: true }
+ , { field: 'HNumber', title: '妯″潡浠g爜' }
+ , { field: 'HName', title: '妯″潡鍚嶇О', hide: true }
+ , { field: '妯℃澘鍚嶇О', title: '妯℃澘鍚嶇О' }
]]
, page: true
, limits: [50, 500, 5000, 50000]
@@ -78,12 +78,21 @@
DisPlay_HideColumn();
- table.on('row(mainTable)', function (obj) {////娉細test鏄痶able鍘熷瀹瑰櫒鐨勫睘鎬� lay-filter="瀵瑰簲鐨勫��"
- obj.tr.addClass('layui-table-click').siblings().removeClass('layui-table-click');//閫変腑琛屾牱寮�
- obj.tr.find('input[lay-type="layTableRadio"]').prop("checked", true);
- form.render('radio');
- });
+ //table.on('row(mainTable)', function (obj) {////娉細test鏄痶able鍘熷瀹瑰櫒鐨勫睘鎬� lay-filter="瀵瑰簲鐨勫��"
+ // obj.tr.addClass('layui-table-click').siblings().removeClass('layui-table-click');//閫変腑琛屾牱寮�
+ // obj.tr.find('input[lay-type="layTableRadio"]').prop("checked", true);
+ // form.render('radio');
+ //});
+ //#region 鐐瑰嚮琛岄�変腑楂樹寒
+ table.on('row(mainTable)', function (obj) {
+ //閫変腑琛屾敼鍙橀鑹�
+ $(".layui-table-body tr ").attr({ "style": "background:" }); //鍏朵粬tr鎭㈠鍘熸牱
+ obj.tr.addClass('layui-table-click').siblings().removeClass('layui-table-click'); //閫変腑琛屾牱寮�
+ obj.tr.find('i[class="layui-anim layui-icon"]').trigger("click"); //閫変腑radio鏍峰紡
+ $(obj.tr.selector).attr({ "style": "background:#ceedfa;color:black" }); //鏀瑰彉褰撳墠tr鑳屾櫙棰滆壊鍜屽瓧浣撻鑹�
+ })
+ //#endregion
function getUrlVars() {
var vars = [], hash;
@@ -104,8 +113,8 @@
///鍔犺浇鏄剧ず鏁版嵁
function RoadList(Where) {
var Value = Where;
- if (Value == null) {
- Value = '';
+ if (Value == null || Value == undefined) {
+ Value = "";
}
$.ajax({
type: "get",
--
Gitblit v1.9.1