Merge branch 'master' of http://192.168.1.136:82/monitor_v3/hg-monitor-web into …
…master-v32-lushangqing
Showing
5 changed files
with
35 additions
and
20 deletions
@@ -24,7 +24,7 @@ layui.define(['xmSelect', 'md5'], function (exports) { | @@ -24,7 +24,7 @@ layui.define(['xmSelect', 'md5'], function (exports) { | ||
24 | domainAssetsManage: sessionStorage.getItem('domainAssetsManage'), // 资产系统地址 | 24 | domainAssetsManage: sessionStorage.getItem('domainAssetsManage'), // 资产系统地址 |
25 | graphEditorOrigin: sessionStorage.getItem('graphEditorOrigin'), // 拓扑系统地址 | 25 | graphEditorOrigin: sessionStorage.getItem('graphEditorOrigin'), // 拓扑系统地址 |
26 | workflowName: sessionStorage.getItem('workflow'),//流程系统地址 | 26 | workflowName: sessionStorage.getItem('workflow'),//流程系统地址 |
27 | - domainCMDBName: "http://120.236.178.177:7180/HGKJCMDB", //杭州咨源老cmdb系统地址 | 27 | + domainCMDBName: "http://80.12.147.24:8888/hgkjcmdb", //杭州咨源老cmdb系统地址 |
28 | lineTimer: null,//性能曲线图全局定时器 | 28 | lineTimer: null,//性能曲线图全局定时器 |
29 | detailTimer: [],//详细页的全局定时器 | 29 | detailTimer: [],//详细页的全局定时器 |
30 | alarmTimer: null,//首页告警刷新定时器 | 30 | alarmTimer: null,//首页告警刷新定时器 |
@@ -853,16 +853,25 @@ layui.define(['table', 'form', 'admin', 'layer', 'upload', 'common', 'sessions', | @@ -853,16 +853,25 @@ layui.define(['table', 'form', 'admin', 'layer', 'upload', 'common', 'sessions', | ||
853 | }, | 853 | }, |
854 | yes: function (index, layero) { | 854 | yes: function (index, layero) { |
855 | var password = $('#userReSetPwd').val(); | 855 | var password = $('#userReSetPwd').val(); |
856 | + var flag = false; | ||
856 | //验证密码等级是否满足 | 857 | //验证密码等级是否满足 |
857 | - var flag = new RegExp(pattern).test(password); | ||
858 | - if (!flag){ | ||
859 | - $('.deptTips').html(patternTips.replace('密码格式为:','')); | ||
860 | - return; | ||
861 | - } | ||
862 | - if (checkHas(passwords,password)){ | ||
863 | - $('.deptTips').html('不能使用最近5次密码'); | ||
864 | - return; | 858 | + if (pattern != ''){ |
859 | + flag = new RegExp(pattern).test(password); | ||
860 | + if (!flag){ | ||
861 | + $('.deptTips').html(patternTips.replace('密码格式为:','')); | ||
862 | + return; | ||
863 | + } | ||
864 | + }else{ | ||
865 | + if (password.trim().length <4 || password.trim().length >20){ | ||
866 | + $('.deptTips').html('密码必须为4-20位!'); | ||
867 | + return; | ||
868 | + } | ||
865 | } | 869 | } |
870 | + //管理员重置密码,不用做最近5次验证 | ||
871 | + // if (checkHas(passwords,password)){ | ||
872 | + // $('.deptTips').html('不能使用最近5次密码'); | ||
873 | + // return; | ||
874 | + // } | ||
866 | resetPwd(id,password); | 875 | resetPwd(id,password); |
867 | } | 876 | } |
868 | }); | 877 | }); |
@@ -73,16 +73,22 @@ | @@ -73,16 +73,22 @@ | ||
73 | form.verify((function(pattern, patternTips,last5His) { | 73 | form.verify((function(pattern, patternTips,last5His) { |
74 | return { | 74 | return { |
75 | pass: function (value) { | 75 | pass: function (value) { |
76 | - if (value === ''){ | 76 | + if (value.trim() === ''){ |
77 | return '必填项不能位空'; | 77 | return '必填项不能位空'; |
78 | } | 78 | } |
79 | - if (value === $('#oldPassword').val()){ | 79 | + if (value.trim() === $('#oldPassword').val()){ |
80 | return '新密码不能与旧密码一致'; | 80 | return '新密码不能与旧密码一致'; |
81 | } | 81 | } |
82 | - if(pattern && !new RegExp(pattern).test(value)){ | 82 | + if(pattern && !new RegExp(pattern).test(value.trim())){ |
83 | return patternTips; | 83 | return patternTips; |
84 | } | 84 | } |
85 | 85 | ||
86 | + if (!pattern || pattern == undefined){ | ||
87 | + if (value.trim().length <4 || value.trim().length >20){ | ||
88 | + return '新密码必须4-20位!'; | ||
89 | + } | ||
90 | + } | ||
91 | + | ||
86 | //临时增加用户组写死密码 joke add 20210508 | 92 | //临时增加用户组写死密码 joke add 20210508 |
87 | if (last5His && last5His.length > 0 && checkHas(last5His,value)){ | 93 | if (last5His && last5His.length > 0 && checkHas(last5His,value)){ |
88 | return '不能使用最近5次密码'; | 94 | return '不能使用最近5次密码'; |
@@ -186,7 +192,7 @@ | @@ -186,7 +192,7 @@ | ||
186 | var last5His = passwords; | 192 | var last5His = passwords; |
187 | verifyForm(pattern, patternTips,last5His); | 193 | verifyForm(pattern, patternTips,last5His); |
188 | } else { | 194 | } else { |
189 | - layer.msg('没有获取去密码级别,将不做密码级别验证!', {icon: 0}); | 195 | + console.log('没有获取去密码级别,将不做密码级别验证!'); |
190 | verifyForm(undefined, undefined,passwords); | 196 | verifyForm(undefined, undefined,passwords); |
191 | } | 197 | } |
192 | } | 198 | } |
@@ -59,7 +59,7 @@ | @@ -59,7 +59,7 @@ | ||
59 | <cm-biz-type-tree-input multiple clearable collapseTags @callback="getBizType"/> | 59 | <cm-biz-type-tree-input multiple clearable collapseTags @callback="getBizType"/> |
60 | </el-dropdown>--> | 60 | </el-dropdown>--> |
61 | 61 | ||
62 | - <el-select v-model="busTypeArr" multiple filterable clearable collapse-tags placeholder="请选择指标" style="margin-top: 10px"> | 62 | + <el-select v-model="busTypeArr" multiple filterable clearable collapse-tags placeholder="请选择业务" style="margin-top: 10px"> |
63 | <el-option | 63 | <el-option |
64 | v-for="item in busTypeList" | 64 | v-for="item in busTypeList" |
65 | :label="item.busTypeName" :value="item.busId"></el-option> | 65 | :label="item.busTypeName" :value="item.busId"></el-option> |
@@ -199,8 +199,8 @@ export default { | @@ -199,8 +199,8 @@ export default { | ||
199 | kpiId: kpiTypeArr.value.join(','), | 199 | kpiId: kpiTypeArr.value.join(','), |
200 | busId: busTypeArr.value.join(','), | 200 | busId: busTypeArr.value.join(','), |
201 | configId: config.value, | 201 | configId: config.value, |
202 | - page:2, | ||
203 | - limit:10 | 202 | + page: 1, |
203 | + limit: 50 | ||
204 | } | 204 | } |
205 | } | 205 | } |
206 | 206 | ||
@@ -210,8 +210,8 @@ export default { | @@ -210,8 +210,8 @@ export default { | ||
210 | // } | 210 | // } |
211 | 211 | ||
212 | proxy.$http.get(`/api-web/ContrastAnalysis/added`, getParams(), function (res) { | 212 | proxy.$http.get(`/api-web/ContrastAnalysis/added`, getParams(), function (res) { |
213 | - if (res && res.data) { | ||
214 | - proxy.countFirst=res.count; | 213 | + if (res && res.success) { |
214 | + proxy.countFirst = res.count; | ||
215 | tabFirstList.value = res.data; | 215 | tabFirstList.value = res.data; |
216 | } | 216 | } |
217 | }); | 217 | }); |
@@ -222,8 +222,8 @@ export default { | @@ -222,8 +222,8 @@ export default { | ||
222 | // return false; | 222 | // return false; |
223 | // } | 223 | // } |
224 | proxy.$http.get(`/api-web/ContrastAnalysis/notAdded`, getParams(), function (res) { | 224 | proxy.$http.get(`/api-web/ContrastAnalysis/notAdded`, getParams(), function (res) { |
225 | - if (res && res.data) { | ||
226 | - proxy.count=res.count; | 225 | + if (res && res.success) { |
226 | + proxy.count = res.count; | ||
227 | tabSecondList.value = res.data; | 227 | tabSecondList.value = res.data; |
228 | } | 228 | } |
229 | }); | 229 | }); |
-
Please register or login to post a comment