Ver código fonte

当前判断

wgl 4 anos atrás
pai
commit
cf21614303

+ 1 - 1
config/project.js

@@ -1 +1 @@
-exports.name = 'home'
+exports.name = 'business'

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

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

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

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