From 0c1f100e665f191d2f306933f77b7985e77485ce Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期四, 04 一月 2024 11:08:34 +0800
Subject: [PATCH] 1

---
 WebTM/views/系统管理/用户管理/Gy_UserProcess.html |   46 ++++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 44 insertions(+), 2 deletions(-)

diff --git "a/WebTM/views/\347\263\273\347\273\237\347\256\241\347\220\206/\347\224\250\346\210\267\347\256\241\347\220\206/Gy_UserProcess.html" "b/WebTM/views/\347\263\273\347\273\237\347\256\241\347\220\206/\347\224\250\346\210\267\347\256\241\347\220\206/Gy_UserProcess.html"
index 558443e..8a98132 100644
--- "a/WebTM/views/\347\263\273\347\273\237\347\256\241\347\220\206/\347\224\250\346\210\267\347\256\241\347\220\206/Gy_UserProcess.html"
+++ "b/WebTM/views/\347\263\273\347\273\237\347\256\241\347\220\206/\347\224\250\346\210\267\347\256\241\347\220\206/Gy_UserProcess.html"
@@ -39,7 +39,7 @@
         <div class="layui-row layui-col-space15">
             <div class="layui-col-md12">
                 <div class="layui-card">
-                    <form id="form0" class="layui-form" lay-filter="component-form-group" action="">
+                    <form id="form0" class="layui-form"  lay-filter="formData" action="">
                         <div class="layui-card-header">
                             <div class="layui-btn-group">
                                 <button type="button" id="add-btn" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Saver">淇濆瓨</button>
@@ -226,7 +226,7 @@
                     type: 2
                     , skin: 'layui-layer-rim' //鍔犱笂杈规
                     , area: ['100%', '100%']
-                    , title: '鐢ㄦ埛鍏宠仈渚涘簲鍟嗗垪琛�-瀵煎叆'
+                    , title: '鐢ㄦ埛鍏宠仈宸ュ簭鍒楄〃-瀵煎叆'
                     , shift: 0//寮瑰嚭鍔ㄧ敾
                     , content: '../鐢ㄦ埛绠$悊/Gy_UserProcess_Excel.html'
                     , end: function () {
@@ -341,6 +341,48 @@
                     });
             });
 
+            //缂栬緫
+            function set_EditFromGrid(linterid) {
+               
+                set_EditForm(linterid);  //缂栬緫鑾峰彇琛ㄥご
+            }
+            //缂栬緫鍔犺浇琛ㄥご
+            function set_EditForm(linterid) {
+                //鏌ヨ妫�楠屾柟妗堝崟鏄惁瀛樺湪
+                $.ajax({
+                    url: GetWEBURL() + "GetGy_UserProcessDetail",
+                    type: "GET",
+                    data: {
+                        "HID": linterid
+                    },
+                    success: function (result) {
+
+                        if (result.code == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
+                            var data = result.data.h_v_Gy_UserProcess[0];
+                            $("#HItemID").val(data.HItemID);//浠g爜ID
+                            $("#HUserID").val(data.鐢ㄦ埛浠g爜);//鐢ㄦ埛浠g爜
+                            $("#UserName ").val(data.鐢ㄦ埛鍚嶇О);//鐢ㄦ埛鍚嶇О
+                           
+                            layui.form.render();//瀹炴椂娓叉煋閫変腑鍜屼笉閫変腑鐨勬牱寮�,鏈�濂芥坊鍔犺繖鍙ヨ瘽
+                        } else {
+                            layer.alert(result.msg, { icon: 5, btn: ['閫�鍑�'], time: 100000, offset: 't' });
+                        }
+                        var arr = [];
+                        for (var i = 0; i < result.data.h_v_Gy_UserProcess.length; i++) {
+                            arr.push({
+                                "HProcID": result.data.h_v_Gy_UserProcess[i].HProcID,
+                                "HProcNumber": result.data.h_v_Gy_UserProcess[i].宸ュ簭浠g爜,
+                                "HProcName": result.data.h_v_Gy_UserProcess[i].宸ュ簭鍚嶇О,
+                            });
+
+                        }
+                        option.data = arr;
+                        table.render(option);
+                    }, error: function () {
+                        layer.alert("鍙戠敓閿欒!", { icon: 5 });
+                    }
+                });
+            }
             //閫�鍑�
             form.on('submit(Exit)', function (data) {
                 if (OperationType == 1) {

--
Gitblit v1.9.1