2 Commits 13b5279102 ... 6745a8d0bf

Author SHA1 Message Date
  yanym 6745a8d0bf Merge branch 'uploadFile-alert810' of http://git.dgtis.com/qxp/suishenbang-oneportal into uploadFile-alert810 1 year ago
  yanym aaf844c97c 首页弹窗修改 1 year ago

+ 3 - 2
suishenbang-admin/src/main/resources/templates/system/alertConfiguration/add.html

@@ -61,7 +61,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_lantern_permission')}" multiple>
+                <select title="请选择" id="userType" name="userType" class="form-control m-b selectpicker" th:with="type=${@dict.getType('sys_alert_permission')}">
                     <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                 </select>
             </div>
@@ -122,6 +122,7 @@
         }
         $("#alertContentItem").hide();
         $("#alertImageItem").hide();
+        $("#userType").selectpicker('val','1');
         getCompanyList(obj);
         $('#avatar').on('change', function () {
             var reader = new FileReader();
@@ -241,7 +242,7 @@
             var startTime = $('#alertStartTime').val();
             var endTime = $('#alertEndTime').val();
             var alertNum = $('#alertNum').val();
-            var userType = $('#userType').val().join();
+            var userType = $('#userType').val();
             var objSubmit = {
                 alertType:alertType,
                 photoUrl:photoUrl,

+ 4 - 4
suishenbang-admin/src/main/resources/templates/system/alertConfiguration/configuration.html

@@ -141,14 +141,14 @@
                     field : 'userType',
                     title : '用户类型',
                     formatter: function(value, row, index) {
-                        if (value.indexOf('1') != -1 && value.indexOf('0') != -1){
+                        if (value.indexOf('2') != -1){
                             return '立邦人员、经销商';
                         }
-                        if (value.indexOf('1') != -1 && value.indexOf('0') == -1) {
+                        if (value.indexOf('1') != -1) {
                             return '经销商';
                         }
-                        if (value.indexOf('1') == -1 && value.indexOf('0') != -1) {
-                            return '立邦员';
+                        if (value.indexOf('0') != -1) {
+                            return '立邦员';
                         }
                     }
                 },

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

@@ -63,7 +63,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_lantern_permission')}" multiple>
+                    <select title="请选择" id="userType" name="userType" class="form-control m-b selectpicker" th:with="type=${@dict.getType('sys_alert_permission')}">
                         <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{userType}"></option>
                     </select>
                 </div>
@@ -137,7 +137,7 @@
                 $("#alertContentItem").hide();
                 $("#div-bgUrl").html("<img src='" + formData.photoUrl + "' style='width:300px;margin-bottom: 5px;'>");
             }
-            $("#userType").selectpicker('val',formData.userType.split(','));
+            $("#userType").selectpicker('val',formData.userType);
             if (formData.salesLevel == 'company_level'){
                 var objhx1 = {
                     parType: 'company_level',
@@ -270,7 +270,7 @@
                 var startTime = $('#alertStartTime').val();
                 var endTime = $('#alertEndTime').val();
                 var alertNum = $('#alertNum').val();
-                var userType = $('#userType').val().join();
+                var userType = $('#userType').val();
                 var objSubmit = {
                     alertId:alertId,
                     alertType:alertType,