zhouchenglin %!s(int64=7) %!d(string=hai) anos
pai
achega
d0372ceffb

+ 8 - 0
src/main/resources/static/js/common.js

@@ -319,6 +319,14 @@ dialogLoading = function(flag) {
 	}
 }
 
+dialogToastr = function(msg) {
+    top.layer.msg(msg);
+}
+
+dialogTip = function(msg, dom) {
+    top.layer.tips(msg, dom);
+}
+
 $.fn.GetWebControls = function (keyValue) {
     var reVal = "";
     $(this).find('input,select,textarea').each(function (r) {

+ 2 - 2
src/main/resources/static/js/index.js

@@ -75,11 +75,11 @@ var vm = new Vue({
 				btn : [ '确定', '取消' ],
 				yes : function(index) {
 					if(isNullOrEmpty(vm.pswd)) {
-						dialogMsg('原密码为空!');
+                        dialogTip('原密码为空!', '#oldPswd');
 						return false;
 					}
 					if(isNullOrEmpty(vm.newPswd)) {
-						dialogMsg('新密码为空!');
+                        dialogTip('新密码为空!', '#newPswd');
 						return false;
 					}
 					var data = "pswd=" + vm.pswd + "&newPswd="

+ 2 - 2
src/main/resources/static/js/index_tab.js

@@ -418,11 +418,11 @@ var vm = new Vue({
                 btn: ['确定', '取消'],
                 yes: function (index) {
                     if (isNullOrEmpty(vm.pswd)) {
-                        dialogMsg('原密码为空!');
+                        dialogTip('原密码为空!', '#oldPswd');
                         return false;
                     }
                     if (isNullOrEmpty(vm.newPswd)) {
-                        dialogMsg('新密码为空!');
+                        dialogTip('新密码为空!', '#newPswd');
                         return false;
                     }
                     var data = "pswd=" + vm.pswd + "&newPswd="

+ 2 - 2
src/main/resources/templates/index.html

@@ -93,12 +93,12 @@
 				<tr>
 					<td class="formTitle">原密码</td>
 					<td class="formValue"><input type="password"
-						class="form-control" v-model="pswd" placeholder="原密码" /></td>
+						class="form-control" v-model="pswd" placeholder="原密码" id="oldPswd"/></td>
 				</tr>
 				<tr>
 					<td class="formTitle">新密码<font face="宋体">*</font></td>
 					<td class="formValue"><input type="text" class="form-control"
-						v-model="newPswd" placeholder="新密码" /></td>
+						v-model="newPswd" placeholder="新密码" id="newPswd"/></td>
 				</tr>
 			</table>
 		</div>

+ 2 - 2
src/main/resources/templates/index_tab.html

@@ -126,12 +126,12 @@
 				<tr>
 					<td class="formTitle">原密码</td>
 					<td class="formValue"><input type="password"
-						class="form-control" v-model="pswd" placeholder="原密码" /></td>
+						class="form-control" v-model="pswd" placeholder="原密码" id="oldPswd"/></td>
 				</tr>
 				<tr>
 					<td class="formTitle">新密码<font face="宋体">*</font></td>
 					<td class="formValue"><input type="text" class="form-control"
-						v-model="newPswd" placeholder="新密码" /></td>
+						v-model="newPswd" placeholder="新密码" id="newPswd"/></td>
 				</tr>
 			</table>
 		</div>