From 848234e2559d1d6eb1aac0230b1f69741a55c1cb Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期三, 07 四月 2021 09:24:02 +0800 Subject: [PATCH] # --- src/main/webapp/views/pda/selectMat.html | 46 ++++++++++++++++++++++++++++++++++++---------- 1 files changed, 36 insertions(+), 10 deletions(-) diff --git a/src/main/webapp/views/pda/selectMat.html b/src/main/webapp/views/pda/selectMat.html index 41ecdc6..3c80a1a 100644 --- a/src/main/webapp/views/pda/selectMat.html +++ b/src/main/webapp/views/pda/selectMat.html @@ -49,8 +49,10 @@ background-color: #dedede; } - /* 涓讳綋鍗$墖 */ - .box-item { + /* 涓讳綋 */ + + /* 褰掔被鏍囩 */ + .box-tag-item { height: 100px; border-bottom: 1px solid #dedede; background-color: #fff; @@ -58,10 +60,28 @@ box-shadow: 0 0 3px rgba(0,0,0,.3); margin-top: 2px; } - .box-item:hover { + .box-tag-item:hover { background-color: #eaeaea; } - .box-item-label { + .box-tag-item-label { + font-size: x-large; + font-weight: bold; + padding: 10px 0 0 20px; + } + + /* 鍟嗗搧鏍囩 */ + .box-mat-item { + height: 100px; + border-bottom: 1px solid #dedede; + background-color: #fff; + border-radius: 5px; + box-shadow: 0 0 3px rgba(0,0,0,.3); + margin-top: 2px; + } + .box-mat-item:hover { + background-color: #eaeaea; + } + .box-mat-item-label { font-size: x-large; font-weight: bold; padding: 10px 0 0 20px; @@ -88,9 +108,15 @@ showTag(); }) - $(document).on('click','.box-item', function () { + // 褰掔被鐐瑰嚮 + $(document).on('click','.box-tag-item', function () { var tagId = $(this).children('input').get(0).value; showTag(tagId); + }) + + // 鍟嗗搧鐐瑰嚮 + $(document).on('click','.box-mat-item', function () { + var tagId = $(this).children('input').get(0).value; }) // 灞曠ず褰掔被 @@ -146,7 +172,7 @@ var html = template(res); $('#main-contain').html(html); } else { - + $('#main-contain').html('<div style="text-align: center; margin-top: 15px"><span style="font-size: large">鏆傛棤鍟嗗搧</span></div>'); } } else if (res.code === 403) { top.location.href = baseUrl + "/pda"; @@ -161,17 +187,17 @@ </script> <script type="text/template" id="tagTpl"> {{#each data}} - <div class="box-item"> + <div class="box-tag-item"> <input name="tagId" type="hidden" value="{{this.id}}"> - <div class="box-item-label">{{this.name}}</div> + <div class="box-tag-item-label">{{this.name}}</div> </div> {{/each}} </script> <script type="text/template" id="matTpl"> {{#each data}} - <div class="box-item"> + <div class="box-mat-item"> <input name="matId" type="hidden" value="{{this.id}}"> - <div class="box-item-label">{{this.maktx}}</div> + <div class="box-mat-item-label">{{this.maktx}}</div> </div> {{/each}} </script> -- Gitblit v1.9.1