Skip to content

Commit

Permalink
#361 优先executor列表显示ip
Browse files Browse the repository at this point in the history
  • Loading branch information
allen8203 committed Mar 1, 2018
1 parent cf4c975 commit 7a2cc7f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions saturn-console-web/src/pages/job_detail/job_setting.vue
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,7 @@ export default {
if (jobInfoData.preferListProvided) {
this.preferListProvidedArray = jobInfoData.preferListProvided.map((obj) => {
const rObj = {};
rObj.ip = obj.ip;
rObj.executorName = obj.executorName;
rObj.noTraffic = obj.noTraffic;
rObj.type = obj.type;
Expand All @@ -343,7 +344,7 @@ export default {
rObj.executorDes = `${rObj.executorName}(离线无流量)`;
break;
case 'ONLINE':
rObj.executorDes = `${rObj.executorName}(在线无流量)`;
rObj.executorDes = `${rObj.executorName}(在线无流量 ${rObj.ip})`;
break;
case 'DELETED':
rObj.executorDes = `${rObj.executorName}(已删除)`;
Expand All @@ -357,7 +358,7 @@ export default {
rObj.executorDes = `${rObj.executorName}(离线)`;
break;
case 'ONLINE':
rObj.executorDes = `${rObj.executorName}(在线)`;
rObj.executorDes = `${rObj.executorName}(在线 ${rObj.ip})`;
break;
case 'DELETED':
rObj.executorDes = `${rObj.executorName}(已删除)`;
Expand Down

0 comments on commit 7a2cc7f

Please sign in to comment.