- 批量修改填写人:添加左侧分类列表、折叠功能、暂存和重新分配 - 审核页面:添加折叠和分页功能 - 查询分析页面:添加单位列显示 - 人员管理:创建独立页面,支持搜索、分页、批量操作 - 修复各种UI和功能问题
53 lines
1.1 KiB
JavaScript
53 lines
1.1 KiB
JavaScript
/**
|
|
* A Nightwatch page object. The page object name is the filename.
|
|
*
|
|
* Example usage:
|
|
* browser.page.homepage.navigate()
|
|
*
|
|
* For more information on working with page objects see:
|
|
* https://nightwatchjs.org/guide/working-with-page-objects/
|
|
*
|
|
*/
|
|
|
|
module.exports = {
|
|
url: '/',
|
|
commands: [],
|
|
|
|
// A page object can have elements
|
|
elements: {
|
|
appContainer: '#app'
|
|
},
|
|
|
|
// Or a page objects can also have sections
|
|
sections: {
|
|
app: {
|
|
selector: '#app',
|
|
|
|
elements: {
|
|
logo: 'img'
|
|
},
|
|
|
|
// - a page object section can also have sub-sections
|
|
// - elements or sub-sections located here are retrieved using the "app" section as the base
|
|
sections: {
|
|
headline: {
|
|
selector: 'h1'
|
|
},
|
|
|
|
welcome: {
|
|
// the equivalent css selector for the "welcome" sub-section would be:
|
|
// '#app div.hello'
|
|
selector: 'div.hello',
|
|
|
|
elements: {
|
|
cliPluginLinks: {
|
|
selector: 'ul',
|
|
index: 0
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|