From cc30fb569674fa8f82130253b68ac609ae5d8eb6 Mon Sep 17 00:00:00 2001
From: nickchange <126672920+nickchange@users.noreply.github.com>
Date: 星期五, 27 十月 2023 11:46:52 +0800
Subject: [PATCH] 10.27

---
 cloud-server-management/src/main/webapp/WEB-INF/view/system/tCompetition/TCompetition_edit.html |   16 +++++++++++++---
 1 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/cloud-server-management/src/main/webapp/WEB-INF/view/system/tCompetition/TCompetition_edit.html b/cloud-server-management/src/main/webapp/WEB-INF/view/system/tCompetition/TCompetition_edit.html
index 2819bb5..c55380a 100644
--- a/cloud-server-management/src/main/webapp/WEB-INF/view/system/tCompetition/TCompetition_edit.html
+++ b/cloud-server-management/src/main/webapp/WEB-INF/view/system/tCompetition/TCompetition_edit.html
@@ -86,6 +86,7 @@
                         <option   value="${obj.id}" ${obj.id == item.storeId ? 'selected=selected' : ''}>${obj.name}</option>
                         @}
                     </select>
+                    <input id="storeIds" type="hidden" value="${storeIds}">
                 </div>
             </div>
             <#input id="name" name="赛事名称" type="text" value="${item.name}"/>
@@ -225,6 +226,13 @@
             multiple: true,
             closeOnSelect: false
         });
+
+        console.log("===========storeIds="+$('#storeIds').val())
+        var selectedValues = JSON.parse($('#storeIds').val()); // Replace with the desired selected values
+
+        $('#shopId').val(selectedValues); // Set the selected values
+
+        $('#shopId').trigger('change')
     });
 
     let id = "${item.imgs}"
@@ -327,15 +335,17 @@
     laydate.render({
         elem: '#startTime'
         ,type:"datetime"
-        ,format: 'yyyy-MM-dd HH:mm:ss'
+        ,format: 'yyyy-MM-dd HH:mm'
     });
     laydate.render({
         elem: '#endTime'
-        ,type:"datetime"
+        ,type:"datetime",
+        format: "yyyy-MM-dd HH:mm"
     });
     laydate.render({
         elem: '#registerEndTime'
-        ,type:"datetime"
+        ,type:"datetime",
+        format: "yyyy-MM-dd HH:mm"
     });
     laydate.render({
         elem: '#transDateStart'

--
Gitblit v1.7.1