[add] 選擇Servertype會連動下面2選項一起改變
This commit is contained in:
		@@ -69,6 +69,60 @@ export class BJ_Casino_Deeplink {
 | 
			
		||||
	public SelectServertype(data: any) {
 | 
			
		||||
		// data为el-option上:value绑定的对象
 | 
			
		||||
		this._client.servertype.value = data;
 | 
			
		||||
 | 
			
		||||
		let select: string = "";
 | 
			
		||||
 | 
			
		||||
		switch (this.Servertype[1][data]) {
 | 
			
		||||
			case "Internal_Dev": {
 | 
			
		||||
				select = "內版";
 | 
			
		||||
				break;
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			case "Out": {
 | 
			
		||||
				select = "外版";
 | 
			
		||||
				break;
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			case "Submit": {
 | 
			
		||||
				select = "送審";
 | 
			
		||||
				break;
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			case "Test": {
 | 
			
		||||
				select = "Test";
 | 
			
		||||
				break;
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			case "QA": {
 | 
			
		||||
				select = "QA";
 | 
			
		||||
				break;
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			default:
 | 
			
		||||
				break;
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		if (select) {
 | 
			
		||||
			let hostport: number;
 | 
			
		||||
			for (let i = 0; i < this.Hostport[1].length; i++) {
 | 
			
		||||
				const hostportName = this.Hostport[1][i];
 | 
			
		||||
				if (hostportName === select) {
 | 
			
		||||
					hostport = i;
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
			this._client.hostport.value = hostport;
 | 
			
		||||
			this._client.hostportDefault.value = this.Hostport[1][this._client.hostport.value];
 | 
			
		||||
 | 
			
		||||
			let patch: number;
 | 
			
		||||
			for (let i = 0; i < this.Patch[1].length; i++) {
 | 
			
		||||
				const patchName = this.Patch[1][i];
 | 
			
		||||
				if (patchName === select) {
 | 
			
		||||
					patch = i;
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
			this._client.patch.value = patch;
 | 
			
		||||
			this._client.patchDefault.value = this.Patch[1][this._client.patch.value];
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	public SelectHostport(data: any) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user