wgl 4 سال پیش
والد
کامیت
3e9547e6ac
2فایلهای تغییر یافته به همراه4 افزوده شده و 2 حذف شده
  1. 2 1
      src/projects/business/views/Master/Home.vue
  2. 2 1
      src/projects/pension/views/Master/Home.vue

+ 2 - 1
src/projects/business/views/Master/Home.vue

@@ -198,9 +198,10 @@
 			selectRole() {
 				var roleList = [];
 				for (var i = 0; i < this.roleList.length; i++) {
+					var preName = this.person_popedom.personRoleName == this.roleList[i]['personRoleName'] ? '(当前)' : '';
 					roleList.push({
 						value: this.roleList[i]['id'],
-						text: this.roleList[i]['companyName'] + ' ' + this.roleList[i]['personRoleName'],
+						text: preName + this.roleList[i]['companyName'] + ' ' + this.roleList[i]['personRoleName'],
 					})
 				}
 				var _this = this;

+ 2 - 1
src/projects/pension/views/Master/Home.vue

@@ -199,9 +199,10 @@
 			selectRole() {
 				var roleList = [];
 				for (var i = 0; i < this.roleList.length; i++) {
+					var preName = this.person_popedom.personRoleName == this.roleList[i]['personRoleName'] ? '(当前)' : '';
 					roleList.push({
 						value: this.roleList[i]['id'],
-						text: this.roleList[i]['companyName'] + ' ' + this.roleList[i]['personRoleName'],
+						text: preName + this.roleList[i]['companyName'] + ' ' + this.roleList[i]['personRoleName'],
 					})
 				}
 				var _this = this;