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

宽度无法本地缓存 #296

Open
kavizzz opened this issue Dec 14, 2023 · 0 comments
Open

宽度无法本地缓存 #296

kavizzz opened this issue Dec 14, 2023 · 0 comments

Comments

@kavizzz
Copy link

kavizzz commented Dec 14, 2023

问题:我的表头和内容都是动态的,每次进入页面我都会请求表头数据和内容数据,然后给GM赋值,但是宽度无法缓存, 列的顺序可以缓存, 修改了列序和列宽之后, 刷新再次进入页面宽度就还原了, 列序是改变后的, 看localstorage中的宽度是修改后的
GM版本: 3.2.1
image

image image 表头数据 [{"key":"sn","text":"编号"},{"key":"project_name","text":"项目名称"},{"key":"project_manager","text":"项目经理"},{"key":"company_attr","text":"公司属性"},{"key":"project_type","text":"项目类型"},{"key":"buildings_type","text":"建筑类型"},{"key":"owner_name","text":"甲方名称"},{"key":"project_province","text":"项目省份"},{"key":"contract_code","text":"合同编号"},{"key":"sign_date","text":"签订日期"},{"key":"contract_amount","text":"合同金额"},{"key":"contract_amount_notax","text":"不含税金额"},{"key":"contract_days","text":"工期(天数)"},{"key":"status","text":"审批状态"},{"key":"archive_status","text":"归档状态"},{"key":"created_at","text":"发起时间"},{"key":"created_by","text":"发起人"},{"key":"updated_at","text":"最后修改时间"},{"key":"updated_by","text":"修改人"},{"key":"optGm","text":"操作列","fixed":"right","width":"80px"}]
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

No branches or pull requests

1 participant