瀏覽代碼

弹窗配置回显修改

yanym 1 周之前
父節點
當前提交
f8d293f972

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

@@ -162,7 +162,7 @@
                     field : 'userType',
                     title : '用户类型',
                     formatter: function(value, row, index) {
-                        if (value == 2){
+                        if (value.indexOf('0') != -1 && value.indexOf('1') != -1 && value.indexOf('2') != -1 && value.indexOf('3') != -1){
                             return '全部人员';
                         } else {
                             var userStr = '';
@@ -172,10 +172,10 @@
                             if (value.indexOf('1') != -1){
                                 userStr += '经销商 ';
                             }
-                            if (value.indexOf('3') != -1){
+                            if (value.indexOf('2') != -1){
                                 userStr += '服务商 ';
                             }
-                            if (value.indexOf('4') != -1){
+                            if (value.indexOf('3') != -1){
                                 userStr += '金牌店 ';
                             }
                             return userStr;