From 1a23e4c22444224346cb4ac1adde4f5cf94bed3d Mon Sep 17 00:00:00 2001
From: yangle <admin@YINMOU>
Date: 星期二, 26 九月 2023 09:11:31 +0800
Subject: [PATCH] 增加颜色色号

---
 WebTM/views/基础资料/公用基础资料/Add_Edit_Gy_Material.html |   27 ++++++++++++++++++++++++++-
 1 files changed, 26 insertions(+), 1 deletions(-)

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/Add_Edit_Gy_Material.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/Add_Edit_Gy_Material.html"
index 7a37b9e..b2c137b 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/Add_Edit_Gy_Material.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/Add_Edit_Gy_Material.html"
@@ -214,6 +214,13 @@
 
                                             <div class="layui-row">
                                                 <div class="layui-inline">
+                                                    <label class="layui-form-label"> 棰滆壊鑹插彿锛�</label>
+                                                    <div class="layui-input-inline" style="width: 151px;">
+                                                        <input type="text" value="" placeholder="璇烽�夋嫨棰滆壊" class="layui-input" id="HColorNo" name="HColorNo" style="width: 101px; float: left;background-color: #efefef4d;" readonly>
+                                                        <div id="HColorNoName" name="HColorNoName" style="width: 50px; "></div>
+                                                    </div>
+                                                </div>
+                                                <div class="layui-inline">
                                                     <label class="layui-form-label"> 鐧藉澂瑕佹眰锛�</label>
                                                     <div class="layui-input-inline ">
                                                         <textarea placeholder="璇疯緭鍏ョ淮澶囨敞" class="layui-textarea" name="HRemark" id="HRemark"></textarea>
@@ -546,7 +553,7 @@
             base: '../../../layuiadmin/' //闈欐�佽祫婧愭墍鍦ㄨ矾寰�
         }).extend({
             index: 'lib/index', //涓诲叆鍙fā鍧�
-        }).use(['index', 'form', 'table', 'element', 'laypage', 'laydate'], function () {
+        }).use(['index', 'form', 'table', 'element', 'laypage', 'laydate','colorpicker'], function () {
             var $ = layui.$
                 , admin = layui.admin
                 , layer = layui.layer
@@ -555,6 +562,7 @@
                 , element = layui.element
                 , laypage = layui.laypage
                 , laydate = layui.laydate
+                , colorpicker = layui.colorpicker
 
             //鍒濆鍖栫晫闈�
 
@@ -671,6 +679,16 @@
                 get_checkHQCSchemeID_Patrol();
             });
 
+            //閫夋嫨棰滆壊
+            colorpicker.render({
+                elem: '#HColorNoName'
+                , color: '#1c97f5'
+                , done: function (color) {
+                    console.log(color);
+                    $('#HColorNo').val(color);
+                }
+            });
+
             //璇诲彇閰嶇疆鏂囦欢
             function get_ReadConfigFile() {
                 //鑾峰彇鏈湴瀛樺偍鐨勬暟鎹�
@@ -785,7 +803,14 @@
                                 , "HQCSchemeID_Patrol": data.HQCSchemeID_Patrol
                                 , "HQCSchemeName_Patrol": data.宸℃妫�楠屾柟妗�
                                 , "HMaterRuleType": data.鐗╂枡鍏紡
+                                , "HColorNo": data.棰滆壊鑹插彿
                             });
+
+                            colorpicker.render({
+                                elem: '#HColorNoName'
+                                , color: data.棰滆壊鑹插彿
+                            });
+
                             console.log($('#HUnitGroupID').val());
                         } else {
                             layer.alert(result.msg, { icon: 5, btn: ['閫�鍑�'], time: 100000, offset: 't' });

--
Gitblit v1.9.1