zhangding 5 tahun lalu
induk
melakukan
3e8a41ae6f

+ 1 - 1
dgtly-member/dgtly-member-admin/src/main/java/com/dgtly/notice/controller/NoticeSupplyController.java

@@ -89,7 +89,7 @@ public class NoticeSupplyController extends BaseController
     @Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT)
     @PostMapping("/add")
     @ResponseBody
-    public AjaxResult addSave(NoticeSupply noticeSupply, MultipartFile file)
+    public AjaxResult addSave(NoticeSupply noticeSupply)
     {
 
         if(StringUtils.isNotEmpty(noticeSupply.getPicture())){

+ 9 - 5
dgtly-member/dgtly-member-admin/src/main/resources/templates/notice/supply/add.html

@@ -103,6 +103,14 @@
     <th:block th:include="include :: jasny-bootstrap-js" />
     <script type="text/javascript">
         var prefix = ctx + "notice/supply"
+
+        $(function(){
+            $("input[name='releaseTime']").datetimepicker({
+                format: "yyyy-mm-dd",
+                minView: "month",
+                autoclose: true
+            });
+        })
         $("#form-supply-add").validate({rules: {
                 typeName: "required",
                 lastname: "required",
@@ -197,11 +205,7 @@
             });
         }
 
-        $("input[name='releaseTime']").datetimepicker({
-            format: "yyyy-mm-dd",
-            minView: "month",
-            autoclose: true
-        });
+
     </script>
 </body>
 </html>

+ 8 - 9
dgtly-member/dgtly-member-admin/src/main/resources/templates/notice/supply/edit.html

@@ -10,12 +10,12 @@
     <div class="wrapper wrapper-content animated fadeInRight ibox-content">
         <form class="form-horizontal m" id="form-supply-edit" th:object="${noticeSupply}">
             <input name="id" th:field="*{id}" type="hidden">
-            <div class="form-group">
-                <div class="col-sm-6">
+
+
                     <div class="form-group">
                         <input name="typeId" type="hidden" id="input_typeId">
                         <label class="col-sm-3 control-label"><span style="color: red; ">*</span>所属分类:</label>
-                        <div class="col-sm-10">
+                        <div class="col-sm-8">
                             <div class="input-group">
                                 <input name="typeName" onclick="selectTypeTree()" id="input_typeTreeName" type="text" placeholder="请选择所属分类" th:field="*{typeName}" class="form-control"
                                        readonly="readonly" required>
@@ -23,8 +23,7 @@
                             </div>
                         </div>
                     </div>
-                </div>
-            </div>
+
 <!--            <div class="form-group">    -->
 <!--                <label class="col-sm-3 control-label">关联商品类别表id:</label>-->
 <!--                <div class="col-sm-8">-->
@@ -79,11 +78,11 @@
                     </div>
                 </div>
             </div>
-            <div class="row">
+
                 <div class="form-group">
                     <input id="fmzFile" name="picture" type="hidden"/>
-                    <label class="col-sm-2 control-label"><span style="color: red; ">*</span>商品图片:</label>
-                    <div class="col-sm-10">
+                    <label class="col-sm-3 control-label"><span style="color: red; ">*</span>商品图片:</label>
+                    <div class="col-sm-8">
                         <div class="fileinput fileinput-new" data-provides="fileinput">
                             <div class="fileinput-new thumbnail" style="width: 140px; height: 140px;">
                                 <img th:src="@{*{picture}}">
@@ -98,7 +97,7 @@
                         </div>
                     </div>
                 </div>
-            </div>
+
             <div class="form-group">    
                 <label class="col-sm-3 control-label">供应信息状态:</label>
                 <div class="col-sm-8">