From dd321e110c7e6c8d0e0efa7c9123cc981e1352c3 Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期三, 21 五月 2025 20:42:34 +0800
Subject: [PATCH] 器具分类:维护页面 代码 设置为超链接,可以跳转到编辑页面
---
WebTM/Properties/PublishProfiles/LAYUI.pubxml.user | 4 ++--
WebTM/views/基础资料/公用基础资料/Gy_MouldType.html | 40 +++++++++++++++++++++++++++-------------
2 files changed, 29 insertions(+), 15 deletions(-)
diff --git a/WebTM/Properties/PublishProfiles/LAYUI.pubxml.user b/WebTM/Properties/PublishProfiles/LAYUI.pubxml.user
index 700b0c5..0467787 100644
--- a/WebTM/Properties/PublishProfiles/LAYUI.pubxml.user
+++ b/WebTM/Properties/PublishProfiles/LAYUI.pubxml.user
@@ -3268,7 +3268,7 @@
<publishTime>04/17/2025 08:09:27</publishTime>
</File>
<File Include="views/鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Add_Edit_Gy_MouldType.html">
- <publishTime>05/21/2025 20:10:54</publishTime>
+ <publishTime>05/21/2025 20:16:42</publishTime>
</File>
<File Include="views/鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Add_Edit_Gy_OrderBackInfo.html">
<publishTime>04/11/2023 16:34:43</publishTime>
@@ -3545,7 +3545,7 @@
<publishTime>10/11/2024 11:32:36</publishTime>
</File>
<File Include="views/鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_MouldType.html">
- <publishTime>05/21/2025 20:14:24</publishTime>
+ <publishTime>05/21/2025 20:41:06</publishTime>
</File>
<File Include="views/鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_MouldType_Excel.html">
<publishTime>10/11/2024 11:32:36</publishTime>
diff --git "a/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Gy_MouldType.html" "b/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Gy_MouldType.html"
index 128a966..a3a6f0e 100644
--- "a/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Gy_MouldType.html"
+++ "b/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Gy_MouldType.html"
@@ -361,23 +361,26 @@
var data = obj.data;
//鍗曟嵁鍙疯秴閾炬帴
- if (obj.event == '鍗曟嵁鍙�') { //妫�鏌� obj.event 鏄惁绛変簬瀛楃涓� '鍗曟嵁鍙�'銆傚鏋滅瓑浜庯紝鍒欐墽琛宨f寰幆
- var linterid = data.hmainid.toString(); //澹版槑鍙橀噺linterid 涓� data.hmainid
+ if (obj.event == '浠g爜') { //妫�鏌� obj.event 鏄惁绛変簬瀛楃涓� '鍗曟嵁鍙�'銆傚鏋滅瓑浜庯紝鍒欐墽琛宨f寰幆
+ var hID = data.HItemID;
+ TagParentId = data.HParentID;
//if (AllowLoadData(sSubStr) != false) {//闈炵┖楠岃瘉
- layer.open({ //浣跨敤 layer鐨刼pen鎵撳紑寮瑰嚭 灞�
- type: 2 //琛ㄧず寮瑰嚭灞傜殑鍐呭鏄竴涓� iframe
+ layer.open({
+ type: 2
, area: ['100%', '100%']
- , title: '缂栬緫' //璁剧疆寮瑰嚭灞傜殑鍚嶅瓧鍜屽彉閲�
- , closeBtn: 1//鏄剧ず鍏抽棴鎸夐挳
+ , title: '缂栬緫妯℃不鍏峰垎绫�'
+ , closeBtn: 1
, shade: 0.6 //閬僵閫忔槑搴�
, maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
, anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
- , content: ['../鍏敤鍩虹璧勬枡/Add_Edit_Gy_MouldType.html?hID=' + linterid + '&HType=Modify&TagParentId=' + TagParentId + '', 'yes']//璁剧疆 iframe 鐨� URL锛孶RL 涓寘鍚簡鏌ヨ鍙傛暟锛屾潵璋冪敤鎵�闇�瑕佺殑鍊�
- , resize: false, //鏄惁鍏佽鐢ㄦ埛璋冩暣寮瑰嚭澶у皬
- end: function () { //褰撳叧闂椂璋冪敤
- get_FastQuery(table, option);
+ , content: ['../鍏敤鍩虹璧勬枡/Add_Edit_Gy_MouldType.html?hID=' + hID + '&HType=Modify&TagParentId=' + TagParentId + '', 'yes']
+
+ , resize: false,
+ end: function () {
+ //鍒锋柊椤甸潰,
+ location.reload();
}
- , cancel: function () { //鐐瑰嚮鍙栨秷鏃朵娇鐢ㄥ洖璋�
+ , cancel: function () {
//$(".layui-btn").removeClass("layui-btn-disabled");
}
})
@@ -415,7 +418,14 @@
col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, totalRow: true, width: 120 });
} else if (data[i].name == '鍗曟嵁鍙�') {
col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, width: 200, event: '鍗曟嵁鍙�' });
- } else {
+ } else if (data[i].name == 'HNumber') {
+ col.push({
+ field: data[i].id, title: data[i].name, align: 'center', sort: true, width: 200, event: '浠g爜', templet: function (d) {
+ return '<span style="color: blue;">' + d.HNumber + '</span>'
+ }, style: 'cursor: pointer;'
+ });
+ }
+ else {
switch (data[i].Type) {
//int
case 'DateTime':
@@ -435,7 +445,11 @@
{ type: 'checkbox', fixed: 'left', totalRowText: '鍚堣琛�' }
, { field: 'HItemID', title: 'HItemID', sort: true, hide: true, sort: true }
, { field: 'HParentID', title: 'HParentID', sort: true, hide: true, sort: true }
- , { field: 'HNumber', title: '浠g爜', width: 200, sort: true }
+ , {
+ field: 'HNumber', title: '浠g爜', width: 200, sort: true, event: '浠g爜', templet: function (d) {
+ return '<span style="color: blue;">' + d.HNumber + '</span>'
+ }, style: 'cursor: pointer;'
+ }
, { field: 'HName', title: '鍚嶇О', width: 200, sort: true }
, { field: 'HLevel', title: '绛夌骇', width: 200, sort: true }
, { field: 'HEndFlag', title: '鏄庣粏鏍囪', width: 200, sort: true }
--
Gitblit v1.9.1