Bladeren bron

跑马灯弹窗公告人员增加

yanym 4 weken geleden
bovenliggende
commit
98a0930683

+ 1 - 1
suishenbang-admin/src/main/resources/templates/system/alertConfiguration/edit.html

@@ -71,7 +71,7 @@
             <div class="form-group">
                 <label class="col-sm-3 control-label">用户类型:</label>
                 <div class="col-sm-8">
-                    <select title="请选择" id="userType" name="userType" class="form-control m-b selectpicker" th:with="type=${@dict.getType('sys_alert_permission')}">
+                    <select title="请选择" id="userType" name="userType" class="form-control m-b selectpicker" th:with="type=${@dict.getType('sys_alert_permission')}" multiple>
                         <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{userType}"></option>
                     </select>
                 </div>

+ 11 - 6
suishenbang-admin/src/main/resources/templates/system/lantern/lantern.html

@@ -120,15 +120,20 @@
                     field : 'userType',
                     title : '公告人员',
                     formatter: function(value, row, index) {
-                        if (value.indexOf('1') != -1 && value.indexOf('0') != -1){
-                            return '立邦人员、经销商';
+                        var userStr = '';
+                        if (value.indexOf('0') != -1){
+                            userStr += '立邦员工 ';
                         }
-                        if (value.indexOf('1') != -1 && value.indexOf('0') == -1) {
-                            return '经销商';
+                        if (value.indexOf('1') != -1){
+                            userStr += '经销商 ';
                         }
-                        if (value.indexOf('1') == -1 && value.indexOf('0') != -1) {
-                            return '立邦人员';
+                        if (value.indexOf('2') != -1){
+                            userStr += '仿石漆 ';
                         }
+                        if (value.indexOf('4') != -1){
+                            userStr += '金牌店 ';
+                        }
+                        return userStr;
                     }
                 },
                 // {