feat(web-ui): 添加 Windows 系统依赖并更新样式
- 在 Cargo.toml 中为 Windows 平台添加 windows-sys 依赖,版本为 0.52,包含 Win32_Foundation 和 Win32_System_Registry 特性。 - 更新相关 CSS 文件以改善界面样式,确保在不同主题下的视觉一致性。 - 在 JavaScript 文件中实现围栏标记的绘制和管理功能,增强地图交互体验。
This commit is contained in:
@@ -43,8 +43,8 @@ try {
|
||||
await open('register');assert.equal(await page.locator('#serial-no').inputValue(),'NAV-123456');
|
||||
await page.locator('#register-button').click();await page.locator('#record-result').waitFor();
|
||||
await open('archives');await page.locator('#history-query').fill('NAV-123456');await page.locator('.archive-card').waitFor();
|
||||
await page.locator('[data-action=view]').click();assert.equal(await page.locator('#reference-title').innerText(),'设备登记');assert.equal(await page.locator('#record-result').isVisible(),true);
|
||||
await open('archives');await page.locator('[data-action=more]').click();await page.locator('[data-action=edit]').click();await page.locator('#edit-dialog').waitFor();await page.locator('#edit-owner').fill('导航编辑验证');await page.locator('#edit-save').click();await page.locator('#edit-dialog').waitFor({state:'hidden'});await page.locator('body[data-screen=archives]').waitFor();assert.equal(await page.locator('#reference-title').innerText(),'本地档案');
|
||||
await page.locator('[data-action=view]').click();assert.equal(await page.locator('#reference-title').innerText(),'本地档案');assert.equal(await page.locator('body').getAttribute('data-screen'),'archives');assert.equal(await page.locator('#register-form').isVisible(),false);assert.equal(await page.locator('#register-title').isVisible(),false);assert.equal(await page.locator('#record-result').isVisible(),true);assert.equal(await page.locator('#result-title').innerText(),'档案详情');assert.equal(await page.locator('#display-sn').innerText(),'NAV-123456');assert.equal(await page.locator('#display-model').innerText(),'导航验收');assert.match(await page.locator('#display-uas').innerText(),/^FPV\d{8}$/);await page.locator('#close-archive-detail').click();assert.equal(await page.locator('#registration-result').isVisible(),false);await open('register');assert.equal(await page.locator('#serial-no').inputValue(),'NAV-123456');assert.equal(await page.locator('#result-title').innerText(),'二维码与核验');await open('archives');await page.locator('#history-query').fill('NAV-123456');await page.locator('.archive-card').waitFor();
|
||||
await page.locator('[data-action=more]').click();await page.locator('[data-action=edit]').click();await page.locator('#edit-dialog').waitFor();assert.equal(await page.locator('body').getAttribute('data-screen'),'archives');assert.equal(await page.locator('#register-form').isVisible(),false);await page.locator('#edit-owner').fill('导航编辑验证');await page.locator('#edit-save').click();await page.locator('#edit-dialog').waitFor({state:'hidden'});await page.locator('body[data-screen=archives]').waitFor();assert.equal(await page.locator('#reference-title').innerText(),'本地档案');
|
||||
await page.locator('#selection-toggle').click();await page.locator('[data-action=select]').check();await page.locator('#export-toggle').click();
|
||||
const download=page.waitForEvent('download');await page.locator('#export-excel').click();assert.ok((await download).suggestedFilename().endsWith('.xlsx'));
|
||||
await page.locator('#new-registration').click();assert.equal(await page.locator('#serial-no').inputValue(),'');
|
||||
|
||||
Reference in New Issue
Block a user