-
+
@@ -37,24 +37,9 @@ export default {
pageSize: 'pageSize',
pageIndex: 'pageNum'
},
- projectCode:'',
+ // projectCode:'',
deviceTypeList:ConstConfig.ConstSelect.projectDeviceTypeList,
- projectList: [
- {label:'西铁院', value: 'XTY'},
- {label: '贵州装备', value:'GZB'},
- {label: '哈尔滨', value:'HEB'},
- {label: '苏电院', value:'SDY'},
- {label: '中航锐创(实训室)', value: 'RICHOR_JOINT'},
- {label: '上饶沙盘', value: 'SR_SANDBOX'},
- {label: '江西工贸', value: 'JXGM'},
- {label: '扬州工业', value: 'RICHOR_YGY'},
- {label: '红河财经', value: 'RICHOR_HHCJ'},
- {label: '苏安院', value: 'SAY'},
- {label: '众合-陕铁院', value: 'UNITTEC_STY'},
- {label: '教学通用', value: 'TEACHING'},
- {label: '长兴技校', value: 'RICHOR_CXJS'},
- {label: '京津冀联盟', value: 'JJJLM'}
- ],
+ projectList: ConstConfig.ConstSelect.projectList,
queryForm: {
labelWidth: '120px',
reset: true,
@@ -70,6 +55,13 @@ export default {
config: {
data: ConstConfig.ConstSelect.projectDeviceTypeList
}
+ },
+ projectCode:{
+ type: 'select',
+ label: '所属项目',
+ config: {
+ data: ConstConfig.ConstSelect.projectList
+ }
}
}
@@ -134,11 +126,11 @@ export default {
};
},
created() {
- this.projectCode = getSessionStorage('project') || '';
+ // this.projectCode = getSessionStorage('project') || '';
},
methods: {
beforeQuery(params) {
- params.projectCode = this.projectCode;
+ // params.projectCode = this.projectCode;
return params;
},
createProjectDevice() {
@@ -187,7 +179,7 @@ export default {
},
editConfig(index, row) {
const configGatewayList = ['SWITCH', 'SIGNAL', 'PSD', 'PSL', 'PSC', 'UDP_LOW', 'SECTION', 'TRAIN', 'UDP_CLIENT', 'PIS_STAND', 'PIS_TRAIN'];
- if (['LW', 'VR_IBP', 'ISCS_LW', 'ISCS_CW'].includes(row.type)) {
+ if (['LW', 'VR_IBP', 'ISCS_LW', 'ISCS_CW', 'IM', 'CW'].includes(row.type)) {
this.$refs.editConfig.doShow(row);
} else if (configGatewayList.includes(row.type)) {
this.$refs.editConfigGateway.doShow(row);
@@ -210,11 +202,17 @@ export default {
const config = JSON.parse(res.data.config);
roleCode = config.roleCode;
}
+ let client = '';
+ if (res.data.config) {
+ const config = JSON.parse(res.data.config);
+ client = config.client;
+ }
let url = '';
url = `${window.location.protocol}//${window.location.host}/cbtc/login?project=${row.project.toLowerCase().replace(/_/, '')}&projectDevice=${row.code}&type=${row.type}`;
if (roleCode) {
url += '&roleCode=' + roleCode;
}
+ if (client) { url += '&client=' + client; }
this.url = url;
this.$messageBox();
this.$confirm(`登录路径:${url}`, '登录路径', {
@@ -233,3 +231,8 @@ export default {
}
};
+