开发环境快速部署界面中添加log目录信息
Change-Id: I2262e616f91d18592b7c234154159772d158813e
This commit is contained in:
parent
ab6773bb06
commit
d7da962a53
|
@ -164,6 +164,7 @@
|
||||||
<pre id="extInstallLogPre" style="display: none"></pre>
|
<pre id="extInstallLogPre" style="display: none"></pre>
|
||||||
<pre id="finishPage" style="display: none"></pre>
|
<pre id="finishPage" style="display: none"></pre>
|
||||||
</div>
|
</div>
|
||||||
|
<p style="margin-top: 4px;"><span class="progressinfoTitle"id="detailInstallOutputLogInfo"></span></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -164,6 +164,7 @@
|
||||||
<pre id="extInstallLogPre" style="display: none"></pre>
|
<pre id="extInstallLogPre" style="display: none"></pre>
|
||||||
<pre id="finishPage" style="display: none"></pre>
|
<pre id="finishPage" style="display: none"></pre>
|
||||||
</div>
|
</div>
|
||||||
|
<p style="margin-top: 4px;"><span class="progressinfoTitle"id="detailInstallOutputLogInfo"></span></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -29,6 +29,7 @@ class deployWindow {
|
||||||
firstClassList: any = {};
|
firstClassList: any = {};
|
||||||
currentTab = 0;
|
currentTab = 0;
|
||||||
finishFlag = -1;
|
finishFlag = -1;
|
||||||
|
logPath = "";
|
||||||
|
|
||||||
//用来标识程序结束完成
|
//用来标识程序结束完成
|
||||||
gExtDownNum = 0;
|
gExtDownNum = 0;
|
||||||
|
@ -343,6 +344,7 @@ class deployWindow {
|
||||||
document.getElementById('lablenotNow')!.style.display = 'none';
|
document.getElementById('lablenotNow')!.style.display = 'none';
|
||||||
}
|
}
|
||||||
this.reset();
|
this.reset();
|
||||||
|
this.logPath = msg.logPath;
|
||||||
};
|
};
|
||||||
|
|
||||||
// private nativeHostService: INativeHostService;
|
// private nativeHostService: INativeHostService;
|
||||||
|
@ -559,11 +561,19 @@ class deployWindow {
|
||||||
console.log("nextPrev onlineInstallTab3");
|
console.log("nextPrev onlineInstallTab3");
|
||||||
// 获取所有选中的复选框
|
// 获取所有选中的复选框
|
||||||
let selectedCheckboxes = checkboxForm!.querySelectorAll('input[type="checkbox"]:checked');
|
let selectedCheckboxes = checkboxForm!.querySelectorAll('input[type="checkbox"]:checked');
|
||||||
// let checkSelectedValues = [];
|
let checkSelectedValues = [];
|
||||||
this.extInstallState.clear();
|
this.extInstallState.clear();
|
||||||
this.extDownloadDoneCounter = 0;
|
this.extDownloadDoneCounter = 0;
|
||||||
this.extInstallDoneCounter = 0;
|
this.extInstallDoneCounter = 0;
|
||||||
this.progressNum = 0;
|
this.progressNum = 0;
|
||||||
|
|
||||||
|
for (var item of selectedCheckboxes) {
|
||||||
|
var checkbox = item as HTMLInputElement;
|
||||||
|
if (checkbox.value !== "JavaScript_key" && checkbox.value !== "selectAll") {
|
||||||
|
checkSelectedValues.push(checkbox.value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//去重
|
//去重
|
||||||
console.log("selectedCheckboxes.length:" + selectedCheckboxes.length);
|
console.log("selectedCheckboxes.length:" + selectedCheckboxes.length);
|
||||||
|
|
||||||
|
@ -588,6 +598,7 @@ class deployWindow {
|
||||||
document.getElementById("progressInfoCancel")!.style.display = 'inline-block';
|
document.getElementById("progressInfoCancel")!.style.display = 'inline-block';
|
||||||
document.getElementById("progressInfoFinish")!.style.display = 'none';
|
document.getElementById("progressInfoFinish")!.style.display = 'none';
|
||||||
document.getElementById("progressInfoFinishFail")!.style.display = 'none';
|
document.getElementById("progressInfoFinishFail")!.style.display = 'none';
|
||||||
|
document.getElementById("detailInstallOutputLogInfo")!.innerHTML = "log目录:" + this.logPath;
|
||||||
|
|
||||||
let extPreElement = document.getElementById("extInstallLogPre");
|
let extPreElement = document.getElementById("extInstallLogPre");
|
||||||
extPreElement!.innerHTML = "";
|
extPreElement!.innerHTML = "";
|
||||||
|
@ -597,7 +608,8 @@ class deployWindow {
|
||||||
configList: this.configList,
|
configList: this.configList,
|
||||||
extList: this.extList,
|
extList: this.extList,
|
||||||
depList: this.depList,
|
depList: this.depList,
|
||||||
scriptList: this.scriptList
|
scriptList: this.scriptList,
|
||||||
|
checkSelectedValues: checkSelectedValues
|
||||||
}
|
}
|
||||||
|
|
||||||
ipcRenderer.send('kylinide.installWizard.msg.process', installPkgMsg);
|
ipcRenderer.send('kylinide.installWizard.msg.process', installPkgMsg);
|
||||||
|
|
|
@ -366,7 +366,7 @@ button#prevStep:disabled {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: start;
|
align-items: start;
|
||||||
margin-top: -11px;
|
margin-top: -5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.indicator-item {
|
.indicator-item {
|
||||||
|
|
|
@ -301,6 +301,7 @@ export class DeployMainService implements IDeployMainService {
|
||||||
else if (msg.type === 'installPkg') {
|
else if (msg.type === 'installPkg') {
|
||||||
this.phase = DeployMainPhase.InstallPage;
|
this.phase = DeployMainPhase.InstallPage;
|
||||||
this.logger.info("开始安装操作InstallPage");
|
this.logger.info("开始安装操作InstallPage");
|
||||||
|
this.logger.info("选中的开发场景为:", msg.checkSelectedValues);
|
||||||
// const extlogFile = this.installConfig + '/log/extInstall.log';
|
// const extlogFile = this.installConfig + '/log/extInstall.log';
|
||||||
// this.backupLogFile(extlogFile)
|
// this.backupLogFile(extlogFile)
|
||||||
const extlogFile0 = this.installConfig + '/log/extInstall.1.log';
|
const extlogFile0 = this.installConfig + '/log/extInstall.1.log';
|
||||||
|
@ -1287,11 +1288,12 @@ export class DeployMainService implements IDeployMainService {
|
||||||
|
|
||||||
let initData = {
|
let initData = {
|
||||||
isFirstLoad: flag,
|
isFirstLoad: flag,
|
||||||
|
logPath: path.join(this.installConfig, 'log')
|
||||||
}
|
}
|
||||||
this.DeployWindow.webContents.on('did-finish-load', () => {
|
this.DeployWindow.webContents.on('did-finish-load', () => {
|
||||||
if (this.DeployWindow) {
|
if (this.DeployWindow) {
|
||||||
this.logger.info("窗口加载完成,显示首页HomePage", "send kylinide.installWizard.initdata");
|
this.logger.info("窗口加载完成,显示首页HomePage", "send kylinide.installWizard.initdata");
|
||||||
this.DeployWindow.webContents.send('kylinide.installWizard.initdata', initData);;
|
this.DeployWindow.webContents.send('kylinide.installWizard.initdata', initData);
|
||||||
this.DeployWindow.show();
|
this.DeployWindow.show();
|
||||||
this.phase = DeployMainPhase.HomePage;
|
this.phase = DeployMainPhase.HomePage;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue