Browse Source

Merge branch 'master' of http://git.dgtis.com/qxp/SteelfurnitureManager

qxp 4 years ago
parent
commit
2cda27c93d

+ 1 - 0
dgtly-admin/src/main/java/com/dgtly/web/controller/company/CompanyHonourController.java

@@ -52,6 +52,7 @@ public class CompanyHonourController extends BaseController
     public TableDataInfo list(CompanyHonour companyHonour)
     {
         startPage();
+        companyHonour.setCompanyId(ShiroUtils.getCompanyId());
         List<CompanyHonour> list = companyHonourService.selectCompanyHonourList(companyHonour);
         return getDataTable(list);
     }

+ 7 - 4
dgtly-admin/src/main/resources/templates/system/notice/edit.html

@@ -29,12 +29,12 @@
             <div class="form-group">
                 <label class="col-sm-2 control-label">概要:</label>
                 <div class="col-sm-10">
-                    <input id="noticeOutline" name="noticeOutline" th:field="*{noticeOutline}" class="form-control" type="text" required maxlength="50">
+                    <input id="noticeOutline" name="noticeOutline" th:field="*{noticeOutline}" class="form-control" type="text" required maxlength="1000">
                 </div>
             </div>
             <div class="form-group">
 
-                <input id="fmzFile" name="fmzFile" type="hidden"/>
+                <input id="fmzFile" name="fmzFile" type="hidden" th:field="*{fmzFileUrl}"/>
                 <label class="col-sm-2 control-label">封面图:</label>
                 <div class="col-sm-10">
                     <div class="fileinput fileinput-new" data-provides="fileinput">
@@ -127,11 +127,14 @@
 	        	var sHTML = $('.summernote').summernote('code');
 				$("#noticeContent").val(sHTML);
                 var file = $('#fmz').find('img').attr('src');
-                if(file == undefined){
+                var pic = $('#fmzFile').val();
+                if(pic == undefined){
                     $.modal.alertWarning("请上传图片");
                     return;
                 }
-                $('#fmzFile').val(file);
+                if (file != undefined) {
+                    $('#fmzFile').val(file);
+                }
 				$.operate.save(prefix + "/edit", $('#form-notice-edit').serialize());
 	        }
 	    }

+ 1 - 1
dgtly-admin/src/main/resources/templates/system/user/profile/profile.html

@@ -29,7 +29,7 @@
                         </li>
                         <li class="list-group-item"><i class="fa fa-group"></i>
                             <b  class="font-noraml">所属部门:</b>
-                            <p class="pull-right" >[[${user.dept?.deptName}]] / [[${#strings.defaultString(postGroup,'无岗位')}]]</p>
+                            <p class="pull-right" style='width:140px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;'  >[[${user.dept?.deptName}]] / [[${#strings.defaultString(postGroup,'无岗位')}]]</p>
                         </li>
                         <li class="list-group-item"><i class="fa fa-envelope-o"></i>
                             <b  class="font-noraml">邮箱地址:</b>

+ 1 - 1
dgtly-system/src/main/java/com/dgtly/system/domain/SysRole.java

@@ -33,7 +33,7 @@ public class SysRole extends BaseEntity
     private String roleSort;
 
     /** 数据范围(1:所有数据权限;2:自定义数据权限;3:本部门数据权限;4:本部门及以下数据权限) */
-    @Excel(name = "数据范围", readConverterExp = "1=所有数据权限,2=自定义数据权限,3=本部门数据权限,4=本部门及以下数据权限")
+    @Excel(name = "数据范围", readConverterExp = "1=所有数据权限,2=自定义数据权限,3=本部门数据权限,4=本部门及以下数据权限,6=本公司数据权限")
     private String dataScope;
 
     /** 角色状态(0正常 1停用) */