wangjiang988 2 лет назад
Родитель
Сommit
c562d43078

+ 3 - 0
src/main/java/platform/modules/build/entity/Company.java

@@ -65,6 +65,9 @@ public class Company extends BaseEntity {
     private String post_address;//企业邮寄地址
 
     private String password;//注册密码
+    @Transient
+    private String confirm_password;//注册密码
+
     private Integer is_register;//0,未通过,1.已通过
 
     @Transient

+ 5 - 0
src/main/java/platform/modules/home/request/FindRequest.java

@@ -18,6 +18,7 @@ public class FindRequest {
     private int page_no = 1;
     // 页大小
     private int page_size = 10;
+    private int pageSize = 10;
 
     private Integer company_id;
     private Integer street_id;
@@ -53,4 +54,8 @@ public class FindRequest {
     public int getStart() {
         return ((this.getPage_number() - 1) * this.getPage_size());
     }
+
+    public int getPage_size() {
+        return this.page_size > 0? this.page_size: this.getPageSize();
+    }
 }

+ 1 - 1
src/main/java/platform/modules/sys/shiro/AuthenticationRealm.java

@@ -85,7 +85,7 @@ public class AuthenticationRealm extends AuthorizingRealm {
                 throw new UnknownAccountException();
             }
         }
-        //外网(super,政府,不能外网登录)
+        ///content/list外网(super,政府,不能外网登录)
         else if (environment.getProperty("spring.profiles").equals(Constant.Environment.PROD_OUT)) {
             /*if (record.getUser_type().equals(Constant.UserType.SUPER)) {
                 throw new UnknownAccountException();

+ 20 - 0
src/main/resources/static/js/government/content/content_add.js

@@ -1,4 +1,24 @@
 $(function () {
+       var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串
+        var isOpera = userAgent.indexOf("Opera") > -1;
+        console.log(3);
+        if (userAgent.indexOf("compatible") > -1 && userAgent.indexOf("MSIE") > -1 && !isOpera) {
+            console.log(1);
+            debugger
+            $("#create_time").remove();
+        } else {
+            console.log(2);
+            $("#create_timeIE").remove();
+            var startDate = laydate.render({
+                elem: '#create_time',
+                type: 'datetime',
+                done: function (value, date) {
+                    setTimeout(function () {
+                        $("#form-content-edit").validate().element($("#create_time"));
+                    }, 100)
+                }
+            });
+        }
     $("#form-content-add").validate({
         errorPlacement: function(error, element) {
             // Append error within linked label

+ 20 - 0
src/main/resources/static/js/government/content/content_edit.js

@@ -1,4 +1,24 @@
 $(function () {
+       var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串
+        var isOpera = userAgent.indexOf("Opera") > -1;
+        console.log(3);
+        if (userAgent.indexOf("compatible") > -1 && userAgent.indexOf("MSIE") > -1 && !isOpera) {
+            console.log(1);
+            debugger
+            $("#create_time").remove();
+        } else {
+            console.log(2);
+            $("#create_timeIE").remove();
+            var startDate = laydate.render({
+                elem: '#create_time',
+                type: 'datetime',
+                done: function (value, date) {
+                    setTimeout(function () {
+                        $("#form-content-edit").validate().element($("#create_time"));
+                    }, 100)
+                }
+            });
+        }
     $("#form-content-edit").validate({
         
         rules: {

+ 10 - 1
src/main/resources/templates/admin/government/content_add.html

@@ -122,7 +122,16 @@
 			        </table>
 	        </div>
         </div>
-
+        <div class="row cl">
+            <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>发布时间:</label>
+            <div class="formControls col-xs-4 col-sm-1">
+                <input class="Wdate input-text" type="text" th:id="create_timeIE" th:name="create_timeIE"
+                       style="float:left; width: 150px;"
+                       onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',maxDate:'#F{$dp.$D(\'create_timeIE\')}',isShowClear:true,readOnly:true})"/>
+                <input type="text" class="input-text" th:id="create_time" th:name="create_time"
+                       style="float:left; width: 150px;"/>
+            </div>
+        </div>
         <div class="row cl">
             <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
                 <button class="btn btn-primary radius" type="submit"><i class="Hui-iconfont">&#xe632;</i> 发布</button>

+ 10 - 1
src/main/resources/templates/admin/government/content_edit.html

@@ -115,7 +115,16 @@
 			        </table>
 	        </div>
         </div>
-
+        <div class="row cl">
+            <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>发布时间:</label>
+            <div class="formControls col-xs-4 col-sm-1">
+                <input class="Wdate input-text" type="text" th:id="create_timeIE" th:name="create_timeIE"
+                       style="float:left; width: 150px;"
+                       onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',maxDate:'#F{$dp.$D(\'create_timeIE\')}',isShowClear:true,readOnly:true})"/>
+                <input type="text" class="input-text" th:id="create_time" th:name="create_time" th:value="${content.create_time}"
+                       style="float:left; width: 150px;"/>
+            </div>
+        </div>
         <div class="row cl">
             <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
                 <button class="btn btn-primary radius" type="submit"><i class="Hui-iconfont">&#xe632;</i> 发布</button>