Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

更新录像页 #22

Merged
merged 8 commits into from
Apr 30, 2024
Merged

更新录像页 #22

merged 8 commits into from
Apr 30, 2024

Conversation

putianyi889
Copy link
Contributor

@putianyi889 putianyi889 commented Apr 29, 2024

  • <el-table>显示
  • 前后端直接用域的名字交互
  • 后端返回总的录像数而不是页数
  • 前端可自定义表头包含哪些列并可对任意列排序。
  • 页面加载、改筛选条件不会发送请求,点”刷新“按钮、翻页、改排序会发送请求。
  • preview的参数从录像id改为了整行的数据。目前实际功能没有变化。

@eee555
Copy link
Owner

eee555 commented Apr 30, 2024

什么是前后端直接用域的名字交互,能举个例子吗
为什么要点刷新才能发送请求呢,不是多点了一下吗

@putianyi889
Copy link
Contributor Author

putianyi889 commented Apr 30, 2024

什么是前后端直接用域的名字交互,能举个例子吗

默认筛选下发送的query是/video/query/?level=e&mode=00&v[]=player__realname&v[]=upload_time&v[]=player__realname&v[]=timems&v[]=bv&v[]=bvs&v[]=video__stnb&o=timems&r=false&ps=10&page=1
这个改动仅仅是为了偷懒,因为我在view_utils里是写了fieldname_translation的,但是从数据库搜索返回的values里面依然是域的名字。理想状态下应该返回时给翻译回去

为什么要点刷新才能发送请求呢,不是多点了一下吗

新的筛选功能下要改变筛选经常需要操作不止一次(每添加/删除一列都要点一下),不用刷新按钮的话会导致很多没有必要的请求

@putianyi889
Copy link
Contributor Author

忘了返回id和播放录像了

@putianyi889 putianyi889 marked this pull request as draft April 30, 2024 06:46
@eee555
Copy link
Owner

eee555 commented Apr 30, 2024

行吧

@putianyi889 putianyi889 marked this pull request as ready for review April 30, 2024 11:40
@eee555 eee555 merged commit 4c6098f into eee555:main Apr 30, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants