소스 검색

评卷员修改密码时,评卷员姓名应该直接带出,不用重新输入姓名

nikang 6 년 전
부모
커밋
272071e742

+ 1 - 2
stmms-web/src/main/webapp/static/mark-new/js/modules/change-name.js

@@ -10,7 +10,6 @@ function ChangeName(option) {
     this.url = option.url;
     this.context = option.markControl.context;
     this.userName = option.markControl.container.header.find('#mark-user-name');
-
     this.popover = getDom(this.popover_dom, this.markControl);
     this.popover.userNameInput = this.popover.find('input.username-input');
     this.popover.passwordInput = this.popover.find('input.password-input');
@@ -81,7 +80,7 @@ function ChangeName(option) {
 ChangeName.prototype.toggle = function(enable) {
     if (enable == true) {
         this.enable = true;
-        this.popover.userNameInput.val('');
+        this.popover.userNameInput.val(this.userName.html());
         this.popover.passwordInput.val('');
         this.popover.userNameMessage.html('');
         this.popover.password2Message.html('');

+ 1 - 1
stmms-web/src/main/webapp/static/mark-track/js/modules/change-name.js

@@ -81,7 +81,7 @@ function ChangeName(option) {
 ChangeName.prototype.toggle = function(enable) {
   if (enable == true) {
     this.enable = true;
-    this.popover.userNameInput.val('');
+    this.popover.userNameInput.val(this.userName.html());
     this.popover.passwordInput.val('');
     this.popover.userNameMessage.html('');
     this.popover.password2Message.html('');