Compare commits

...

482 Commits

Author SHA1 Message Date
Brian 3d688c773f fix: izsimilarity value
2 years ago
Brian ff6da3d6bd chore: remove code
2 years ago
Brian 7115ca8c88 fix: similarity value bugs
2 years ago
yaoshuli 8f3974a46a Merge pull request 'feat: 修改框选问题' (#295) from fix/updatesyspic into test
2 years ago
raoyongjun 8261814811 feat: 修改框选问题
2 years ago
yaoshuli f1b1d2b7e3 Merge pull request 'feat:OCR功能变更问题' (#294) from fix/change_task into test
2 years ago
lihui_ocr 522e856987 feat:OCR功能变更全部问题
2 years ago
lihui_ocr fe67826b0f fix:第二次审查修改
2 years ago
yaoshuli cbe24d90ff Merge pull request 'feat: 修改加载问题' (#293) from fix/updatesyspic into test
2 years ago
raoyongjun e33bb006f0 feat: 修改加载问题
2 years ago
yaoshuli 14142b6ee0 Merge pull request 'feat:一键查重状态' (#292) from fix/change_task into test
2 years ago
lihui_ocr de0a9ad60c feat:一键查重状态
2 years ago
yaoshuli a2021ffa48 Merge pull request 'fix:删除注释' (#291) from fix/change_task into test
2 years ago
lihui_ocr 93f1ea6c02 fix:删除注释
2 years ago
赵辉 b9179b00b8 Merge pull request '一检问题修改' (#290) from fix/change_task into test
2 years ago
yaoshuli f0797278be Merge pull request 'feat: 修改问题' (#289) from fix/updatesyspic into test
2 years ago
raoyongjun 98685fae6f feat: 修改问题
2 years ago
lihui_ocr dacacfb8f3 一检问题修改
2 years ago
raoyongjun aca8678455 feat: 修改问题
2 years ago
赵辉 b8913f3c6e Merge pull request 'fix:地图弹框样式' (#288) from fix/change_task into test
2 years ago
lihui_ocr f0fae8a761 fix:地图弹框样式
2 years ago
赵辉 520ce218b3 Merge pull request 'fix:图片详情样式优化' (#287) from fix/change_task into test
2 years ago
lihui_ocr a628c1b5ed fix:图片详情样式优化
2 years ago
赵辉 ab0a49d719 Merge pull request 'feat:终审的按钮效果' (#286) from fix/change_task into test
2 years ago
lihui_ocr 4307ae925b feat:终审的按钮效果
2 years ago
赵辉 395f98b97f Merge pull request 'fix:历史搜索样式调整' (#285) from fix/change_task into test
2 years ago
lihui_ocr 9ef0a16b15 fix:历史搜索样式调整
2 years ago
赵辉 9750f1b554 Merge pull request 'fix:图鉴小图片蒙层,一键查重弹框位置' (#284) from fix/change_task into test
2 years ago
lihui_ocr 24c80c8879 fix:图鉴小图片蒙层,一键查重弹框位置
2 years ago
赵辉 24f6e82074 Merge pull request 'fix:终审仪表盘动态调整' (#283) from fix/change_task into test
2 years ago
lihui_ocr b3e65255d3 fix:终审仪表盘动态调整
2 years ago
yaoshuli ca582637ef Merge pull request 'feat: 修改滚动加载等' (#280) from fix/updatesyspic into test
2 years ago
赵辉 1d2a150828 Merge pull request 'fix:调试仪表盘展示' (#282) from fix/change_task into test
2 years ago
lihui_ocr 643c6d5b50 fix:调试仪表盘展示
2 years ago
赵辉 e4c20d64fc Merge pull request 'fix:更新仪表盘修改' (#281) from fix/change_task into test
2 years ago
lihui_ocr 3d657f7689 fix:更新仪表盘修改
2 years ago
raoyongjun 8a42ba736e feat: 修改滚动加载等
2 years ago
赵辉 fcd49d1492 Merge pull request 'feat:全局添加仪表盘刷新' (#279) from fix/change_task into test
2 years ago
lihui_ocr 184c22de7e feat:全局添加仪表盘刷新
2 years ago
赵辉 d87bdc93ba Merge pull request 'feat:任务审核仪表盘动态更新' (#278) from fix/change_task into test
2 years ago
lihui_ocr 6913e3916f feat:任务审核仪表盘动态更新
2 years ago
赵辉 acfd2bb3d6 Merge pull request 'feat:终审列表加个N值' (#277) from fix/change_task into test
2 years ago
lihui_ocr 8c60ebacf3 feat:终审列表加个N值
2 years ago
赵辉 6e930822a0 Merge pull request 'fix:完善弹框功能' (#276) from fix/change_task into test
2 years ago
lihui_ocr eacf8803f8 fix:完善弹框功能
2 years ago
赵辉 a17c927cf3 Merge pull request 'feat:地图弹框形式展示' (#275) from fix/change_task into test
2 years ago
lihui_ocr 1768bd5826 feat:地图弹框形式展示
2 years ago
赵辉 ed5cfa11af Merge pull request 'feat:添加详情审核完的关闭' (#274) from fix/change_task into test
2 years ago
lihui_ocr d74b2d3230 feat:添加详情审核完的关闭
2 years ago
赵辉 10ffbebb1a Merge pull request 'fix:按钮间距调整' (#273) from fix/change_task into test
2 years ago
lihui_ocr 0e237985bf fix:按钮间距调整
2 years ago
赵辉 81affcbfdc Merge pull request 'feat:相似图片详情' (#272) from fix/change_task into test
2 years ago
lihui_ocr 1ded4dbd97 feat:相似图片详情
2 years ago
yaoshuli 75eb7275ef Merge pull request 'feat: 修改加载次数问题' (#271) from fix/updatesyspic into test
2 years ago
raoyongjun fd44bfd380 feat: 修改加载次数问题
2 years ago
yaoshuli 17d2a65f8a Merge pull request 'feat: 修改选择条件问题' (#269) from fix/updatesyspic into test
2 years ago
raoyongjun 908fc9c799 feat: 修改滚动问题
2 years ago
赵辉 c68a20e48d Merge pull request 'fix图鉴审核蒙层' (#270) from fix/change_task into test
2 years ago
lihui_ocr 9e0bdf8c58 fix图鉴审核蒙层
2 years ago
raoyongjun 0d7deafeb0 feat: 修改选择条件问题
2 years ago
赵辉 9d89bae9ea Merge pull request 'fix:终审和首页下间距' (#268) from fix/change_task into test
2 years ago
lihui_ocr e9a145f369 fix:终审和首页下间距
2 years ago
yaoshuli 5244b7d5e8 Merge pull request 'feat: 修改适配' (#267) from fix/updatesyspic into test
2 years ago
raoyongjun 09cf526fad feat: 修改模式问题
2 years ago
raoyongjun ad175236eb feat: 修改适配
2 years ago
赵辉 e022f883c9 Merge pull request 'feat:背景然后高度适配' (#266) from fix/change_task into test
2 years ago
lihui_ocr 3eba46b487 feat:背景然后高度适配
2 years ago
yaoshuli 139ca7e922 Merge pull request 'feat: 修改图片加载占位' (#265) from fix/updatesyspic into test
2 years ago
raoyongjun d0ad81ee68 feat: 修改文件冲突
2 years ago
raoyongjun b032f5fcc0 feat: 修改pnpm文件
2 years ago
raoyongjun 9f3021438e feat: 解决冲突
2 years ago
raoyongjun 47ebd76c02 feat: 解决冲突
2 years ago
raoyongjun 73ce0b42c2 feat: 解决冲突
2 years ago
raoyongjun e926d48f28 feat: 解决冲突
2 years ago
raofuzi c8bd5c81e0 feat: 修改图片加载占位
2 years ago
yaoshuli 55531092f5 Merge pull request 'fix:状态问题回显' (#264) from fix/change_task into test
2 years ago
lihui_ocr b73a97501c fix:状态问题回显
2 years ago
赵辉 58220b8ca6 Merge pull request 'fix:年份 时间默认时间' (#263) from fix/change_task into test
2 years ago
lihui_ocr 1a5047410f fix:年份 时间默认时间
2 years ago
赵辉 a7c460872f Merge pull request 'fix:编辑列表回显' (#262) from fix/change_task into test
2 years ago
lihui_ocr 55a59de9cc fix:编辑列表回显
2 years ago
赵辉 5949331e38 Merge pull request 'fix:整体布局给间距' (#261) from fix/change_task into test
2 years ago
lihui_ocr 24ab05a4e4 fix:整体布局给间距
2 years ago
lihui_ocr 17c5bdf877 fix:返回列表页面
2 years ago
yaoshuli 4a10a081f5 Merge pull request 'fix/updatesyspic' (#260) from fix/updatesyspic into test
2 years ago
lihui_ocr b22c7af4b3 feat:快捷键 c退出全屏
2 years ago
raofuzi 3d1fc49fd8 feat: 修改加载问题
2 years ago
raofuzi bbd58dd214 feat: 修改加载问题
2 years ago
raofuzi 457c2790b6 Merge branch 'test' of https://git.mcnetmart.com/guoxiangbin/ocr-web into fix/updatesyspic
2 years ago
raofuzi e172845658 feat: 修改加载问题
2 years ago
yaoshuli 0813c8d991 Merge pull request 'feat:终审卡片最大化报错处理' (#259) from 20240420keydown into test
2 years ago
zhouxiaoan b641b502f4 feat:终审卡片最大化报错处理
2 years ago
lihui_ocr ac9abbb360 feat:首页小狗加快捷键
2 years ago
赵辉 9e359c6a16 Merge pull request 'fix:可疑文件通过未通过样式' (#258) from fix/change_task into test
2 years ago
lihui_ocr e34a11759f fix:可疑文件通过未通过样式
2 years ago
yaoshuli 6da3df16bd Merge pull request 'feat: 修改按钮距离问题' (#255) from fix/updatesyspic into test
2 years ago
raofuzi f634fe008b feat: 修改图标展示问题
2 years ago
raofuzi a885893342 Merge branch 'test' of https://git.mcnetmart.com/guoxiangbin/ocr-web into fix/updatesyspic
2 years ago
raofuzi 721dfb5732 feat: 修改图片圆角问题
2 years ago
赵辉 2829fa9a8a Merge pull request 'fix:图标回显问题' (#257) from fix/change_task into test
2 years ago
lihui_ocr ae6cb69b19 fix:图标回显问题
2 years ago
赵辉 9f96a3d2a7 Merge pull request 'fix:快捷键弹筐效果调整' (#256) from fix/change_task into test
2 years ago
lihui_ocr 8a32b683af fix:快捷键弹筐效果调整
2 years ago
raofuzi 123f6f2392 Merge branch 'test' of https://git.mcnetmart.com/guoxiangbin/ocr-web into fix/updatesyspic
2 years ago
raofuzi b41389f192 feat: 修改按钮距离问题
2 years ago
赵辉 c7a5b5f26f Merge pull request 'fix:图片审批沉浸模式 消息公告名字 消息公告回显标题' (#254) from fix/change_task into test
2 years ago
lihui_ocr 63d49a6ef3 fix:图片审批沉浸模式 消息公告名字 消息公告回显标题
2 years ago
yaoshuli ffbd15443a Merge pull request 'fix/updatesyspic' (#252) from fix/updatesyspic into test
2 years ago
赵辉 b2b773c4a6 Merge pull request 'fix:- -的添加' (#253) from fix/change_task into test
2 years ago
lihui_ocr ebd93126bd fix:- -的添加
2 years ago
raofuzi 87063d3bf2 feat: 修改加载慢问题
2 years ago
raofuzi 88e2cbb7b1 Merge branch 'test' of https://git.mcnetmart.com/guoxiangbin/ocr-web into fix/updatesyspic
2 years ago
raofuzi 3bed6c559a feat: 修改按钮距离问题
2 years ago
赵辉 bcb0235eb4 Merge pull request 'fix' (#251) from fix/change_task into test
2 years ago
lihui_ocr aca9fd5a40 fix
2 years ago
赵辉 1917ac7b0a Merge pull request 'fix:无时间时展示内容' (#250) from fix/change_task into test
2 years ago
lihui_ocr b91eee93cc fix:无时间时展示内容
2 years ago
yaoshuli 94b4e1dc3b Merge pull request 'fix: 图检审批左右键异常处理' (#248) from 20240420keydown into test
2 years ago
yaoshuli 78cd69fe7d Merge pull request 'fix/updatesyspic' (#245) from fix/updatesyspic into test
2 years ago
赵辉 a27866f409 Merge pull request 'fix:提示栏背景颜色调整' (#249) from fix/change_task into test
2 years ago
lihui_ocr 45e6ef340c fix:提示栏背景颜色调整
2 years ago
zhouxiaoan 4193b03fba fix: 图检审批左右键异常处理
2 years ago
赵辉 a57173da41 Merge pull request 'feat:删除按钮的联动' (#247) from fix/change_task into test
2 years ago
lihui_ocr 89c26a38a7 feat:删除按钮的联动
2 years ago
赵辉 475846b872 Merge pull request 'feat:已审批的不可移入可疑文件夹中' (#246) from fix/change_task into test
2 years ago
lihui_ocr 5aeccffdaf feat:已审批的不可移入可疑文件夹中
2 years ago
raofuzi 42d5e1b0ab feat: 修改加载慢问题
2 years ago
raofuzi 97ebc08c61 Merge branch 'test' of https://git.mcnetmart.com/guoxiangbin/ocr-web into fix/updatesyspic
2 years ago
raofuzi 9c25f60bee feat: 修改加载慢问题
2 years ago
赵辉 7c825aeb27 Merge pull request 'fix:全局样式问题调整' (#244) from fix/change_task into test
2 years ago
lihui_ocr 1642a60615 fix:全局样式问题调整
2 years ago
李忠 875eb84cdb Merge pull request 'fix: 处理图检审批左右按键异常' (#243) from 20240420keydown into test
2 years ago
李忠 baaad7926e Merge branch 'test' into 20240420keydown
2 years ago
李忠 fd4638c5dc Merge pull request 'fix/updatesyspic' (#242) from fix/updatesyspic into test
2 years ago
李忠 f68776c228 Merge branch 'test' into fix/updatesyspic
2 years ago
zhouxiaoan 02d6acba41 fix: 处理图检审批左右按键异常
2 years ago
raofuzi 2b5b0f9a14 Merge branch 'test' of https://git.mcnetmart.com/guoxiangbin/ocr-web into fix/updatesyspic
2 years ago
raofuzi 1d35907097 feat: 修改加载问题
2 years ago
赵辉 5ef6710b6d Merge pull request 'fix:顶部内容回显,快捷键c' (#241) from fix/change_task into test
2 years ago
lihui_ocr df1b8efb30 fix:顶部内容回显,快捷键c
2 years ago
yaoshuli 838552242c Merge pull request 'feat: 修改加载问题' (#240) from fix/updatesyspic into test
2 years ago
yaoshuli 98b0942dc6 Merge pull request 'feat: 增加沉浸模式快捷键提示' (#239) from 20240420keydown into test
2 years ago
raofuzi 8a68a00d8a Merge branch 'test' of https://git.mcnetmart.com/guoxiangbin/ocr-web into fix/updatesyspic
2 years ago
raofuzi b1bf76eb43 feat: 修改加载问题
2 years ago
zhouxiaoan 34c21adf21 feat: 增加沉浸模式快捷键提示
2 years ago
赵辉 f4304a1062 Merge pull request 'feat:详情页跳转回' (#238) from fix/change_task into test
2 years ago
lihui_ocr 024d7892dc feat:详情页跳转回
2 years ago
李忠 c6631bdd21 Merge pull request 'feat: 更改任务状态字段' (#237) from 20240420keydown into test
2 years ago
李忠 c3ce0fc03d Merge pull request 'fix/updatesyspic' (#236) from fix/updatesyspic into test
2 years ago
zhouxiaoan 40957ee00d feat: 更改任务状态字段
2 years ago
raofuzi 4a5ace400d feat: 修改加载问题
2 years ago
raofuzi e6a93cac62 feat: 修改加载问题
2 years ago
raofuzi 79bf7f039c Merge branch 'test' of https://git.mcnetmart.com/guoxiangbin/ocr-web into fix/updatesyspic
2 years ago
raofuzi c5dbcdf3fc feat: 修改加载问题
2 years ago
yaoshuli 723b5cba3f Merge pull request 'fix/updatesyspic' (#235) from fix/updatesyspic into test
2 years ago
raofuzi 8d4c7bcb47 Merge branch 'test' of https://git.mcnetmart.com/guoxiangbin/ocr-web into fix/updatesyspic
2 years ago
raofuzi 92049e5c6c feat: 修改拖动
2 years ago
李忠 fe4407fefc Merge pull request 'feat: 增加快捷键操作' (#234) from 20240420keydown into test
2 years ago
zhouxiaoan 682063c263 feat: 增加快捷键操作
2 years ago
赵辉 a7fa0cb98f Merge pull request 'feat:展示全部内容将高筛其他条件一并带上' (#233) from fix/change_task into test
2 years ago
lihui_ocr 40018c0899 feat:展示全部内容将高筛其他条件一并带上
2 years ago
赵辉 41b635d8ec Merge pull request 'fix:任务审批添加销毁' (#232) from fix/change_task into test
2 years ago
lihui_ocr 8d4dcc04be fix:任务审批添加销毁
2 years ago
赵辉 9dd7ee140f Merge pull request 'fix:通过不通过后状态的控制' (#231) from fix/change_task into test
2 years ago
lihui_ocr 9957c9e493 fix:通过不通过后状态的控制
2 years ago
赵辉 eb70a71fa9 Merge pull request 'fix:顶部间距调整 查重图片名字不全 下拉框偏移' (#230) from fix/change_task into test
2 years ago
lihui_ocr 37b46395ef fix:顶部间距调整 查重图片名字不全 下拉框偏移
2 years ago
yaoshuli df6e795b57 Merge pull request 'feat: 完善taskindex取值逻辑' (#229) from feat/20240417similarite into test
2 years ago
zhouxiaoan f961c27255 feat: 完善taskindex取值逻辑
2 years ago
yaoshuli 99cf47a7dd Merge pull request 'feat:修改图片' (#228) from fix/updatesyspic into test
2 years ago
raofuzi 399d6ac585 Merge branch 'test' of https://git.mcnetmart.com/guoxiangbin/ocr-web into fix/updatesyspic
2 years ago
raofuzi 03e7dc7805 feat:修改图片
2 years ago
赵辉 441e200c16 Merge pull request 'fix:location字段加限制' (#227) from fix/change_task into test
2 years ago
lihui_ocr 3d52e75cca fix:location字段加限制
2 years ago
yaoshuli a9d0ba121f Merge pull request 'fix/updatesyspic' (#226) from fix/updatesyspic into test
2 years ago
raofuzi af3ac1eb5e feat:修改图片
2 years ago
raofuzi cb6b367186 Merge branch 'test' of https://git.mcnetmart.com/guoxiangbin/ocr-web into fix/updatesyspic
2 years ago
raofuzi 25b99e95ba feat:修改图片
2 years ago
赵辉 03f5aa11dc Merge pull request 'fix:选中模糊查询后动态关联' (#225) from fix/change_task into test
2 years ago
lihui_ocr 4a3fba0b13 fix:选中模糊查询后动态关联
2 years ago
赵辉 e9ac871339 Merge pull request 'fix:终审滚动展示问题修改' (#224) from fix/change_task into test
2 years ago
lihui_ocr b45a9df6b0 fix:终审滚动展示问题修改
2 years ago
yaoshuli e42b3fb7dd Merge pull request 'fix/updatesyspic' (#223) from fix/updatesyspic into test
2 years ago
raofuzi 113091d460 feat:修改图片
2 years ago
raofuzi c28e2ca125 Merge branch 'test' of https://git.mcnetmart.com/guoxiangbin/ocr-web into fix/updatesyspic
2 years ago
yaoshuli 586c66de5a Merge pull request 'feat: 审批选择增加taskindex条件' (#222) from feat/20240417similarite into test
2 years ago
raofuzi 79c8fbe859 Merge branch 'test' of https://git.mcnetmart.com/guoxiangbin/ocr-web into fix/updatesyspic
2 years ago
raofuzi 43bf9b414b feat:修改图片
2 years ago
zhouxiaoan b675eb3611 feat: 审批选择增加taskindex条件
2 years ago
zhouxiaoan 628c4a44f1 feat: 审批选择增加taskindex条件
2 years ago
yaoshuli 5513ed4657 Merge pull request 'feat:修改图片' (#221) from fix/updatesyspic into test
2 years ago
raofuzi 9d21dcb1cd Merge branch 'test' of https://git.mcnetmart.com/guoxiangbin/ocr-web into fix/updatesyspic
2 years ago
raofuzi 7e6da80846 feat:修改图片
2 years ago
yaoshuli 29bd07a654 Merge pull request 'feat: 主图获取接口增加taskindex字段' (#220) from feat/20240417similarite into test
2 years ago
zhouxiaoan 57849f1f15 feat: 主图获取接口增加taskindex字段
2 years ago
zhouxiaoan d17304c9ff feat: 主图获取接口增加taskindex字段
2 years ago
yaoshuli 68fdfecc5b Merge pull request 'fix/updatesyspic' (#217) from fix/updatesyspic into test
2 years ago
raofuzi 7e2365a6ae feat:修改图片
2 years ago
raofuzi 4f47a82f27 feat:修改图片
2 years ago
raofuzi 00c94f858f Merge branch 'test' of https://git.mcnetmart.com/guoxiangbin/ocr-web into fix/updatesyspic
2 years ago
raofuzi f94169ec20 feat:修改图片
2 years ago
刘释隆 c73ebe5e55 Merge pull request 'fix:修复样式问题' (#218) from fix/ui_error into test
2 years ago
刘释隆 31b02e2c68 Merge branch 'test' into fix/ui_error
2 years ago
刘释隆 b43e9beb2e feat: 解决冲突
2 years ago
刘释隆 e0a4bc292a feat: 样式修复
2 years ago
刘释隆 1e74d0ac80 feat: 距顶部180px,左右居中展示
2 years ago
raofuzi 88f8b84c78 feat:修改冲突
2 years ago
刘释隆 f30d1960e5 feat: 前置符号与星号与文字等高
2 years ago
raofuzi e693d15462 feat:修改冲突
2 years ago
刘释隆 3b772d2ad8 feat: 相似度阈值样式
2 years ago
刘释隆 8df512b429 Merge pull request 'feat: api请求数据处理及bug修复' (#216) from fix/allseach_bug into test
2 years ago
刘释隆 2246792839 Merge pull request 'fix: 修复问题' (#215) from fix/bug into test
2 years ago
刘释隆 45cf403746 Merge branch 'test' into fix/bug
2 years ago
刘释隆 2ebbd52929 fix: 解决冲突
2 years ago
刘释隆 f9bd200593 feat: api请求数据处理及bug修复
2 years ago
刘释隆 417ece83b9 feat: bug修复
2 years ago
刘释隆 3b0b8c5579 Merge pull request 'feat:任务审批图片相似度接口增加参数' (#213) from feat/20240417similarite into test
2 years ago
zhouxiaoan 6d676b1ea3 feat:任务审批图片相似度接口增加参数
2 years ago
刘释隆 17dc01afa7 Merge pull request 'feat:修改冲突' (#211) from fix/updatesyspic into test
2 years ago
赵辉 b1904b3236 Merge pull request 'feat:添加阈值标签,全部展示功能的联动' (#212) from fix/change_task into test
2 years ago
lihui_ocr 9783d5f0ab feat:添加阈值标签,全部展示功能的联动
2 years ago
raofuzi 72d9431235 Merge branch 'test' of https://git.mcnetmart.com/guoxiangbin/ocr-web into fix/updatesyspic
2 years ago
raofuzi 259d846d86 feat:修改冲突
2 years ago
刘释隆 bc5e4137a5 feat: 异步弹窗调整
2 years ago
刘释隆 c9282047ec Merge pull request 'fix/updatesyspic' (#208) from fix/updatesyspic into test
2 years ago
raofuzi e8c7b3cfeb feat:修改冲突
2 years ago
raofuzi e73a59932b feat:修改冲突
2 years ago
刘释隆 b9b292289e feat: 基本信息蒙版距离任务包名称16,任务包名称距离输入框8,
2 years ago
刘释隆 91480ef28e feat: 顶部当前位置图标应与下方高级筛选图标对齐
2 years ago
刘释隆 4eea9f79d7 feat: 左侧高级筛选模块距离左侧模块边框16像素,距离底部16px,
2 years ago
赵辉 7d01f2f255 Merge pull request 'feat:卡片模式及表格模式连动,卡片模式及高级筛选联动' (#210) from fix/change_task into test
2 years ago
lihui_ocr 3e26b67957 feat:卡片模式及表格模式连动,卡片模式及高级筛选联动
2 years ago
赵辉 a1e5ee2dd5 Merge pull request 'feat:添加三种排序方式' (#209) from fix/change_task into test
2 years ago
lihui_ocr bb7b9c3954 feat:添加三种排序方式
2 years ago
raofuzi 9a5700ae00 feat: 修改图片相关bug
2 years ago
raofuzi 2c3d200d75 feat: 修改图片相关bug
2 years ago
刘释隆 2eccbba7d2 Merge pull request 'feat: 样式补全及逻辑优化' (#207) from feat/allSearch_style into test
2 years ago
刘释隆 bf836818d3 feat: 必填标识调整
2 years ago
刘释隆 e1ff1bef0e feat: 修复逻辑问题及样式缺陷
2 years ago
赵辉 62e90716bf Merge pull request 'fix:整体样式调整' (#206) from fix/change_task into test
2 years ago
lihui_ocr eb80c0fc25 fix:整体样式调整
2 years ago
刘释隆 dc249d2e52 Merge pull request 'fix: 修复所有模块全局搜索后不重置条件问题' (#205) from fix/allSearch into test
2 years ago
刘释隆 d1b59974c7 fix: 修复所有模块全局搜索后不重置条件问题
2 years ago
刘释隆 71541e579f Merge pull request 'fix: 修复一键查重默认字段不生效问题' (#204) from fix/home_nodefault into test
2 years ago
刘释隆 22d655c4d1 fix: 修复一键查重默认字段不生效问题
2 years ago
刘释隆 0187c85944 Merge pull request 'fix: rule提示图标补全' (#202) from fix/url_error into test
2 years ago
刘释隆 e4cff7e758 fix: rule提示图标补全
2 years ago
赵辉 3b42457c9d Merge pull request 'fix:根据ui调整卡片样式' (#201) from fix/change_task into test
2 years ago
lihui_ocr 3dea84c958 fix:根据ui调整卡片样式
2 years ago
赵辉 13d32c2072 Merge pull request 'feat:终审批量通过批量不通过' (#200) from fix/change_task into test
2 years ago
lihui_ocr 9cb6d0f454 feat:终审批量通过批量不通过
2 years ago
刘释隆 2e82f3fe14 Merge pull request 'feat:处理xx键执行异常' (#199) from fix/bug-20240416 into test
2 years ago
zhouxiaoan 78d5f11abe feat:处理xx键执行异常
2 years ago
zhouxiaoan 4beede5e22 feat:处理xx键执行异常
2 years ago
刘释隆 f8265a2d26 Merge pull request 'feat: 头部数据对接接口' (#198) from feat/data_header into test
2 years ago
刘释隆 ed94b40c36 feat: 头部数据对接接口
2 years ago
刘释隆 7eafe1f938 Merge pull request 'fix: 修复公司名称展示及菜单权限限制' (#197) from fix/menus_error into test
2 years ago
刘释隆 0816abc9c7 fix: 修复公司名称展示及菜单权限限制
2 years ago
赵辉 4f17d6b808 Merge pull request 'feat:卡片页滚动与通过后状态修改' (#196) from fix/change_task into test
2 years ago
lihui_ocr 9bcc0a6425 feat:卡片页滚动与通过后状态修改
2 years ago
刘释隆 cb5da29223 Merge pull request 'fix: 修复全局搜索任务审批模块报错问题' (#195) from fix/allSearch_task_error into test
2 years ago
刘释隆 b319a18072 fix: 修复全局搜索任务审批模块报错问题
2 years ago
李忠 08973c8225 Merge pull request 'fix: 加入可疑文件夹增加消息提示' (#194) from fix/confirmTips into test
2 years ago
zhouxiaoan 64d9d2f01a fix: 加入可疑文件夹增加消息提示
2 years ago
刘释隆 632fc96cdb Merge pull request 'feat: 去除任务审批字段全选功能' (#193) from feat/fieldModal into test
2 years ago
刘释隆 da37a816bb feat: 去除任务审批字段全选功能
2 years ago
zhouxiaoan 2d53182446 Merge pull request 'feat: 自定义任务包字段清空搜索条件' (#192) from fix/modalClear into test
2 years ago
zhouxiaoan 8c13e8bf0d feat: 自定义任务包字段清空搜索条件
2 years ago
赵辉 bbfcc03d56 Merge pull request 'feat:新增终审卡片效果' (#191) from fix/change_task into test
2 years ago
lihui_ocr ebef733996 feat:新增终审卡片样式
2 years ago
李忠 848ecd9838 Merge pull request 'feat: 按键事件处理' (#190) from fix/keyhandler into test
2 years ago
zhouxiaoan 98f1fda6db feat: 处理类型报错
2 years ago
zhouxiaoan 428663af5c feat: 按键事件处理
2 years ago
李忠 99545f481a Merge pull request 'fix/suspiciousSort' (#189) from fix/suspiciousSort into test
2 years ago
raofuzi f1b3364018 feat: 修改加载bug
2 years ago
raofuzi 1166daa7b6 feat: 修改加载bug
2 years ago
raofuzi dd28d3f238 Merge branch 'test' of https://git.mcnetmart.com/guoxiangbin/ocr-web into fix/suspiciousSort
2 years ago
raofuzi d9e2702936 feat: 修改加载bug
2 years ago
刘释隆 bdd40db2b3 Merge pull request 'fix: 修复用户设置点击报错bug' (#188) from fix/userClickBug into test
2 years ago
刘释隆 6042b2a350 fix: 修复用户设置点击报错bug
2 years ago
刘释隆 21ff0cfca4 Merge pull request 'fix: 删除无效代码' (#187) from fix/20240412bug into test
2 years ago
zhouxiaoan 5f65940c1b fix: 删除无效代码
2 years ago
zhouxiaoan 8edc6d14ea feat: 修改bug
2 years ago
raoyongjun 9d6d0b2de8 Merge pull request 'fix/suspiciousSort' (#185) from fix/suspiciousSort into test
2 years ago
raofuzi 2aaa96fbcd feat: 修改滚动bug
2 years ago
raofuzi d40509e294 feat: 修改滚动bug
2 years ago
raofuzi 3b2f46e984 feat: 修改bug
2 years ago
刘释隆 7fa2dc76b9 Merge pull request 'feat: 适配登录接口修改' (#184) from feat/changeLogin into test
2 years ago
刘释隆 d722e6fc1d feat: 适配登录接口修改
2 years ago
刘释隆 197b6cc288 Merge pull request 'fix: 修复全局搜索后页面数据多次获取问题' (#183) from fix/fetch_bug into test
2 years ago
刘释隆 6caa3d46bf fix: 修复全局搜索后页面数据多次获取问题
2 years ago
刘释隆 572903f4dc Merge pull request 'fix: 修复终审页面无法跳转首页问题' (#182) from fix/jumpHome_error into test
2 years ago
刘释隆 5156b9ccae fix: 修复终审页面无法跳转首页问题
2 years ago
刘释隆 5e52a9a191 Merge pull request 'chore: eslint报错规则修改' (#181) from chore/eslintChange into test
2 years ago
刘释隆 122a38c381 chore: eslint报错规则修改
2 years ago
刘释隆 6400ab613a Merge pull request 'fix: 冲突修复' (#180) from fix/merge into test
2 years ago
刘释隆 8ab2376871 fix: 冲突修复
2 years ago
赵辉 6abd4859fe Merge pull request 'feat:超出添加提示' (#179) from fix/change_task into test
2 years ago
lihui_ocr e1ef8e35e7 feat:超出添加提示
2 years ago
刘释隆 02c81d0b41 Merge pull request 'chore: 提交git统一代码风格' (#178) from chore/husky into test
2 years ago
raoyongjun d401a2ce6a Merge pull request 'fix/suspiciousSort' (#177) from fix/suspiciousSort into test
2 years ago
raofuzi e4e3d251e0 feat: 修改bug
2 years ago
刘释隆 d4d6be6e25 feat: git提交前操作
2 years ago
raofuzi d4042d234e Merge branch 'test' of https://git.mcnetmart.com/guoxiangbin/ocr-web into fix/suspiciousSort
2 years ago
raofuzi ce25698eb8 feat: 修改bug
2 years ago
刘释隆 3f811759e3 feat: eslint配置save
2 years ago
刘释隆 08d0c2dea6 feat: eslint配置
2 years ago
zhouxiaoan 356e897bce Merge branch 'fix/20240412bug' into test
2 years ago
raoyongjun 93ffdeed71 Merge pull request 'feat: 修改bug' (#175) from fix/suspiciousSort into test
2 years ago
raofuzi 6be68c72a5 Merge branch 'test' of https://git.mcnetmart.com/guoxiangbin/ocr-web into fix/suspiciousSort
2 years ago
raofuzi 3e0158679f feat: 修改bug
2 years ago
zhouxiaoan 037f5d30d0 fix: 合并test分支处理冲突
2 years ago
贾博轩 2256b416ac Merge branch 'test' of https://git.mcnetmart.com/guoxiangbin/ocr-web into test
2 years ago
贾博轩 40ca137203 feat: 解决逻辑冲突问题
2 years ago
zhouxiaoan cd42a5bc40 fix: 合并test分支处理冲突
2 years ago
刘释隆 75e1c098b7 Merge pull request 'fix: 回滚样式并调整字段取值' (#174) from fix/error_ui into test
2 years ago
刘释隆 257ebca62b fix: 回滚样式并调整字段取值
2 years ago
zhouxiaoan 878a81a355 fix: 处理图鉴管理布局样式
2 years ago
raoyongjun 5a0d4e8b0a Merge pull request 'fix/suspiciousSort' (#173) from fix/suspiciousSort into test
2 years ago
raofuzi f5cc60e423 feat: 修改bug
2 years ago
raofuzi 39e4d383fe feat: 修改bug
2 years ago
raofuzi 6ce50b5d33 feat: 修改bug
2 years ago
赵辉 68eee1a809 Merge pull request 'fix:箭头的选中状态' (#172) from fix/change_task into test
2 years ago
lihui_ocr 732d41db11 fix:箭头的选中状态
2 years ago
赵辉 9dc782de7f Merge pull request 'fix:修改沉浸模式样式' (#171) from fix/change_task into test
2 years ago
lihui_ocr eec8ad7573 fix:修改沉浸模式样式
2 years ago
贾博轩 43d15cfdcf feat: 新增最后审批查找功能
2 years ago
贾博轩 cc6f0ce4c1 Merge branch 'test' of https://git.mcnetmart.com/guoxiangbin/ocr-web into test
2 years ago
贾博轩 995dad8723 feat: 修改消息列表审批通知等功能
2 years ago
刘释隆 ca6fb53d08 Merge pull request 'feat/select_change' (#170) from feat/select_change into test
2 years ago
刘释隆 79596247f1 Merge branch 'test' into feat/select_change
2 years ago
刘释隆 acd661ffd2 feat: 任务审批逻辑修改及图审主图展示适配
2 years ago
raoyongjun fe50821c30 Merge pull request 'fix/suspiciousSort' (#168) from fix/suspiciousSort into test
2 years ago
raofuzi 00ec4dd402 feat: 修改bug
2 years ago
raofuzi 663afdaf5e feat: 修改bug
2 years ago
赵辉 1304f3365d Merge pull request 'feat:位置信息加标签' (#167) from fix/change_task into test
2 years ago
lihui_ocr ff103fe611 位置信息加标签
2 years ago
赵辉 303a8b0f90 Merge pull request 'FIX:第四次审批样式修改' (#166) from fix/change_task into test
2 years ago
lihui_ocr 1e041144b8 FIX:第四次审批样式修改
2 years ago
刘释隆 f50f8ac87b Merge pull request 'feat: 任务审批自定义字段逻辑修改及图审主图ui修改' (#165) from feat/ui_task_update into test
2 years ago
刘释隆 6ad5e1f158 feat: 任务审批自定义字段逻辑修改及图审主图ui修改
2 years ago
贾博轩 afa388f6eb feat: 合并test分支内容到jia
2 years ago
zhouxiaoan 8aa1090229 Merge pull request 'fix: 处理图鉴管理布局错误' (#164) from fix/20240412bug into test
2 years ago
zhouxiaoan b80d9edef4 fix: 处理图鉴管理布局错误
2 years ago
raofuzi 28dde2bfa4 Merge branch 'test' of https://git.mcnetmart.com/guoxiangbin/ocr-web into fix/suspiciousSort
2 years ago
刘释隆 7e34bf0440 Merge pull request 'fix: 修复打包时报错问题' (#163) from fix/import_error into test
2 years ago
刘释隆 bb68446e6a fix: 修复打包时报错问题
2 years ago
刘释隆 52e92a391c Merge pull request 'feat: 高级筛选样式修改' (#162) from feat/ui_error_superSearch into test
2 years ago
刘释隆 128ed694cf feat: 高级筛选样式修改
2 years ago
zhouxiaoan 9ff0959153 fix: 合并代码处理冲突
2 years ago
zhouxiaoan daf79405c1 Merge pull request 'fix:20240410bug修复' (#154) from fix/modifyStyle into test
2 years ago
zhouxiaoan 38a43bed83 fix: 合并代码处理冲突
2 years ago
raofuzi 939a7344c8 Merge branch 'test' of https://git.mcnetmart.com/guoxiangbin/ocr-web into fix/suspiciousSort
2 years ago
raofuzi ab88ad3e68 feat: 修改bug
2 years ago
zhouxiaoan 6c734d297c fix:
2 years ago
赵辉 6586b20488 Merge pull request 'feat:动态的' (#160) from fix/change_task into test
2 years ago
lihui_ocr 8fa20480f1 feat:动态的
2 years ago
赵辉 926c09d83f Merge pull request 'fix:排序功能修改完成' (#159) from fix/change_task into test
2 years ago
lihui_ocr b861266987 fix:排序功能修改完成
2 years ago
赵辉 cf7386b337 Merge pull request 'fix:沉浸模式布局及不同状态优化' (#158) from fix/change_task into test
2 years ago
lihui_ocr 0b860955ef fix:沉浸模式布局及不同状态优化
2 years ago
刘释隆 f91f028cf7 Merge pull request 'feat: 适配后端字段' (#156) from fix/task_modules_error into test
2 years ago
刘释隆 06296781db feat: 适配后端字段
2 years ago
刘释隆 dd072b58c5 Merge pull request 'feat: 修改样式缺陷并完善图审页面适配后端字段变动' (#155) from fix/home_ui_erro into test
2 years ago
刘释隆 a45ba04d32 feat: 修改样式缺陷并完善图审页面适配后端字段变动
2 years ago
刘释隆 622ff84521 Merge pull request 'feat: 修改样式' (#153) from fix/ui_error into test
2 years ago
刘释隆 5d898cb6be feat: 修改样式
2 years ago
raoyongjun e9b26e8334 Merge pull request 'fix/suspiciousSort' (#152) from fix/suspiciousSort into test
2 years ago
raofuzi 774a6677e1 Merge branch 'test' of https://git.mcnetmart.com/guoxiangbin/ocr-web into fix/suspiciousSort
2 years ago
raofuzi ab5ffd320c feat: 修改bug
2 years ago
刘释隆 54e6a6386c Merge pull request 'fix: 终审页面无法跳转bug修复' (#151) from fix/home_ui_erro into test
2 years ago
刘释隆 fa59bd43c0 fix: 终审页面无法跳转bug修复
2 years ago
raoyongjun d63bb0eb2f Merge pull request 'feat: 修改bug' (#150) from fix/suspiciousSort into test
2 years ago
raofuzi 1ecfc7abcb Merge branch 'test' of https://git.mcnetmart.com/guoxiangbin/ocr-web into fix/suspiciousSort
2 years ago
raofuzi 2ce03ead8f feat: 修改bug
2 years ago
shenhailong b4dc165ded Merge pull request 'feat:终审table 滚动问题' (#149) from fix/finalScroll into test
2 years ago
Dragon 10df0d3250 终审table 滚动问题
2 years ago
zhouxiaoan dae1ebcffd fix:
2 years ago
赵辉 8c1298ba96 Merge pull request 'fix:沉浸模式下小图片的审核功能及批量操作' (#148) from fix/changeimgback into test
2 years ago
lihui_ocr 79dde563fe fix:沉浸模式下小图片的审核功能及批量操作
2 years ago
赵辉 19dcce1d85 Merge pull request 'fix:任务审批布局错乱修改' (#147) from fix/changeimgback into test
2 years ago
lihui_ocr 06efeb904e fix:任务审批布局错乱修改
2 years ago
赵辉 206d3c570c Merge pull request 'fix:通过不通过快捷键问题修改' (#146) from fix/changeimgback into test
2 years ago
lihui_ocr 4a86c212b2 fix:通过不通过快捷键问题修改
2 years ago
raoyongjun f7e52a86e1 Merge pull request 'fix/suspiciousSort' (#145) from fix/suspiciousSort into test
2 years ago
raofuzi d602ede9e9 feat: 修改bug
2 years ago
raofuzi bc0721e2ec Merge branch 'test' of https://git.mcnetmart.com/guoxiangbin/ocr-web into fix/suspiciousSort
2 years ago
raofuzi b683a3d774 feat: 修改bug
2 years ago
zhouxiaoan f59ac652db fix:
2 years ago
刘释隆 f6c442a7e5 Merge pull request 'fix: 层级问题修复及字段展示状态修复' (#144) from fix/ui_field_bug into test
2 years ago
刘释隆 ab76d6b1ea fix: 层级问题修复及字段展示状态修复
2 years ago
raoyongjun 00259a644e Merge pull request 'feat: 修改bug' (#143) from fix/suspiciousSort into test
2 years ago
raofuzi 655d567f3b Merge branch 'test' of https://git.mcnetmart.com/guoxiangbin/ocr-web into fix/suspiciousSort
2 years ago
raofuzi fcdba31a05 feat: 修改bug
2 years ago
shenhailong 5befc433d8 Merge pull request 'feat:筛选背景色' (#142) from fix/finalBg into test
2 years ago
Dragon 6533af31b5 筛选背景色
2 years ago
shenhailong 543bb181c4 Merge pull request 'feat:终审动态列表' (#141) from fix/finalScroll into test
2 years ago
Dragon bc7fcf648d 终审动态列表
2 years ago
赵辉 642c3056db Merge pull request 'feat:主图加入到可疑文件中' (#140) from fix/changeimgback into test
2 years ago
lihui_ocr b4ef13b319 feat:主图加入到可疑文件中
2 years ago
shenhailong 124ba1910c Merge pull request 'feat:显示全部任务数据默认值修改' (#139) from fix/final into test
2 years ago
Dragon af102caccd 显示全部任务数据默认值修改
2 years ago
刘释隆 7e4cb18698 Merge pull request 'feat: 所有页面新增右下角图标,修改登录弹窗,修改样式' (#138) from feat/add_robot into test
2 years ago
刘释隆 49a7e5c053 feat: 所有页面新增右下角图标,修改登录弹窗,修改样式
2 years ago
raoyongjun 8c2e097b8c Merge pull request 'fix/suspiciousSort' (#137) from fix/suspiciousSort into test
2 years ago
raofuzi ebc036b9ed feat: 修改bug
2 years ago
raofuzi 3b7a3f4b19 Merge branch 'test' of https://git.mcnetmart.com/guoxiangbin/ocr-web into fix/suspiciousSort
2 years ago
raofuzi 92932f3903 feat: 修改bug
2 years ago
赵辉 1473d1efc2 Merge pull request 'fix:快捷键 pp xx问题修改' (#136) from fix/changeimgback into test
2 years ago
lihui_ocr f984c8888d fix:快捷键 pp xx问题修改
2 years ago
赵辉 2ca77daaec Merge pull request 'fix:图片样式修改' (#135) from fix/changeimgback into test
2 years ago
lihui_ocr aef13be82e fix:图片样式修改
2 years ago
赵辉 418f335d3c Merge pull request 'feat:添加可疑文件按钮' (#134) from fix/changeimgback into test
2 years ago
lihui_ocr a4fe861b64 feat:添加可疑文件按钮
2 years ago
刘释隆 adfba0701e Merge pull request 'fix: 高级筛选出血线,头部数据样式修改' (#133) from fix/header_ui_error into test
2 years ago
刘释隆 4085e0dd15 fix: 高级筛选出血线,头部数据样式修改
2 years ago
赵辉 fbf1112fbe Merge pull request 'feat:高级检索有信息展示第一个' (#132) from fix/changeimgback into test
2 years ago
lihui_ocr 449cf461a7 feat:高级检索有信息展示第一个
2 years ago
赵辉 bb0b7c9df6 Merge pull request 'feat:快捷键' (#131) from fix/changeimgback into test
2 years ago
lihui_ocr 9b9db907bf feat:快捷键
2 years ago
赵辉 0d1e6d5e3f Merge pull request 'fix:布局平铺' (#130) from fix/changeimgback into test
2 years ago
lihui_ocr 7677963d3a fix:布局平铺
2 years ago
raoyongjun b343464bf7 Merge pull request 'feat: 修改bug' (#129) from fix/suspiciousSort into test
2 years ago
raofuzi b25e87f558 Merge branch 'test' of https://git.mcnetmart.com/guoxiangbin/ocr-web into fix/suspiciousSort
2 years ago
刘释隆 4eba08b97d Merge pull request 'fix: 任务审批模块字段错误修复' (#128) from fix/task_flied_error into test
2 years ago
raofuzi 07c93b17fc feat: 修改bug
2 years ago
刘释隆 1b8c56ac49 fix: 任务审批模块字段错误修复
2 years ago
赵辉 2bcad6d427 Merge pull request 'fix:放大相似图片不同视图效果修改' (#127) from fix/changeimgback into test
2 years ago
lihui_ocr a6e144b15c fix:放大相似图片不同视图效果修改
2 years ago
赵辉 77d61a986d Merge pull request 'fix:相似图片放大时间蒙层' (#126) from fix/changeimgback into test
2 years ago
lihui_ocr e76211ed07 fix:相似图片放大时间蒙层
2 years ago
赵辉 fd1ec733ff Merge pull request 'fix:蒙层高度优化,拖拽功能问题修复' (#125) from fix/changeimgback into test
2 years ago
lihui_ocr 641bb3bba7 fix:蒙层高度优化,拖拽功能问题修复
2 years ago
赵辉 48e63eb920 Merge pull request 'feat:点击位置名称创建腾讯地图坐标' (#124) from fix/changeimgback into test
2 years ago
lihui_ocr 232aad600f feat:点击位置名称创建腾讯地图坐标
2 years ago
刘释隆 4311936ab9 Merge pull request 'feat: 头部数据样式修改' (#123) from feature/data_header into test
2 years ago
刘释隆 bff4baa8fc feat: 头部数据样式修改
2 years ago
刘释隆 c2ee8ba1e1 Merge pull request 'feat: 修复提出样式问题' (#122) from feat/uiNchange into test
2 years ago
刘释隆 abdaa6c3fd feat: 修复提出样式问题
2 years ago
刘释隆 406b88e424 Merge pull request 'feat: 修改样式问题及交互逻辑' (#121) from feat/ui_error into test
2 years ago
刘释隆 c578e2e658 feat: 修改样式问题及交互逻辑
2 years ago
raoyongjun 3800c0b1df Merge pull request 'fix/suspiciousSort' (#120) from fix/suspiciousSort into test
2 years ago
raofuzi 114d5e9527 feat: 修改冲突
2 years ago
raofuzi 5df5e47fc1 Merge branch 'test' of https://git.mcnetmart.com/guoxiangbin/ocr-web into fix/suspiciousSort
2 years ago
赵辉 82150a6042 Merge pull request 'fix:位置信息修改' (#118) from fix/changeimgback into test
2 years ago
lihui_ocr e6283656de fix:位置信息修改
2 years ago
刘释隆 358d444fbb Merge pull request 'feat: 修改样式问题' (#117) from feat/ui_change into test
2 years ago
刘释隆 e8ede46d05 Merge branch 'test' into feat/ui_change
2 years ago
刘释隆 1fd657dba7 feat: 修改样式问题
2 years ago
raofuzi 57ceccc5e1 Merge branch 'test' of https://git.mcnetmart.com/guoxiangbin/ocr-web into fix/suspiciousSort
2 years ago
raofuzi e2e5e6dec3 feat: 修改bug
2 years ago
raofuzi 390a9e0a21 feat: 修改bug
2 years ago
shenhailong 921f8ee7f6 Merge pull request 'feat:fix/highSearch' (#114) from fix/highSearch into test
2 years ago
Dragon f21579e774 Merge branch 'test' into fix/highSearch
2 years ago
Dragon 4356e499ea 左侧检索-高级检索功能-显示全部任务数据
2 years ago
lihui_ocr b4cb862d5f Merge pull request 'fix:图片时间区域加蒙层' (#112) from fix/changeimgback into test
2 years ago
lihui_ocr 22fb56564d fix:图片时间区域加蒙层
2 years ago
lihui_ocr cda699acf8 Merge pull request 'fix:图片中文字及阈值拖拽问题处理' (#111) from fix/changecontent into test
2 years ago
lihui_ocr 831484af02 fix:图片文字区域或阈值可拖拽
2 years ago
shenhailong 337d1bc73c Merge pull request 'feat:任务详情开启关闭规则' (#110) from fix/approvelDetail into test
2 years ago
Dragon c1581d69a0 任务详情开启关闭规则
2 years ago
lihui_ocr cb53ffcc2b 提交信息
2 years ago
raoyongjun e6a00eab6b Merge pull request 'feat: 修改bug' (#109) from fix/suspiciousSort into test
2 years ago
raofuzi 11185901c6 Merge branch 'test' of https://git.mcnetmart.com/guoxiangbin/ocr-web into fix/suspiciousSort
2 years ago
raofuzi c4ef80c082 feat: 修改bug
2 years ago
lihui_ocr afcf3f538e Revert "fix: 图片增加蒙层,图片文字阈值可拖拽"
2 years ago
赵辉 1cca2fc1d0 fix: 图片增加蒙层,图片文字阈值可拖拽
2 years ago
shenhailong 7ff4a7324c Merge pull request 'feat:终审右侧列表动态列问题' (#108) from fix/zhongshenlie into test
2 years ago
Dragon 4bfd0e8928 终审右侧列表动态列问题
2 years ago
yaoshuli 4787f2dd21 Merge pull request 'fix/suspiciousSort' (#107) from fix/suspiciousSort into test
2 years ago
raofuzi 030216cb3a feat: 修改可疑排序规则
2 years ago
raofuzi 0df2265e1f feat: 修改可疑排序规则
2 years ago
刘释隆 175353b86d Merge pull request 'feat: 修改ui样式' (#106) from feat/ui_hw into test
2 years ago
刘释隆 7c6e5b9c45 feat: 修改ui样式
2 years ago
刘释隆 e48c729bc0 Merge pull request 'feat: 任务审批页面调整为1440*1100' (#105) from feat/ui_hw into test
2 years ago
刘释隆 0ee2ea778e feat: 任务审批页面调整为1440*1100
2 years ago
刘释隆 74e6119eb3 Merge pull request 'feat: 任务审批模块左侧筛选条件联动' (#104) from feat/header_data into test
2 years ago
刘释隆 53d3062faa feat: 任务审批模块左侧筛选条件联动
2 years ago
刘释隆 b2d0714264 Merge pull request 'feat: 终审页面卡片列表切换功能添加' (#103) from feat/header_data into test
2 years ago
刘释隆 868b24c023 feat: 终审页面卡片列表切换功能添加
2 years ago
刘释隆 e64c6ad7ee Merge pull request 'feat: 按RP添加头部信息栏' (#102) from feat/header_data into test
2 years ago
刘释隆 087a43ad7e feat: 按RP添加头部信息栏
2 years ago

@ -2,4 +2,5 @@
. "$(dirname -- "$0")/_/husky.sh"
# node_modules/.bin/lint-staged
date
date
npx lint-staged

@ -38,5 +38,11 @@
"json",
"jsonc",
"yaml"
]
],
"vue3snippets.enable-compile-vue-file-on-did-save-code": true,
"editor.defaultFormatter": "rvest.vs-code-prettier-eslint",
"[vue]": {
"editor.defaultFormatter": "Wscats.vue"
},
"editor.formatOnSaveMode": "modifications"
}

2
components.d.ts vendored

@ -11,6 +11,7 @@ declare module 'vue' {
BasicModal: typeof import('./src/components/Modal/BasicModal.vue')['default']
DataHeader: typeof import('./src/components/DataHeader/index.vue')['default']
NAvatar: typeof import('naive-ui')['NAvatar']
NBackTop: typeof import('naive-ui')['NBackTop']
NButton: typeof import('naive-ui')['NButton']
NCard: typeof import('naive-ui')['NCard']
NCheckbox: typeof import('naive-ui')['NCheckbox']
@ -53,6 +54,7 @@ declare module 'vue' {
NUpload: typeof import('naive-ui')['NUpload']
NUploadDragger: typeof import('naive-ui')['NUploadDragger']
Quill: typeof import('./src/components/RichEditor/Quill.vue')['default']
Robot: typeof import('./src/components/Robot/index.vue')['default']
RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView']
Search: typeof import('./src/components/Search/Search.vue')['default']

@ -19,10 +19,15 @@ module.exports = antfu(
'unused-imports/no-unused-vars': 'off',
'unused-imports/no-unused-imports': 'off',
'jsdoc/require-returns-description': 'off',
'eqeqeq': 'off',
'no-console': 'off',
'vue/custom-event-name-casing': 'off',
'vue/eqeqeq': 'off',
'no-restricted-syntax': [
// eslint-disable-next-line node/prefer-global/process
process.env.MODE === 'production' ? 2 : 0,
],
'array-callback-return': ['error', { allowImplicit: true }],
},
},
)

@ -119,5 +119,6 @@
<div class="selection-box" style="border: 1px dotted black;position: absolute;display: none;"></div>
<script>var globalThis = window;</script>
<script src="/src/main.ts" type="module"></script>
<script src="https://map.qq.com/api/js?v=2.exp&key=GIABZ-YUQKX-JOI4L-ZAGIS-673KS-NKBMC"></script>
</body>
</html>

@ -23,7 +23,7 @@ const adminInfo = {
value: 'task-main',
},
{
label: '图审审批管理',
label: '图审审批',
value: 'worksheet-main',
},
],

13909
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -40,6 +40,8 @@
"vue-mousetrap": "^1.0.5",
"vue-router": "^4.1.6",
"vue-types": "^4.2.1",
"vue-waterfall2": "^2.0.7",
"vue3-lazy": "1.0.0-alpha.1",
"xlsx": "^0.18.5"
},
"devDependencies": {
@ -77,8 +79,8 @@
"vue-tsc": "^1.8.22"
},
"lint-staged": {
"*.{ts,tsx,vue}": [
"pnpm lint:fix"
"*.{ts,tsx,vue,js}": [
"eslint --fix"
]
}
}

@ -22,7 +22,7 @@ index 3aacec9..a63ab54 100644
+ class: `${mergedClsPrefix}-form-item-feedback ${mergedClsPrefix}-form-item-feedback--error flex`
+ }, [h('img', {
+ style: { width: '1rem', height: '1rem' },
+ src: 'http://47.93.59.251/api/upload/ocr/1711419313955_c.png'
+ src: 'notice.svg'
+ }), feedbackNodes]) : mergedValidationStatus === 'success' ? h("div", {
key: "controlled-success",
class: `${mergedClsPrefix}-form-item-feedback ${mergedClsPrefix}-form-item-feedback--success`
@ -179,7 +179,7 @@ index 4f47aad..6dae078 100644
const feedbackNodes = children || feedback ? ((0, vue_1.h)("div", { key: "__feedback__", class: `${mergedClsPrefix}-form-item-feedback__line` }, children || feedback)) : this.renderExplains.length ? ((_a = this.renderExplains) === null || _a === void 0 ? void 0 : _a.map(({ key, render }) => ((0, vue_1.h)("div", { key: key, class: `${mergedClsPrefix}-form-item-feedback__line` }, render())))) : null;
- return feedbackNodes ? (mergedValidationStatus === 'warning' ? ((0, vue_1.h)("div", { key: "controlled-warning", class: `${mergedClsPrefix}-form-item-feedback ${mergedClsPrefix}-form-item-feedback--warning` }, feedbackNodes)) : mergedValidationStatus === 'error' ? ((0, vue_1.h)("div", { key: "controlled-error", class: `${mergedClsPrefix}-form-item-feedback ${mergedClsPrefix}-form-item-feedback--error` }, feedbackNodes)) : mergedValidationStatus === 'success' ? ((0, vue_1.h)("div", { key: "controlled-success", class: `${mergedClsPrefix}-form-item-feedback ${mergedClsPrefix}-form-item-feedback--success` }, feedbackNodes)) : ((0, vue_1.h)("div", { key: "controlled-default", class: `${mergedClsPrefix}-form-item-feedback` }, feedbackNodes))) : null;
+ return feedbackNodes ? (mergedValidationStatus === 'warning' ? ((0, vue_1.h)("div", { key: "controlled-warning", class: `${mergedClsPrefix}-form-item-feedback ${mergedClsPrefix}-form-item-feedback--warning` }, feedbackNodes)) : mergedValidationStatus === 'error' ? ((0, vue_1.h)("div", { key: "controlled-error", class: `${mergedClsPrefix}-form-item-feedback ${mergedClsPrefix}-form-item-feedback--error flex` }, [h('img', {
+ style: { width: '1rem', height: '1rem' },src: 'http://47.93.59.251/api/upload/ocr/1711419313955_c.png'
+ style: { width: '1rem', height: '1rem' },src: 'notice.svg'
+ }), feedbackNodes])) : mergedValidationStatus === 'success' ? ((0, vue_1.h)("div", { key: "controlled-success", class: `${mergedClsPrefix}-form-item-feedback ${mergedClsPrefix}-form-item-feedback--success` }, feedbackNodes)) : ((0, vue_1.h)("div", { key: "controlled-default", class: `${mergedClsPrefix}-form-item-feedback` }, feedbackNodes))) : null;
});
}

File diff suppressed because it is too large Load Diff

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="64px" height="64px" viewBox="0 0 64 64" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>警示</title>
<defs>
<rect id="path-1" x="0" y="0" width="64" height="64"></rect>
</defs>
<g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="PrevailCloud-Design-图标集" transform="translate(-664.000000, -6389.000000)">
<g id="警示" transform="translate(664.000000, 6389.000000)">
<mask id="mask-2" fill="white">
<use xlink:href="#path-1"></use>
</mask>
<g id="蒙版"></g>
<path d="M32,4 C47.463973,4 60,16.536027 60,32 C60,47.463973 47.463973,60 32,60 C16.536027,60 4,47.463973 4,32 C4,16.536027 16.536027,4 32,4 Z M32,9 C19.2974508,9 9,19.2974508 9,32 C9,44.7025492 19.2974508,55 32,55 C44.7025492,55 55,44.7025492 55,32 C55,19.2974508 44.7025492,9 32,9 Z" id="形状结合" fill="#FF4E4F" mask="url(#mask-2)"></path>
<path d="M32,41.8150625 C33.5403559,41.8150625 34.7890611,43.0637676 34.7890611,44.6041236 C34.7890611,46.1444795 33.5403559,47.3931847 32,47.3931847 C30.4596441,47.3931847 29.2109389,46.1444795 29.2109389,44.6041236 C29.2109389,43.0637676 30.4596441,41.8150625 32,41.8150625 Z M33,16.6068153 C33.5522847,16.6068153 34,17.0545306 34,17.6068153 L34,36.7882606 C34,37.3405453 33.5522847,37.7882606 33,37.7882606 L31,37.7882606 C30.4477153,37.7882606 30,37.3405453 30,36.7882606 L30,17.6068153 C30,17.0545306 30.4477153,16.6068153 31,16.6068153 L33,16.6068153 Z" id="形状结合备份" fill="#FF4E4F" mask="url(#mask-2)"></path>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.7 KiB

@ -1,17 +1,18 @@
<script lang="ts" setup>
import { dateZhCN, zhCN } from "naive-ui";
import { computed, onMounted, nextTick,inject } from "vue";
import { AppProvider } from "@/components/Application";
import { lighten } from "@/utils/index";
import { NModalProvider, dateZhCN, zhCN } from 'naive-ui'
import { computed, inject, nextTick, onMounted } from 'vue'
import { AppProvider } from '@/components/Application'
import { lighten } from '@/utils/index'
import mouseTrapBind from '@/hooks/event/mouseTrapBind'
const mousetrap = inject('mousetrap') as any
onMounted(()=>{
mouseTrapBind(mousetrap);
onMounted(() => {
mouseTrapBind(mousetrap)
})
const getThemeOverrides = computed(() => {
const theme = "#1980FF";
const lightenStr = lighten(theme, 6);
const theme = '#1980FF'
const lightenStr = lighten(theme, 6)
return {
common: {
@ -21,36 +22,34 @@ const getThemeOverrides = computed(() => {
primaryColorSuppl: theme,
},
Switch: {
railColorActive: "#07C984",
railColorActive: '#07C984',
},
Input: {
borderHover: "0px",
borderFocus: "0px",
boxShadowFocus: "#ff0000",
borderHover: '0px',
borderFocus: '0px',
boxShadowFocus: '#ff0000',
},
Tag: {
colorCheckedHover: "#507afd",
colorCheckedPressed: "#507afd",
colorCheckedHover: '#507afd',
colorCheckedPressed: '#507afd',
},
Slider: {
fillColor: "#1980FF",
dotBorderActive: "#1980FF",
fillColorHover: "#1980FF",
fillColor: '#1980FF',
dotBorderActive: '#1980FF',
fillColorHover: '#1980FF',
},
Card: {
padding: "0px",
padding: '0px',
},
Dropdown: {
optionColorHover: "#e8f2ff",
optionColorHover: '#e8f2ff',
},
Upload: {
draggerBorder: "1px dashed #1980FF",
draggerBorderHover: "1px dashed #1980FF",
draggerBorder: '1px dashed #1980FF',
draggerBorderHover: '1px dashed #1980FF',
},
};
});
}
})
</script>
<template>
@ -59,9 +58,11 @@ const getThemeOverrides = computed(() => {
:date-locale="dateZhCN"
:theme-overrides="getThemeOverrides"
>
<AppProvider>
<RouterView />
</AppProvider>
<NModalProvider>
<AppProvider>
<RouterView />
</AppProvider>
</NModalProvider>
</NConfigProvider>
</template>
@ -78,7 +79,31 @@ const getThemeOverrides = computed(() => {
color: #666666 !important;
font-size: 14px !important;
}
::v-deep(.n-base-clear > .n-base-clear__clear){
::v-deep(.n-base-clear > .n-base-clear__clear) {
color: #c9c9c9 !important;
}
// .n-form-item.n-form-item--top-labelled .n-form-item-label {
// flex-direction: row-reverse !important;
// justify-content: flex-end !important;
// }
// .n-form-item .n-form-item-label .n-form-item-label__asterisk {
// transform: rotate(-90deg) !important;
// }
.n-scrollbar-content {
padding: 0 7.97px 16 16px;
}
.n-form-item .n-form-item-label {
font-size: 14px !important;
color: #333333 !important;
}
.n-slider-dots > .n-slider-dot {
display: none !important;
}
.n-collapse-item-arrow i svg {
width: 14px !important;
height: 14px !important;
}
.v-binder-follower-content {
//left: -60px;
}
</style>

@ -26,8 +26,7 @@ export async function getPictureTypeList(): Promise<any> {
url: `/static/admin/web/distionary/bytypecode/izpicturetype`,
method: 'get',
})
const list = res.data[0].distionaryList
const list = res.data&&res.data.length?res.data[0].distionaryList:[]
return list
}
@ -73,7 +72,7 @@ export async function getTFList() {
method: 'get',
})
const list = res.data[0].distionaryList
const list = res.data&&res.data.length?res.data[0].distionaryList:[]
return list
}
@ -145,7 +144,7 @@ export async function getIztaskrromList(enabled: string) {
params: { enabled },
})
const list = res.data[0].distionaryList
const list = res.data&&res.data.length?res.data[0].distionaryList:[]
return list
}
@ -161,7 +160,7 @@ export async function getIztaskstatusList(enabled: string) {
params: { enabled },
})
const list = res.data[0].distionaryList
const list = res.data&&res.data.length?res.data[0].distionaryList:[]
return list
}
@ -191,7 +190,7 @@ export async function getIzfirmList(enabled: string) {
params: { enabled },
})
const list = res.data[0].distionaryList
const list = res.data&&res.data.length?res.data[0].distionaryList:[]
return list
}
@ -207,7 +206,7 @@ export async function getIzproductnameList(enabled: string) {
params: { enabled },
})
const list = res.data[0].distionaryList
const list = res.data&&res.data.length?res.data[0].distionaryList:[]
return list
}
@ -223,7 +222,7 @@ export async function getizcustomnameList(enabled: string) {
params: { enabled },
})
const list = res.data[0].distionaryList
const list = res.data&&res.data.length?res.data[0].distionaryList:[]
return list
}
@ -237,7 +236,7 @@ export async function getIzCustomtypeList(): Promise<any> {
method: 'get',
})
const list = res.data[0].distionaryList
const list = res.data&&res.data.length?res.data[0].distionaryList:[]
return list
}
@ -253,7 +252,7 @@ export async function getIzcustomlevel(enabled: string) {
params: { enabled },
})
const list = res.data[0].distionaryList
const list = res.data&&res.data.length?res.data[0].distionaryList:[]
return list
}
@ -269,7 +268,7 @@ export async function getIzprojecttypeList(enabled: string) {
params: { enabled },
})
const list = res.data[0].distionaryList
const list = res.data&&res.data.length?res.data[0].distionaryList:[]
return list
}
@ -298,8 +297,7 @@ export async function getRejectList() {
method: 'get',
})
const list = res.data[0].distionaryList
return list
return res.data&&res.data.length?res.data[0].distionaryList:[]
}
/**
@ -312,14 +310,14 @@ export async function getBackList() {
method: 'get',
})
return res.data[0].distionaryList
return res.data&&res.data.length?res.data[0].distionaryList:[]
}
/**
*
* @returns
*/
export async function getBusinessList(field: string, page: PageParam = { pageNo: 1, pageSize: 200 }) {
export async function getBusinessList(field: string, page: PageParam = { pageNo: 1, pageSize: 10000 }) {
const res = await http.request({
url: `/ocr/dictionary/getDictionaryByField`,
method: 'get',
@ -365,7 +363,7 @@ export async function getRelationTypeList() {
method: 'get',
})
return res.data[0].distionaryList
return res.data&&res.data.length?res.data[0].distionaryList:[]
}
/**
@ -377,7 +375,7 @@ export async function getizstatusList() {
url: `/static/admin/web/distionary/bytypecode/izstatus`,
method: 'get',
})
return res.data[0].distionaryList
return res.data&&res.data.length?res.data[0].distionaryList:[]
}
/**
@ -389,5 +387,5 @@ export async function getizApprovalStatusList() {
url: `/static/admin/web/distionary/bytypecode/izApprovalStatus`,
method: 'get',
})
return res.data[0].distionaryList
return res.data&&res.data.length?res.data[0].distionaryList:[]
}

@ -14,7 +14,7 @@ export async function getFinalList(params: FinalParam) {
Object.keys(notEmptyParams).forEach((key) => {
const val = notEmptyParams[key]
if (key === 'izuptime') {
if (key === 'izyear') {
const start = formatToDate2(val[0])
const end = formatToDate2(val[1])
notEmptyParams[key] = `${start}-${end}`

@ -5,6 +5,17 @@ import { http } from '@/utils/http/axios'
import { pickBy } from 'lodash-es'
import type { CheckParam, PageParam, QueryPictureParam, UploadParam } from '/#/api'
/**
*
* @returns
*/
export async function gettaskToolsCount(): Promise<any> {
return await http.request({
url: `/ocr/aitools/toolsTaskApprovalCount`,
method: 'get',
})
}
/**
*
* @param params
@ -79,7 +90,6 @@ export async function getToolsCount() {
})
}
/**
*
* @param note
@ -108,7 +118,7 @@ export async function oneClickCheck(params: Partial<CheckParam> = { search_histo
* @param note
* @returns
*/
export async function oneClickCheckTaskPackage(params: Partial<CheckParam> = { search_history: '0' }) {
export async function oneClickCheckTaskPackage(params: Partial<CheckParam> = { search_history: '0' }) {
const notEmptyParams = pickBy(params, notEmpty)
Object.keys(notEmptyParams).forEach((key) => {
@ -131,8 +141,7 @@ export async function oneClickCheck(params: Partial<CheckParam> = { search_histo
* @param note
* @returns
*/
export async function getLastCheckNo() {
export async function getLastCheckNo() {
return http.request({
url: `/ocr/checkDuplicate/getLastCheckNo`,
method: 'get',
@ -144,8 +153,7 @@ export async function oneClickCheck(params: Partial<CheckParam> = { search_histo
* @param note
* @returns
*/
export async function getCheckDuplicateStatus(checkDuplicateNo) {
export async function getCheckDuplicateStatus(checkDuplicateNo) {
return http.request({
url: `/ocr/checkDuplicate/getCheckDuplicateStatus`,
method: 'get',
@ -158,8 +166,7 @@ export async function oneClickCheck(params: Partial<CheckParam> = { search_histo
* @param note
* @returns
*/
export async function removeCheckDuplicate(checkDuplicateNo) {
export async function removeCheckDuplicate(checkDuplicateNo) {
return http.request({
url: `/ocr/checkDuplicate/removeCheckDuplicate`,
method: 'get',
@ -169,33 +176,31 @@ export async function oneClickCheck(params: Partial<CheckParam> = { search_histo
}
/**
*
* @param
* @param
* @returns
*/
export async function createPackage(params) {
export async function createPackage(params) {
return http.request({
url: `/ocr/ocrTaskPackage/createPackage`,
method: 'post',
params
params,
})
}
/**
*
* @param
* @param
* @returns
*/
export async function deletePackage(params) {
export async function deletePackage(params) {
return http.request({
url: `/ocr/ocrTaskPackage/deletePackage`,
method: 'get',
params
params,
})
}
/**
*
* @param
* @param
* @returns
*/
export async function queryPageListByCheckNo(params: any): Promise<any> {
@ -256,24 +261,50 @@ export async function getPictureList(params: any): Promise<any> {
headers: { 'Content-Type': ContentTypeEnum.FORM_DATA },
})
const { data: { records, pages, total } } = res
const { data: { records, pages, total, current } } = res
return {
pageCount: pages,
data: records,
total,
current,
}
}
/**
*
* @param
* @param
* @returns
*/
export async function getFilterList(params) {
return http.request({
url: `/ocr/ocrUsersearch/querySearchCondition`,
method: 'get',
params,
})
}
/**
* id
* @param
* @returns
*/
export async function getLastCheckNox() {
return http.request({
url: `/ocr/checkDuplicate/getLastCheckNo`,
method: 'get',
})
}
/**
* id
* @param
* @returns
*/
export async function getCheckDuplicateStatusx(params) {
return http.request({
url: `/ocr/checkDuplicate/getCheckDuplicateStatus`,
method: 'get',
params
})
}

@ -15,6 +15,7 @@ export async function getApprovalList(page: any) {
pageSize: page.pageSize,
currPage: page.pageNo,
keyword: page.keyword,
userSearchId: page.userSearchId,
},
})
@ -27,7 +28,7 @@ export async function getApprovalList(page: any) {
/**
*
* @param param
* @param params
*/
export async function audit(params) {
return http.request({
@ -81,8 +82,6 @@ export async function removeFiles(params) {
/**
* ()
* @param packageid id
* @param taskchildpictureid id
* @param params
* @returns
*/
@ -93,26 +92,37 @@ export async function getSimilarityList(params: any) {
params,
})
const { data: { records, pages, total } } = res
// 精简一下数据
const list = records.map((item) => {
const { data } = res
if (data) {
const { records, pages, total, current } = data
// 精简一下数据
const list = records.map((item) => {
return {
id: item.id,
taskId: item.taskId,
taskname: item.fromtaskname,
assignee: item.assignee,
pictureid: item.pictureid,
imgurl: item.imgUrl,
thumburl: item.imgUrl,
iztrueorfalse: item.iztrueorfalse,
states: item.states,
}
})
return {
id: item.id,
taskId: item.taskId,
taskname: item.fromtaskname,
assignee: item.assignee,
pictureid: item.pictureid,
imgurl: item.imgUrl,
thumburl: item.imgUrl,
iztrueorfalse: item.iztrueorfalse,
states: item.states,
pageCount: pages,
data: records,
total,
current,
}
}
else {
return {
pageCount: 0,
data: [],
total: 0,
}
})
return {
pageCount: pages,
data: records,
total,
}
}
@ -123,10 +133,10 @@ export async function getSimilarityList(params: any) {
* @returns
*/
export async function getTaskDetailInfo(taskId: string, packageid: string) {
export async function getTaskDetailInfo(taskId: string, packageid: string, taskNode: string) {
const pid = packageid || 0
const res = await http.request({
url: `/backstage/jifen/ocrtaskchildpicture/getdata/${taskId}/${pid}`,
url: `/backstage/jifen/ocrtaskchildpicture/getdata/${taskId}/${pid}/${taskNode}`,
method: 'get',
})

@ -22,7 +22,7 @@ export async function getPackageList(params: PageParam, packageName: string) {
}
/**
* -
* -
* @returns
*/
export async function getPackagePicture(params: PageParam, packagename: string) {
@ -62,12 +62,11 @@ export async function getPackageTaskList(packageid: string, params: PageParam) {
}
/**
* -
* -
* @param checkDuplicateId id
* @returns
*/
export async function getTaskDetailInfo(checkDuplicateId: string) {
const res = await http.request({
url: `/ocr/ocrPicture/getPackagePicture?checkDuplicateId=${checkDuplicateId}`,
method: 'get',
@ -84,7 +83,6 @@ export async function getTaskDetailInfo(checkDuplicateId: string) {
* @returns
*/
export async function getPictureSimilarityList(params: PageParam & PictureSortParam & SimilarityPictureSortParam) {
const res = await http.request({
url: `/backstage/jifen/ocrtaskchildpicture/getPictureSimilarityList`,
method: 'get',
@ -94,23 +92,25 @@ export async function getPictureSimilarityList(params: PageParam & PictureSortPa
const { data: { records, pages, total } } = res
// 精简一下数据
const list = records.map((item,index) => {
const list = records.map((item, index) => {
return {
id: item.id,
checkDuplicateId: item.checkDuplicateId,
taskId: item.taskId,
taskname: item.fromTaskName,
assignee: item.assignee,
pictureid: item.pictureid,
imgurl: item.serverThumbnailUrl,
pictureid: item.pictureid || item.pictureId,
imgurl: item.imgUrl,
imgUrl: item.imgUrl,
serverThumbnailUrl: item.serverThumbnailUrl,
maxSimilarity: item.maxSimilarity,
thumburl: item.ocrPicture?.serverThumbnailUrl || item.ocrPicture?.imgurl,
iztrueorfalse: item.iztrueorfalse,
states: item.states,
history: item.ocpictureid && item.picturecompare && hasHistory(item.ocpictureid, item.picturecompare),
historyStates:item.historyStates,
submitDateTimestamp:item.submitDateTimestamp,
photoDateTimestamp:item.photoDateTimestamp,
historyStates: item.historyStates,
submitDateTimestamp: item.submitDateTimestamp,
photoDateTimestamp: item.photoDateTimestamp,
}
})
return {

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="48px" height="37px" viewBox="0 0 48 37" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>形状 2</title>
<g id="index" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="index_图片加载中" transform="translate(-893.000000, -298.000000)" fill="#F0F0F0" fill-rule="nonzero">
<g id="编组-24" transform="translate(410.000000, 62.000000)">
<g id="编组-27" transform="translate(16.000000, 132.000000)">
<g id="编组-18备份-2" transform="translate(400.000000, 0.000000)">
<g id="形状-3" transform="translate(67.000000, 104.000000)">
<g id="形状-2" transform="translate(0.000000, 0.462637)">
<path d="M12.8421882,20.0575479 C12.1281936,19.0374348 10.9742024,19.0374348 10.2622078,20.0575479 L0.346282996,34.2309071 C-0.367711589,35.249016 0.0582851799,36.0747264 1.29427581,36.0747264 L46.7139313,36.0747264 C47.9519219,36.0747264 48.3659188,35.2510201 47.6479242,34.2349153 L31.9400434,12.0389379 C31.2160489,11.0168206 30.0540576,11.0208289 29.3340631,12.0389379 L18.2181474,27.7454729 L12.8401882,20.0575479 L12.8421882,20.0575479 Z M6.54623594,4.5093408 C6.54623594,7.00050109 8.50022111,9.0186816 10.9102029,9.0186816 C13.3201846,9.0186816 15.2721698,7.00050109 15.2721698,4.5093408 C15.2721698,2.01818051 13.3221846,0 10.9122029,0 C8.50222115,0 6.54823594,2.01818051 6.54823594,4.5093408 L6.54623594,4.5093408 Z" id="形状"></path>
</g>
</g>
</g>
</g>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.7 KiB

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="64px" height="64px" viewBox="0 0 64 64" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>小结重复数</title>
<g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="PrevailCloud-Design-图标集" transform="translate(-2504.000000, -6389.000000)" fill="#507AFD" fill-rule="nonzero">
<g id="小结重复数" transform="translate(2504.000000, 6389.000000)">
<path d="M64,32 C64,49.6731274 49.6731274,64 32,64 C14.3268738,64 0,49.6731274 0,32 C0,14.3268738 14.3268738,0 32,0 C49.6731274,0 64,14.3268738 64,32 C64,32 64,32 64,32 Z" id="Ellipse-930" fill-opacity="0.1"></path>
<path d="M39.4637452,37.4192503 L42.4384908,40.9882633 L38.4168391,44.1717731 C38.238099,44.3210001 38.0082903,44.383178 37.7784816,44.3583068 L37.7784816,44.3583068 L35.4931621,44.1344663 C35.0463119,44.0971595 34.8292703,43.8360123 34.8803389,43.4007668 L34.8803389,43.4007668 L35.1229147,41.1872326 C35.148449,40.9633921 35.2633534,40.7519871 35.4420935,40.6151957 L35.4420935,40.6151957 L39.4637452,37.4192503 Z M36.3996296,40.9509565 C36.2847253,40.8141651 36.0804509,40.7892939 35.9400123,40.9012142 C35.7995736,41.0131344 35.7740393,41.2121038 35.8889437,41.3488952 L35.8889437,41.3488952 L37.7401802,43.574865 C37.8550845,43.7116564 38.0593589,43.7365276 38.1997975,43.6246073 C38.3402362,43.512687 38.3657705,43.3137177 38.2508661,43.1769262 L38.2508661,43.1769262 Z M34.7015988,24.1007387 C36.0676837,24.1877878 36.3613282,24.3743216 36.2847253,25.6924936 L36.2847253,38.0161584 L33.6546927,40.1302079 C33.2844454,41.0006988 33.1184724,41.8090119 33.1823082,42.5800182 L21.3982301,42.5800182 C19.840638,42.5800182 19.6363636,41.9582389 19.6363636,40.8887786 L19.6363636,26.0655611 C19.6363636,24.8344382 19.751268,24.1256099 21.2322572,24.1007387 L34.7015988,24.1007387 Z M40.8936659,36.3000477 C41.4809547,35.8523666 42.3235865,35.9394157 42.795971,36.499017 L42.795971,36.499017 L44.0599187,38.028594 C44.0726858,38.028594 44.0726858,38.0410296 44.085453,38.0534652 C44.5323032,38.6130665 44.430166,39.4338151 43.8556443,39.8690606 L43.8556443,39.8690606 L43.0002454,40.5530178 L40.0254998,36.9840049 Z M27.2300894,35.6641158 L23.5186803,35.6641158 C23.1851396,35.6441576 22.8663348,35.8038546 22.6825894,36.082934 C22.4997429,36.3503649 22.4997429,36.7025941 22.6825894,36.9700249 C22.864953,37.2412522 23.1786803,37.3896158 23.5186803,37.3896158 L23.5186803,37.3896158 L27.2300894,37.3896158 C27.5700894,37.3896158 27.8838166,37.2412522 28.066953,36.9700249 C28.2500894,36.6987977 28.2500894,36.3533886 28.066953,36.082934 C27.8838166,35.810934 27.5700894,35.6641158 27.2300894,35.6641158 L27.2300894,35.6641158 Z M36.093218,19.6363636 C39.182868,19.7109771 40.6383229,20.5814681 40.6766243,23.5287018 L40.6766243,34.6088081 L40.56172,34.5590658 L37.6252759,36.9218269 L37.6252759,24.1629166 C37.6252759,23.3670392 37.0762885,22.5711617 36.1570538,22.533855 L24.0665642,22.533855 C23.798454,22.533855 23.5175768,22.2851433 23.4920425,22.023996 L23.4920425,21.36491 C23.4920425,20.4819834 24.30914,19.6736704 25.2411418,19.6487992 L25.3049776,19.6487992 L36.093218,19.6363636 Z M32.8238621,31.2997522 L23.5186803,31.2997522 C23.1850199,31.2801224 22.8662573,31.4400929 22.6825894,31.7193431 C22.4997429,31.986774 22.4997429,32.3390032 22.6825894,32.606434 C22.864953,32.8776613 23.1786803,33.0260249 23.5186803,33.0260249 L23.5186803,33.0260249 L32.7983621,33.0260249 C33.1375894,33.0260249 33.4520894,32.8537067 33.6607257,32.606434 C33.8438621,32.3359795 33.8438621,31.9897977 33.6607257,31.7193431 C33.4775894,31.4481158 33.1638621,31.2997522 32.8238621,31.2997522 L32.8238621,31.2997522 Z M23.5186803,26.911434 C23.1786803,26.8867067 22.864953,27.0597977 22.6825894,27.3310249 C22.4997429,27.5984558 22.4997429,27.950685 22.6825894,28.2181158 C22.864953,28.4901158 23.1786803,28.636934 23.5186803,28.636934 L23.5186803,28.636934 L32.7983621,28.636934 C33.1375894,28.662434 33.4513166,28.4901158 33.634453,28.2428431 C33.7913166,27.9716158 33.7913166,27.6262067 33.634453,27.3557522 C33.4513166,27.0845249 33.1638621,26.911434 32.8238621,26.911434 L32.8238621,26.911434 Z" id="形状结合"></path>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 4.2 KiB

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="64px" height="64px" viewBox="0 0 64 64" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>卡片模式</title>
<g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="PrevailCloud-Design-图标集" transform="translate(-3040.000000, -6389.000000)" fill-rule="nonzero">
<g id="卡片模式" transform="translate(3040.000000, 6389.000000)">
<rect id="矩形" fill="#000000" opacity="0" x="0" y="0" width="64" height="64"></rect>
<path d="M52.8,52.8 L52.8,38.95 L38.95,38.95 L38.95,52.8 L52.8,52.8 M25.05,52.8 L25.05,38.95 L11.2,38.95 L11.2,52.8 L25.05,52.8 M52.8,25.05 L52.8,11.2 L38.95,11.2 L38.95,25.05 L52.8,25.05 M25.05,25.05 L25.05,11.2 L11.2,11.2 L11.2,25.05 L25.05,25.05 M54.55,58 L37.2,58 C35.3,58 33.75,56.45 33.75,54.55 L33.75,37.2 C33.75,35.3 35.3,33.75 37.2,33.75 L54.55,33.75 C56.45,33.75 58,35.3 58,37.2 L58,54.55 C58,56.45 56.45,58 54.55,58 L54.55,58 Z M26.8,58 L9.45,58 C7.55,58 6,56.45 6,54.55 L6,37.2 C6,35.3 7.55,33.75 9.45,33.75 L26.8,33.75 C28.7,33.75 30.25,35.3 30.25,37.2 L30.25,54.55 C30.25,56.45 28.7,58 26.8,58 L26.8,58 Z M54.55,30.25 L37.2,30.25 C35.3,30.25 33.75,28.7 33.75,26.8 L33.75,9.45 C33.75,7.55 35.3,6 37.2,6 L54.55,6 C56.45,6 58,7.55 58,9.45 L58,26.8 C58,28.7 56.45,30.25 54.55,30.25 L54.55,30.25 Z M26.8,30.25 L9.45,30.25 C7.55,30.25 6,28.7 6,26.8 L6,9.45 C6,7.55 7.55,6 9.45,6 L26.8,6 C28.7,6 30.25,7.55 30.25,9.45 L30.25,26.8 C30.25,28.7 28.7,30.25 26.8,30.25 L26.8,30.25 Z" id="形状" fill="#333333"></path>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.6 KiB

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="64px" height="64px" viewBox="0 0 64 64" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>任务总数</title>
<g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="PrevailCloud-Design-图标集" transform="translate(-930.000000, -6389.000000)" fill="#507AFD" fill-rule="nonzero">
<g id="任务总数" transform="translate(930.000000, 6389.000000)">
<path d="M64,32 C64,49.6731274 49.6731274,64 32,64 C14.3268738,64 0,49.6731274 0,32 C0,14.3268738 14.3268738,0 32,0 C49.6731274,0 64,14.3268738 64,32 C64,32 64,32 64,32 Z" id="Ellipse-930" fill-opacity="0.1"></path>
<path d="M42.8077595,20.3636364 L21.1922405,20.3636364 C20.9718752,20.364003 20.7607017,20.4519898 20.60527,20.6082013 C20.4498384,20.7644129 20.3629095,20.9760242 20.3636409,21.1963887 L20.3636409,27.0159562 L43.6363591,27.0159562 L43.6363591,21.1963887 C43.6370905,20.9760242 43.5501616,20.7644129 43.39473,20.6082013 C43.2392983,20.4519898 43.0281248,20.364003 42.8077595,20.3636364 L42.8077595,20.3636364 Z M23.6724827,24.7283119 C23.097779,24.7283119 22.6318895,24.2624221 22.6318895,23.6877179 C22.6318895,23.1130136 23.097779,22.6471238 23.6724827,22.6471238 C24.2468039,22.6471238 24.7123832,23.1127035 24.7123832,23.6870251 C24.7123832,24.2613467 24.2468039,24.7269264 23.6724827,24.7269264 L23.6724827,24.7283119 Z M20.3636456,42.8036113 C20.3636456,43.2664054 20.7349891,43.6363636 21.1922405,43.6363636 L42.8036027,43.6363636 C43.0239675,43.6363636 43.2352865,43.5487295 43.390978,43.3927781 C43.5466694,43.2368266 43.6339511,43.0253615 43.6335843,42.8049968 L43.6335843,36.9854294 L20.3636456,36.9854294 L20.3636456,42.8049968 L20.3636456,42.8036113 Z M23.6724827,39.2730736 C24.2464213,39.2730736 24.7116904,39.7383431 24.7116904,40.3122821 C24.7116904,40.8862211 24.2464213,41.3514906 23.6724827,41.3514906 C23.0985442,41.3514906 22.6332751,40.8862211 22.6332751,40.3122821 C22.6332751,39.7383431 23.0985442,39.2730736 23.6724827,39.2730736 L23.6724827,39.2730736 Z M20.3636456,35.3240815 L43.6363544,35.3240815 L43.6363544,28.6759185 L20.3636456,28.6759185 L20.3636456,35.3254671 L20.3636456,35.3240815 Z M23.6724827,30.9594059 C24.2468039,30.9594059 24.7123832,31.4249856 24.7123832,31.9993072 C24.7123832,32.5736288 24.2468039,33.0392084 23.6724827,33.0392084 C23.0985442,33.0392084 22.6332751,32.573939 22.6332751,32 C22.6332751,31.426061 23.0985442,30.9607916 23.6724827,30.9607916 L23.6724827,30.9594059 Z" id="形状"></path>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.6 KiB

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="64px" height="64px" viewBox="0 0 64 64" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>新建</title>
<defs>
<rect id="path-1" x="0" y="0" width="64" height="64"></rect>
</defs>
<g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="PrevailCloud-Design-图标集" transform="translate(-664.000000, -3118.000000)">
<g id="新建" transform="translate(664.000000, 3118.000000)">
<g transform="translate(0.000000, 0.000000)">
<mask id="mask-2" fill="white">
<use xlink:href="#path-1"></use>
</mask>
<use id="蒙版" fill="#FFFFFF" fill-rule="nonzero" opacity="0" xlink:href="#path-1"></use>
<g id="编组" mask="url(#mask-2)" fill="#FFFFFF">
<g transform="translate(7.000000, 7.000000)" id="形状结合">
<path d="M48,0 C49.1045695,-2.02906125e-16 50,0.8954305 50,2 L50,22 C50,22.5522847 49.5522847,23 49,23 L46,23 C45.4477153,23 45,22.5522847 45,22 L45,5 L5,5 L5,45 L22,45 C22.5522847,45 23,45.4477153 23,46 L23,49 C23,49.5522847 22.5522847,50 22,50 L2,50 C0.8954305,50 1.3527075e-16,49.1045695 0,48 L0,2 C-1.3527075e-16,0.8954305 0.8954305,2.02906125e-16 2,0 L48,0 Z M40.8724299,28.8483283 C41.4247147,28.8483283 41.8724299,29.2960436 41.8724299,29.8483283 L41.8724299,36.8483283 L48.8724299,36.8483283 C49.4247147,36.8483283 49.8724299,37.2960436 49.8724299,37.8483283 L49.8724299,40.8483283 C49.8724299,41.4006131 49.4247147,41.8483283 48.8724299,41.8483283 L41.8724299,41.8483283 L41.8724299,48.8483283 C41.8724299,49.4006131 41.4247147,49.8483283 40.8724299,49.8483283 L37.8724299,49.8483283 C37.3201452,49.8483283 36.8724299,49.4006131 36.8724299,48.8483283 L36.8724299,41.8483283 L29.8724299,41.8483283 C29.3201452,41.8483283 28.8724299,41.4006131 28.8724299,40.8483283 L28.8724299,37.8483283 C28.8724299,37.2960436 29.3201452,36.8483283 29.8724299,36.8483283 L36.8724299,36.8483283 L36.8724299,29.8483283 C36.8724299,29.2960436 37.3201452,28.8483283 37.8724299,28.8483283 L40.8724299,28.8483283 Z"></path>
</g>
</g>
</g>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.3 KiB

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="64px" height="64px" viewBox="0 0 64 64" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>已审批</title>
<g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="PrevailCloud-Design-图标集" transform="translate(-1458.000000, -6389.000000)" fill="#507AFD" fill-rule="nonzero">
<g id="已审批" transform="translate(1458.000000, 6389.000000)">
<path d="M64,32 C64,49.6731274 49.6731274,64 32,64 C14.3268738,64 0,49.6731274 0,32 C0,14.3268738 14.3268738,0 32,0 C49.6731274,0 64,14.3268738 64,32 C64,32 64,32 64,32 Z" id="Ellipse-930" fill-opacity="0.1"></path>
<g id="编组" transform="translate(20.363636, 20.363636)">
<path d="M17.1722301,12.6691268 C20.5422747,12.6691268 23.2771277,15.3748997 23.272722,18.704746 C23.2638945,22.025864 20.5334526,24.7229086 17.1810522,24.7272727 C13.8110075,24.7272727 11.0761546,22.025864 11.0761546,18.6960177 C11.0761546,15.3705356 13.8065965,12.6691268 17.1722301,12.6691268 Z M10.5909387,21.9560376 C10.8291356,22.4971922 11.1290872,22.9990694 11.4907936,23.4616693 L0,23.4616693 L0,21.9560376 L10.5909387,21.9560376 Z M19.6159535,15.9160543 L16.4444063,19.258993 L14.596175,17.5133331 L13.4757675,18.5389083 L16.4929279,21.4847094 L20.8686926,17.1423804 L19.6159535,15.9160543 Z M10.0130907,0 C13.1317053,0 15.6636499,2.50502198 15.6636499,5.59047588 C15.6636499,6.55495299 15.4166309,7.46269615 14.9843477,8.25260726 L14.9799366,8.25697141 C14.8255498,8.536277 14.6402855,8.80249013 14.4417881,9.05561082 C13.5860438,10.4041331 12.8096985,11.4733498 13.2552148,12.760774 C11.2967072,14.0263774 9.99985758,16.2128165 9.99985758,18.6960177 C9.99985758,19.1629817 10.0483792,19.1760742 10.1321892,19.6168533 L0,19.6168533 L0,14.6286301 L5.58880439,14.6286301 C8.62802004,12.2588968 6.77096665,10.897282 5.56674913,9.03379007 C4.81687008,8.08240542 4.3625316,6.89099252 4.3625316,5.59047588 C4.3625316,2.50502198 6.89447614,0 10.0130907,0 Z" id="形状结合"></path>
</g>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.1 KiB

@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="64px" height="44px" viewBox="0 0 64 44" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>标签</title>
<defs>
<polygon id="path-1" points="0 0 25.9047619 0 25.9047619 3.03448276 0 3.03448276"></polygon>
<polygon id="path-3" points="0 0 25.9047619 0 25.9047619 9.10344828 0 9.10344828"></polygon>
<linearGradient x1="6.6483347%" y1="5.51282194%" x2="77.9785156%" y2="89.1343284%" id="linearGradient-5">
<stop stop-color="#FFA0A0" offset="0%"></stop>
<stop stop-color="#FF4E4F" offset="100%"></stop>
</linearGradient>
</defs>
<g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="无法上传iconfont" transform="translate(-1335.000000, -540.000000)">
<g id="标签" transform="translate(1335.000000, 540.000000)">
<g id="编组">
<mask id="mask-2" fill="white">
<use xlink:href="#path-1"></use>
</mask>
<g id="Clip-2"></g>
<path d="M5.19743462,-3.10020716e-05 L2.80500448,-3.10020716e-05 C2.80500448,-3.10020716e-05 0.0824975911,0.592186069 0,7.32785113 L7.0949656,7.32785113 L13.942352,7.32785113 L25.9047619,5.84750222 L6.84747283,2.07245748 L5.19743462,-3.10020716e-05 Z" id="Fill-1" fill="#D44242" mask="url(#mask-2)"></path>
</g>
<g id="编组" transform="translate(38.095238, 0.000000)">
<mask id="mask-4" fill="white">
<use xlink:href="#path-3"></use>
</mask>
<g id="Clip-4"></g>
<path d="M23.0998499,-3.85141222e-05 L20.7074101,-3.85141222e-05 L19.0573653,1.06613433 L0,3.00817174 L11.9623713,3.76972377 L18.8098716,3.76972377 L25.9047792,3.76972377 C25.8222813,0.304622169 23.0998499,-3.85141222e-05 23.0998499,-3.85141222e-05" id="Fill-3" fill="#D44242" mask="url(#mask-4)"></path>
</g>
<path d="M3.04761905,0 C5.4656579,0.257580711 5.47255535,6.18211688 5.47255535,6.18211688 L5.47255535,6.18211688 L5.47255535,35.4136167 C5.47255535,40.1557989 9.20573842,44 13.810795,44 L13.810795,44 L13.8762772,44 L50.1236355,44 L50.1890304,44 C54.794087,44 58.52727,40.1557989 58.52727,35.4136167 L58.52727,35.4136167 L58.52727,6.18211688 C58.52727,6.18211688 58.5341675,0.257580711 60.952381,0 L60.952381,0 L3.04761905,0 Z" id="Fill-5" fill="url(#linearGradient-5)"></path>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.6 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 1.2 MiB

@ -0,0 +1,61 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="48px" height="48px" viewBox="0 0 48 48" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>编组 33</title>
<defs>
<rect id="path-1" x="0" y="0" width="32" height="32"></rect>
<linearGradient x1="103.941749%" y1="-9.86447236%" x2="15.6759798%" y2="100%" id="linearGradient-3">
<stop stop-color="#94B3FF" offset="0%"></stop>
<stop stop-color="#3955FF" offset="100%"></stop>
</linearGradient>
<path d="M4.81965071,11.9835294 C4.81965071,18.6007843 10.107091,23.964183 16.6334651,23.964183 C23.1570041,23.964183 28.4444444,18.6007843 28.4444444,11.9835294 C28.4444444,5.36339869 23.1570041,0 16.6334651,0 C10.107091,0 4.81965071,5.36339869 4.81965071,11.9835294 Z" id="path-4"></path>
<filter x="0.0%" y="0.0%" width="100.0%" height="100.0%" filterUnits="objectBoundingBox" id="filter-5">
<feOffset dx="0" dy="0" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
<feColorMatrix values="0 0 0 0 0.328065454 0 0 0 0 0.41948512 0 0 0 0 1 0 0 0 1 0" type="matrix" in="shadowOffsetOuter1"></feColorMatrix>
</filter>
<rect id="path-6" x="0" y="0" width="28.3508865" height="28.7581699"></rect>
<path d="M2.26807092,15.4345098 C2.26807092,22.0517647 7.55551126,27.4151634 14.0818853,27.4151634 C20.6054243,27.4151634 25.8928647,22.0517647 25.8928647,15.4345098 C25.8928647,8.81437908 20.6054243,3.45098039 14.0818853,3.45098039 C7.55551126,3.45098039 2.26807092,8.81437908 2.26807092,15.4345098 Z" id="path-8"></path>
<linearGradient x1="50.4938081%" y1="35.9999974%" x2="0%" y2="114.811198%" id="linearGradient-9">
<stop stop-color="#FFFFFF" offset="0%"></stop>
<stop stop-color="#FFFFFF" stop-opacity="0" offset="100%"></stop>
</linearGradient>
<filter x="-338.5%" y="-333.7%" width="776.9%" height="767.3%" filterUnits="objectBoundingBox" id="filter-10">
<feGaussianBlur stdDeviation="5.75725631" in="SourceGraphic"></feGaussianBlur>
</filter>
</defs>
<g id="-index备份" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="index_1.0备份-21" transform="translate(-836.000000, -367.000000)">
<g id="编组-8备份-2" transform="translate(473.000000, 206.000000)">
<g id="画板-8" transform="translate(28.881832, 57.745953)">
<g id="画板-4" transform="translate(236.118168, 103.254047)">
<g id="编组-54备份" transform="translate(98.000000, 0.000000)">
<g id="编组-26" transform="translate(0.063866, 1.000000)">
<path d="M48,24 C48,37.2548455 37.2548455,48 24,48 C10.7451553,48 0,37.2548455 0,24 C0,10.7451553 10.7451553,0 24,0 C37.2548455,0 48,10.7451553 48,24 C48,24 48,24 48,24 Z" id="Ellipse-930" fill="#E9EEFF" fill-rule="nonzero"></path>
<g id="Group-1" transform="translate(7.936134, 8.000000)">
<mask id="mask-2" fill="white">
<use xlink:href="#path-1"></use>
</mask>
<g id="蒙版"></g>
<g transform="translate(0.888889, 1.777778)">
<g id="路径">
<use fill="black" fill-opacity="1" filter="url(#filter-5)" xlink:href="#path-4"></use>
<use fill="url(#linearGradient-3)" fill-rule="evenodd" xlink:href="#path-4"></use>
</g>
<g id="user-person-profile-block-account-circle-svgrepo-com-1" transform="translate(0.000000, 0.575163)">
<mask id="mask-7" fill="white">
<use xlink:href="#path-6"></use>
</mask>
<g id="路径"></g>
<path id="路径" d="M14.0818853,3.20098039 C20.7447477,3.20098039 26.1428647,8.67755358 26.1428647,15.4345098 C26.1428647,22.189044 20.7443,27.6651634 14.0818853,27.6651634 C7.41708336,27.6651634 2.01807092,22.1894977 2.01807092,15.4345098 C2.01807092,8.6770998 7.41663558,3.20098039 14.0818853,3.20098039 Z M14.0818853,3.70098039 C7.69438694,3.70098039 2.51807092,8.95165837 2.51807092,15.4345098 C2.51807092,21.9149209 7.69481587,27.1651634 14.0818853,27.1651634 C20.4665486,27.1651634 25.6428647,21.9144854 25.6428647,15.4345098 C25.6428647,8.9520939 20.4669775,3.70098039 14.0818853,3.70098039 Z" fill="#FFFFFF" fill-rule="nonzero"></path>
<path d="M11.3638777,13.9269889 C11.5944007,13.9269889 11.7907721,14.0082723 11.9529919,14.1708392 C12.1152118,14.333406 12.1963217,14.5301975 12.1963217,14.7612135 C12.1963217,14.9836734 12.1152118,15.1783258 11.9529919,15.3451707 C11.7907721,15.5120157 11.5944007,15.5954381 11.3638777,15.5954381 C11.1333548,15.5954381 10.9369834,15.5120157 10.7747636,15.3451707 C10.6125437,15.1783258 10.5314338,14.9836734 10.5314338,14.7612135 C10.5314338,14.5301975 10.6125437,14.333406 10.7747636,14.1708392 C10.9369834,14.0082723 11.1333548,13.9269889 11.3638777,13.9269889 Z M17.8185202,9.13982315 C18.1941872,9.13982315 18.5271648,9.20613331 18.817453,9.33875363 C19.1077411,9.47137395 19.3532054,9.64249695 19.5538457,9.85212262 C19.7544861,10.0617483 19.908168,10.2991814 20.0148916,10.5644221 C20.1216152,10.8296627 20.174977,11.0906253 20.174977,11.3473098 L20.174977,17.9055986 C20.174977,18.10239 20.1301531,18.2949034 20.0405053,18.4831387 C19.9508575,18.671374 19.8313271,18.8424969 19.681914,18.9965076 C19.532501,19.1505183 19.3617433,19.2745825 19.1696408,19.3687002 C18.9775384,19.4628178 18.7790325,19.5098766 18.5741232,19.5098766 L18.5741232,12.3355451 C18.5741232,12.1130852 18.5314338,11.9055986 18.4460549,11.7130852 C18.360676,11.5205718 18.2454146,11.3515879 18.1002705,11.2061333 C17.9551264,11.0606788 17.7865031,10.9451707 17.5944007,10.8596092 C17.4022982,10.7740478 17.1952545,10.731267 16.9732694,10.731267 L9.77583079,10.731267 C9.77583079,10.5430317 9.81852022,10.3547964 9.90389909,10.1665611 C9.98927796,9.97832582 10.1045394,9.80720283 10.2496835,9.65319214 C10.3948276,9.49918144 10.5655853,9.37511727 10.7619567,9.28099962 C10.9583281,9.18688197 11.1675064,9.13982315 11.3894914,9.13982315 L17.8185202,9.13982315 L17.8185202,9.13982315 Z M16.704326,11.5398232 C17.0885309,11.5398232 17.3617433,11.644636 17.5239631,11.8542617 C17.686183,12.0638873 17.7672929,12.3441012 17.7672929,12.6949034 L17.7672929,20.2542617 C17.7672929,20.4681654 17.6776451,20.6692349 17.4983495,20.8574702 C17.3190538,21.0457055 17.0927998,21.1398232 16.8195875,21.1398232 L9.05864829,21.1398232 C8.82812535,21.1398232 8.62321606,21.0457055 8.44392044,20.8574702 C8.26462481,20.6692349 8.174977,20.4424969 8.174977,20.1772563 L8.174977,12.4767215 C8.174977,12.2029248 8.24968351,11.9783258 8.39909653,11.8029248 C8.54850955,11.6275237 8.74701542,11.5398232 8.99461414,11.5398232 L16.704326,11.5398232 Z M16.1792459,13.4906253 C16.1792459,13.3965076 16.1493633,13.3195023 16.0895981,13.2596092 C16.0298329,13.1997162 15.9529919,13.1697697 15.8590752,13.1697697 L10.0831947,13.1697697 C9.98927796,13.1697697 9.91243698,13.1997162 9.85267177,13.2596092 C9.79290656,13.3195023 9.76302396,13.3965076 9.76302396,13.4906253 L9.76302396,16.3526574 C9.83986494,16.446775 9.91030251,16.5515879 9.97433666,16.6670959 C10.0383708,16.7826039 10.1173463,16.8916948 10.211263,16.9943686 C10.3051798,17.0970424 10.4289791,17.1847429 10.5826611,17.2574702 C10.7363431,17.3301975 10.9497902,17.3665611 11.2230026,17.3665611 C11.6242833,17.3665611 11.9508575,17.30239 12.2027251,17.1740478 C12.4545928,17.0457055 12.6765779,16.8831387 12.8686803,16.6863472 C13.0607828,16.4895558 13.2400784,16.2777911 13.4065672,16.0510531 C13.573056,15.8243151 13.7715618,15.6104114 14.0020848,15.4093419 C14.2326077,15.2082723 14.5186269,15.0371494 14.8601424,14.8959729 C15.2016579,14.7547964 15.6413591,14.675652 16.1792459,14.6585397 L16.1792459,13.4906253 L16.1792459,13.4906253 Z" id="形状" fill="url(#linearGradient-9)" fill-rule="nonzero" mask="url(#mask-7)"></path>
</g>
<path d="M15.5929876,24.1568627 C14.1839485,24.1568627 13.0414078,25.315817 13.0414078,26.745098 C13.0414078,28.1743791 14.1839485,29.3333333 15.5929876,29.3333333 C17.0020266,29.3333333 18.1445674,28.1743791 18.1445674,26.745098 C18.1445674,25.315817 17.0020266,24.1568627 15.5929876,24.1568627 Z" id="路径" fill="#8B9CFF" filter="url(#filter-10)"></path>
</g>
</g>
</g>
</g>
</g>
</g>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 8.9 KiB

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="64px" height="64px" viewBox="0 0 64 64" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>警示</title>
<defs>
<rect id="path-1" x="0" y="0" width="64" height="64"></rect>
</defs>
<g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="PrevailCloud-Design-图标集" transform="translate(-664.000000, -6389.000000)">
<g id="警示" transform="translate(664.000000, 6389.000000)">
<mask id="mask-2" fill="white">
<use xlink:href="#path-1"></use>
</mask>
<g id="蒙版"></g>
<path d="M32,4 C47.463973,4 60,16.536027 60,32 C60,47.463973 47.463973,60 32,60 C16.536027,60 4,47.463973 4,32 C4,16.536027 16.536027,4 32,4 Z M32,9 C19.2974508,9 9,19.2974508 9,32 C9,44.7025492 19.2974508,55 32,55 C44.7025492,55 55,44.7025492 55,32 C55,19.2974508 44.7025492,9 32,9 Z" id="形状结合" fill="#FF4E4F" mask="url(#mask-2)"></path>
<path d="M32,41.8150625 C33.5403559,41.8150625 34.7890611,43.0637676 34.7890611,44.6041236 C34.7890611,46.1444795 33.5403559,47.3931847 32,47.3931847 C30.4596441,47.3931847 29.2109389,46.1444795 29.2109389,44.6041236 C29.2109389,43.0637676 30.4596441,41.8150625 32,41.8150625 Z M33,16.6068153 C33.5522847,16.6068153 34,17.0545306 34,17.6068153 L34,36.7882606 C34,37.3405453 33.5522847,37.7882606 33,37.7882606 L31,37.7882606 C30.4477153,37.7882606 30,37.3405453 30,36.7882606 L30,17.6068153 C30,17.0545306 30.4477153,16.6068153 31,16.6068153 L33,16.6068153 Z" id="形状结合备份" fill="#FF4E4F" mask="url(#mask-2)"></path>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.7 KiB

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="64px" height="64px" viewBox="0 0 64 64" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>图片重复数</title>
<g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="PrevailCloud-Design-图标集" transform="translate(-2250.000000, -6389.000000)" fill="#507AFD" fill-rule="nonzero">
<g id="图片重复数" transform="translate(2250.000000, 6389.000000)">
<path d="M64,32 C64,49.6731274 49.6731274,64 32,64 C14.3268738,64 0,49.6731274 0,32 C0,14.3268738 14.3268738,0 32,0 C49.6731274,0 64,14.3268738 64,32 C64,32 64,32 64,32 Z" id="Ellipse-930" fill-opacity="0.1"></path>
<path d="M26.2074318,29.5008264 C26.6824488,29.5008264 27.0870929,29.6683196 27.4213641,30.0033058 C27.7556353,30.338292 27.9227709,30.7438017 27.9227709,31.2198347 C27.9227709,31.6782369 27.7556353,32.0793388 27.4213641,32.4231405 C27.0870929,32.7669421 26.6824488,32.938843 26.2074318,32.938843 C25.7324149,32.938843 25.3277708,32.7669421 24.9934996,32.4231405 C24.6592284,32.0793388 24.4920928,31.6782369 24.4920928,31.2198347 C24.4920928,30.7438017 24.6592284,30.338292 24.9934996,30.0033058 C25.3277708,29.6683196 25.7324149,29.5008264 26.2074318,29.5008264 Z M39.5079072,19.6363636 C40.282009,19.6363636 40.9681446,19.7730028 41.5663142,20.046281 C42.1644837,20.3195592 42.6702888,20.6721763 43.0837295,21.1041322 C43.4971702,21.5360882 43.8138482,22.0253444 44.0337635,22.5719008 C44.2536787,23.1184573 44.3636364,23.6561983 44.3636364,24.185124 L44.3636364,37.6991736 C44.3636364,38.1046832 44.271272,38.5013774 44.0865431,38.8892562 C43.9018143,39.277135 43.6555092,39.6297521 43.3476278,39.9471074 C43.0397465,40.2644628 42.687882,40.5201102 42.2920345,40.7140496 C41.8961871,40.907989 41.4871447,41.0049587 41.0649073,41.0049587 L41.0649073,26.2214876 C41.0649073,25.7630854 40.9769412,25.3355372 40.801009,24.938843 C40.6250768,24.5421488 40.3875683,24.1939394 40.0884836,23.8942149 C39.7893988,23.5944904 39.4419327,23.3564738 39.0460852,23.1801653 C38.6502377,23.0038567 38.2236021,22.9157025 37.7661783,22.9157025 L22.9350927,22.9157025 C22.9350927,22.5278237 23.0230588,22.1399449 23.198991,21.7520661 C23.3749232,21.3641873 23.6124317,21.0115702 23.9115164,20.6942149 C24.2106012,20.3768595 24.5624656,20.1212121 24.9671097,19.9272727 C25.3717538,19.7333333 25.8027877,19.6363636 26.2602115,19.6363636 L39.5079072,19.6363636 L39.5079072,19.6363636 Z M37.2119919,24.5818182 C38.0036868,24.5818182 38.5666699,24.7977961 38.9009411,25.2297521 C39.2352123,25.661708 39.4023479,26.2391185 39.4023479,26.9619835 L39.4023479,42.538843 C39.4023479,42.9796143 39.2176191,43.3939394 38.8481614,43.7818182 C38.4787038,44.169697 38.0124834,44.3636364 37.4495003,44.3636364 L21.4572621,44.3636364 C20.9822451,44.3636364 20.5600078,44.169697 20.1905501,43.7818182 C19.8210925,43.3939394 19.6363636,42.9267218 19.6363636,42.3801653 L19.6363636,26.5123967 C19.6363636,25.9482094 19.7903043,25.4853994 20.0981857,25.1239669 C20.4060671,24.7625344 20.8151095,24.5818182 21.3253129,24.5818182 L37.2119919,24.5818182 Z M36.1300087,28.6016529 C36.1300087,28.4077135 36.0684325,28.2490358 35.9452799,28.1256198 C35.8221274,28.0022039 35.6637884,27.9404959 35.4702629,27.9404959 L23.5684486,27.9404959 C23.3749232,27.9404959 23.2165842,28.0022039 23.0934316,28.1256198 C22.9702791,28.2490358 22.9087028,28.4077135 22.9087028,28.6016529 L22.9087028,34.4991736 C23.0670418,34.6931129 23.2121859,34.9090909 23.3441351,35.1471074 C23.4760842,35.385124 23.6388215,35.6099174 23.8323469,35.8214876 C24.0258724,36.0330579 24.2809741,36.2137741 24.5976521,36.3636364 C24.9143301,36.5134986 25.3541606,36.5884298 25.9171437,36.5884298 C26.7440251,36.5884298 27.4169658,36.4561983 27.9359658,36.1917355 C28.4549659,35.9272727 28.9123896,35.5922865 29.3082371,35.1867769 C29.7040846,34.7812672 30.0735423,34.3449036 30.4166101,33.877686 C30.7596779,33.4104683 31.1687203,32.969697 31.6437373,32.5553719 C32.1187542,32.1410468 32.7081272,31.7884298 33.411856,31.4975207 C34.1155849,31.2066116 35.0216358,31.0435262 36.1300087,31.0082645 L36.1300087,28.6016529 L36.1300087,28.6016529 Z" id="形状"></path>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 4.2 KiB

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="64px" height="64px" viewBox="0 0 64 64" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>不通过</title>
<g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="PrevailCloud-Design-图标集" transform="translate(-1986.000000, -6389.000000)" fill="#507AFD" fill-rule="nonzero">
<g id="不通过" transform="translate(1986.000000, 6389.000000)">
<path d="M64,32 C64,49.6731274 49.6731274,64 32,64 C14.3268738,64 0,49.6731274 0,32 C0,14.3268738 14.3268738,0 32,0 C49.6731274,0 64,14.3268738 64,32 C64,32 64,32 64,32 Z" id="Ellipse-930" fill-opacity="0.1"></path>
<path d="M39.7482333,33.8946117 C42.6991808,33.8946117 45.0909091,36.2863399 45.0909091,39.2372874 C45.0909091,42.188235 42.6991808,44.5799632 39.7482333,44.5799632 C36.7972858,44.5799632 34.4055575,42.188235 34.4055575,39.2372874 C34.4055575,36.2863399 36.7979127,33.8946117 39.7482333,33.8946117 Z M37.4198247,20.3636364 C38.6352542,20.3636364 39.6249811,21.3102054 39.7053482,22.4981668 L39.7106177,22.6544293 L39.7106177,32.0301294 C38.2617883,32.0301294 36.9145212,32.4608286 35.7891864,33.200603 C35.6989537,32.68191 35.2735706,32.2783575 34.7434337,32.2233535 L34.6193398,32.2169538 L25.7790357,32.2169538 C25.1226427,32.2169538 24.5903813,32.7492152 24.5903813,33.4062352 C24.5903813,34.0221914 25.0576381,34.5284965 25.657413,34.5893786 L25.7790357,34.5955165 L34.2256293,34.5955165 C33.8327226,35.0663736 33.5019239,35.5857486 33.2413532,36.1408927 L33.1838326,36.136661 L33.1838326,36.136661 L33.1253717,36.1352504 L25.8699402,36.1352504 C25.2135472,36.1352504 24.6812858,36.6675118 24.6812858,37.3245318 C24.6812858,37.940488 25.1485426,38.4467931 25.7483175,38.5076752 L25.8699402,38.5138131 L32.6006334,38.5138131 C32.5805717,38.73073 32.5699139,38.9501547 32.5699139,39.172087 C32.5699139,40.7766294 33.098884,42.2566435 33.9946204,43.4540581 L34.1786098,43.6897262 L22.6544293,43.6897262 C21.4389998,43.6897262 20.4492729,42.7431572 20.3689058,41.5551958 L20.3636364,41.3989333 L20.3636364,27.8083999 C20.3636364,27.1795133 20.8413624,26.6619308 21.4543271,26.5996896 L21.5786218,26.5934145 L25.2536705,26.5934145 C25.9184095,26.5934145 26.4652323,26.0881379 26.5309885,25.4407351 L26.537618,25.3094671 L26.537618,21.5786218 C26.537618,20.9497352 27.015344,20.4321527 27.6283087,20.3699115 L27.7526034,20.3636364 L37.4198247,20.3636364 Z M41.5917907,36.6918329 C41.4158995,36.691476 41.2470992,36.7611422 41.1226598,36.8854509 L39.7104097,38.2970645 L38.2981597,36.8854509 C38.0376994,36.6296854 37.6201068,36.6305359 37.3606905,36.8873602 C37.2358759,37.0112923 37.1655227,37.1798074 37.1651631,37.3556986 C37.1648063,37.5315897 37.2344724,37.7003901 37.3587811,37.8248295 L38.7703947,39.2370795 L37.3587811,40.6493295 C37.1030156,40.9097899 37.1038661,41.3273824 37.3606905,41.5867988 C37.6216289,41.8477373 38.039767,41.8477373 38.2981597,41.5887081 L39.7104097,40.1770945 L41.1226598,41.5887081 C41.3831201,41.8444736 41.8007126,41.8436231 42.060129,41.5867988 C42.3210675,41.3258603 42.3210675,40.9077223 42.0620383,40.6493295 L40.6504247,39.2370795 L42.0620383,37.8248295 C42.3178038,37.5643691 42.3169533,37.1467766 42.060129,36.8873602 C41.936197,36.7625457 41.7676818,36.6921925 41.5917907,36.6918329 Z M34.5735741,28.300538 L28.9036422,28.300538 C28.2472491,28.300538 27.7149877,28.8327994 27.7149877,29.4898193 C27.7149877,30.1057756 28.1822446,30.6120807 28.7820195,30.6729628 L28.9036422,30.6791007 L34.5735741,30.6791007 C35.2305941,30.6791007 35.7622285,30.1468393 35.7622285,29.4898193 C35.7622285,28.8327994 35.2305941,28.300538 34.5735741,28.300538 Z M25.4646994,21.1427154 L25.4668259,21.2131231 L25.2818823,24.0261466 C25.2372137,24.7049914 24.7274923,25.2543489 24.066794,25.3601429 L23.9327344,25.3752944 L21.1197109,25.560238 C20.8274662,25.5793352 20.6570162,25.2544162 20.8090505,25.0277874 L20.8538936,24.9734339 L24.8800218,20.9473058 C25.0877759,20.7401304 25.4296108,20.8721636 25.4646994,21.1427154 Z" id="形状结合"></path>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 4.1 KiB

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="64px" height="64px" viewBox="0 0 64 64" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>通过</title>
<g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="PrevailCloud-Design-图标集" transform="translate(-1720.000000, -6389.000000)" fill="#507AFD" fill-rule="nonzero">
<g id="通过" transform="translate(1720.000000, 6389.000000)">
<path d="M64,32 C64,49.6731274 49.6731274,64 32,64 C14.3268738,64 0,49.6731274 0,32 C0,14.3268738 14.3268738,0 32,0 C49.6731274,0 64,14.3268738 64,32 C64,32 64,32 64,32 Z" id="Ellipse-930" fill-opacity="0.1"></path>
<path d="M39.7482333,33.8946117 C42.6991808,33.8946117 45.0909091,36.2863399 45.0909091,39.2372874 C45.0909091,42.188235 42.6991808,44.5799632 39.7482333,44.5799632 C36.7972858,44.5799632 34.4055575,42.188235 34.4055575,39.2372874 C34.4055575,36.2863399 36.7979127,33.8946117 39.7482333,33.8946117 Z M37.4198247,20.3636364 C38.6352542,20.3636364 39.6249811,21.3102054 39.7053482,22.4981668 L39.7106177,22.6544293 L39.7106177,32.0301294 C38.2617883,32.0301294 36.9145212,32.4608286 35.7891864,33.200603 C35.6989537,32.68191 35.2735706,32.2783575 34.7434337,32.2233535 L34.6193398,32.2169538 L25.7790357,32.2169538 C25.1226427,32.2169538 24.5903813,32.7492152 24.5903813,33.4062352 C24.5903813,34.0221914 25.0576381,34.5284965 25.657413,34.5893786 L25.7790357,34.5955165 L34.2256293,34.5955165 C33.8327226,35.0663736 33.5019239,35.5857486 33.2413532,36.1408927 L33.1838326,36.136661 L33.1838326,36.136661 L33.1253717,36.1352504 L25.8699402,36.1352504 C25.2135472,36.1352504 24.6812858,36.6675118 24.6812858,37.3245318 C24.6812858,37.940488 25.1485426,38.4467931 25.7483175,38.5076752 L25.8699402,38.5138131 L32.6006334,38.5138131 C32.5805717,38.73073 32.5699139,38.9501547 32.5699139,39.172087 C32.5699139,40.7766294 33.098884,42.2566435 33.9946204,43.4540581 L34.1786098,43.6897262 L22.6544293,43.6897262 C21.4389998,43.6897262 20.4492729,42.7431572 20.3689058,41.5551958 L20.3636364,41.3989333 L20.3636364,27.8083999 C20.3636364,27.1795133 20.8413624,26.6619308 21.4543271,26.5996896 L21.5786218,26.5934145 L25.2536705,26.5934145 C25.9184095,26.5934145 26.4652323,26.0881379 26.5309885,25.4407351 L26.537618,25.3094671 L26.537618,21.5786218 C26.537618,20.9497352 27.015344,20.4321527 27.6283087,20.3699115 L27.7526034,20.3636364 L37.4198247,20.3636364 Z M41.4753711,37.4183387 L41.4127373,37.4748619 L39.4603946,39.3561686 L38.0870331,37.9835709 C37.8080077,37.7045508 37.3637172,37.6801971 37.0558662,37.9270477 L36.9924686,37.9835709 C36.7098525,38.266187 36.6915206,38.7107345 36.9359453,39.0147378 L36.9924686,39.0781355 L38.9127305,40.9976335 C39.1945827,41.2802496 39.6398941,41.2985815 39.9438973,41.0541567 L40.0065312,40.9976335 L42.506538,38.5686626 C42.7950286,38.2777623 42.80676,37.8124072 42.5332936,37.5073402 C42.2598271,37.2022731 41.7959628,37.1632489 41.4753711,37.4183387 Z M34.5735741,28.300538 L28.9036422,28.300538 C28.2472491,28.300538 27.7149877,28.8327994 27.7149877,29.4898193 C27.7149877,30.1057756 28.1822446,30.6120807 28.7820195,30.6729628 L28.9036422,30.6791007 L34.5735741,30.6791007 C35.2305941,30.6791007 35.7622285,30.1468393 35.7622285,29.4898193 C35.7622285,28.8327994 35.2305941,28.300538 34.5735741,28.300538 Z M25.4646994,21.1427154 L25.4668259,21.2131231 L25.2818823,24.0261466 C25.2372137,24.7049914 24.7274923,25.2543489 24.066794,25.3601429 L23.9327344,25.3752944 L21.1197109,25.560238 C20.8274662,25.5793352 20.6570162,25.2544162 20.8090505,25.0277874 L20.8538936,24.9734339 L24.8800218,20.9473058 C25.0877759,20.7401304 25.4296108,20.8721636 25.4646994,21.1427154 Z" id="形状结合"></path>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.7 KiB

@ -0,0 +1,45 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="96px" height="96px" viewBox="0 0 96 96" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>可疑文件夹</title>
<defs>
<radialGradient cx="49.9999974%" cy="50.0000039%" fx="49.9999974%" fy="50.0000039%" r="110.414469%" gradientTransform="translate(0.500000,0.500000),rotate(75.075110),scale(1.000000,1.409640),translate(-0.500000,-0.500000)" id="radialGradient-1">
<stop stop-color="#FFFCFC" stop-opacity="0.1" offset="0%"></stop>
<stop stop-color="#FFFFFF" stop-opacity="0.41" offset="100%"></stop>
</radialGradient>
<linearGradient x1="-0.00164029895%" y1="20.3389764%" x2="49.9999972%" y2="99.9999913%" id="linearGradient-2">
<stop stop-color="#3964EA" stop-opacity="0.18" offset="0%"></stop>
<stop stop-color="#A37D7D" stop-opacity="0" offset="100%"></stop>
</linearGradient>
<rect id="path-3" x="0" y="0" width="95.9411163" height="95.9411163" rx="15.9901861"></rect>
<rect id="path-4" x="0" y="0" width="95.9411163" height="95.9411163" rx="15.9901861"></rect>
<filter x="-1.6%" y="-1.6%" width="103.1%" height="103.1%" filterUnits="objectBoundingBox" id="filter-5">
<feOffset dx="3" dy="0" in="SourceAlpha" result="shadowOffsetInner1"></feOffset>
<feComposite in="shadowOffsetInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite>
<feColorMatrix values="0 0 0 0 0.80541166 0 0 0 0 0.85265276 0 0 0 0 1 0 0 0 0.37 0" type="matrix" in="shadowInnerInner1"></feColorMatrix>
</filter>
<linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="linearGradient-6">
<stop stop-color="#92C0FF" offset="0%"></stop>
<stop stop-color="#507AFD" offset="100%"></stop>
</linearGradient>
</defs>
<g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="无法上传iconfont" transform="translate(-392.000000, -80.000000)">
<g id="Frame-18" transform="translate(392.000000, 80.000000)">
<g id="路径">
<use fill="url(#radialGradient-1)" xlink:href="#path-3"></use>
<use fill="url(#linearGradient-2)" xlink:href="#path-3"></use>
</g>
<g id="路径" fill="black" fill-opacity="1">
<use filter="url(#filter-5)" xlink:href="#path-4"></use>
</g>
<g id="编组-50" transform="translate(24.930558, 27.327848)">
<g id="编组" fill="url(#linearGradient-6)">
<path d="M46.0573921,37.8007842 L46.0573921,8.94799551 C46.0573921,5.44326823 42.8673831,5.77157479 42.8673831,5.77157479 C42.8673831,5.77157479 23.8138175,5.79417887 24.8215345,5.77157479 C23.7282311,5.79417887 23.188438,5.20029046 23.188438,5.20029046 C23.188438,5.20029046 22.4280135,3.8954361 21.0648136,1.83035047 C19.6341878,-0.333523352 17.9784228,0.0217020285 17.9784228,0.0217020294 L3.93665198,0.0217020294 C0.0450149641,0.0217020294 0,3.76509234 0,3.76509234 L0,37.6073294 C0,41.7824512 3.15381664,41.2650045 3.15381664,41.2650045 L43.1554403,41.2650045 C46.5298238,41.2650045 46.0573921,37.8007842 46.0573921,37.8007842 Z" id="形状"></path>
</g>
<path d="M43.7347101,9.15040185 C43.7347101,9.30411916 43.6736461,9.4515406 43.5649516,9.56023515 C43.456257,9.6689297 43.3088356,9.72999366 43.1551183,9.72999366 L3.35648058,9.72999366 C3.20276327,9.72999366 3.05534183,9.6689297 2.94664728,9.56023515 C2.83795273,9.4515406 2.77688877,9.30411916 2.77688877,9.15040185 C2.77688877,8.83030213 3.03638086,8.57081004 3.35648058,8.57081004 L43.1551183,8.57081004 C43.3088356,8.57081004 43.456257,8.631874 43.5649516,8.74056855 C43.6736461,8.8492631 43.7347101,8.99668455 43.7347101,9.15040185 L43.7347101,9.15040185 Z" id="路径" fill="#FFFFFF" fill-rule="nonzero"></path>
<path d="M33.616325,23.2641708 C33.616325,23.46252 33.5442625,23.6350452 33.3973681,23.7818751 L27.5087797,29.6731039 C27.3620142,29.819805 27.1892958,29.8920608 26.9909466,29.8920608 C26.7925974,29.8920608 26.6200079,29.819805 26.4732424,29.6731039 C26.3264768,29.5261452 26.2542855,29.3562604 26.2542855,29.1552708 L26.2542855,26.2057925 L23.6758103,26.2057925 C22.9236289,26.2057925 22.251238,26.2316165 21.6588308,26.2753435 C21.0637832,26.3217108 20.4738875,26.4041417 19.8865678,26.5227004 C19.3018241,26.6411947 18.7917833,26.803416 18.358957,27.0094287 C17.9261307,27.2181462 17.5217688,27.4835348 17.1456782,27.8080418 C16.772099,28.1351248 16.4655594,28.5215194 16.2261235,28.9698658 C15.9890061,29.4180191 15.8036011,29.9486032 15.6670106,30.5643229 C15.5330605,31.1774666 15.4661499,31.870272 15.4661499,32.6482131 C15.4661499,33.0680951 15.4867576,33.5395609 15.5227567,34.0624815 C15.5227567,34.1088488 15.5330605,34.1989431 15.5536682,34.3329576 C15.574276,34.4669078 15.5845798,34.5674347 15.5845798,34.6369857 C15.5845798,34.7528397 15.5510923,34.8481504 15.4892692,34.9254937 C15.4248701,35.0026438 15.3347113,35.0413476 15.2188574,35.0413476 C15.0952111,35.0413476 14.9895322,34.9769485 14.8968619,34.8455744 C14.8452783,34.7760234 14.7938234,34.691081 14.7449445,34.590554 C14.6985127,34.492603 14.6496338,34.3742375 14.5903867,34.2427989 C14.5336511,34.1114892 14.495076,34.0187545 14.469252,33.9671708 C13.4929618,31.7879056 13.0086806,30.0594984 13.0086806,28.784332 C13.0086806,27.259426 13.2121817,25.9816836 13.619184,24.9538742 C14.8633744,21.8678698 18.2146386,20.322356 23.6808978,20.322356 L26.2568614,20.322356 L26.2568614,17.3754536 C26.2568614,17.1771044 26.328924,17.0045149 26.4756895,16.8577494 C26.6225838,16.7107906 26.792533,16.6387924 26.9935226,16.6387924 C27.1918718,16.6387924 27.3644614,16.710855 27.5112269,16.8577494 L33.3999441,22.7463378 C33.5416221,22.8956792 33.616325,23.0658216 33.616325,23.2641708 L33.616325,23.2641708 Z" id="路径" fill="#FFFFFF" fill-rule="nonzero" transform="translate(23.312503, 25.840070) scale(-1, 1) translate(-23.312503, -25.840070) "></path>
</g>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 6.1 KiB

@ -1,43 +1,43 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="49px" height="59px" viewBox="0 0 49 59" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<svg width="66px" height="80px" viewBox="0 0 66 80" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>任务总数</title>
<defs>
<rect id="path-1" x="0" y="0" width="32" height="32"></rect>
<rect id="path-1" x="0" y="0" width="42.6666667" height="42.6666667"></rect>
<filter x="-371.5%" y="-374.7%" width="843.0%" height="849.3%" filterUnits="objectBoundingBox" id="filter-3">
<feGaussianBlur stdDeviation="6.34032634" in="SourceGraphic"></feGaussianBlur>
<feGaussianBlur stdDeviation="8.45376845" in="SourceGraphic"></feGaussianBlur>
</filter>
<rect id="path-4" x="0" y="0" width="28.4444444" height="28.2051282"></rect>
<rect id="path-4" x="0" y="0" width="37.9259259" height="37.6068376"></rect>
<linearGradient x1="105.502715%" y1="2.31847174%" x2="14.6827115%" y2="89.8245624%" id="linearGradient-6">
<stop stop-color="#94B3FF" offset="0%"></stop>
<stop stop-color="#3955FF" offset="100%"></stop>
</linearGradient>
<path d="M4.83555556,5.87512821 L4.83555556,15.2787179 C4.83555556,18.5223077 7.48942222,21.1538462 10.7605333,21.1538462 L22.6133333,21.1538462 C25.8844444,21.1538462 28.5383111,18.5223077 28.5383111,15.2787179 L28.5383111,5.87512821 C28.5383111,2.63153846 25.8844444,0 22.6133333,0 L10.7605333,0 C7.48942222,0 4.83555556,2.63153846 4.83555556,5.87512821 Z" id="path-7"></path>
<path d="M6.44740741,7.83350427 L6.44740741,20.3716239 C6.44740741,24.6964103 9.9858963,28.2051282 14.3473778,28.2051282 L30.1511111,28.2051282 C34.5125926,28.2051282 38.0510815,24.6964103 38.0510815,20.3716239 L38.0510815,7.83350427 C38.0510815,3.50871795 34.5125926,0 30.1511111,0 L14.3473778,0 C9.9858963,0 6.44740741,3.50871795 6.44740741,7.83350427 Z" id="path-7"></path>
<filter x="0.0%" y="0.0%" width="100.0%" height="100.0%" filterUnits="objectBoundingBox" id="filter-8">
<feOffset dx="0" dy="0" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
<feColorMatrix values="0 0 0 0 0.328065454 0 0 0 0 0.41948512 0 0 0 0 1 0 0 0 1 0" type="matrix" in="shadowOffsetOuter1"></feColorMatrix>
</filter>
<path d="M2.27555556,11.7982051 L2.27555556,21.2017949 C2.27555556,24.4453846 4.92942222,27.0769231 8.20053333,27.0769231 L20.0533333,27.0769231 C23.3244444,27.0769231 25.9783111,24.4453846 25.9783111,21.2017949 L25.9783111,11.7982051 C25.9783111,8.55461538 23.3244444,5.92307692 20.0533333,5.92307692 L8.20053333,5.92307692 C4.92942222,5.92307692 2.27555556,8.55461538 2.27555556,11.7982051 Z" id="path-9"></path>
<rect id="path-10" x="0" y="0" width="17.0666667" height="16.9230769"></rect>
<path d="M3.03407407,15.7309402 L3.03407407,28.2690598 C3.03407407,32.5938462 6.57256296,36.1025641 10.9340444,36.1025641 L26.7377778,36.1025641 C31.0992593,36.1025641 34.6377481,32.5938462 34.6377481,28.2690598 L34.6377481,15.7309402 C34.6377481,11.4061538 31.0992593,7.8974359 26.7377778,7.8974359 L10.9340444,7.8974359 C6.57256296,7.8974359 3.03407407,11.4061538 3.03407407,15.7309402 Z" id="path-9"></path>
<rect id="path-10" x="0" y="0" width="22.7555556" height="22.5641026"></rect>
<linearGradient x1="69.7214326%" y1="60.74758%" x2="-51.0955919%" y2="70.4452809%" id="linearGradient-12">
<stop stop-color="#FFFFFF" offset="0%"></stop>
<stop stop-color="#FFFFFF" stop-opacity="0" offset="100%"></stop>
</linearGradient>
</defs>
<g id="搜索/首次登录弹框" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="登录提示" transform="translate(-588.000000, -281.000000)">
<g id="编组-8备份" transform="translate(500.000000, 120.000000)">
<g id="编组-51" transform="translate(77.063866, 161.492764)">
<g id="任务总数" transform="translate(11.000000, 0.000000)">
<g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="无法上传iconfont" transform="translate(-586.000000, -1489.000000)">
<g id="编组-51" transform="translate(584.000000, 1489.666667)">
<g id="任务总数-2" transform="translate(2.333333, 0.000000)">
<g id="任务总数" transform="translate(0.085155, 0.657019)">
<g id="Group-194756" fill="#E9EEFF" fill-rule="nonzero">
<path d="M48,24 C48,37.2548455 37.2548455,48 24,48 C10.7451553,48 0,37.2548455 0,24 C0,10.7451553 10.7451553,0 24,0 C37.2548455,0 48,10.7451553 48,24 C48,24 48,24 48,24 Z" id="Ellipse-930"></path>
<path d="M64,32 C64,49.6731274 49.6731274,64 32,64 C14.3268738,64 0,49.6731274 0,32 C0,14.3268738 14.3268738,0 32,0 C49.6731274,0 64,14.3268738 64,32 C64,32 64,32 64,32 Z" id="Ellipse-930"></path>
</g>
<g id="Group-1" transform="translate(8.000000, 8.000000)">
<g id="Group-1" transform="translate(10.666667, 10.666667)">
<mask id="mask-2" fill="white">
<use xlink:href="#path-1"></use>
</mask>
<g id="蒙版"></g>
<g transform="translate(0.888889, 1.777778)">
<path d="M14.5066667,24.2564103 C13.0929778,24.2564103 11.9466667,25.3930769 11.9466667,26.7948718 C11.9466667,28.1966667 13.0929778,29.3333333 14.5066667,29.3333333 C15.9203556,29.3333333 17.0666667,28.1966667 17.0666667,26.7948718 C17.0666667,25.3930769 15.9203556,24.2564103 14.5066667,24.2564103 Z" id="路径" fill="#8B9CFF" filter="url(#filter-3)"></path>
<g transform="translate(1.185185, 2.370370)">
<path d="M19.3422222,32.3418803 C17.4573037,32.3418803 15.9288889,33.8574359 15.9288889,35.7264957 C15.9288889,37.5955556 17.4573037,39.1111111 19.3422222,39.1111111 C21.2271407,39.1111111 22.7555556,37.5955556 22.7555556,35.7264957 C22.7555556,33.8574359 21.2271407,32.3418803 19.3422222,32.3418803 Z" id="路径" fill="#8B9CFF" filter="url(#filter-3)"></path>
<g id="image-landscape-png-svgrepo-com(1)-1">
<mask id="mask-5" fill="white">
<use xlink:href="#path-4"></use>
@ -47,14 +47,14 @@
<use fill="black" fill-opacity="1" filter="url(#filter-8)" xlink:href="#path-7"></use>
<use fill="url(#linearGradient-6)" fill-rule="evenodd" xlink:href="#path-7"></use>
</g>
<path id="路径" d="M20.0533333,5.67307692 C23.462045,5.67307692 26.2283111,8.41606915 26.2283111,11.7982051 L26.2283111,11.7982051 L26.2283111,21.2017949 C26.2283111,24.5839308 23.462045,27.3269231 20.0533333,27.3269231 L20.0533333,27.3269231 L8.20053333,27.3269231 C4.79182166,27.3269231 2.02555556,24.5839308 2.02555556,21.2017949 L2.02555556,21.2017949 L2.02555556,11.7982051 C2.02555556,8.41606915 4.79182166,5.67307692 8.20053333,5.67307692 L8.20053333,5.67307692 Z M20.0533333,6.17307692 L8.20053333,6.17307692 C5.06702278,6.17307692 2.52555556,8.69316162 2.52555556,11.7982051 L2.52555556,11.7982051 L2.52555556,21.2017949 C2.52555556,24.3068384 5.06702278,26.8269231 8.20053333,26.8269231 L8.20053333,26.8269231 L20.0533333,26.8269231 C23.1868439,26.8269231 25.7283111,24.3068384 25.7283111,21.2017949 L25.7283111,21.2017949 L25.7283111,11.7982051 C25.7283111,8.69316162 23.1868439,6.17307692 20.0533333,6.17307692 L20.0533333,6.17307692 Z" fill="#FFFFFF" fill-rule="nonzero"></path>
<path id="路径" d="M26.7377778,7.56410256 C31.2827267,7.56410256 34.9710815,11.2214255 34.9710815,15.7309402 L34.9710815,15.7309402 L34.9710815,28.2690598 C34.9710815,32.7785745 31.2827267,36.4358974 26.7377778,36.4358974 L26.7377778,36.4358974 L10.9340444,36.4358974 C6.38909555,36.4358974 2.70074074,32.7785745 2.70074074,28.2690598 L2.70074074,28.2690598 L2.70074074,15.7309402 C2.70074074,11.2214255 6.38909555,7.56410256 10.9340444,7.56410256 L10.9340444,7.56410256 Z M26.7377778,8.23076923 L10.9340444,8.23076923 C6.75603038,8.23076923 3.36740741,11.5908822 3.36740741,15.7309402 L3.36740741,15.7309402 L3.36740741,28.2690598 C3.36740741,32.4091178 6.75603038,35.7692308 10.9340444,35.7692308 L10.9340444,35.7692308 L26.7377778,35.7692308 C30.9157918,35.7692308 34.3044148,32.4091178 34.3044148,28.2690598 L34.3044148,28.2690598 L34.3044148,15.7309402 C34.3044148,11.5908822 30.9157918,8.23076923 26.7377778,8.23076923 L26.7377778,8.23076923 Z" fill="#FFFFFF" fill-rule="nonzero"></path>
<g id="收起" mask="url(#mask-5)">
<g transform="translate(5.688889, 8.038462)">
<g transform="translate(7.585185, 10.717949)">
<mask id="mask-11" fill="white">
<use xlink:href="#path-10"></use>
</mask>
<g id="蒙版" stroke="none" fill="none"></g>
<path d="M14.8482532,1.96153846 L2.77396401,1.96153846 C2.65086938,1.96174328 2.53290922,2.01089215 2.44608611,2.09815093 C2.359263,2.18540971 2.31070509,2.30361448 2.31111367,2.42670874 L2.31111367,5.67748274 L15.3111035,5.67748274 L15.3111035,2.42670874 C15.3115121,2.30361448 15.2629542,2.18540971 15.1761311,2.09815093 C15.0893079,2.01089215 14.9713478,1.96174328 14.8482532,1.96153846 L14.8482532,1.96153846 Z M4.1594113,4.39961896 C3.83838548,4.39961896 3.57814264,4.13937581 3.57814264,3.81834961 C3.57814264,3.49732342 3.83838548,3.23708027 4.1594113,3.23708027 C4.48022339,3.23708027 4.74029297,3.49715016 4.74029297,3.81796263 C4.74029297,4.1387751 4.48022339,4.39884499 4.1594113,4.39884499 L4.1594113,4.39961896 Z M2.31111626,14.4963682 C2.31111626,14.7548821 2.51854636,14.9615385 2.77396401,14.9615385 L14.8459312,14.9615385 C14.9690255,14.9615385 15.087067,14.9125866 15.1740352,14.8254731 C15.2610034,14.7383596 15.3097584,14.6202365 15.3095536,14.4971422 L15.3095536,11.2463682 L2.31111626,11.2463682 L2.31111626,14.4971422 L2.31111626,14.4963682 Z M4.1594113,12.5242319 C4.48000965,12.5242319 4.73990597,12.7841286 4.73990597,13.1047273 C4.73990597,13.425326 4.48000965,13.6852227 4.1594113,13.6852227 C3.83881294,13.6852227 3.57891662,13.425326 3.57891662,13.1047273 C3.57891662,12.7841286 3.83881294,12.5242319 4.1594113,12.5242319 L4.1594113,12.5242319 Z M2.31111626,10.3183496 L15.3111009,10.3183496 L15.3111009,6.60472731 L2.31111626,6.60472731 L2.31111626,10.3191236 L2.31111626,10.3183496 Z M4.1594113,7.88026912 C4.48022338,7.88026912 4.74029295,8.140339 4.74029295,8.46115146 C4.74029295,8.78196392 4.48022338,9.0420338 4.1594113,9.0420338 C3.83881295,9.0420338 3.57891664,8.78213719 3.57891664,8.46153846 C3.57891664,8.14093974 3.83881295,7.88104312 4.1594113,7.88104312 L4.1594113,7.88026912 Z" id="形状" stroke="none" fill="url(#linearGradient-12)" fill-rule="evenodd" mask="url(#mask-11)"></path>
<path d="M19.7976709,2.61538462 L3.69861868,2.61538462 C3.53449251,2.6156577 3.3772123,2.68118953 3.26144815,2.79753457 C3.145684,2.91387961 3.08094012,3.07148597 3.08148489,3.23561165 L3.08148489,7.56997699 L20.4148047,7.56997699 L20.4148047,3.23561165 C20.4153494,3.07148597 20.3506056,2.91387961 20.2348414,2.79753457 C20.1190773,2.68118953 19.961797,2.6156577 19.7976709,2.61538462 L19.7976709,2.61538462 Z M5.54588173,5.86615861 C5.11784731,5.86615861 4.77085685,5.51916774 4.77085685,5.09113282 C4.77085685,4.66309789 5.11784731,4.31610703 5.54588173,4.31610703 C5.97363118,4.31610703 6.32039062,4.66286688 6.32039062,5.09061684 C6.32039062,5.51836679 5.97363118,5.86512665 5.54588173,5.86512665 L5.54588173,5.86615861 Z M3.08148835,19.3284909 C3.08148835,19.6731762 3.35806181,19.9487179 3.69861868,19.9487179 L19.7945749,19.9487179 C19.9587007,19.9487179 20.1160893,19.8834488 20.2320469,19.7672974 C20.3480046,19.6511461 20.4130112,19.4936486 20.4127381,19.3295229 L20.4127381,14.9951576 L3.08148835,14.9951576 L3.08148835,19.3295229 L3.08148835,19.3284909 Z M5.54588173,16.6989759 C5.9733462,16.6989759 6.31987462,17.0455047 6.31987462,17.4729697 C6.31987462,17.9004347 5.9733462,18.2469635 5.54588173,18.2469635 C5.11841726,18.2469635 4.77188883,17.9004347 4.77188883,17.4729697 C4.77188883,17.0455047 5.11841726,16.6989759 5.54588173,16.6989759 L5.54588173,16.6989759 Z M3.08148835,13.7577995 L20.4148012,13.7577995 L20.4148012,8.80630308 L3.08148835,8.80630308 L3.08148835,13.7588314 L3.08148835,13.7577995 Z M5.54588173,10.5070255 C5.97363117,10.5070255 6.3203906,10.8537853 6.3203906,11.2815353 C6.3203906,11.7092852 5.97363117,12.0560451 5.54588173,12.0560451 C5.11841727,12.0560451 4.77188886,11.7095162 4.77188886,11.2820513 C4.77188886,10.8545863 5.11841727,10.5080575 5.54588173,10.5080575 L5.54588173,10.5070255 Z" id="形状" stroke="none" fill="url(#linearGradient-12)" fill-rule="evenodd" mask="url(#mask-11)"></path>
</g>
</g>
</g>

Before

Width:  |  Height:  |  Size: 8.2 KiB

After

Width:  |  Height:  |  Size: 8.2 KiB

@ -1,65 +1,63 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="49px" height="57px" viewBox="0 0 49 57" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<svg width="66px" height="76px" viewBox="0 0 66 76" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>已审批</title>
<defs>
<rect id="path-1" x="0" y="0" width="32" height="32"></rect>
<rect id="path-1" x="0" y="0" width="42.6666667" height="42.6666667"></rect>
<linearGradient x1="103.941749%" y1="-9.86447236%" x2="15.6759798%" y2="100%" id="linearGradient-3">
<stop stop-color="#94B3FF" offset="0%"></stop>
<stop stop-color="#3955FF" offset="100%"></stop>
</linearGradient>
<path d="M4.81965071,11.9835294 C4.81965071,18.6007843 10.107091,23.964183 16.6334651,23.964183 C23.1570041,23.964183 28.4444444,18.6007843 28.4444444,11.9835294 C28.4444444,5.36339869 23.1570041,0 16.6334651,0 C10.107091,0 4.81965071,5.36339869 4.81965071,11.9835294 Z" id="path-4"></path>
<path d="M6.42620094,15.9780392 C6.42620094,24.8010458 13.4761214,31.952244 22.1779535,31.952244 C30.8760055,31.952244 37.9259259,24.8010458 37.9259259,15.9780392 C37.9259259,7.15119826 30.8760055,0 22.1779535,0 C13.4761214,0 6.42620094,7.15119826 6.42620094,15.9780392 Z" id="path-4"></path>
<filter x="0.0%" y="0.0%" width="100.0%" height="100.0%" filterUnits="objectBoundingBox" id="filter-5">
<feOffset dx="0" dy="0" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
<feColorMatrix values="0 0 0 0 0.328065454 0 0 0 0 0.41948512 0 0 0 0 1 0 0 0 1 0" type="matrix" in="shadowOffsetOuter1"></feColorMatrix>
</filter>
<rect id="path-6" x="0" y="0" width="28.3508865" height="28.7581699"></rect>
<path d="M2.26807092,15.4345098 C2.26807092,22.0517647 7.55551126,27.4151634 14.0818853,27.4151634 C20.6054243,27.4151634 25.8928647,22.0517647 25.8928647,15.4345098 C25.8928647,8.81437908 20.6054243,3.45098039 14.0818853,3.45098039 C7.55551126,3.45098039 2.26807092,8.81437908 2.26807092,15.4345098 Z" id="path-8"></path>
<rect id="path-6" x="0" y="0" width="37.801182" height="38.3442266"></rect>
<path d="M3.02409456,20.5793464 C3.02409456,29.4023529 10.074015,36.5535512 18.7758471,36.5535512 C27.4738991,36.5535512 34.5238195,29.4023529 34.5238195,20.5793464 C34.5238195,11.7525054 27.4738991,4.60130719 18.7758471,4.60130719 C10.074015,4.60130719 3.02409456,11.7525054 3.02409456,20.5793464 Z" id="path-8"></path>
<linearGradient x1="50.4207596%" y1="35.9999974%" x2="1.68579345%" y2="100.000001%" id="linearGradient-9">
<stop stop-color="#FFFFFF" offset="0%"></stop>
<stop stop-color="#FFFFFF" stop-opacity="0" offset="100%"></stop>
</linearGradient>
<filter x="-338.5%" y="-333.7%" width="776.9%" height="767.3%" filterUnits="objectBoundingBox" id="filter-10">
<feGaussianBlur stdDeviation="5.75725631" in="SourceGraphic"></feGaussianBlur>
<feGaussianBlur stdDeviation="7.67634174" in="SourceGraphic"></feGaussianBlur>
</filter>
</defs>
<g id="搜索/首次登录弹框" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="登录提示" transform="translate(-840.000000, -281.000000)">
<g id="编组-8备份" transform="translate(500.000000, 120.000000)">
<g id="编组-29" transform="translate(329.063866, 161.492764)">
<g id="已审批" transform="translate(11.000000, 0.000000)">
<g id="Statistics/icon/down" fill-rule="nonzero">
<g id="Frame-4273186251">
<rect x="0" y="0" width="44" height="44"></rect>
<g id="Group-194756" fill="#E9EEFF">
<path d="M48,24 C48,37.2548455 37.2548455,48 24,48 C10.7451553,48 0,37.2548455 0,24 C0,10.7451553 10.7451553,0 24,0 C37.2548455,0 48,10.7451553 48,24 C48,24 48,24 48,24 Z" id="Ellipse-930"></path>
</g>
<g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="无法上传iconfont" transform="translate(-838.000000, -1491.000000)">
<g id="编组-29" transform="translate(838.333333, 1491.000000)">
<g id="已审批" transform="translate(0.085155, 0.657019)">
<g id="Statistics/icon/down" fill-rule="nonzero">
<g id="Frame-4273186251">
<rect x="0" y="0" width="58.6666667" height="58.6666667"></rect>
<g id="Group-194756" fill="#E9EEFF">
<path d="M64,32 C64,49.6731274 49.6731274,64 32,64 C14.3268738,64 0,49.6731274 0,32 C0,14.3268738 14.3268738,0 32,0 C49.6731274,0 64,14.3268738 64,32 C64,32 64,32 64,32 Z" id="Ellipse-930"></path>
</g>
</g>
<g id="Group-1" transform="translate(8.000000, 8.000000)">
<mask id="mask-2" fill="white">
<use xlink:href="#path-1"></use>
</mask>
<g id="蒙版"></g>
<g transform="translate(0.888889, 1.777778)">
<g id="路径">
<use fill="black" fill-opacity="1" filter="url(#filter-5)" xlink:href="#path-4"></use>
<use fill="url(#linearGradient-3)" fill-rule="evenodd" xlink:href="#path-4"></use>
</g>
<g id="user-person-profile-block-account-circle-svgrepo-com-1" transform="translate(0.000000, 0.575163)">
<mask id="mask-7" fill="white">
<use xlink:href="#path-6"></use>
</mask>
<g id="路径"></g>
<path id="路径" d="M14.0818853,3.20098039 C20.7447477,3.20098039 26.1428647,8.67755358 26.1428647,15.4345098 C26.1428647,22.189044 20.7443,27.6651634 14.0818853,27.6651634 C7.41708336,27.6651634 2.01807092,22.1894977 2.01807092,15.4345098 C2.01807092,8.6770998 7.41663558,3.20098039 14.0818853,3.20098039 Z M14.0818853,3.70098039 C7.69438694,3.70098039 2.51807092,8.95165837 2.51807092,15.4345098 C2.51807092,21.9149209 7.69481587,27.1651634 14.0818853,27.1651634 C20.4665486,27.1651634 25.6428647,21.9144854 25.6428647,15.4345098 C25.6428647,8.9520939 20.4669775,3.70098039 14.0818853,3.70098039 Z" fill="#FFFFFF" fill-rule="nonzero"></path>
<g id="crowd" mask="url(#mask-7)">
<g transform="translate(6.992746, 8.243529)">
<rect id="矩形" fill="#000000" fill-rule="nonzero" opacity="0" x="0" y="0" width="14.1754433" height="14.379085"></rect>
<path d="M9.97279608,7.06413654 C11.7104753,7.06413654 13.1206339,8.48665684 13.1183622,10.2372746 C13.1138106,11.9833035 11.7059264,13.401235 9.97734498,13.4035294 C8.23966571,13.4035294 6.82950715,11.9833035 6.82950715,10.2326858 C6.82950715,8.48436245 8.23739126,7.06413654 9.97279608,7.06413654 Z M6.57931772,11.9465933 C6.70213798,12.2310974 6.85680054,12.4949519 7.04330538,12.738157 L1.11836495,12.738157 L1.11836495,11.9465933 L6.57931772,11.9465933 Z M11.232841,8.7711609 L9.59751195,10.5286618 L8.64451769,9.61090675 L8.06680757,10.1500878 L9.62253089,11.6987994 L11.8787846,9.41588381 L11.232841,8.7711609 Z M6.28136486,0.403529412 C7.88940052,0.403529412 9.19493442,1.72050788 9.19493442,3.3426399 C9.19493442,3.84969955 9.06756526,4.32693217 8.84466923,4.74221632 L8.84239478,4.7445107 C8.76278905,4.89135151 8.66726218,5.03130915 8.56491196,5.16438363 C8.1236688,5.87334939 7.72336572,6.43547435 7.9530851,7.11231868 C6.94322961,7.77769108 6.27454152,8.92717925 6.27454152,10.2326858 C6.27454152,10.4781853 6.29956046,10.4850684 6.342775,10.7168016 L1.11836495,10.7168016 L1.11836495,8.09431656 L4.00009222,8.09431656 C5.56718778,6.84846411 4.60964463,6.13261519 3.98871997,5.15291169 C3.60206359,4.6527352 3.36779531,4.02636739 3.36779531,3.3426399 C3.36779531,1.72050788 4.67332921,0.403529412 6.28136486,0.403529412 Z" id="形状结合" fill="url(#linearGradient-9)" fill-rule="evenodd"></path>
</g>
</g>
<g id="Group-1" transform="translate(10.666667, 10.666667)">
<mask id="mask-2" fill="white">
<use xlink:href="#path-1"></use>
</mask>
<g id="蒙版"></g>
<g transform="translate(1.185185, 2.370370)">
<g id="路径">
<use fill="black" fill-opacity="1" filter="url(#filter-5)" xlink:href="#path-4"></use>
<use fill="url(#linearGradient-3)" fill-rule="evenodd" xlink:href="#path-4"></use>
</g>
<g id="user-person-profile-block-account-circle-svgrepo-com-1" transform="translate(0.000000, 0.766885)">
<mask id="mask-7" fill="white">
<use xlink:href="#path-6"></use>
</mask>
<g id="路径"></g>
<path id="路径" d="M18.7758471,4.26797386 C27.6596636,4.26797386 34.8571529,11.5700714 34.8571529,20.5793464 C34.8571529,29.585392 27.6590667,36.8868845 18.7758471,36.8868845 C9.88944448,36.8868845 2.69076123,29.5859969 2.69076123,20.5793464 C2.69076123,11.5694664 9.88884744,4.26797386 18.7758471,4.26797386 Z M18.7758471,4.93464052 C10.2591826,4.93464052 3.3574279,11.9355445 3.3574279,20.5793464 C3.3574279,29.2198945 10.2597545,36.2202179 18.7758471,36.2202179 C27.2887315,36.2202179 34.1904862,29.2193139 34.1904862,20.5793464 C34.1904862,11.9361252 27.2893033,4.93464052 18.7758471,4.93464052 Z" fill="#FFFFFF" fill-rule="nonzero"></path>
<g id="crowd" mask="url(#mask-7)">
<g transform="translate(9.323662, 10.991373)">
<rect id="矩形" fill="#000000" fill-rule="nonzero" opacity="0" x="0" y="0" width="18.900591" height="19.1721133"></rect>
<path d="M13.2970614,9.41884872 C15.6139671,9.41884872 17.4941785,11.3155425 17.4911496,13.6496994 C17.4850808,15.977738 15.6079019,17.8683134 13.3031266,17.8713725 C10.9862209,17.8713725 9.10600953,15.977738 9.10600953,13.643581 C9.10600953,11.3124833 10.9831884,9.41884872 13.2970614,9.41884872 Z M8.77242363,15.9287911 C8.93618398,16.3081298 9.14240072,16.6599359 9.39107384,16.9842094 L1.49115327,16.9842094 L1.49115327,15.9287911 L8.77242363,15.9287911 Z M14.9771213,11.6948812 L12.7966826,14.0382157 L11.5260236,12.8145423 L10.7557434,13.5334504 L12.8300412,15.5983993 L15.8383795,12.5545117 L14.9771213,11.6948812 Z M8.37515315,0.538039216 C10.5192007,0.538039216 12.2599126,2.29401051 12.2599126,4.45685319 C12.2599126,5.13293273 12.090087,5.76924289 11.7928923,6.32295509 L11.7898597,6.32601427 C11.6837187,6.52180201 11.5563496,6.7084122 11.4198826,6.88584484 C10.8315584,7.83113252 10.297821,8.58063246 10.6041135,9.48309157 C9.25763948,10.3702548 8.36605536,11.9029057 8.36605536,13.643581 C8.36605536,13.9709137 8.39941394,13.9800912 8.45703333,14.2890687 L1.49115327,14.2890687 L1.49115327,10.7924221 L5.33345629,10.7924221 C7.42291705,9.13128548 6.14619284,8.17682025 5.31829329,6.87054892 C4.80275145,6.20364693 4.49039375,5.36848986 4.49039375,4.45685319 C4.49039375,2.29401051 6.23110561,0.538039216 8.37515315,0.538039216 Z" id="形状结合" fill="url(#linearGradient-9)" fill-rule="evenodd"></path>
</g>
</g>
<path d="M15.5929876,24.1568627 C14.1839485,24.1568627 13.0414078,25.315817 13.0414078,26.745098 C13.0414078,28.1743791 14.1839485,29.3333333 15.5929876,29.3333333 C17.0020266,29.3333333 18.1445674,28.1743791 18.1445674,26.745098 C18.1445674,25.315817 17.0020266,24.1568627 15.5929876,24.1568627 Z" id="路径" fill="#8B9CFF" filter="url(#filter-10)"></path>
</g>
<path d="M20.7906501,32.2091503 C18.9119314,32.2091503 17.3885437,33.7544227 17.3885437,35.6601307 C17.3885437,37.5658388 18.9119314,39.1111111 20.7906501,39.1111111 C22.6693689,39.1111111 24.1927565,37.5658388 24.1927565,35.6601307 C24.1927565,33.7544227 22.6693689,32.2091503 20.7906501,32.2091503 Z" id="路径" fill="#8B9CFF" filter="url(#filter-10)"></path>
</g>
</g>
</g>

Before

Width:  |  Height:  |  Size: 7.2 KiB

After

Width:  |  Height:  |  Size: 7.0 KiB

@ -1,61 +1,59 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="49px" height="58px" viewBox="0 0 49 58" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<svg width="66px" height="78px" viewBox="0 0 66 78" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>待审批</title>
<defs>
<rect id="path-1" x="0" y="0" width="32" height="32"></rect>
<rect id="path-1" x="0" y="0" width="42.6666667" height="42.6666667"></rect>
<filter x="-333.3%" y="-329.7%" width="766.7%" height="759.4%" filterUnits="objectBoundingBox" id="filter-3">
<feGaussianBlur stdDeviation="5.68888889" in="SourceGraphic"></feGaussianBlur>
<feGaussianBlur stdDeviation="7.58518519" in="SourceGraphic"></feGaussianBlur>
</filter>
<rect id="path-4" x="0" y="0" width="28.4444444" height="28.7581699"></rect>
<rect id="path-4" x="0" y="0" width="37.9259259" height="38.3442266"></rect>
<linearGradient x1="104.298352%" y1="-9.86447236%" x2="15.4490675%" y2="100%" id="linearGradient-6">
<stop stop-color="#94B3FF" offset="0%"></stop>
<stop stop-color="#3955FF" offset="100%"></stop>
</linearGradient>
<path d="M8.24888889,14.4509804 C8.24888889,17.1111111 10.3822222,19.2679739 13.0133333,19.2679739 L22.5422222,19.2679739 C25.1733333,19.2679739 27.3066667,17.1111111 27.3066667,14.4509804 L27.3066667,6.57986928 C27.3066667,5.81202614 27.0051556,5.07581699 26.4704,4.5351634 L22.8209778,0.845490196 C22.2862222,0.304836601 21.5580444,0 20.7985778,0 L13.0133333,0 C10.3822222,0 8.24888889,2.15686275 8.24888889,4.81699346 L8.24888889,14.4509804 Z" id="path-7"></path>
<path d="M10.9985185,19.2679739 C10.9985185,22.8148148 13.842963,25.6906318 17.3511111,25.6906318 L30.0562963,25.6906318 C33.5644444,25.6906318 36.4088889,22.8148148 36.4088889,19.2679739 L36.4088889,8.77315904 C36.4088889,7.74936819 36.0068741,6.76775599 35.2938667,6.04688453 L30.4279704,1.12732026 C29.714963,0.406448802 28.7440593,0 27.731437,0 L17.3511111,0 C13.842963,0 10.9985185,2.87581699 10.9985185,6.42265795 L10.9985185,19.2679739 Z" id="path-7"></path>
<filter x="0.0%" y="0.0%" width="100.0%" height="100.0%" filterUnits="objectBoundingBox" id="filter-8">
<feOffset dx="0" dy="0" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
<feColorMatrix values="0 0 0 0 0.328065454 0 0 0 0 0.41948512 0 0 0 0 1 0 0 0 1 0" type="matrix" in="shadowOffsetOuter1"></feColorMatrix>
</filter>
<path d="M17.9797339,2.39555169 L8.29440052,2.39555169 C5.02328941,2.39555169 2.36942274,5.07868895 2.36942274,8.38587849 L2.36942274,20.3694079 C2.36942274,23.6765974 5.02328941,26.3597347 8.29440052,26.3597347 L20.1472005,26.3597347 C23.4183116,26.3597347 26.0721783,23.6765974 26.0721783,20.3694079 L26.0721783,10.577251 C26.0721783,9.62535562 25.6967116,8.71084581 25.0311116,8.03502882 L20.4942227,3.44810071 C19.8257783,2.77515954 18.921245,2.39555169 17.9797339,2.39555169 Z" id="path-9"></path>
<path d="M23.9729785,3.19406893 L11.0592007,3.19406893 C6.69771921,3.19406893 3.15923032,6.77158527 3.15923032,11.1811713 L3.15923032,27.1592105 C3.15923032,31.5687966 6.69771921,35.1463129 11.0592007,35.1463129 L26.862934,35.1463129 C31.2244155,35.1463129 34.7629044,31.5687966 34.7629044,27.1592105 L34.7629044,14.1030014 C34.7629044,12.8338075 34.2622822,11.6144611 33.3748155,10.7133718 L27.3256303,4.59746762 C26.4343711,3.70021272 25.2283266,3.19406893 23.9729785,3.19406893 Z" id="path-9"></path>
<linearGradient x1="50.361848%" y1="2.00025023%" x2="151.318564%" y2="221.000262%" id="linearGradient-10">
<stop stop-color="#FFFFFF" offset="0%"></stop>
<stop stop-color="#FFFFFF" stop-opacity="0" offset="100%"></stop>
</linearGradient>
</defs>
<g id="搜索/首次登录弹框" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="登录提示" transform="translate(-714.000000, -281.000000)">
<g id="编组-8备份" transform="translate(500.000000, 120.000000)">
<g id="编组-28" transform="translate(203.063866, 161.492764)">
<g id="待审批" transform="translate(11.000000, 0.000000)">
<g id="Statistics/icon/down" fill-rule="nonzero">
<g id="Frame-4273186251">
<rect x="0" y="0" width="44" height="44"></rect>
<g id="Group-194756" fill="#E9EEFF">
<path d="M48,24 C48,37.2548455 37.2548455,48 24,48 C10.7451553,48 0,37.2548455 0,24 C0,10.7451553 10.7451553,0 24,0 C37.2548455,0 48,10.7451553 48,24 C48,24 48,24 48,24 Z" id="Ellipse-930"></path>
</g>
<g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="无法上传iconfont" transform="translate(-712.000000, -1490.000000)">
<g id="编组-28" transform="translate(712.333333, 1490.333333)">
<g id="待审批" transform="translate(0.085155, 0.657019)">
<g id="Statistics/icon/down" fill-rule="nonzero">
<g id="Frame-4273186251">
<rect x="0" y="0" width="58.6666667" height="58.6666667"></rect>
<g id="Group-194756" fill="#E9EEFF">
<path d="M64,32 C64,49.6731274 49.6731274,64 32,64 C14.3268738,64 0,49.6731274 0,32 C0,14.3268738 14.3268738,0 32,0 C49.6731274,0 64,14.3268738 64,32 C64,32 64,32 64,32 Z" id="Ellipse-930"></path>
</g>
</g>
<g id="Group-1" transform="translate(8.000000, 8.000000)">
<mask id="mask-2" fill="white">
<use xlink:href="#path-1"></use>
</mask>
<g id="蒙版"></g>
<g transform="translate(0.888889, 2.666667)">
<path d="M16.7822222,24.1568627 C15.3685333,24.1568627 14.2222222,25.315817 14.2222222,26.745098 C14.2222222,28.1743791 15.3685333,29.3333333 16.7822222,29.3333333 C18.1959111,29.3333333 19.3422222,28.1743791 19.3422222,26.745098 C19.3422222,25.315817 18.1959111,24.1568627 16.7822222,24.1568627 Z" id="路径" fill="#8B9CFF" filter="url(#filter-3)"></path>
<g id="save-disk-floppy-ram-svgrepo-com-1">
<mask id="mask-5" fill="white">
<use xlink:href="#path-4"></use>
</mask>
<g id="路径"></g>
<g id="路径" mask="url(#mask-5)">
<use fill="black" fill-opacity="1" filter="url(#filter-8)" xlink:href="#path-7"></use>
<use fill="url(#linearGradient-6)" fill-rule="evenodd" xlink:href="#path-7"></use>
</g>
<path id="路径" d="M17.9797339,2.14555169 C18.9871909,2.14555169 19.9557498,2.55126075 20.6719663,3.27229619 L20.6719663,3.27229619 L25.2092296,7.85960364 C25.9214987,8.58280608 26.3221783,9.5605749 26.3221783,10.577251 L26.3221783,10.577251 L26.3221783,20.3694079 C26.3221783,23.8140585 23.5570004,26.6097347 20.1472005,26.6097347 L20.1472005,26.6097347 L8.29440052,26.6097347 C4.88460065,26.6097347 2.11942274,23.8140585 2.11942274,20.3694079 L2.11942274,20.3694079 L2.11942274,8.38587849 C2.11942274,4.94122789 4.88460065,2.14555169 8.29440052,2.14555169 L8.29440052,2.14555169 Z M17.9797339,2.64555169 L8.29440052,2.64555169 C5.16197817,2.64555169 2.61942274,5.21615001 2.61942274,8.38587849 L2.61942274,8.38587849 L2.61942274,20.3694079 C2.61942274,23.5391364 5.16197817,26.1097347 8.29440052,26.1097347 L8.29440052,26.1097347 L20.1472005,26.1097347 C23.2796229,26.1097347 25.8221783,23.5391364 25.8221783,20.3694079 L25.8221783,20.3694079 L25.8221783,10.577251 C25.8221783,9.69186875 25.4731404,8.84012 24.8533681,8.21083334 L24.8533681,8.21083334 L20.3168544,3.62428381 C19.6945858,2.99782912 18.8535856,2.64555169 17.9797339,2.64555169 L17.9797339,2.64555169 Z" fill="#FFFFFF" fill-rule="nonzero"></path>
<g id="编组" mask="url(#mask-5)" fill="url(#linearGradient-10)">
<g transform="translate(7.581848, 8.133875)" id="形状结合">
<path d="M1.27168236,9.74872441 C1.38004731,9.75547612 1.47988044,9.80980048 1.54440156,9.897125 C1.74565156,10.115 3.47552656,11.963 3.65052656,12.158125 L3.65052656,12.158125 L3.65140156,12.158125 C3.74585343,12.2464673 3.79508332,12.3717858 3.78482414,12.4995126 C3.77456496,12.6272394 3.70596377,12.7430936 3.59890156,12.8135 C3.34515156,13.02875 2.94790156,13.44 2.77640156,13.615 C2.60577656,13.789125 2.37215156,13.818875 2.14290156,13.54675 C1.91365156,13.2755 0.373651562,11.55 0.229276562,11.3855 C0.0849015624,11.221 -0.137348438,10.87275 0.113776562,10.66275 C0.276526562,10.527125 0.846151562,9.993375 0.982651562,9.862125 C1.05751317,9.78348476 1.16331742,9.7419727 1.27168236,9.74872441 Z M4.49752656,7.71925 C5.51690156,7.637 8.55052656,7.886375 9.21902656,7.912625 C9.88665156,7.93975 9.97240156,8.647625 9.37827656,8.729875 C8.71852656,8.820875 6.74277656,8.95125 6.57915156,9.004625 C6.41552656,9.058875 6.01302656,9.562875 7.04552656,9.680125 C7.92803767,9.80583465 8.81985007,9.85414359 9.71077656,9.8245 C10.1894016,9.751875 11.5202766,8.3755 11.9630266,8.054375 C12.2491516,7.846125 12.8354016,7.676375 13.0681516,8.103375 C13.1162766,8.190875 12.9509016,8.528625 12.7181516,8.763125 L12.7181516,8.763125 L12.3301924,9.15121508 C11.5222846,9.94975071 9.91449939,11.4733424 9.21552656,11.5955 C8.87707656,11.65465 8.28242656,11.63806 7.66229656,11.604026 L7.19602656,11.5761406 C6.42296406,11.52725 5.70021406,11.473875 5.47840156,11.529875 C5.13154085,11.6420437 4.80287874,11.804164 4.50277656,12.011125 L4.50277656,12.011125 L4.21315156,12.04 L2.03965156,9.71075 L1.98452656,9.449125 C1.98452656,9.449125 3.47815156,7.8015 4.49752656,7.71925 Z M10.8631516,0 C11.4345266,0 11.8982766,0.46375 11.8982766,1.035125 L11.8982766,7.251125 C11.8807766,7.261625 11.8641516,7.273875 11.8475266,7.286125 L9.14815156,7.142625 C8.98540156,7.135625 8.68090156,7.1155 8.29590156,7.090125 C7.35002656,7.028 5.92115156,6.9335 5.02252656,6.9335 C4.81252656,6.9335 4.64015156,6.93875 4.50977656,6.94925 C3.62414273,7.10535297 2.79688788,7.49706736 2.11490156,8.08325 C2.06754065,7.96407046 2.04315156,7.83699514 2.04315156,7.70875 L2.04315156,1.035125 C2.04315156,0.46375 2.50690156,0.000875 3.07827656,0 L10.8631516,0 Z M8.98890156,3.67675 L4.90265156,3.67675 C4.67697421,3.67675 4.49402656,3.85969764 4.49402656,4.085375 C4.49402656,4.31105236 4.67697421,4.494 4.90265156,4.494 L8.98890156,4.494 C9.21457892,4.494 9.39752656,4.31105236 9.39752656,4.085375 C9.39752656,3.85969764 9.21457892,3.67675 8.98890156,3.67675 Z M8.98890156,1.633625 L4.90265156,1.633625 C4.67697421,1.633625 4.49402656,1.81657264 4.49402656,2.04225 C4.49402656,2.26792736 4.67697421,2.450875 4.90265156,2.450875 L8.98890156,2.450875 C9.21457892,2.450875 9.39752656,2.26792736 9.39752656,2.04225 C9.39752656,1.81657264 9.21457892,1.633625 8.98890156,1.633625 Z"></path>
</g>
</g>
<g id="Group-1" transform="translate(10.666667, 10.666667)">
<mask id="mask-2" fill="white">
<use xlink:href="#path-1"></use>
</mask>
<g id="蒙版"></g>
<g transform="translate(1.185185, 3.555556)">
<path d="M22.3762963,32.2091503 C20.4913778,32.2091503 18.962963,33.7544227 18.962963,35.6601307 C18.962963,37.5658388 20.4913778,39.1111111 22.3762963,39.1111111 C24.2612148,39.1111111 25.7896296,37.5658388 25.7896296,35.6601307 C25.7896296,33.7544227 24.2612148,32.2091503 22.3762963,32.2091503 Z" id="路径" fill="#8B9CFF" filter="url(#filter-3)"></path>
<g id="save-disk-floppy-ram-svgrepo-com-1">
<mask id="mask-5" fill="white">
<use xlink:href="#path-4"></use>
</mask>
<g id="路径"></g>
<g id="路径" mask="url(#mask-5)">
<use fill="black" fill-opacity="1" filter="url(#filter-8)" xlink:href="#path-7"></use>
<use fill="url(#linearGradient-6)" fill-rule="evenodd" xlink:href="#path-7"></use>
</g>
<path id="路径" d="M23.9729785,2.86073559 C25.3162545,2.86073559 26.6076664,3.401681 27.5626217,4.36306158 L27.5626217,4.36306158 L33.6123061,10.4794715 C34.5619982,11.4437414 35.0962377,12.7474332 35.0962377,14.1030014 L35.0962377,14.1030014 L35.0962377,27.1592105 C35.0962377,31.752078 31.4093339,35.4796463 26.862934,35.4796463 L26.862934,35.4796463 L11.0592007,35.4796463 C6.51280087,35.4796463 2.82589699,31.752078 2.82589699,27.1592105 L2.82589699,27.1592105 L2.82589699,11.1811713 C2.82589699,6.58830385 6.51280087,2.86073559 11.0592007,2.86073559 L11.0592007,2.86073559 Z M23.9729785,3.52740226 L11.0592007,3.52740226 C6.88263756,3.52740226 3.49256366,6.95486668 3.49256366,11.1811713 L3.49256366,11.1811713 L3.49256366,27.1592105 C3.49256366,31.3855152 6.88263756,34.8129796 11.0592007,34.8129796 L11.0592007,34.8129796 L26.862934,34.8129796 C31.0394972,34.8129796 34.4295711,31.3855152 34.4295711,27.1592105 L34.4295711,27.1592105 L34.4295711,14.1030014 C34.4295711,12.9224917 33.9641872,11.7868267 33.1378241,10.9477778 L33.1378241,10.9477778 L27.0891392,4.83237841 C26.2594478,3.99710549 25.1381141,3.52740226 23.9729785,3.52740226 L23.9729785,3.52740226 Z" fill="#FFFFFF" fill-rule="nonzero"></path>
<g id="编组" mask="url(#mask-5)" fill="url(#linearGradient-10)">
<g transform="translate(10.109131, 10.845167)" id="形状结合">
<path d="M1.69557648,12.9982992 C1.84006308,13.0073015 1.97317392,13.079734 2.05920208,13.1961667 C2.30420208,13.4614058 4.24831645,15.5385797 4.7621741,16.0958495 L4.86736875,16.2108333 L4.86853542,16.2108333 C4.99447124,16.3286231 5.06011109,16.4957144 5.04643218,16.6660168 C5.03275328,16.8363192 4.94128503,16.9907914 4.79853542,17.0846667 C4.46020208,17.3716667 3.93053542,17.92 3.70186875,18.1533333 C3.47436875,18.3855 3.16286875,18.4251667 2.85720208,18.0623333 C2.83062237,18.0308841 2.79082779,17.9847732 2.74019099,17.9266441 L2.55812655,17.7188456 C1.89361481,16.9633863 0.464723822,15.3618551 0.305702083,15.1806667 C0.113202083,14.9613333 -0.18313125,14.497 0.151702083,14.217 C0.368702083,14.0361667 1.12820208,13.3245 1.31020208,13.1495 C1.41001756,13.0446463 1.55108989,12.9892969 1.69557648,12.9982992 Z M5.99670208,10.2923333 C6.57173413,10.2459359 7.62748463,10.2786837 8.7217636,10.334563 L9.31980625,10.367 C10.6123271,10.4407917 11.8463687,10.5326667 12.2920354,10.5501667 C13.1822021,10.5863333 13.2965354,11.5301667 12.5043687,11.6398333 C11.9689195,11.7136884 10.783348,11.8069953 9.88829418,11.8847595 L9.52522889,11.9170334 C9.1288029,11.9533381 8.83860063,11.9845072 8.77220208,12.0061667 C8.55403542,12.0785 8.01736875,12.7505 9.39403542,12.9068333 C10.5707169,13.0744462 11.7598001,13.1388581 12.9477021,13.0993333 C13.5858687,13.0025 15.3603687,11.1673333 15.9507021,10.7391667 C16.3322021,10.4615 17.1138687,10.2351667 17.4242021,10.8045 C17.4883687,10.9211667 17.2678687,11.3715 16.9575354,11.6841667 C16.9119521,11.7301667 16.8548092,11.7878571 16.7875796,11.8554052 L16.5571034,12.0857891 C15.5259402,13.1109524 13.2543687,15.2916667 12.2873687,15.4606667 C11.8172993,15.5428194 10.9765701,15.5153947 10.1128857,15.4662468 L9.59470208,15.4348542 C8.56395208,15.3696667 7.60028542,15.2985 7.30453542,15.3731667 C6.84205447,15.5227249 6.40383832,15.7388854 6.00370208,16.0148333 L6.00370208,16.0148333 L5.61753542,16.0533333 L2.71953542,12.9476667 L2.64603542,12.5988333 C2.64603542,12.5988333 4.63753542,10.402 5.99670208,10.2923333 Z M14.4842021,0 C15.2460354,0 15.8643687,0.618333333 15.8643687,1.38016667 L15.8643687,9.66816667 C15.8410354,9.68216667 15.8188687,9.6985 15.7967021,9.71483333 L12.1975354,9.5235 C11.9805354,9.51416667 11.5745354,9.48733333 11.0612021,9.4535 C9.80003542,9.37066667 7.89486875,9.24466667 6.69670208,9.24466667 C6.41670208,9.24466667 6.18686875,9.25166667 6.01303542,9.26566667 C4.8321903,9.47380396 3.72918384,9.99608981 2.81986875,10.7776667 C2.75672086,10.6187606 2.72420208,10.4493269 2.72420208,10.2783333 L2.72420208,1.38016667 C2.72420208,0.618333333 3.34253542,0.00116666667 4.10436875,0 L14.4842021,0 Z M11.9852021,4.90233333 L6.53686875,4.90233333 C6.23596561,4.90233333 5.99203542,5.14626353 5.99203542,5.44716667 C5.99203542,5.74806981 6.23596561,5.992 6.53686875,5.992 L11.9852021,5.992 C12.2861052,5.992 12.5300354,5.74806981 12.5300354,5.44716667 C12.5300354,5.14626353 12.2861052,4.90233333 11.9852021,4.90233333 Z M11.9852021,2.17816667 L6.53686875,2.17816667 C6.23596561,2.17816667 5.99203542,2.42209686 5.99203542,2.723 C5.99203542,3.02390314 6.23596561,3.26783333 6.53686875,3.26783333 L11.9852021,3.26783333 C12.2861052,3.26783333 12.5300354,3.02390314 12.5300354,2.723 C12.5300354,2.42209686 12.2861052,2.17816667 11.9852021,2.17816667 Z"></path>
</g>
</g>
</g>

Before

Width:  |  Height:  |  Size: 9.4 KiB

After

Width:  |  Height:  |  Size: 9.6 KiB

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="64px" height="64px" viewBox="0 0 64 64" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>待审批</title>
<g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="PrevailCloud-Design-图标集" transform="translate(-1194.000000, -6389.000000)" fill="#507AFD" fill-rule="nonzero">
<g id="待审批" transform="translate(1194.000000, 6389.000000)">
<path d="M64,32 C64,49.6731274 49.6731274,64 32,64 C14.3268738,64 0,49.6731274 0,32 C0,14.3268738 14.3268738,0 32,0 C49.6731274,0 64,14.3268738 64,32 C64,32 64,32 64,32 Z" id="Ellipse-930" fill-opacity="0.1"></path>
<g id="待提交" transform="translate(18.909091, 18.909091)">
<rect id="矩形" opacity="0" x="0" y="0" width="26.1818182" height="26.1818182"></rect>
<path d="M23.4605455,15.3130909 C22.6325455,15.9136364 20.1436364,18.4876364 19.2485455,18.6234545 C17.5823972,18.6788919 15.9145922,18.5885479 14.2641818,18.3534545 C12.3332727,18.1341818 13.086,17.1916364 13.392,17.0901818 C13.698,16.9903636 17.3929091,16.7465455 18.6267273,16.5763636 C19.7378182,16.4225455 19.5774545,15.0987273 18.3289091,15.048 C17.0787273,14.9989091 11.4054545,14.5325455 9.49909091,14.6863636 C7.59272727,14.8401818 4.79945455,17.9214545 4.79945455,17.9214545 L4.90254545,18.4107273 L8.96727273,22.7667273 L9.50890909,22.7127273 C10.0701391,22.3256833 10.68478,22.0224973 11.3334545,21.8127273 C12.1630909,21.6032727 16.74,22.212 18.3223636,21.9354545 C19.9047273,21.6589091 23.9776364,17.5418182 24.8727273,16.6385455 C25.308,16.2 25.6172727,15.5683636 25.5272727,15.4047273 C25.092,14.6061818 23.9956364,14.9236364 23.4605455,15.3130909 L23.4605455,15.3130909 Z M7.91509091,22.9876364 C7.58781818,22.6227273 4.35272727,19.1667273 3.97636364,18.7592727 C3.85570076,18.5959645 3.66899983,18.4943709 3.46634331,18.4817444 C3.26368679,18.4691178 3.06581911,18.5467507 2.92581818,18.6938182 C2.67054545,18.9392727 1.60527273,19.9374545 1.30090909,20.1910909 C0.831272727,20.5838182 1.24690909,21.2350909 1.51690909,21.5427273 C1.78690909,21.8503636 4.66690909,25.0772727 5.09563636,25.5845455 C5.52436364,26.0934545 5.96127273,26.0378182 6.28036364,25.7121818 C6.60109091,25.3849091 7.344,24.6158182 7.81854545,24.2132727 C8.01876568,24.0816036 8.14705882,23.8649412 8.16624482,23.6260755 C8.18543081,23.3872099 8.09336453,23.1528479 7.91672727,22.9909091 L7.91672727,22.9876364 L7.91509091,22.9876364 Z" id="形状"></path>
<path d="M4.90909091,14.6667273 L4.90909091,2.18618182 C4.90909091,1.11763636 5.77636364,0.252 6.84490909,0.250363636 L21.4036364,0.250363636 C22.4721818,0.250363636 23.3394545,1.11763636 23.3394545,2.18618182 L23.3394545,13.8109091 C23.3067273,13.8305455 23.2756364,13.8534545 23.2445455,13.8763636 L18.1963636,13.608 C17.892,13.5949091 17.3225455,13.5572727 16.6025455,13.5098182 C14.8336364,13.3936364 12.1614545,13.2169091 10.4809091,13.2169091 C10.0881818,13.2169091 9.76581818,13.2267273 9.522,13.2463636 C7.86574971,13.5382965 6.31867571,14.2708532 5.04327273,15.3670909 C4.95470166,15.1442097 4.90909091,14.9065623 4.90909091,14.6667273 Z M10.2567273,7.12636364 C9.83468131,7.12636364 9.49254545,7.46849949 9.49254545,7.89054545 C9.49254545,8.31259142 9.83468131,8.65472727 10.2567273,8.65472727 L17.8985455,8.65472727 C18.3205914,8.65472727 18.6627273,8.31259142 18.6627273,7.89054545 C18.6627273,7.46849949 18.3205914,7.12636364 17.8985455,7.12636364 L10.2567273,7.12636364 L10.2567273,7.12636364 Z M10.2567273,3.30545455 C9.83468131,3.30545455 9.49254545,3.6475904 9.49254545,4.06963636 C9.49254545,4.49168233 9.83468131,4.83381818 10.2567273,4.83381818 L17.8985455,4.83381818 C18.3205914,4.83381818 18.6627273,4.49168233 18.6627273,4.06963636 C18.6627273,3.6475904 18.3205914,3.30545455 17.8985455,3.30545455 L10.2567273,3.30545455 L10.2567273,3.30545455 Z" id="形状"></path>
</g>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 4.0 KiB

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="64px" height="64px" viewBox="0 0 64 64" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>删除</title>
<defs>
<rect id="path-1" x="0" y="0" width="64" height="64"></rect>
</defs>
<g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="PrevailCloud-Design-图标集" transform="translate(-1984.000000, -3431.000000)">
<g id="删除" transform="translate(1984.000000, 3431.000000)">
<mask id="mask-2" fill="white">
<use xlink:href="#path-1"></use>
</mask>
<use id="蒙版" fill="#000000" fill-rule="nonzero" opacity="0" xlink:href="#path-1"></use>
<path d="M52.9231991,16 C53.4754839,16 53.9231991,16.4477153 53.9231991,17 L53.9231991,20 C53.9231991,20.5522847 53.4754839,21 52.9231991,21 L49.862,21 L46.8906837,54.9640327 C46.8414748,55.5264927 46.5639593,56.0141255 46.1574353,56.3436103 C45.7935798,56.7212522 45.2824394,56.9564221 44.7163722,56.9564221 L19.2763722,56.9564221 C18.8012585,56.9564221 18.3648389,56.7907533 18.0217296,56.5140319 C17.5531495,56.1861769 17.2269494,55.6610416 17.1731938,55.0466129 L14.194,21 L11,21 C10.4477153,21 10,20.5522847 10,20 L10,17 C10,16.4477153 10.4477153,16 11,16 L52.9231991,16 Z M42.134,51.956 L44.843,21 L19.213,21 L21.922,51.956 L42.134,51.956 Z M39,7 C39.5522847,7 40,7.44771525 40,8 L40,11 C40,11.5522847 39.5522847,12 39,12 L25,12 C24.4477153,12 24,11.5522847 24,11 L24,8 C24,7.44771525 24.4477153,7 25,7 L39,7 Z" id="形状结合" fill="#FFFFFF" mask="url(#mask-2)"></path>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 180 KiB

@ -1,10 +1,10 @@
<script lang="ts" setup>
import { computed, onBeforeMount, reactive, ref } from 'vue'
import { computed, onBeforeMount, reactive, ref, watch } from 'vue'
import { useMessage } from 'naive-ui'
import { useDictionary } from '@/store/modules/dictonary'
import { audit } from '@/api/task/task'
const emit = defineEmits(['success'])
const emit = defineEmits(['success', 'close', 'show'])
const message = useMessage()
const loading = ref(false)
@ -21,12 +21,8 @@ const cardStyle = {
}
const rules = {
disposeTypeId: [
{ required: true, message: '请选择处理方式', trigger: 'blur' },
],
failCauseId: [
{ required: true, message: '请选择不通过原因', trigger: 'blur' },
],
disposeTypeId: [{ required: true, message: '请选择处理方式', trigger: 'blur' }],
failCauseId: [{ required: true, message: '请选择不通过原因', trigger: 'blur' }],
}
const formData = reactive({
@ -42,12 +38,21 @@ function showModal(value) {
function closeModal() {
show.value = false
emit('close')
formData.disposeTypeId = '262403670085013522'
formData.failCauseId = '260402999231251188'
formData.comment = ''
}
defineExpose({
showModal,
closeModal,
})
watch(show, (value) => {
// console.log(value)
emit('show', value)
})
const disposeOptions = ref<any[]>([]) //
const failCauseOptions = ref<any[]>([]) //
const selectItem = ref(null)
@ -61,7 +66,9 @@ onBeforeMount(async () => {
})
const showOther = computed(() => {
const failCauseItem = failCauseOptions.value.find(item => item.value === formData.failCauseId)
const failCauseItem = failCauseOptions.value.find(
item => item.value === formData.failCauseId,
)
return failCauseItem?.label === '其他'
})
/*
@ -70,8 +77,8 @@ const showOther = computed(() => {
* id: ''
* taskId:''
* fromTaskName: ''
* }]
*/
* }]
*/
async function handleSumbit(e: MouseEvent) {
e.preventDefault()
formRef.value.validate(async (errors) => {
@ -85,8 +92,12 @@ async function handleSumbit(e: MouseEvent) {
taskName: item.fromTaskName,
})
})
const disposeTypeItem = disposeOptions.value.find(item => item.value === formData.disposeTypeId)
const failCauseItem = failCauseOptions.value.find(item => item.value === formData.failCauseId)
const disposeTypeItem = disposeOptions.value.find(
item => item.value === formData.disposeTypeId,
)
const failCauseItem = failCauseOptions.value.find(
item => item.value === formData.failCauseId,
)
const param = {
result: false,
@ -105,7 +116,9 @@ async function handleSumbit(e: MouseEvent) {
emit('success', param)
closeModal()
}
else { message.error(res.message) }
else {
message.error(res.message)
}
})
}
finally {
@ -113,6 +126,9 @@ async function handleSumbit(e: MouseEvent) {
}
}
})
formData.disposeTypeId = '262403670085013522'
formData.failCauseId = '260402999231251188'
formData.comment = ''
}
async function selectChange(id) {
@ -122,16 +138,17 @@ async function selectChange(id) {
<template>
<n-modal v-model:show="show" transform-origin="center">
<n-card :style="cardStyle" :bordered="false" size="huge" role="dialog" aria-modal="true">
<n-card
:style="cardStyle"
:bordered="false"
size="huge"
role="dialog"
aria-modal="true"
>
<div class="wrapper">
<div class="wrapper-header">
<span class="wrapper-left">选择不通过原因</span>
<SvgIcon
size="22"
class="icon"
name="close-none-border"
@click="closeModal"
/>
<SvgIcon size="22" class="icon" name="close-none-border" @click="closeModal" />
</div>
<n-form
ref="formRef"
@ -142,14 +159,28 @@ async function selectChange(id) {
>
<div class="wrapper-content">
<n-form-item class="form-item" label="处理方式" path="disposeTypeId">
<n-select v-model:value="formData.disposeTypeId" filterable :options="disposeOptions" />
<n-select
v-model:value="formData.disposeTypeId"
filterable
:options="disposeOptions"
/>
</n-form-item>
<n-form-item class="form-item" label="不通过原因" path="failCauseId">
<n-select v-model:value="formData.failCauseId" filterable :options="failCauseOptions" @change="selectChange" />
<n-select
v-model:value="formData.failCauseId"
filterable
:options="failCauseOptions"
@change="selectChange"
/>
</n-form-item>
<n-form-item v-show="showOther" class="form-item-area" label="" path="">
<n-input v-model:value="formData.comment" placeholder-class="pl" type="textarea" placeholder="备注内容" />
<n-input
v-model:value="formData.comment"
placeholder-class="pl"
type="textarea"
placeholder="备注内容"
/>
</n-form-item>
</div>
</n-form>
@ -159,7 +190,7 @@ async function selectChange(id) {
<n-button type="info" @click="handleSumbit">
确定
</n-button>
<n-button secondary class="btn" style="margin-left:15px" @click="closeModal">
<n-button secondary class="btn" style="margin-left: 15px" @click="closeModal">
取消
</n-button>
</div>
@ -176,7 +207,7 @@ async function selectChange(id) {
align-items: center;
height: 56px;
border-bottom: 0.5px solid #d9d9d9;
padding: 0 24px
padding: 0 24px;
}
&-left {
@ -186,7 +217,7 @@ async function selectChange(id) {
color: #333333;
}
.icon{
.icon {
cursor: pointer;
}
@ -209,7 +240,7 @@ async function selectChange(id) {
&:before {
background-color: #1980ff;
content: '';
content: "";
width: 5px;
border-radius: 2px;
top: 0;
@ -218,14 +249,13 @@ async function selectChange(id) {
}
}
.form-item-area{
.form-item-area {
margin-top: -30px;
}
}
::v-deep(.n-card__content) {
padding: 0!important;
padding: 0 !important;
}
::v-deep(.n-card > .n-card-header) {
@ -243,10 +273,10 @@ async function selectChange(id) {
}
::v-deep(.n-input__placeholder) {
color: #333333!important;
color: #333333 !important;
}
.btn{
.btn {
border: 1px solid #cad2dd;
background-color: #fff;
}

@ -1,98 +1,230 @@
<template>
<div class="header_wrap">
<div v-for="(item, index) in data" :key="index" class="header_item">
<img :src="item.link" />
<div class="data_wrap">
<div class="data_title">{{ item.count }}</div>
<div class="data_content">{{ item.title }}</div>
</div>
</div>
<SvgIcon size="14px" style="cursor: pointer" name="setting"></SvgIcon>
</div>
</template>
<script lang="ts" setup>
const data = [
import { defineProps, onMounted, ref,watch,onBeforeMount } from "vue";
import { gettaskToolsCount } from "@/api/home/main";
import { useDataHeaderStore } from '@/store/modules/DataHeader'
defineProps({
hasColor: {
type: Boolean,
default: () => false,
},
});
const headerstore=useDataHeaderStore()
const datalist = ref([
{
link: "/src/assets/images/taskCount.png",
title: "任务包总数",
count: 6399,
link: "count",
title: "任务总数",
count: 0,
},
{
link: "/src/assets/images/nocheck.png",
title: "未标记",
count: 6290,
link: "wait",
title: "待审批",
count: 0,
},
{
link: "/src/assets/images/check.png",
title: "已标记",
count: 109,
link: "done",
title: "已审批",
count: 0,
},
{
link: "/src/assets/images/status.png",
title: "真",
count: 3290,
link: "resolve",
title: "通过",
count: 0,
color: "#03c984",
},
{
link: "/src/assets/images/status.png",
title: "假",
count: 3000,
link: "reject",
title: "不通过",
count: 0,
color: "#ff8b8b",
},
{
link: "/src/assets/images/pic.png",
title: "相似度100%图",
count: 230,
link: "reimg",
title: "片重复数",
count: 0,
},
{
link: "/src/assets/images/xiaojie.png",
link: "breakcount",
title: "小结重复数",
count: 365,
count: 0,
},
];
]);
function initRem() {
const designWidth = 1440;
const rempPx = 16;
const scale = window.innerWidth / designWidth;
document.documentElement.style.fontSize = `${scale * rempPx}px`;
}
onMounted(() => {
initRem();
getData();
setTimeout(() => {
headerstore.setDataConfig(false)
// alert(headerstore.DataConfig)
}, 500);
// headerstore.setDataConfig(false)
});
async function getData() {
const { data } = await gettaskToolsCount();
if (data) {
const {
total,
treat,
alreadyApprove,
repeatedNodules,
repeat,
approvedCount,
notGoCount,
} = data;
let newdata=[
{
link: "count",
title: "任务总数",
count: total,
},
{
link: "wait",
title: "待审批",
count: treat,
},
{
link: "done",
title: "已审批",
count: alreadyApprove,
},
{
link: "resolve",
title: "通过",
count: approvedCount,
color: "#03c984",
},
{
link: "reject",
title: "不通过",
count: notGoCount,
color: "#ff8b8b",
},
{
link: "reimg",
title: "图片重复数",
count: repeat,
},
{
link: "breakcount",
title: "小结重复数",
count: repeatedNodules,
},
]
datalist.value =newdata ;
}
}
watch(
() => headerstore.DataConfig,
(newval) => {
if(headerstore.DataConfig){
getData();
headerstore.setDataConfig(false)
}
},
)
defineExpose({
getData,
});
</script>
<template>
<div class="header_wrap" :style="hasColor ? '' : 'margin-top: 7.375rem;'">
<div v-for="(item, index) in datalist" :key="index" class="header_box">
<div class="header_item">
<SvgIcon :name="item.link" :style="index == 0 ? 'margin-left:0.5rem' : ''" />
<div class="data_wrap">
<div class="data_title" :style="hasColor ? `color:${item.color || ''}` : ''">
{{ item.count }}
</div>
<div class="data_content">
{{ item.title }}
</div>
</div>
</div>
<div
class="line"
:style="
hasColor
? 'margin-left:2.5rem;margin-right:2.0625rem'
: 'margin-left:1.25rem;margin-right:0.8125rem'
"
/>
</div>
<SvgIcon size="14px" style="cursor: pointer" name="setting" class="settingSvg" />
</div>
</template>
<style scoped lang="less">
.header_wrap {
display: flex;
flex-flow: row nowrap;
align-items: center;
justify-content: space-between;
padding: 20px 30px;
background: #fff;
.header_item {
width: 10%;
padding: 1rem 1rem 1rem 3.125rem;
background: #f5f7f9;
margin-bottom: 1rem;
// 180-62 header
padding-left: 2.125rem;
.header_box {
display: flex;
flex-flow: row nowrap;
align-items: center;
justify-content: center;
img{
width: 50px;
height: 50px
}
.data_wrap {
.data_title {
font-size: 20px;
font-family: HarmonyOS Sans SC, HarmonyOS Sans SC-Bold;
font-weight: Bold;
text-align: left;
color: #202020;
line-height: 23px;
text-align: center;
white-space: nowrap;
min-width: 10%;
.header_item {
display: flex;
flex-flow: row nowrap;
align-items: center;
justify-content: center;
svg {
width: 2.75rem !important;
height: 2.75rem !important;
}
.data_content {
opacity: 0.6;
font-size: 14px;
font-family: PingFang SC, PingFang SC-Regular;
font-weight: Regular;
text-align: center;
color: #202020;
line-height: 16px;
text-align: center;
white-space: nowrap;
.data_wrap {
margin-left: 0.75rem;
.data_title {
font-size: 1.125rem;
font-family: HarmonyOS Sans SC, HarmonyOS Sans SC-Bold;
font-weight: 900;
text-align: left;
color: #202020;
line-height: 1.4375rem;
text-align: center;
white-space: nowrap;
}
.data_content {
opacity: 0.6;
font-size: 0.75rem;
font-family: PingFang SC, PingFang SC-Regular;
font-weight: 500;
text-align: center;
color: #202020;
line-height: 1rem;
text-align: center;
white-space: nowrap;
}
}
}
}
}
.settingSvg {
width: 1rem !important;
height: 1rem !important;
}
.line {
width: 0.0625rem;
height: 1.25rem;
background: #e8e8e8;
}//
</style>

@ -33,6 +33,7 @@ function closeModal() {
defineExpose({
showModal,
closeModal,
})
const backOptions = ref<any[]>([])
@ -46,7 +47,9 @@ const showOther = computed(() => {
})
const comomitValue = computed(() => {
return (selectItem.value as any)?.label === '其他' ? otherValue.value : selectRejectId.value
return (selectItem.value as any)?.label === '其他'
? otherValue.value
: selectRejectId.value
})
async function handleSumbit(e: MouseEvent) {
@ -94,7 +97,13 @@ async function selectChange(id) {
<template>
<n-modal v-model:show="show" transform-origin="center">
<n-card :style="cardStyle" :bordered="false" size="huge" role="dialog" aria-modal="true">
<n-card
:style="cardStyle"
:bordered="false"
size="huge"
role="dialog"
aria-modal="true"
>
<div class="wrapper">
<div class="wrapper-header">
<span class="wrapper-left">选择不通过原因</span>
@ -106,12 +115,29 @@ async function selectChange(id) {
</div>
<div class="wrapper-content">
<span>处理方式</span>
<n-select v-model:value="selectBackId" filterable style="margin-top: 10px;" :options="backOptions" />
<n-select
v-model:value="selectBackId"
filterable
style="margin-top: 10px"
:options="backOptions"
/>
</div>
<div class="wrapper-content">
<span>不通过原因</span>
<n-select v-model:value="selectRejectId" filterable style="margin-top: 10px;" :options="reasonOptions" @change="selectChange" />
<n-input v-show="showOther" v-model:value="otherValue" type="textarea" placeholder="备注内容" style="margin-top: 10px;" />
<n-select
v-model:value="selectRejectId"
filterable
style="margin-top: 10px"
:options="reasonOptions"
@change="selectChange"
/>
<n-input
v-show="showOther"
v-model:value="otherValue"
type="textarea"
placeholder="备注内容"
style="margin-top: 10px"
/>
</div>
<!-- <div class="wrapper-content">
@ -125,7 +151,7 @@ async function selectChange(id) {
<n-button type="info" @click="handleSumbit">
确认
</n-button>
<n-button secondary style="margin-left:15px" @click="closeModal">
<n-button secondary style="margin-left: 15px" @click="closeModal">
取消
</n-button>
</div>
@ -165,7 +191,7 @@ async function selectChange(id) {
margin-bottom: 8px;
&:after {
content: '';
content: "";
display: block;
width: 18px;
height: 1px;
@ -191,7 +217,7 @@ async function selectChange(id) {
&:before {
background-color: #1980ff;
content: '';
content: "";
width: 5px;
border-radius: 2px;
top: 0;

@ -1,10 +1,12 @@
<script lang="ts" setup>
import { reactive, ref } from 'vue'
import { defineEmits, reactive, ref } from 'vue'
import { QuillEditor } from '@vueup/vue-quill'
import '@vueup/vue-quill/dist/vue-quill.snow.css'
import { debounce } from 'lodash-es'
import { queryNote, saveNote } from '@/api/home/main'
const emit = defineEmits(['close'])
const quillEditor = ref()
const cardStyle = {
@ -27,12 +29,14 @@ const options = reactive({
})
function initHandler() {
queryNote().then((res) => {
if (res.data)
note.value = res.data.notecontent
queryNote()
.then((res) => {
if (res.data)
note.value = res.data.notecontent
console.log('note:', note.value)
}).catch(e => console.log(e))
console.log('note:', note.value)
})
.catch(e => console.log(e))
}
const saveHandler = debounce(() => {
@ -44,8 +48,17 @@ const saveHandler = debounce(() => {
<template>
<div>
<n-card :style="cardStyle" :bordered="false" class="mt-4 proCard">
<div class="title">
备注信息
<div class="top_box">
<div class="title">
备注信息
</div>
<SvgIcon
size="20"
color="#000000"
name="close-none-border"
class="close_box"
@click="emit('close')"
/>
</div>
<QuillEditor
ref="quillEditor"
@ -62,25 +75,35 @@ const saveHandler = debounce(() => {
</template>
<style lang="less" scoped>
.title{
font-size: 18px;
font-family: PingFang SC, PingFang SC-Medium;
font-weight: Medium;
color: #333333;
margin-bottom: 24px;
.top_box {
display: flex;
flex-flow: row nowrap;
align-items: center;
justify-content: space-between;
.close_box {
cursor: pointer;
margin-bottom: 25px;
}
}
.title {
font-size: 18px;
font-family: PingFang SC, PingFang SC-Medium;
color: #333333;
margin-bottom: 24px;
font-weight: 500;
}
.ql-toolbar.ql-snow {
border-top: none;
border-left: none;
border-right: none;
border-bottom: 1px solid #eee;
margin-top: -10px;
background: #f8f8f8;
border: 1px solid #d8d8d8;
}
.ql-toolbar.ql-snow {
border-top: none;
border-left: none;
border-right: none;
border-bottom: 1px solid #eee;
margin-top: -10px;
background: #f8f8f8;
border: 1px solid #d8d8d8;
}
.ql-container.ql-snow {
border: 1px solid #d8d8d8;
}
.ql-container.ql-snow {
border: 1px solid #d8d8d8;
}
</style>

@ -0,0 +1,30 @@
<template>
<div class="ip_box" :style="canClick?'cursor: pointer;':''">
<img :src="IPImg" />
</div>
</template>
<script setup>
import IPImg from "@/assets/images/IP.png";
import { defineProps } from "vue";
defineProps({
canClick: {
type: Boolean,
default: () => false,
},
});
</script>
<style scoped lang="less">
.ip_box {
position: fixed;
bottom: 80px;
right: 20px;
z-index: 1000;
img {
width: 80px;
height: auto;
}
}
</style>

@ -1,8 +1,9 @@
<script setup lang="ts">
import { reactive, ref, toRefs } from 'vue'
import { nextTick, onMounted, onUnmounted, reactive, ref, toRefs } from 'vue'
import { debounce } from 'lodash-es'
import { useRoute, useRouter } from 'vue-router'
import { deleteSearch, getSearchList, historySearch } from '@/api/search/search'
import { storage } from '@/utils/Storage'
const emit = defineEmits(['close'])
@ -25,6 +26,8 @@ const inputHandler = debounce((keyword) => {
//
async function handlerSearch(value) {
//
if(value === '/') return
const res = await getSearchList({
search: value,
})
@ -56,23 +59,27 @@ function handlerHistory(name) {
//
async function deleteHistory() {
const res = await deleteSearch({
})
const res = await deleteSearch({})
if (res.code === 'OK')
historyList.value = []
}
//
async function getHistory() {
const res = await historySearch({
})
const res = await historySearch({})
if (res.code === 'OK')
historyList.value = res.data
}
getHistory()
function goPath(item, id) {
router.push({ name: item.path, query: { id } })
const desiredObject = item.data.find((item) => {
return item.id === id
})
if (!storage.get('isSearch'))
storage.set('isSearch', true, Date.now() + 30 * 60 * 1000)
router.push({ name: item.path, query: { id, searchContent: desiredObject.name } })
emit('close')
}
@ -86,6 +93,11 @@ function highlightText(text, query) {
return highlightedText
}
onMounted(() => {
setTimeout(() => (value.value = ''))
handlerShowList()
handlerSearch('')
})
</script>
<template>
@ -97,44 +109,66 @@ function highlightText(text, query) {
<n-input
v-model:value="value"
placeholder="搜索任务ID、任务名称、提报人、拜访终端"
placeholder-style="width:304px;height:22px;margin:17px 0 17px 12px;"
style="font-size: 16px; font-weight: 500; color: #333333"
type="text"
@input="inputHandler"
@mousedown="handlerShowList"
>
<template #prefix>
<SvgIcon name="magnifying-1" size="18" />
<SvgIcon
name="magnifying-1"
width="21"
height="20"
style="margin: 10px 0 10px 4px"
/>
</template>
</n-input>
</div>
<div v-show="showList && (historyList.length || resultList.length)" class="list_box">
<div
v-if="historyList.length"
v-if="historyList.length && !value"
class="list_classfiy_item"
style="border-bottom:1px solid #e4e4e4"
style="border-bottom: 1px solid #e4e4e4"
>
<div class="list_title">
历史搜索
</div>
<div class="flex history-list">
<div class="tag-wrap">
<div v-for="(item, index) of historyList" :key="index" class="tag" @click="handlerHistory(item.historyname)">
<div
v-for="(item, index) of historyList"
:key="index"
class="tag"
@click="handlerHistory(item.historyname)"
>
{{ item.historyname }}
</div>
</div>
<SvgIcon class="icon-delete" name="delete-history" size="16" @click="deleteHistory" />
<SvgIcon
class="icon-delete"
name="delete-history"
size="16"
@click="deleteHistory"
/>
</div>
</div>
<div
v-for="(item, index) in resultList"
:key="index"
class="list_classfiy_item"
:style="(index === resultList.length - 1) ? '' : 'border-bottom:1px solid #e4e4e4'"
:style="index === resultList.length - 1 ? '' : 'border-bottom:1px solid #e4e4e4'"
>
<div class="list_title">
{{ item.title }}
</div>
<div v-for="(sitem, sindex) in item.data" :key="sindex" class="list_item" @click="goPath(item, sitem.id)">
<SvgIcon name="task-icon" size="16" />
<div
v-for="(sitem, sindex) in item.data"
:key="sindex"
class="list_item"
@click="goPath(item, sitem.id)"
>
<SvgIcon name="task-icon" size="20" style="margin-left: 16px" />
<span class="name" v-html="highlightText(sitem.name, value)" />
</div>
</div>
@ -144,17 +178,21 @@ function highlightText(text, query) {
<style lang="less" scoped>
.input_wrap {
width: 60%;
// width: 60%;
width: 808px;
position: absolute;
top: 20%;
left: 20%;
box-shadow: none!important;
.ip_box{
top: 190px;
left:0;
right: 0;
box-shadow: none !important;
.ip_box {
z-index: 0;
position: relative;
left: calc(50% - 40px);
top: 30px;
img{
img {
width: 80px;
height: 80px;
}
@ -166,62 +204,78 @@ function highlightText(text, query) {
border: 1px solid #507afd;
border-radius: 8px;
overflow: hidden;
box-shadow: 0px 12px 12px 0px rgba(80, 122, 253, 0.15),
0px 0px 0px 0.5px #d4e3fc;
box-shadow: 0px 12px 12px 0px rgba(80, 122, 253, 0.15), 0px 0px 0px 0.5px #d4e3fc;
// width: 808px;
// height: 56px;
}
.list_box {
background: #fefefe;
border: 1px dashed #f4f4f4;
border-radius: 8px;
box-shadow: 0px 12px 12px 0px rgba(80, 122, 253, 0.15);
border-radius: 8px;
box-shadow: 0px 12px 12px 0px rgba(80,122,253,0.15);
margin-top: 15px;
padding: 8px 16px;
width: 802px;
height: 400px;
overflow: auto;
background-image: url("@/assets/images/searchback.png");
background-size: 104% 110%;
background-position: -12px -2px;
.list_classfiy_item {
margin-bottom: -2px;
.list_title {
font-size: 12px;
font-size: 16px;
font-family: PingFang SC, PingFang SC-Regular;
font-weight: Regular;
color: #999999;
line-height: 17px;
margin: 10px 0 10px 5px;
margin: 8px 0 10px 0;
font-weight: 500;
}
.list_item {
display: flex;
flex-flow: row nowrap;
align-items: center;
margin-bottom: 10px;
margin: 0 0 12px 0
}
}
}
}
:deep(.n-input .n-input-wrapper) {
margin: 8px;
}
.history-list{
.history-list {
align-items: center;
padding-bottom: 9px;
// margin-bottom:12;12+26=38
//padding: 26px 12px 12px 0;
}
.name{
margin-left: 5px;
.name {
margin-left: 8px;
cursor: pointer;
font-weight: 500;
color: #333333;
}
.tag-wrap{
.tag-wrap {
display: flex;
align-items: center;
flex: 1;
overflow-y: hidden;
overflow-x: auto;
margin: -1px 0 9px 0px;
.tag{
.tag {
font-weight: 500;
padding: 0 12px;
height: 22px;
border: 1px solid #e4e7ed;
border-radius: 12px;
margin-right: 12px;
font-size: 13px;
font-size: 16px;
font-family: PingFang SC, PingFang SC-Regular;
font-weight: Regular;
text-align: left;
@ -230,11 +284,11 @@ function highlightText(text, query) {
}
}
.icon-delete{
.icon-delete {
cursor: pointer;
}
.highlight{
color: #507AFD;
.highlight {
color: #507afd;
}
</style>

@ -27,11 +27,11 @@ export const asideMap: Recordable<AsideEntity> = {
key: 'izstatus',
component: PlanVue, // todo
},
izuptime: {
izyear: {
label: '',
defaultValue: null,
isDefaultFilter: false,
key: 'izuptime',
key: 'izyear',
component: TimeVue,
},
iztaskrrom: {

@ -107,7 +107,7 @@ export const asideMap: Recordable<AsideEntity> = {
component: IztaskrromVue,
},
iztaskstatus: {
label: '任务状态',
label: '任务审批状态',
defaultValue: null,
isDefaultFilter: false,
key: 'iztaskstatus',

@ -1,5 +1,5 @@
import { defineAsyncComponent } from "vue"
import type { AsideEntity } from './aside'
import { IzApprovalStatus, IzProjectVue, IzStatus, IztaskrromVue, PictureDownloadVue, PlanVue, ReportUserVue, TimeVue, IzCustomname, IzCustomtype, IzVisitcity, IzCustomlevel, IzProjecttype, IzProductVue, IzvisitproVue, IzfirmVue } from '@/views/home/aside/comp/items'
export interface RowData {
id: string
@ -83,145 +83,172 @@ export const asideMap: Recordable<AsideEntity> = {
defaultValue: null,
isDefaultFilter: true,
key: 'izupuser',
component: ReportUserVue,
// component: ReportUserVue,
component: defineAsyncComponent(() => import("@/views/home/aside/comp/items/ReportUser.vue")),
},
izproject: {
label: '所属项目',
defaultValue: null,
isDefaultFilter: true,
key: 'izproject',
component: IzProjectVue,
// component: IzProjectVue,
component: defineAsyncComponent(() => import("@/views/home/aside/comp/items/IzProject.vue")),
},
izplan: {
label: '所属计划',
defaultValue: null,
isDefaultFilter: true,
key: 'izplan',
component: PlanVue,
// component: PlanVue,
component: defineAsyncComponent(() => import("@/views/home/aside/comp/items/Plan.vue")),
},
izstatus: {
label: '审批状态',
defaultValue: null,
isDefaultFilter: false,
key: 'izstatus',
component: IzStatus, // todo
// component: IzStatus, // todo
component: defineAsyncComponent(() => import("@/views/home/aside/comp/items/IzStatus.vue")),
},
izuptime: {
izyear: {
label: '提报时间',
defaultValue: null,
isDefaultFilter: false,
key: 'izuptime',
component: TimeVue,
isDefaultFilter: true,
key: 'izyear',
// component: TimeVue,
component: defineAsyncComponent(() => import("@/views/home/aside/comp/items/Time.vue")),
},
iztaskrrom: {
label: '任务来源',
defaultValue: null,
isDefaultFilter: false,
key: 'iztaskrrom',
component: IztaskrromVue,
// component: IztaskrromVue,
component: defineAsyncComponent(() => import("@/views/home/aside/comp/items/Iztaskrrom.vue")),
},
izshowall: {
label: '显示全部任务数据',
defaultValue: true,
defaultValue: false,
isDefaultFilter: false,
key: 'izshowall',
component: PictureDownloadVue,
// component: IzShowAll,
component: defineAsyncComponent(() => import("@/views/home/aside/comp/items/IzShowAll.vue")),
inFilterList: false,
},
}
// 审批添加筛选配置 (左侧)
export const asideTaskMap: Recordable<AsideEntity> = {
izstatus: {
izApprovalStatus: {
label: '审批状态',
defaultValue: null,
isDefaultFilter: true,
key: 'izApprovalStatus',
component: IzApprovalStatus, // todo
// component: IzApprovalStatus, // todo
component: defineAsyncComponent(() => import("@/views/home/aside/comp/items/IzApprovalStatus.vue")),
},
izuptime: {
label: '提报时间',
defaultValue: null,
isDefaultFilter: true,
key: 'izuptime',
component: TimeVue,
// component: TimeVue,
component: defineAsyncComponent(() => import("@/views/home/aside/comp/items/Time.vue")),
},
izupuser: {
label: '提报人',
defaultValue: null,
isDefaultFilter: true,
key: 'izupuser',
component: ReportUserVue,
// component: ReportUserVue,
component: defineAsyncComponent(() => import("@/views/home/aside/comp/items/ReportUser.vue")),
},
iztaskrrom: {
label: '任务来源',
defaultValue: null,
isDefaultFilter: true,
key: 'iztaskrrom',
component: IztaskrromVue,
// component: IztaskrromVue,
component: defineAsyncComponent(() => import("@/views/home/aside/comp/items/Iztaskrrom.vue")),
},
izcustomname: {
label: '拜访客户',
defaultValue: null,
isDefaultFilter: true,
key: 'izcustomname',
component: IzCustomname,
// component: IzCustomname,
component: defineAsyncComponent(() => import("@/views/home/aside/comp/items/IzCustomname.vue")),
},
izcustomtype: {
label: '客户类型',
defaultValue: null,
isDefaultFilter: true,
key: 'izcustomtype',
component: IzCustomtype,
// component: IzCustomtype,
component: defineAsyncComponent(() => import("@/views/home/aside/comp/items/IzCustomtype.vue")),
},
izproject: {
label: '所属项目',
defaultValue: null,
isDefaultFilter: true,
key: 'izproject',
component: IzProjectVue,
// component: IzProjectVue,
component: defineAsyncComponent(() => import("@/views/home/aside/comp/items/IzProject.vue")),
},
izplan: {
label: '所属计划',
defaultValue: null,
isDefaultFilter: true,
key: 'izplan',
// component: PlanVue,
component: defineAsyncComponent(() => import("@/views/home/aside/comp/items/Plan.vue")),
},
izvisitpro: {
label: '拜访省份/直辖市',
defaultValue: null,
isDefaultFilter: true,
key: 'izvisitpro',
component: IzVisitcity,
// component: IzVisitcity,
component: defineAsyncComponent(() => import("@/views/home/aside/comp/items/IzVisitcity.vue")),
},
izcustomlevel: {
label: '客户级别',
defaultValue: null,
isDefaultFilter: true,
key: 'izcustomlevel',
component: IzCustomlevel
// component: IzCustomlevel,
component: defineAsyncComponent(() => import("@/views/home/aside/comp/items/IzCustomlevel.vue")),
},
izprojecttype: {
label: '项目类别',
defaultValue: null,
isDefaultFilter: true,
key: 'izprojecttype',
component: IzProjecttype,
// component: IzProjecttype,
component: defineAsyncComponent(() => import("@/views/home/aside/comp/items/IzProjecttype.vue")),
},
izproductname: {
label: '产品名称',
defaultValue: null,
isDefaultFilter: true,
key: 'izproductname',
component: IzProductVue,
// component: IzProductVue,
component: defineAsyncComponent(() => import("@/views/home/aside/comp/items/IzProduct.vue")),
},
izvisitcity: {
label: '拜访城市',
defaultValue: null,
isDefaultFilter: true,
key: 'izvisitcity',
component: IzvisitproVue,
// component: IzvisitproVue,
component: defineAsyncComponent(() => import("@/views/home/aside/comp/items/Izvisitpro.vue")),
},
izfirm: {
label: '厂商',
defaultValue: null,
isDefaultFilter: true,
key: 'izfirm',
component: IzfirmVue,
}
}
// component: IzfirmVue,
component: defineAsyncComponent(() => import("@/views/home/aside/comp/items/Izfirm.vue")),
},
}

@ -37,7 +37,7 @@ export const workPackageMap: Recordable<PackageEntity> = {
key: 'upuser',
},
status: {
label: '任务状态',
label: '任务审批状态',
isDefault: false,
key: 'upuser',
},
@ -168,6 +168,6 @@ export const fieldMap = {
field13: '病历号',
field14: '是否重复',
field15: '任务类型',
field16: '任务状态',
field16: '任务审批状态',
field17: '项目类别',
}

@ -0,0 +1,14 @@
import { inject, onMounted, onUnmounted, ref } from "vue"
export const useKeydown = (key,handler) => {
const mousetrap = inject('mousetrap') as any
const event = ref()
onMounted(() => {
event.value = mousetrap.bind(key, handler)
})
onUnmounted(() => {
event.value.unbind(key, handler)
})
}

@ -1,34 +1,36 @@
<script lang="ts" setup>
import { defineOptions, ref } from 'vue'
import Quill from '@/components/RichEditor/Quill.vue'
import { defineOptions, ref } from "vue";
import Quill from "@/components/RichEditor/Quill.vue";
defineOptions({ name: 'FilterModal' })
defineOptions({ name: "FilterModal" });
const emit = defineEmits(['showNewFilter'])
const emit = defineEmits(["showNewFilter"]);
const show = ref(false)
const show = ref(false);
function showModal() {
show.value = true
show.value = true;
}
function closeModal() {
show.value = false
show.value = false;
}
defineExpose({
showModal,
})
});
</script>
<template>
<div>
<n-modal v-model:show="show" transform-origin="center">
<Quill />
<n-modal
v-model:show="show"
transform-origin="center"
style="margin: calc(13%-147px) auto 0 !important"
>
<Quill @close="show = false" />
</n-modal>
</div>
</template>
<style lang="less" scoped>
</style>
<style lang="less" scoped></style>

File diff suppressed because it is too large Load Diff

@ -14,11 +14,15 @@ defineExpose({
<template>
<div>
<n-modal v-model:show="show" :mask="false" :showMask="false" transform-origin="center">
<n-modal
v-model:show="show"
:mask="false"
:show-mask="false"
transform-origin="center"
>
<Search @close="show = false" />
</n-modal>
</div>
</template>
<style scoped lang="less">
</style>
<style scoped lang="less"></style>

@ -9,7 +9,7 @@ const cardStyle = {
'width': '800px',
'--n-padding-bottom': '10px',
'--n-padding-left': '10px',
'padding-bottom':'100px'
'padding-bottom': '100px',
}
function showModal() {
@ -27,23 +27,45 @@ defineExpose({
<template>
<div>
<n-modal v-model:show="show" transform-origin="center">
<n-card :style="cardStyle" :bordered="false" size="huge" role="dialog" aria-modal="true">
<n-modal
v-model:show="show"
transform-origin="center"
style="width: 808px; height: 606px; margin: -27px auto 0 !important"
>
<n-card
:style="cardStyle"
:bordered="false"
size="huge"
role="dialog"
aria-modal="true"
>
<div class="wrapper">
<div class="wrapper-header">
<span class="wrapper-left">全局快捷键</span>
<div class="wrapper-right">
<img class="img-question" src="@/assets/images/question.png" alt="">查看快捷键的信息
<img
class="img-question"
src="@/assets/images/question.png"
alt=""
style="width: 18px; height: 18px"
>查看快捷键的信息
<img class="img-close" src="@/assets/images/close.png" alt="" @click="closeModal">
<img
class="img-close"
src="@/assets/images/close.png"
alt=""
style="width: 20px; height: 20px"
@click="closeModal"
>
</div>
</div>
<n-divider />
<n-divider style="margin-bottom: 32px" />
<div class="title">
全局快捷方式
</div>
<div class="wrapper-global">
<table style="margin-left: 100px;">
<table style="margin-left: 110px; width: 230px">
<tr>
<td><div class="key" data-key="g h" /></td>
<td>进入一键查看主页</td>
@ -54,7 +76,7 @@ defineExpose({
</tr>
<tr>
<td><div class="key" data-key="g a" /></td>
<td>进入AI工单主页</td>
<td>进入图检审批主页</td>
</tr>
<tr>
<td><div class="key" data-key="g e" /></td>
@ -73,7 +95,7 @@ defineExpose({
<td>打开可疑文件夹</td>
</tr>
</table>
<table style="height: 30%;margin-left: 180px;">
<table style="height: 30%; margin-left:115px">
<tr>
<td><div class="key" data-key="[" /></td>
<td>隐藏/显示当前场景左侧筛选区</td>
@ -96,37 +118,59 @@ defineExpose({
</tr>
</table>
</div>
<n-divider />
<div class="title">
<n-divider style="margin: 24px 24px 32px 24px; color: #d9d9d9" />
<div class="title" style="margin-top: -16.5px">
任务审批/任务终审/AI工单明细动作
</div>
<div class="wrapper-request">
<table style="margin-left: 100px;">
<table style="margin-left: 120px; width: 290px">
<tr>
<td><div class="key" data-key="c" /></td>
<td>关闭关闭当前场景弹窗</td>
<td>
<div
class="key" style="float: left;
margin-left: 5px;" data-key="c"
/>
</td>
<td>
<div
style="float: left;
margin-left: -60px;"
>
关闭关闭当前场景弹窗
</div>
</td>
</tr>
<tr>
<td><div class="key" data-key="p p" /></td>
<td>通过</td>
</tr>
<tr>
<td><div class="key" data-key="x x" /></td>
<td>不通过</td>
<td>
<div class="key" data-key="&larr;" />
<span>/</span>
<div class="key" data-key="&rarr;" />
</td>
<td>打开上一条/下一条信息切换</td>
</tr>
</table>
<table style="margin-left: 155px;">
<table style="margin-left: 50px">
<tr>
<td><div class="key" data-key="t t" /></td>
<td></td>
<td style="text-align: left; width: 55px">
<div class="key" data-key="p p" />
</td>
<td>通过</td>
</tr>
<tr>
<td><div class="key" data-key="f f" /></td>
<td></td>
<td style="text-align: left">
<div class="key" data-key="x x" />
</td>
<td>不通过</td>
</tr>
</table>
</div>
<div class="wrapper-request">
<table style="margin-left: 120px; width: 180px">
<tr>
<td><div class="key" data-key="&larr;" /><span>/</span><div class="key" data-key="&rarr;" /></td>
<td>打开上一条/下一条信息切换</td>
<td style="text-align: left; width: 55px">
<div class="key" data-key="k k" />
</td>
<td>开启沉浸模式</td>
</tr>
</table>
</div>
@ -149,54 +193,56 @@ defineExpose({
</template>
<style lang="less" scoped>
.wrapper-footer{
.wrapper-footer {
margin-top: -20px;
}
.wrapper {
.wrapper-header{
padding: 14px;
.wrapper-header {
padding: 14px 0 14px 0;
padding-bottom: 0;
}
.img-question{
.img-question {
width: 16px;
height: 16px;
margin: 0 2px;
}
.img-close{
.img-close {
width: 16px;
height: 16px;
margin-left: 16px;
cursor: pointer;
}
.wrapper-right{
.wrapper-right {
font-size: 16px;
font-family: PingFang SC, PingFang SC-Regular;
font-weight: Regular;
font-weight: 400;
text-align: left;
color: #666666;
line-height: 22px;
display: flex;
align-items: center
align-items: center;
}
.wrapper-left{
.wrapper-left {
font-size: 18px;
font-family: PingFang SC, PingFang SC-Medium;
font-weight: 600;
text-align: left;
color: #333333;
color: #000000;
line-height: 25px;
}
.title{
.title {
font-size: 14px;
font-weight: 600;
margin-bottom: 10px;
padding-left: 30px;
padding-left: 47px;
color: #333333;
font-weight: 600;
// 线24px
}
&-header {
display: flex;
@ -227,7 +273,7 @@ defineExpose({
}
&-icon {
background: #FFF;
background: #fff;
display: inline-block;
width: 18px;
height: 1px;
@ -235,32 +281,31 @@ defineExpose({
-webkit-transform: rotate(45deg);
&:after {
content: '';
content: "";
display: block;
width: 18px;
height: 1px;
background: #FFF;
background: #fff;
transform: rotate(-90deg);
-webkit-transform: rotate(-90deg);
}
}
}
&-request,&-global{
&-request,
&-global {
display: flex;
table{
tr td:first-child{
table {
tr td:first-child {
text-align: right;
padding-right: 10px;
color: #515457;
}
tr td{
tr td {
color: #333333;
}
tr span{
tr span {
padding: 0 10px;
}
}
@ -276,13 +321,14 @@ defineExpose({
display: inline-block;
box-sizing: content-box;
font-size: 16px;
font-weight: bold;
text-align: center;
padding: 2px 6px;
border: 1px solid #d6d6d6;
border-left: 3px solid #d6d6d6;
border-bottom: 3px solid #d6d6d6;
background-color: #fdfdfd;
// color: #333333;
font-weight: bold;
}
.key[data-key]::after {

@ -3,10 +3,22 @@ import { computed, inject, onMounted, ref } from "vue";
import { useRoute, useRouter } from "vue-router";
import { useUser } from "@/store/modules/user";
import { getImgUrl } from "@/utils/urlUtils";
import defaultAvatar from '@/assets/icons/avatar.svg';
import defaultAvatar from "@/assets/icons/avatar.svg";
/**
* 用户权限菜单
*/
interface IUserMenu {
id: number,
name: string,
resKey: string,
resUrl: string
icon: string,
level: number,
parentId: number
}
const emit = defineEmits<{
(e: "logout"): void;
(e: "logout"): void
}>();
const router = useRouter();
@ -16,7 +28,10 @@ const userStore = useUser();
const useInfo = userStore.getUserInfo;
const aiDisabled = ref(false);
const userMenus = computed<IUserMenu[]>(() => {
return userStore.getUserInfo.frontmenuTList
})
function handleSelect(row) {
userStore.updateTenantId(row.key);
location.reload();
@ -25,24 +40,30 @@ function handleSelect(row) {
function logIt(e) {
return false;
}
function hasPerm(resKey) {
return userMenus.value.some(i => i.resKey === resKey)
}
//
function goHome(e) {
if (!hasPerm('home_main')) return
router.push({ name: "home" });
}
//
function goTask(e) {
if (!hasPerm('task-main')) return
router.push({ name: "task-main" });
}
// AI
function goWorksheet(e) {
if (!hasPerm('worksheet-main')) return
router.push({ name: "worksheet-main" });
}
//
function goFinal(e) {
if (!hasPerm('final-main')) return
router.push({ name: "final-main" });
}
@ -72,18 +93,18 @@ function logOut() {
}
const currentCompanyName = computed(() => {
const tenantList = useInfo.tenantList;
const deptlist = useInfo.deptlist;
const currentId = userStore.getTenantId;
const current = tenantList.find((item) => item.id === currentId);
return current.name || "name";
const current = deptlist.find(item => item.deptno === currentId);
return current?.departname || "name";
});
const options = computed(() => {
const tenantList = useInfo.tenantList;
return tenantList.map((item) => {
const deptlist = useInfo.deptlist;
return deptlist.map((item) => {
return {
label: item.name,
key: item.id,
label: item.departname,
key: item.deptno,
};
});
});
@ -101,8 +122,8 @@ const options = computed(() => {
>
<template #trigger>
<div class="setting">
<span>{{ useInfo.username }}</span>
<SvgIcon style="margin-left: 6px" :name="iconName" size="14" />
<span style="color: #333333">{{ useInfo.username }}</span>
<SvgIcon style="margin-left: 6px" :name="iconName" size="16" />
</div>
</template>
<div class="container">
@ -119,24 +140,28 @@ const options = computed(() => {
</div>
<div class="trigger">
<span>{{ currentCompanyName }}</span>
<span @click="changeFlag = !changeFlag" style="cursor: pointer"><SvgIcon name="switchCompany" size="24" /></span>
<span style="cursor: pointer" @click="changeFlag = !changeFlag"><SvgIcon name="switchCompany" size="24" /></span>
</div>
<div class="item">
<span>AI设置开关</span>
<n-switch v-model:value="aiDisabled" />
</div>
<div class="trigger">联系我们</div>
<div class="trigger">
联系我们
</div>
<n-divider style="margin-top: 0px; margin-bottom: 10px; padding: 0 22px" />
<div class="trigger" @click="logOut">退</div>
<div class="trigger" @click="logOut">
退出登录
</div>
<div
class="container sub-container"
v-show="changeFlag"
class="container sub-container"
style="position: absolute; right: 17vw; width: 11.5vw; padding: 24px 0"
>
<div
class="trigger"
v-for="option in options"
:key="option.key"
class="trigger"
@click="handleSelect(option)"
>
{{ option.label }}
@ -151,9 +176,11 @@ const options = computed(() => {
.header {
.user-name {
font-size: 16px;
font-weight: 600;
}
.depart-name {
font-size: 12px;
font-weight: 600;
}
}
}
@ -190,6 +217,8 @@ const options = computed(() => {
padding: 13px 20px;
cursor: pointer;
color: #333333;
font-size: 13px;
font-weight: 600;
}
.trigger:hover {

@ -1,6 +1,15 @@
<script lang="ts">
import { useDialog, useMessage } from 'naive-ui'
import { defineComponent, inject, onMounted, reactive, ref, toRefs, unref, watch } from 'vue'
import {
defineComponent,
inject,
onMounted,
reactive,
ref,
toRefs,
unref,
watch,
} from 'vue'
import { useRoute, useRouter } from 'vue-router'
import QuillModal from './QuillModal.vue'
import RecycleModal from './RecycleModal.vue'
@ -11,11 +20,11 @@ import { msgPolling } from '@/api/message/message'
import { getImgUrl } from '@/utils/urlUtils'
import { useUser } from '@/store/modules/user'
import { useTaskStore } from '@/store/modules/task'
import defaultAvatar from '@/assets/icons/avatar.svg';
import defaultAvatar from '@/assets/icons/avatar.svg'
const taskStore = useTaskStore();
const taskStore = useTaskStore()
export default defineComponent({
name: "PageHeader",
name: 'PageHeader',
components: {
UserSettings,
QuillModal,
@ -31,139 +40,140 @@ export default defineComponent({
type: Boolean,
},
},
emits: ["update:collapsed"],
emits: ['update:collapsed'],
setup() {
const message = useMessage();
const dialog = useDialog();
const message = useMessage()
const dialog = useDialog()
const userStore = useUser();
const useInfo = userStore.getUserInfo;
const userStore = useUser()
const useInfo = userStore.getUserInfo
const name = "";
const name = ''
const state = reactive({
username: name ?? "",
fullscreenIcon: "FullscreenOutlined",
});
username: name ?? '',
fullscreenIcon: 'FullscreenOutlined',
})
const router = useRouter();
const route = useRoute();
const routename = ref(route.meta.title);
const router = useRouter()
const route = useRoute()
const routename = ref(route.meta.title)
// mm
const iconList = ref([
{
icon: "magnifying-1",
icon: 'magnifying-1',
handle: searchHandler,
},
{
icon: "shortcut-keys",
icon: 'shortcut-keys',
handle: shortcutHandler,
},
{
icon: "suspicious-folder",
icon: 'suspicious-folder',
handle: recycleHandler,
},
{
icon: "memo",
icon: 'memo',
handle: quillHandler,
},
{
icon: "nomessage",
icon: 'nomessage',
handle: goMessage,
},
]);
])
watch(
() => route.fullPath,
() => {
routename.value = route.meta.title;
}
);
routename.value = route.meta.title
},
)
const handleDragOver = (event, item) => {
taskStore.setInFile(true);
};
taskStore.setInFile(true)
}
const handleDragLeave = (event, item) => {
taskStore.setInFile(false);
};
taskStore.setInFile(false)
}
const dropdownSelect = (key) => {
router.push({ name: key });
};
router.push({ name: key })
}
// 退
const doLogout = () => {
dialog.info({
title: "提示",
content: "您确定要退出登录吗",
positiveText: "确定",
negativeText: "取消",
title: '提示',
content: '您确定要退出登录吗',
positiveText: '确定',
negativeText: '取消',
onPositiveClick: () => {
userStore.logout().then(() => {
message.success("成功退出登录");
message.success('成功退出登录')
router
.replace({
name: "Login",
name: 'Login',
query: {
// redirect: route.fullPath,
},
})
.finally(() => location.reload());
});
.finally(() => location.reload())
})
},
onNegativeClick: () => {},
});
};
})
}
const quillModalRef = ref(null);
const shortcutModal = ref(null);
const recycleModalRef = ref(null);
const SearchModalRef = ref(null);
const quillModalRef = ref(null)
const shortcutModal = ref(null)
const recycleModalRef = ref(null)
const SearchModalRef = ref(null)
function quillHandler() {
const modal = unref(quillModalRef)! as any;
modal.showModal();
const modal = unref(quillModalRef)! as any
modal.showModal()
}
function shortcutHandler() {
const modal = unref(shortcutModal)! as any;
modal.showModal();
const modal = unref(shortcutModal)! as any
modal.showModal()
}
function recycleHandler() {
const modal = unref(recycleModalRef)! as any;
modal.showModal();
const modal = unref(recycleModalRef)! as any
modal.showModal()
}
function searchHandler() {
const modal = unref(SearchModalRef)! as any;
modal.showModal();
const modal = unref(SearchModalRef)! as any
modal.showModal()
}
function goMessage() {
router.push({ name: "message-main" });
router.push({ name: 'message-main' })
}
async function getMessage() {
const res = await msgPolling();
if (res.data) iconList.value[4].icon = "hasmessage";
else iconList.value[4].icon = "nomessage";
const res = await msgPolling()
if (res.data)
iconList.value[4].icon = 'hasmessage'
else iconList.value[4].icon = 'nomessage'
}
setInterval(() => {
getMessage();
}, 5000);
getMessage()
}, 5000)
const mousetrap = inject("mousetrap") as any;
const mousetrap = inject('mousetrap') as any
onMounted(() => {
getMessage();
mousetrap.bind("n r", quillHandler);
mousetrap.bind("n t", quillHandler);
mousetrap.bind("n n", recycleHandler);
mousetrap.bind("m m", searchHandler);
});
getMessage()
mousetrap.bind('n r', quillHandler)
mousetrap.bind('n t', quillHandler)
mousetrap.bind('n n', recycleHandler)
mousetrap.bind('/', searchHandler)
})
const defaultAvatarSrc = ref(defaultAvatar);
const defaultAvatarSrc = ref(defaultAvatar)
return {
...toRefs(state),
@ -187,7 +197,7 @@ export default defineComponent({
defaultAvatarSrc,
}
},
});
})
</script>
<template>
@ -197,11 +207,11 @@ export default defineComponent({
<!-- 菜单收起 -->
<div
class="ml-1 layout-header-trigger layout-header-trigger-min"
style="padding-left: 13px"
@click="() => $emit('update:collapsed', !collapsed)"
>
<SvgIcon name="homepage" size="16" />
</div>
<div>当前位置{{ routename }}</div>
</div>
<div class="layout-header-right">
@ -227,7 +237,11 @@ export default defineComponent({
<!-- 个人中心 -->
<div class="layout-header-trigger layout-header-trigger-min">
<!-- <n-avatar :src="getImgUrl(useInfo.usericon)" round /> -->
<n-avatar :src="(useInfo.usericon && getImgUrl(useInfo.usericon)) || defaultAvatarSrc" round/>
<n-avatar
style="width: 36px; height: 36px"
:src="(useInfo.usericon && getImgUrl(useInfo.usericon)) || defaultAvatarSrc"
round
/>
</div>
<!-- 设置 -->
<UserSettings @logout="doLogout" />
@ -245,7 +259,7 @@ export default defineComponent({
justify-content: space-between;
align-items: center;
padding: 0;
height: 64px;
height: 62px;
transition: all 0.2s ease-in-out;
width: 100%;
z-index: 11;
@ -253,6 +267,7 @@ export default defineComponent({
&-left {
display: flex;
align-items: center;
justify-content: flex-start;
color: #666666;
.logo {
@ -267,7 +282,7 @@ export default defineComponent({
img {
width: auto;
height: 32px;
height: 34px;
margin-right: 10px;
}
@ -280,7 +295,7 @@ export default defineComponent({
&-right {
display: flex;
align-items: center;
margin-right: 20px;
margin-right: 24px;
.back {
width: 28px;

@ -1,13 +1,19 @@
<script setup lang="ts">
import { useRouter } from 'vue-router'
import { websiteConfig } from '@/config/website.config'
import { storage } from '@/utils/Storage'
import { CURRENT_USER } from '@/store/mutation-types'
defineOptions({ name: 'Index' })
const router = useRouter()
function clickHandler() {
router.push({ path: '/home' })
const userInfo = storage.get(CURRENT_USER)
if (userInfo && userInfo.frontmenuTList) {
if (userInfo.frontmenuTList.find(item => item.resUrl == '/home'))
router.push({ path: '/home' })
}
}
</script>
@ -18,23 +24,23 @@ function clickHandler() {
</template>
<style lang="less" scoped>
.logo {
display: flex;
align-items: center;
justify-content: center;
height: 64px;
line-height: 64px;
overflow: hidden;
white-space: nowrap;
.logo {
display: flex;
align-items: center;
justify-content: center;
height: 64px;
line-height: 64px;
overflow: hidden;
white-space: nowrap;
img {
width: auto;
height: 32px;
cursor: pointer;
}
img {
width: auto;
height: 32px;
cursor: pointer;
}
.title {
margin: 0;
}
.title {
margin: 0;
}
}
</style>

@ -1,57 +1,57 @@
<script lang="ts">
import { computed, defineComponent, onMounted, ref, unref, watch } from "vue";
import { useRoute, useRouter } from "vue-router";
import { IconGroup } from "../IconGroup";
import { useAsyncRouteStore } from "@/store/modules/asyncRoute";
import { generatorMenu } from "@/utils";
import { storage } from "@/utils/Storage";
import { CURRENT_USER } from "@/store/mutation-types";
import { computed, defineComponent, onMounted, ref, unref, watch } from 'vue'
import { useRoute, useRouter } from 'vue-router'
import { IconGroup } from '../IconGroup'
import { useAsyncRouteStore } from '@/store/modules/asyncRoute'
import { generatorMenu } from '@/utils'
import { storage } from '@/utils/Storage'
import { CURRENT_USER } from '@/store/mutation-types'
export default defineComponent({
name: "AppMenu",
name: 'AppMenu',
components: { IconGroup },
emits: ["clickMenuItem"],
emits: ['clickMenuItem'],
setup(props, { emit }) {
//
const currentRoute = useRoute();
const router = useRouter();
const asyncRouteStore = useAsyncRouteStore();
const menus = ref<any[]>([]);
const selectedSvg = ref<string>(currentRoute.meta.svgname as string);
const currentRoute = useRoute()
const router = useRouter()
const asyncRouteStore = useAsyncRouteStore()
const menus = ref<any[]>([])
const selectedSvg = ref<string>(currentRoute.meta.svgname as string)
const getSelectedSvg = computed(() => {
return unref(selectedSvg);
});
return unref(selectedSvg)
})
//
watch(
() => currentRoute.fullPath,
() => {
updateMenu();
}
);
updateMenu()
},
)
function updateSelectedKeys() {
const svgname: string = (currentRoute.meta?.svgname as string) || "";
selectedSvg.value = svgname;
const svgname: string = (currentRoute.meta?.svgname as string) || ''
selectedSvg.value = svgname
}
function updateMenu() {
menus.value = generatorMenu(asyncRouteStore.getMenus);
const userInfo = storage.get(CURRENT_USER);
menus.value = generatorMenu(asyncRouteStore.getMenus)
const userInfo = storage.get(CURRENT_USER)
if (userInfo && userInfo.frontmenuTList) {
menus.value = userInfo.frontmenuTList.map((item) => {
let v = {
const v = {
component: () =>
item.resUrl == "/task"
? import("@/views/task/index.vue")
: item.resUrl == "/home"
? import("@/views/home/index.vue")
: item.resUrl == "/worksheet"
? import("@/views/worksheet/index.vue")
: item.resUrl == "/final"
? import("@/views/final/index.vue")
: "",
item.resUrl == '/task'
? import('@/views/task/index.vue')
: item.resUrl == '/home'
? import('@/views/home/index.vue')
: item.resUrl == '/worksheet'
? import('@/views/worksheet/index.vue')
: item.resUrl == '/final'
? import('@/views/final/index.vue')
: '',
icon: undefined,
key: item.resKey,
label: item.description,
@ -62,35 +62,36 @@ export default defineComponent({
path: item.resUrl,
name: item.resKey,
svgname: item.icon,
svgsize: item.resUrl == "/home" ? 60 : 22,
svgsize: item.resUrl == '/home' ? 60 : 22,
title: item.description,
};
return v;
});
}
return v
})
}
updateSelectedKeys();
updateSelectedKeys()
}
//
function clickMenuItem(key: string) {
if (/http(s)?:/.test(key)) window.open(key);
else router.push({ name: key });
if (/http(s)?:/.test(key))
window.open(key)
else router.push({ name: key })
emit("clickMenuItem" as any, key);
emit('clickMenuItem' as any, key)
}
onMounted(() => {
updateMenu();
});
updateMenu()
})
return {
menus,
selectedSvg,
getSelectedSvg,
clickMenuItem,
};
}
},
});
})
</script>
<template>

@ -1,21 +1,39 @@
<script lang="ts" setup>
import { computed, unref } from 'vue'
import { computed, onBeforeMount, onMounted, unref } from 'vue'
import { useRoute, useRouter } from 'vue-router'
import { Logo } from './components/Logo'
import { MainView } from './components/Main'
import { AsideMenu } from './components/Menu'
import { PageHeader } from './components/Header'
import { useProjectSetting } from '@/hooks/setting/useProjectSetting'
import { storage } from '@/utils/Storage'
const {
menuSetting,
} = useProjectSetting()
const router = useRouter()
const route = useRoute()
onMounted(() => {
/**
* 如果刷新则去掉筛选条件
* 1. 如果当前页面路由与上一个页面路由相同时则为刷新
* 2. 防止一直刷新 另外一个判断条件为当前当前路由query不为{}
* 3. 当前页面下执行当前页面的搜索 1条件一定成立
*
* 4. 搜索点击->存storage->跳转页面->onMounted
* ->如果storage为true则不replace 并将storage置false
*/
if (storage.get('isSearch')) {
storage.remove('isSearch')
router.replace(route.path)
return
}
if (history.state.back == route.path && JSON.stringify(route.query).trim() != '{}')
router.replace(route.path)
})
const { menuSetting } = useProjectSetting()
const leftMenuWidth = computed(() => {
const { minMenuWidth } = unref(menuSetting)
return minMenuWidth
})
</script>
<template>
@ -45,10 +63,13 @@ const leftMenuWidth = computed(() => {
display: flex;
flex-direction: row;
flex: auto;
background-image: url('../assets/images/bg.png');
background-image: url("../assets/images/bg.png");
background-size: cover;
// height: 1100px;
// width: 1440px;
height: 100%;
max-height: 1100px;
overflow: hidden;
.layout-sider {
min-height: 100vh;
border-right: 1px solid #dae4f3;
@ -73,7 +94,7 @@ const leftMenuWidth = computed(() => {
display: flex;
flex: auto;
height: 100%;
padding: 0px 16px 24px 16px;
// padding: 0px 16px 24px 16px;
overflow-x: hidden;
box-sizing: border-box;
}

@ -1,10 +1,14 @@
import './styles/tailwind.css'
import { createApp } from 'vue'
import waterfall from 'vue-waterfall2'
import lazyPlugin from 'vue3-lazy'
import App from './App.vue'
import router, { setupRouter } from './router'
import { setupGlobalProperties, setupMousestrap, setupNaive, setupNaiveDiscreteApi, setupSvgIcon } from '@/plugins'
import { setupStore } from '@/store'
import 'virtual:svg-icons-register'
import bgPng from '@/assets/images/bg-loading.png'
import closePng from '@/assets/images/close.png'
async function bootstrap() {
const app = createApp(App)
@ -16,9 +20,14 @@ async function bootstrap() {
setupGlobalProperties(app)
setupRouter(app)
await router.isReady()
const meta = document.createElement('meta')
const meta = document.createElement('meta')
meta.name = 'naive-ui-style'
document.head.appendChild(meta)
app.use(waterfall)
app.use(lazyPlugin, {
error: closePng,
loading: bgPng,
})
app.mount('#app', true)
}

@ -31,6 +31,7 @@ const routes: Array<RouteRecordRaw> = [
name: 'final-main',
meta: {
title: '任务终审',
keepAlive: true,
},
component: () => import('@/views/final/index.vue'),
},

@ -0,0 +1,44 @@
import { Layout } from '@/router/constant'
import type { RouteRecordRaw } from 'vue-router'
/**
* @param name , ,
* @param meta
* @param redirect , 访,
* @param meta.disabled
* @param meta.title
* @param meta.icon
* @param meta.keepAlive
* @param meta.sort
*
*/
const routes: Array<RouteRecordRaw> = [
{
path: '/',
name: 'map',
redirect: '/map',
component: Layout,
meta: {
title: '地理位置',
permissions: ['task-main'],
svgname: 'task-approval',
svgsize: 22,
sort: 5,
disabled: true,
hidden: true,
},
children: [
{
path: 'map',
name: 'map-main',
meta: {
title: '地理位置',
},
component: () => import('@/views/map/index.vue'),
},
],
},
]
export default routes

@ -1,5 +1,5 @@
import type { RouteRecordRaw } from 'vue-router'
import { Layout } from '@/router/constant'
import type { RouteRecordRaw } from 'vue-router'
/**
* @param name , ,
@ -40,7 +40,7 @@ const routes: Array<RouteRecordRaw> = [
path: 'message-detail',
name: 'message-detail',
meta: {
title: 'message',
title: '消息公告',
},
component: () => import('@/views/message/content/Detail.vue'),
},

@ -1,5 +1,5 @@
import { Layout } from '@/router/constant'
import type { RouteRecordRaw } from 'vue-router'
import { Layout } from '@/router/constant'
/**
* @param name , ,
@ -19,7 +19,7 @@ const routes: Array<RouteRecordRaw> = [
redirect: '/worksheet',
component: Layout,
meta: {
title: '图审审批管理',
title: '图检审批',
permissions: ['worksheet-main'],
svgname: 'worksheet',
svgsize: 22,
@ -30,7 +30,7 @@ const routes: Array<RouteRecordRaw> = [
path: 'worksheet',
name: 'worksheet-main',
meta: {
title: '图审审批管理',
title: '图检审批',
},
component: () => import('@/views/worksheet/index.vue'),
},

@ -0,0 +1,36 @@
import { store } from '@/store'
import { defineStore } from 'pinia'
export interface ConfigState {
DataConfig: boolean
}
export const useDataHeaderStore = defineStore({
id: 'app-config',
state: (): ConfigState => ({
DataConfig: false,
}),
getters: {
getDataConfig():boolean {
return this.DataConfig
},
},
actions: {
setDataConfig(value) {
this.DataConfig = value
},
},
})
// Need to be used outside the setup
export function useConfig() {
return useDataHeaderStore(store)
}

@ -13,6 +13,7 @@ export interface ConfigState {
isAllowDownload: boolean
timeNum: number
filterConfig: string[] // 过滤筛选条件
collapse: boolean // 是否展示左侧筛选条件
}
export const useAsideConfigStore = defineStore({
@ -21,12 +22,16 @@ export const useAsideConfigStore = defineStore({
systemConfig: null,
customConfig: null,
asideValue: null,
searchValue: "",
searchValue: '',
isAllowDownload: true,
timeNum: 0,
filterConfig: [],
collapse: false,
}),
getters: {
getCollapse(): boolean {
return this.collapse
},
getConfig(): AsideConfig | null {
return this.systemConfig
},
@ -50,6 +55,10 @@ export const useAsideConfigStore = defineStore({
},
},
actions: {
setCollapse(value) {
this.collapse = value
console.log('存起来啊啊 ', this.collapse)
},
setConfig(config: AsideConfig) {
this.systemConfig = config
},

@ -1,6 +1,6 @@
import { defineStore } from 'pinia'
import { getBackList, getBusinessList, getIzShowList, getPictureTypeList, getRegionList, getRejectList, getRelationTypeList, getTFList, getizApprovalStatusList, getizstatusList } from '@/api/dictionary'
import { store } from '@/store'
import { getBackList, getBusinessList, getIzShowList, getIztaskstatusList, getPictureTypeList, getRegionList, getRejectList, getRelationTypeList, getTFList, getizstatusList, getizApprovalStatusList } from '@/api/dictionary'
export interface DictionaryState {
regionList: any
@ -76,7 +76,8 @@ export const useDictionaryStore = defineStore({
return state.iztaskrromList
},
getiztaskstatus: (state) => {
return state.iztaskstatusList
// return state.iztaskstatusList
return state.izstatusList
},
getizvisitpro: (state) => {
return state.izvisitproList
@ -104,32 +105,32 @@ export const useDictionaryStore = defineStore({
},
getizApprovalStatus: (state) => {
return state.izApprovalStatusList
}
},
},
actions: {
initData(){
initData() {
// this.fetchRegionList(); //废弃
this.fetchPictureTypeList();
this.fetchPersionList();
this.fetchPlanList();
this.fetchTFList();
this.fetchPictureTypeList()
this.fetchPersionList()
this.fetchPlanList()
this.fetchTFList()
// this.fetchIzShowList(); //废弃
this.fetchIzProjectList();
this.fetchIztaskrromList();
this.fetchIztaskstatusList();
this.fetchIzvisitproList();
this.fetchIzfirmList();
this.fetchIzproductnameList();
this.fetchizcustomnameList();
this.fetchIzCustomtypeList();
this.fetchIzcustomlevelList();
this.fetchizizprojecttypeList();
this.fetchizvisitcityList();
this.fetchRejectList();
this.fetchBackList();
this.fetchRelationTypeList();
this.fetchizstatusListt();
this.fetchizApprovalStatusList();
this.fetchIzProjectList()
this.fetchIztaskrromList()
this.fetchIztaskstatusList()
this.fetchIzvisitproList()
this.fetchIzfirmList()
this.fetchIzproductnameList()
this.fetchizcustomnameList()
this.fetchIzCustomtypeList()
this.fetchIzcustomlevelList()
this.fetchizizprojecttypeList()
this.fetchizvisitcityList()
this.fetchRejectList()
this.fetchBackList()
this.fetchRelationTypeList()
this.fetchizstatusListt()
this.fetchizApprovalStatusList()
},
settfList(config) {
this.tfList = config

@ -1,35 +1,106 @@
import { defineStore } from 'pinia'
import { store } from '@/store'
import { getFilter } from '@/api/home/filter'
import { getConfig } from '@/api/system/user'
import { asideMap } from "@/config/final";
import { cloneDeep, isEqual } from "lodash-es";
import type { AsideConfig } from '/#/api'
export interface ConfigState {
systemConfig: AsideConfig | null
customConfig: string[] | null
asideValue: any
listKey: number
searchValue: string
isAllowDownload: boolean
timeNum: number
filterConfig: string[] // 过滤筛选条件
}
export const useFinalStore = defineStore({
id: 'app-final',
state: (): ConfigState => ({
systemConfig: null,
customConfig: null,
asideValue: null,
listKey: 0,
searchValue: "",
isAllowDownload: true,
timeNum: 0,
filterConfig: [],
}),
getters: {
getSystemConfig(): AsideConfig | null {
return this.systemConfig
},
getCustomConfig(): string[] | null {
return this.customConfig
},
getAsideValue(): any {
return this.asideValue
},
getSearchValue(): any {
return this.searchValue
},
getIsAllowDownload(): any {
return this.isAllowDownload
},
getTimeNum(): any {
return this.timeNum
},
getFilterConfig(): any {
return this.filterConfig
},
},
actions: {
setSystemConfig(config: AsideConfig) {
this.systemConfig = config
console.log("systemConfig----------", config);
},
setAsideValue(value) {
this.asideValue = value
},
// 获取终审个性化配置
setListKey() {
this.listKey = new Date().getTime()
},
setSearchValue(value) {
this.searchValue = value
},
setIsAllowDownload(value) {
this.isAllowDownload = value
},
setTimeNum(value) {
this.timeNum = value
},
// 设置个性化配置
setCustomConfig(value) {
this.customConfig = value
},
setFilterConfig(value) {
this.filterConfig = value
},
// 获取系统配置信息
async fetchConfig() {
// const response = await getConfig()
// console.log("response.data----------", response.data);
// this.setSystemConfig(response.data)
// return response.data
let list: any = {};
let tempAsideMap = cloneDeep(asideMap);
Object.keys(tempAsideMap).map(key => {
list[key] = "Y";
});
console.log("setSystemConfig---------------", list);
this.setSystemConfig(list);
return list
},
// // 获取终审个性化配置
async fetchCustomConfig() {
const res = await getFilter(1)
const { data } = res
const list = data && data.searchcount ? data.searchcount.split(',') : []
const list = data && data.searchcount ? data.searchcount.split(',') : [];
console.log("listkey---------------", list);
this.customConfig = list
return list
},

@ -1,8 +1,10 @@
import { defineStore } from 'pinia'
import type { TaskState } from '/#/task'
import { getApprovalList } from '@/api/task/task'
import { store } from '@/store'
import { defineStore } from 'pinia'
import type { TaskState } from '/#/task'
import { createDiscreteApi } from 'naive-ui'
const {message} = createDiscreteApi(['message'])
export const useTaskStore = defineStore({
id: 'task-store',
state: (): TaskState => ({
@ -12,6 +14,7 @@ export const useTaskStore = defineStore({
packageid: '',
immersion: false,
inFile: false, // 是否进入文件夹
inFileId:"",
}),
getters: {
getActiveId: (state: TaskState) => state.activeId,
@ -19,6 +22,7 @@ export const useTaskStore = defineStore({
getCurrentIndex: (state: TaskState) => state.currentIndex,
getApprovalList: (state: TaskState) => state.approvalList,
getInFile: (state: TaskState) => state.inFile,
getInFileId: (state: TaskState) => state.inFileId,
},
actions: {
setApprovalList(list: any[]) {
@ -27,6 +31,9 @@ export const useTaskStore = defineStore({
setInFile(flag: any) {
this.inFile = flag
},
setInFileId(id: any) {
this.inFileId = id
},
setActive(index: number, taskId?: string) {
this.currentIndex = index
const task = this.approvalList[index]
@ -37,14 +44,14 @@ export const useTaskStore = defineStore({
const len = this.approvalList.length
if (this.currentIndex === len - 1)
return
return message.error('已经到达最后一个')
this.setActive(++this.currentIndex)
},
back() {
if (this.currentIndex === 0)
return
return message.error('已经到达第一个')
this.setActive(--this.currentIndex)
},
async fetchApprovalList(pagination) {

@ -15,7 +15,7 @@ const TOKEN_REFRESH_SECONDS = 20 * 60
export interface UserInfoType {
token: string
tenantList: any[]
deptlist: any[]
userInfo: any
}
@ -122,12 +122,11 @@ export const useUserStore = defineStore({
if (code === ResultEnum.SUCCESS) {
const ex = 7 * 24 * 60 * 60
// 默认设置为第一个租户
const firstTenant = data.tenantList.length > 0 ? data.tenantList[0] : null
const tenantId = firstTenant ? firstTenant.id : ''
data.frontmenuTList.forEach(ele=>{
if(ele.description === 'AI工单'){
ele.description = '图审审批管理'
}
const firstTenant = data.deptlist.length > 0 ? data.deptlist[0] : null
const tenantId = firstTenant ? firstTenant.deptno : ''
data.frontmenuTList.forEach((ele) => {
if (ele.description === 'AI工单')
ele.description = '图检审批'
})
storage.set(CURRENT_USER, data, ex)
storage.set(TENANT_ID, tenantId)
@ -176,7 +175,7 @@ export const useUserStore = defineStore({
// 登出
async logout() {
this.setPermissions([])
this.setUserInfo({ tenantList: [], userInfo: {}, token: '' })
this.setUserInfo({ deptlist: [], userInfo: {}, token: '' })
this.setTenantId('')
storage.remove(USER_ACCESS_TOKEN)
storage.remove(CURRENT_USER)

@ -1,9 +1,10 @@
import { getPackageList } from '@/api/work/work'
import { store } from '@/store'
import { useMessage } from 'naive-ui'
import { defineStore } from 'pinia'
import { createDiscreteApi } from 'naive-ui'
import type { OrderState, PackageListItem } from '/#/workorder'
const { message } = createDiscreteApi(['message'])
export const useWorkOrderStore = defineStore({
id: 'work-order',
state: (): OrderState => ({
@ -32,18 +33,14 @@ export const useWorkOrderStore = defineStore({
},
forward() {
const len = this.packageList.length
const message = useMessage()
if (this.currentIndex === len - 1)
message.error('已经到达最后一个')
return message.error('已经到达最后一个')
this.setActive(++this.currentIndex)
},
back() {
const message = useMessage()
if (this.currentIndex === 0)
message.error('已经到达第一个')
return message.error('已经到达第一个')
this.setActive(--this.currentIndex)
},

@ -9,7 +9,9 @@ export function hideDownload(e: MouseEvent) {
const downloadEle: any = document.querySelector('.n-image-preview-toolbar')?.children[5]
const asideValue = unref(configStore.getAsideValue)
const download = asideValue?.izimgdownload
if (downloadEle && downloadEle.innerHTML === downloadSvg && download === false)
// TODO 判断条件调整
// if (downloadEle && downloadEle.innerHTML === downloadSvg && download === false)
if (downloadEle && !download)
downloadEle.style.display = 'none'
else
downloadEle.style.display = 'block'

@ -10,162 +10,334 @@ import {
shallowRef,
unref,
watch,
} from "vue";
import { CustomFilterModalVue, FilterModal, NewFilterModal } from "@/views/final/comp";
import Search from "@/views/home/aside/comp/Search.vue";
import AdvanceFilter from "@/views/home/aside/comp/AdvanceFilter.vue";
import { getViewportOffset } from "@/utils/domUtils";
import { useWindowSizeFn } from "@/hooks/event/useWindowSizeFn";
import { useFinal } from "@/store/modules/final";
import type { Filter } from "/#/home";
import type { AsideEntity } from "@/config/aside";
import { asideMap } from "@/config/final";
import type { AsideConfig } from "/#/api";
import emitter from "@/utils/mitt";
const emit = defineEmits(["inputChange"]);
const finalStore = useFinal();
} from 'vue'
import { cloneDeep, isEqual } from 'lodash-es'
import { CustomFilterModalVue, FilterModal, NewFilterModal } from '@/views/final/comp'
import Search from '@/views/home/aside/comp/Search.vue'
import AdvanceFilter from '@/views/home/aside/comp/AdvanceFilter.vue'
import { getViewportOffset } from '@/utils/domUtils'
import { useWindowSizeFn } from '@/hooks/event/useWindowSizeFn'
import { useFinal } from '@/store/modules/final'
import type { Filter } from '/#/home'
import type { AsideEntity } from '@/config/aside'
import { asideMap } from '@/config/final'
import type { AsideConfig } from '/#/api'
import emitter from '@/utils/mitt'
import { getFilterList } from '@/api/home/main'
import { useKeydown } from '@/hooks/event/useKeydown'
const emit = defineEmits(['inputChange'])
const finalStore = useFinal()
//
const asideValue: Record<keyof typeof asideMap, any> = reactive({});
const asideValue: Record<keyof typeof asideMap, any> = reactive({})
// :
const asideVisible: Partial<Record<keyof AsideConfig, boolean>> = reactive({});
const asideVisible: Partial<Record<keyof AsideConfig, boolean>> = reactive({})
//
const showItems = shallowRef<{ key: string; config: AsideEntity }[]>([]);
const showItems = shallowRef<{ key: string, config: AsideEntity }[]>([])
const initAsideValueRef = ref<any>(null) // ()
const customObjRef = ref<any>(null) //
const customTempObjRef = ref<any>(null) // ()
const configFilterRef = ref<any>([]) //
initAsideValueRef.value = cloneDeep(asideMap)
onBeforeMount(async () => {
finalStore.fetchConfig()
finalStore.fetchCustomConfig()
})
Object.keys(asideMap).forEach((key) => {
const { defaultValue, inFilterList } = asideMap[key];
if (inFilterList !== false) asideValue[key] = defaultValue;
});
const { defaultValue, inFilterList } = asideMap[key]
if (inFilterList !== false)
asideValue[key] = defaultValue
})
const filterModalRef = ref(null);
const newFilterModalRef = ref(null);
const customModalRef = ref(null);
const filterModalRef: any = ref(null)
const newFilterModalRef = ref(null)
const customModalRef = ref(null)
const AdvanceFilterRef: any = ref(null)
function showModal(modalRef: any) {
const modal = unref(modalRef)! as any;
modal.showModal();
const modal = unref(modalRef)! as any
modal.showModal()
}
function newFilterOk() {
filterModalRef.value.query(
filterModalRef.value.pagination.page,
filterModalRef.value.pagination.pageSize,
)
filterModalRef.value.closeModal()
}
const mousetrap = inject("mousetrap") as any;
mousetrap.bind("[", collapseHandler);
const mousetrap = inject('mousetrap') as any
mousetrap.bind('[', collapseHandler)
onMounted(() => {
nextTick(() => {
computeSlideHeight();
});
});
computeSlideHeight()
})
})
const collapse = ref(false);
const collapse = ref(false)
function collapseHandler() {
collapse.value = !collapse.value;
collapse.value = !collapse.value
}
const asideWidth = computed(() => {
return collapse.value ? 0 : 308;
});
return collapse.value ? 0 : 308
})
const asideHeight = ref(500);
const asideHeight = ref(500)
const asideStyle = computed(() => {
return {
width: `${asideWidth.value}px`,
height: `${asideHeight.value}px`,
};
});
}
})
const collapseIcon = computed(() => {
return collapse.value ? "expand-cir" : "collapse-cir";
});
return collapse.value ? 'expand-cir' : 'collapse-cir'
})
function computeSlideHeight() {
const headEl = document.querySelector(".aside-header")!;
const { bottomIncludeBody } = getViewportOffset(headEl);
const height = bottomIncludeBody;
asideHeight.value = height - 24;
const headEl = document.querySelector('.aside-header')!
const { bottomIncludeBody } = getViewportOffset(headEl)
const height = bottomIncludeBody
asideHeight.value = height - 24
}
useWindowSizeFn(computeSlideHeight, 280);
useWindowSizeFn(computeSlideHeight, 280)
onBeforeMount(async () => {
finalStore.fetchCustomConfig();
});
finalStore.$subscribe(() => {
const customConfig = finalStore.getCustomConfig;
if (customConfig === null) return;
const showKeys: string[] = [...customConfig];
const defaultKeys = Object.keys(asideMap).filter(
(key) => asideMap[key].isDefaultFilter
);
showKeys.unshift(...defaultKeys);
Object.keys(asideMap).forEach((key) => {
//
if (key.startsWith("iz"))
asideVisible[key] =
asideMap[key] && (showKeys.includes(key) || asideMap[key].isDefaultFilter);
});
const items = showKeys.reduce((acc, key) => {
if (asideMap[key]) {
const config = {
key,
config: asideMap[key],
};
return [...acc, config];
} else {
return acc;
finalStore.fetchCustomConfig()
})
nextTick(() => {
finalStore.$subscribe(() => {
// const customConfig = finalStore.getCustomConfig;
// console.log("customConfigaside---------------", customConfig);
// if (customConfig === null) return;
// const showKeys: string[] = [...customConfig];
// // const defaultKeys = Object.keys(asideMap).filter(
// // (key) => asideMap[key].isDefaultFilter
// // );
// // showKeys.unshift(...defaultKeys);
// Object.keys(asideMap).forEach((key) => {
// //
// if (key.startsWith("iz"))
// asideVisible[key] =
// asideMap[key] && (showKeys.includes(key) || asideMap[key].isDefaultFilter);
// });
// const items = showKeys.reduce((acc, key) => {
// if (asideMap[key]) {
// const config = {
// key,
// config: asideMap[key],
// };
// return [...acc, config];
// } else {
// return acc;
// }
// }, []);
// console.log("showItems111111111---------------", items);
// showItems.value = items;
const config = finalStore.getSystemConfig
const customConfig = finalStore.getCustomConfig
if (
configFilterRef.value.length > 0
&& isEqual(configFilterRef.value, finalStore.getFilterConfig)
&& customObjRef.value
&& isEqual(customObjRef.value, customTempObjRef.value)
)
return
if (config == null || customConfig == null)
return
// console.log("config", config, "customConfig", customConfig);
/* rao
const showKeys = [...customConfig].filter(key => !asideMap[key].isDefaultFilter)// customConfig isDefaultFilter
const defaultKeys = Object.keys(asideMap).filter(key => asideMap[key].isDefaultFilter)// asideMap isDefaultFilter
showKeys.unshift(...defaultKeys)
*/
const sortKeyList: any = []
finalStore.getFilterConfig.forEach((item: any) => {
sortKeyList.push(item?.id)
})
const showKeys = [...sortKeyList]
Object.keys(config).forEach((key) => {
if (key.startsWith('iz') && asideMap[key] !== undefined) {
asideVisible[key]
= (showKeys.includes(key) || asideMap[key].isDefaultFilter)
&& config[key] === 'Y'
}
})
if (customObjRef.value) {
//
Object.keys(customObjRef.value).forEach((key) => {
// if (asideMap.hasOwnProperty(key)) {
if (Object.prototype.hasOwnProperty.call(asideMap, key)) {
const str = key.toLowerCase()
// console.log("customObjRef.value[str]1111111111111", customObjRef.value[str]);
if (str == 'izsimilarity') {
if (typeof customObjRef.value[str] == 'string')
customObjRef.value[str] = customObjRef.value[str].split(',')
asideValue[key] = customObjRef.value[str] //
console.log('相似度2222222222', asideValue[key])
}
else if (str == 'izyear') {
if (typeof customObjRef.value[str] == 'string') {
const time = customObjRef.value[str].split('-')
time[0] = new Date(time[0]).getTime()
time[1] = new Date(time[1]).getTime()
customObjRef.value[str] = time
}
asideValue[key] = customObjRef.value[str] //
console.log('时间2222222222', asideValue[key])
}
else if (customObjRef.value[str]) {
console.log('customObjRef.value[str]222222', customObjRef.value[str])
// let list = customObjRef.value[str].split(',');
// console.log("list222222", list);
if (typeof customObjRef.value[str] == 'string') {
customObjRef.value[str] = customObjRef.value[str].split(',')
asideValue[key] = customObjRef.value[str] //
}
else {
asideValue[key] = customObjRef.value[str] //
}
}
else {
asideValue[key] = null
}
// asideMap[str].defaultValue = customObjRef.value[str];//
}
})
customTempObjRef.value = customObjRef.value
console.log('asideValue直接处理后的结果', asideValue)
console.log('customTempObjRef.value', customTempObjRef.value)
const tempobj = cloneDeep(asideValue)
console.log('tempObj', tempobj)
finalStore.setAsideValue(tempobj)
}
}, []);
showItems.value = items;
});
// console.log("showKeys", showKeys);
const items = showKeys.reduce((acc, key) => {
const currentData = asideMap[key]
const render = currentData?.render
if (render !== false) {
const str = key?.toLowerCase()
const o = {
key: str,
config: asideMap[str],
}
return [...acc, o]
}
else {
return acc
}
}, [])
console.log('showItems=================================', items)
showItems.value = items
configFilterRef.value = finalStore.getFilterConfig
})
})
watch(asideVisible, (newVal) => {
Object.keys(asideValue).forEach((key) => {
if (newVal[key] === false) asideValue[key] = asideMap[key].defaultValue;
});
});
if (newVal[key] === false)
asideValue[key] = asideMap[key].defaultValue
})
})
const asideEnter = ref(false);
const asideEnter = ref(false)
const showCollapse = computed(() => {
return collapse.value ? true : asideEnter.value;
});
return collapse.value ? true : asideEnter.value
})
const showSearch = ref(false);
const showSearch = ref(false)
function setShowSearch(value: boolean) {
showSearch.value = value;
if(!value){
showSearch.value = value
if (!value)
inputChange('')
}
}
// key
function scrollHandler(key: string) {
const element = document.querySelector(`#${key}`);
element?.scrollIntoView(true);
const element = document.querySelector(`#${key}`)
element?.scrollIntoView(true)
}
function filterHandler(searchId: string) {
emitter.emit("filter-final", searchId);
async function filterHandler(searchId: string) {
// emitter.emit("filter-final", searchId);
const res = await getFilterList({ userSearchId: searchId })
// console.log("", res);
if (res.code == 'OK') {
const obj = res.data
customObjRef.value = res.data
const showKeys: any[] = []
Object.keys(obj).forEach((key) => {
// if (asideMap.hasOwnProperty(key)) {
if (Object.prototype.hasOwnProperty.call(asideMap, key))
showKeys.push(key)
})
console.log('showKeys1111111111111111', showKeys)
finalStore.setCustomConfig(showKeys)
}
}
function editFilter(filter: any) {
const modal = unref(newFilterModalRef)! as any;
modal.showModal();
modal.edit(filter);
const modal = unref(newFilterModalRef)! as any
modal.showModal()
modal.edit(filter)
}
watch(asideValue, (newVal) => {
finalStore.setAsideValue(newVal);
});
// watch(asideValue, (newVal) => {
// finalStore.setAsideValue(newVal);
// });
function inputChange(keyword) {
emit('inputChange', keyword)
}
function handleOk(item: any) {
console.log('handleOk', item)
// .setCurrentlySelectedAdvanced(item.searchname)
if (item) {
AdvanceFilterRef.value.setCurrentlySelectedAdvanced(item.searchname)
filterHandler(item.id)
}
else {
AdvanceFilterRef.value.setCurrentlySelectedAdvanced('高级筛选')
filterHandler('')
}
}
const inputChange = (keyword) => {
emit("inputChange", keyword);
};
function updateComponent(key, e) {
console.log('跟新值', key, e)
console.log('tempAsideValue跟新值', finalStore.getAsideValue, asideValue)
// let tempAsideValue = finalStore.getAsideValue || asideValue;
const tempobj = cloneDeep(asideValue)
console.log(tempobj, 'tempobj')
tempobj[key] = e
console.log(tempobj, 'tempobj After')
customObjRef.value = tempobj
// asideValue = Object.assign({}, asideValue, tempobj);
console.log('asideValue跟新值', tempobj)
finalStore.setAsideValue(tempobj)
}
defineExpose({
showSearch,
})
useKeydown('s', () => setShowSearch(true))
</script>
<template>
@ -187,12 +359,15 @@ const inputChange = (keyword) => {
v-show="showSearch"
@select="scrollHandler"
@close="setShowSearch(false)"
@inputChange="inputChange"
@input-change="inputChange"
@show-search="setShowSearch(true)"
/>
<!-- 高级筛选 -->
<AdvanceFilter
v-show="!showSearch"
ref="AdvanceFilterRef"
:type="1"
:toolipvalue="'请输入任务id、任务名称、提报人'"
@select="filterHandler"
@update:search="setShowSearch(true)"
@show-custom="showModal(customModalRef)"
@ -207,6 +382,7 @@ const inputChange = (keyword) => {
:key="index"
v-model:value="asideValue[item.key]"
:label="item.config.label"
@update:value="(e) => updateComponent(item.key, e)"
/>
<!-- 筛选 -->
@ -216,9 +392,10 @@ const inputChange = (keyword) => {
ref="filterModalRef"
@edit-filter="editFilter"
@show-new-filter="showModal(newFilterModalRef)"
@handle-ok="handleOk"
/>
<!-- 新增过滤 -->
<NewFilterModal ref="newFilterModalRef" />
<NewFilterModal ref="newFilterModalRef" @on-ok="newFilterOk" />
</n-scrollbar>
</div>
</template>
@ -232,12 +409,15 @@ const inputChange = (keyword) => {
border: 1px solid #efeff5;
border-radius: 3px;
box-sizing: border-box;
height: 100% !important;
margin-left: 16px;
&-header {
padding: 10px;
width: 100%;
border-bottom: 1px solid #e8e8e8;
margin-bottom: 15px;
height: 58px;
}
&-divider {

@ -1,24 +1,17 @@
<script lang="ts" setup>
import { debounce, difference } from 'lodash-es'
import { computed, ref, watch } from 'vue'
import { cloneDeep, debounce, difference, isEqual } from 'lodash-es'
import { computed, onMounted, ref, watch } from 'vue'
import { VueDraggable } from 'vue-draggable-plus'
import { setFilter } from '@/api/home/filter'
import { asideMap } from '@/config/final'
import { useFinal } from '@/store/modules/final'
const show = ref(false)
const finalStore = useFinal()
const checkAll = ref(false)
const selectIds = ref<string[]>([])
const finalStore = useFinal()
function showModal() {
show.value = true
}
function closeModal() {
show.value = false
}
const tempList = ref<string[]>([])
const extraCustomConfig: any = []
//
const offList = ref<any[]>([])
//
@ -31,21 +24,69 @@ const allCount = computed(() => {
const selectCount = computed(() => {
return `已选筛选(共${onList.value.length}个)`
})
const offKeyword = ref('')
const onKeyword = ref('')
Object.keys(asideMap).forEach((key) => {
const { isDefaultFilter } = asideMap[key]
if (isDefaultFilter)
extraCustomConfig.push(key)
})
function showModal(type: boolean = true) {
show.value = type
//
const config = finalStore.getSystemConfig
const customConfig = finalStore.getCustomConfig
if (config == null || customConfig == null)
return
//
if (!type) {
const { showList, hideList } = generatList(config, customConfig)
onList.value = showList
offList.value = hideList
//
checkAll.value = hideList.every(item => item.checked)
//
offKeyword.value = ''
onKeyword.value = ''
return
}
if (tempList.value.length > 0 && isEqual(tempList.value, finalStore.getFilterConfig))
return
const { showList, hideList } = generatList(config, customConfig)
tempList.value = cloneDeep(showList)
if (tempList.value.length > 0)
finalStore.setFilterConfig(tempList.value)
onList.value = showList
offList.value = hideList
//
checkAll.value = hideList.every(item => item.checked)
//
offKeyword.value = ''
onKeyword.value = ''
}
function closeModal() {
offKeyword.value = ''
onKeyword.value = ''
show.value = false
}
defineExpose({
showModal,
})
function generateDefaultList() {
function generateDefaultList(config) {
return Object.keys(asideMap).reduce((acc, key) => {
const { label, isDefaultFilter } = asideMap[key]
//
if (isDefaultFilter) {
//
if (isDefaultFilter && config[key] === 'Y') {
const config = {
id: key,
name: label || '未配置',
fix: isDefaultFilter,
fix: true,
checked: true,
}
return [...acc, config]
@ -56,20 +97,43 @@ function generateDefaultList() {
}, [])
}
function generatList(customConfig) {
const keys = Object.keys(asideMap)
function generatList(config, customConfig) {
const keys = Object.keys(config)
let onList: object[] = []
const offList: object[] = []
const showKeys = customConfig.map((key: string) => key.toLowerCase())
for (const key of keys) {
if (!key.startsWith('iz') || asideMap[key] === undefined)
continue
const offList: any = []
const showKeys = []
const tempShowKeys = [...customConfig, ...extraCustomConfig]
tempShowKeys.forEach((item) => {
if (!showKeys.includes(item))
showKeys.push(item)
})
// for (const key of keys) {
// if (!key.startsWith('iz') || config[key] === 'N' || asideMap[key] === undefined)
// continue
// const name = asideMap[key]?.label
// const isDefaultFilter = asideMap[key]?.isDefaultFilter
// // Y
// if (!isDefaultFilter) {
// const isChecked = asideMap[key].isDefaultFilter || showKeys.includes(key)
// offList.push({
// id: key,
// name: name || '',
// fix: isDefaultFilter,
// checked: isChecked,
// })
// if (isChecked && !selectIds.value.includes(key))
// isChecked && selectIds.value.push(key)
// }
// }
Object.keys(asideMap).forEach((key) => {
const name = asideMap[key]?.label
const isDefaultFilter = asideMap[key]?.isDefaultFilter
//
// Y
// if (!isDefaultFilter) {
const isChecked = asideMap[key].isDefaultFilter || showKeys.includes(key)
offList.push({
@ -78,15 +142,17 @@ function generatList(customConfig) {
fix: isDefaultFilter,
checked: isChecked,
})
isChecked && selectIds.value.push(key)
}
if (isChecked && !selectIds.value.includes(key))
isChecked && selectIds.value.push(key)
// }
})
onList = showKeys.reduce((acc, key) => {
const isDefaultFilter = asideMap[key]?.isDefaultFilter
// ()
if (isDefaultFilter === false) {
// && ()
if (config[key] === 'Y' && isDefaultFilter === false) {
// if (config[key] === 'Y') {
const config = {
id: key,
name: asideMap[key].label || '未配置',
@ -98,40 +164,88 @@ function generatList(customConfig) {
return acc
}
}, [])
const fixedList = generateDefaultList()
const fixedList = generateDefaultList(config)
// offList.unshift(...fixedList)
onList.unshift(...fixedList)
return { showList: onList, hideList: offList }
// onListcustomConfig
const tempOnList = cloneDeep(onList)
const sortKeyList: any = []
finalStore.getFilterConfig.forEach((item: any) => {
sortKeyList.push(item.id)
})
const sortList: any = []
if (sortKeyList.length > 0) {
sortKeyList.forEach((key) => {
const tempItem = tempOnList.find(item => item.id == key)
if (tempItem)
sortList.push(tempItem)
})
}
else {
showKeys.forEach((key) => {
const tempItem = tempOnList.find(item => item.id == key)
if (tempItem)
sortList.push(tempItem)
})
}
// return { showList: onList, hideList: offList }
return { showList: sortList, hideList: offList }
}
finalStore.$subscribe(() => {
const config = finalStore.getSystemConfig
const customConfig = finalStore.getCustomConfig
if (customConfig === null)
if (config == null || customConfig == null)
return
if (tempList.value.length > 0 && isEqual(tempList.value, finalStore.getFilterConfig))
return
const { showList, hideList } = generatList(customConfig)
const { showList, hideList } = generatList(config, customConfig)
tempList.value = cloneDeep(showList)
if (tempList.value.length > 0)
finalStore.setFilterConfig(tempList.value)
onList.value = showList
offList.value = hideList
})
async function handleSumbit(e: MouseEvent) {
e.preventDefault()
const param = onList.value
.filter(item => !asideMap[item.id].isDefaultFilter)
.map((item) => {
return item.id
})
.join(',')
await setFilter({ searchcount: param, type: 1 })
finalStore.fetchCustomConfig()
const obj = await finalStore.fetchCustomConfig()
const tempOnList = cloneDeep(onList.value)
const sortList: any = []
obj.forEach((key) => {
const tempItem = tempOnList.find(item => item.id == key)
if (tempItem)
sortList.push(tempItem)
})
if (sortList.length > 0)
finalStore.setFilterConfig(sortList)
closeModal()
}
function onCheckAllChange(value) {
const ids: string[] = []
if (value) {
offList.value.forEach((v) => {
if (!v.checked)
onList.value.push(v)
})
}
else {
onList.value = offList.value.filter(v => v.fix)
offList.value.map(v => ({
...v,
checked: v.fix,
}))
}
for (const item of offList.value) {
if (!item.fix) {
@ -139,7 +253,6 @@ function onCheckAllChange(value) {
ids.push(item.id)
}
}
selectIds.value = value ? ids : []
}
@ -147,16 +260,17 @@ function onCheckChange(checked: any, item: any) {
const index = selectIds.value.indexOf(item.id)
item.checked = checked
const currentIndex = offList.value.findIndex(v => v.id == item.id)
offList.value[currentIndex].checked = item.checked
if (index === -1 && checked)
selectIds.value.push(item.id)
else selectIds.value.splice(index, 1)
else index !== -1 && selectIds.value.splice(index, 1)
checkAll.value = offList.value.every(item => item.checked)
}
const showIds = computed(() => {
return onList.value.map((item) => {
return item.id
return item?.id
})
})
@ -178,11 +292,13 @@ watch(
if (action === 'add') {
for (const item of offList.value) {
if (!item.fix && diff.includes(item.id)) {
onList.value.push({
id: item.id,
name: item.name || '未配置',
fix: item.fix || false,
})
if (item.checked) {
onList.value.push({
id: item.id,
name: item.name || '未配置',
fix: item.fix || false,
})
}
}
}
}
@ -235,9 +351,6 @@ function removeHandler(id: string) {
onList.value.splice(index, 1)
}
const offKeyword = ref('')
const onKeyword = ref('')
const leftInputHandler = debounce((keyword) => {
offKeyword.value = keyword
}, 300)
@ -245,6 +358,23 @@ const leftInputHandler = debounce((keyword) => {
const rightInputHandler = debounce((keyword) => {
onKeyword.value = keyword
}, 300)
// async function getfield() {
// let res
// res = await getAllfieldList(3)
// const userStore = useUser()
// const userInfo = userStore.getUserInfo
// res = await getfieldList(3, userInfo.id)
// }
function onMove(e) {
// e
if (e?.related?.className?.indexOf('fix') !== -1)
return false
}
onMounted(() => {
// getfield()
})
</script>
<template>
@ -257,10 +387,10 @@ const rightInputHandler = debounce((keyword) => {
aria-modal="true"
>
<div class="wrapper">
<span class="wrapper-title" style="color: #333333;">自定义筛选</span>
<span class="wrapper-title">自定义筛选</span>
<div class="wrapper-bar">
<div class="wrapper-info" style="background-color: #F8F8F8;">
<span :style="{ 'margin-left': '18px' ,'color':'#333333'}">筛选项信息</span>
<div class="wrapper-info">
<span :style="{ 'margin-left': '18px' }">筛选项信息</span>
</div>
</div>
@ -273,20 +403,21 @@ const rightInputHandler = debounce((keyword) => {
size="small"
:bordered="false"
>
<div>
<div class="input_wrap">
<n-input placeholder="搜索关键词" @input="leftInputHandler">
<template #suffix>
<SvgIcon size="14px" name="magnifying-1" color="#999999" />
<SvgIcon size="14px" name="magnifying-1-color999" />
</template>
</n-input>
<n-scrollbar
style="max-height: 500px; border: 1px solid #cad2dd; border-radius: 2px"
>
<div class="draggable-ul">
<div class="draggable-li" style="color:#666666">
<div class="draggable-li">
<n-checkbox
v-model:checked="checkAll"
label="全选"
:indeterminate="!checkAll"
@update:checked="onCheckAllChange"
/>
</div>
@ -323,11 +454,10 @@ const rightInputHandler = debounce((keyword) => {
<template #header-extra>
<span class="textbtnStyle" @click="clearDragSource"></span>
</template>
<div>
<!-- j -->
<div class="input_wrap">
<n-input placeholder="搜索关键词" @input="rightInputHandler">
<template #suffix>
<SvgIcon size="14px" name="magnifying-1" color="#999999" />
<SvgIcon size="14px" name="magnifying-1-color999" />
</template>
</n-input>
<n-scrollbar
@ -337,7 +467,6 @@ const rightInputHandler = debounce((keyword) => {
<VueDraggable
v-model="onList"
class="draggable-ul"
filter=".draggable-li[draggable='false']"
:animation="150"
group="shared"
>
@ -345,12 +474,10 @@ const rightInputHandler = debounce((keyword) => {
v-for="item in onList"
v-show="item.name.includes(onKeyword)"
:key="item.id"
:draggable="!item.fix"
:class="{ fix: item.fix }"
:draggable="true"
class="cursor-move draggable-li"
>
<!-- v-show="!item.fix" 判断是否为固定值 -->
<SvgIcon name="drag" size="14" />
<SvgIcon name="drag" size="24" />
<span class="ml-2">{{ item.name }}</span>
<SvgIcon
v-if="!item.fix"
@ -372,7 +499,11 @@ const rightInputHandler = debounce((keyword) => {
<n-button type="info" @click="handleSumbit">
确定
</n-button>
<n-button secondary style="margin-left: 15px" @click="closeModal">
<n-button
secondary
style="margin-left: 15px; border: 1px solid #cad2dd"
@click="showModal(false)"
>
取消
</n-button>
</div>
@ -389,18 +520,25 @@ const rightInputHandler = debounce((keyword) => {
&-title {
font-weight: bold;
font-size: 16px;
color: #333333;
}
&-bar {
background-color: #e8e8e8;
width: 100%;
background-color: #f8f8f8 !important;
width: calc(100% + 12px);
margin-top: 20px;
color: #333333;
}
&-footer {
display: flex;
justify-content: flex-end;
.n-button--info-type {
background: #507afd !important;
}
.n-button--default-type {
background: #fff !important;
color: #333333;
}
}
&-info {
@ -423,15 +561,18 @@ const rightInputHandler = debounce((keyword) => {
.dragcardStyle {
--n-padding-bottom: 0px !important;
--n-padding-left: 0px !important;
::v-deep(.n-card__content) {
padding-left: 0 !important;
padding-right: 0 !important;
}
}
.cardstyle {
width: 620px;
height: 800px;
--n-padding-bottom: 16px;
--n-padding-bottom: 20px;
--n-padding-left: 24px;
--n-padding-right: 24px;
--n-padding-top: 20px;
// background-color: #f8f8f8 !important;
}
.textbtnStyle {
@ -442,7 +583,6 @@ const rightInputHandler = debounce((keyword) => {
.draggable-ul {
width: 100%;
overflow: hidden;
background: #f8f8f8;
.draggable-li {
width: 100%;
@ -453,6 +593,10 @@ const rightInputHandler = debounce((keyword) => {
align-items: center;
}
.fix {
cursor: default !important;
}
.disable-check {
color: gainsboro;
}
@ -469,20 +613,30 @@ const rightInputHandler = debounce((keyword) => {
::v-deep(.n-card > .n-card-header .n-card-header__main) {
font-weight: lighter !important;
font-size: 14px;
color: #666666;
color: #666;
}
::v-deep(.n-scrollbar) {
border-top: none !important;
border-left: 1px solid #cad2dd !important;
border-right: 1px solid #cad2dd !important;
border-bottom: 1px solid #e8e8e8 !important;
border-top: 1px solid #e8e8e8 !important;
}
::v-deep(.n-button--info-type) {
background: #507afd !important;
::v-deep(.n-card__content) {
padding: 20px 24px 0 24px !important;
}
::v-deep(.n-card__footer) {
padding: 0 16px 16px 16px !important;
padding: 0 24px 16px 24px !important;
}
::v-deep(.n-button--default-type) {
::v-deep(.n-input .n-input-wrapper) {
height: 44px !important;
border: 1px solid #cad2dd !important;
color: #333333;
background: #ffffff;
border-bottom: none !important;
// margin-bottom: -3px;
.n-input__input input {
height: 44px !important;
}
}
::v-deep(.n-button--info-type) {
background: #507afd !important;
}
</style>

@ -1,238 +1,179 @@
<script lang="ts" setup>
import { getAllfieldList, getfieldList, savefield } from "@/api/home/filter";
import { ColumnsMap } from "@/config/final";
import { useUser } from "@/store/modules/user";
import { difference } from "lodash-es";
import { computed, onMounted, ref, watch } from "vue";
import { VueDraggable } from "vue-draggable-plus";
import { difference } from 'lodash-es'
import { computed, onMounted, ref, watch } from 'vue'
import { VueDraggable } from 'vue-draggable-plus'
import { getAllfieldList, getfieldList, savefield } from '@/api/home/filter'
import { useUser } from '@/store/modules/user'
const emit = defineEmits<{
(e: "commit", columns: any[]);
}>();
//
const offList = ref<any[]>([]);
//
const fixLeftList = ref<any[]>([]);
const onList = ref<any[]>([]);
const props = defineProps({
reviewType: {
type: Number,
default: () => 0,
require: true,
},
});
})
const emit = defineEmits<{
(e: 'commit', columns: any[])
}>()
//
const offList = ref<any[]>([])
//
const fixLeftList = ref<any[]>([])
const onList = ref<any[]>([])
onMounted(async () => {
const userStore = useUser();
const userInfo = userStore.getUserInfo;
let res;
res = await getAllfieldList(props.reviewType); //
const allList = res.data;
res = await getfieldList(props.reviewType, userInfo.id); //
const useList = res.data;
const userStore = useUser()
const userInfo = userStore.getUserInfo
let res
res = await getAllfieldList(props.reviewType) //
const allList = res.data
res = await getfieldList(props.reviewType, userInfo.id) //
const useList = res.data
/**
* name 标题
* id 键值
* fix 是否默认
* checked 是否选中
*/
const userFieldFixed = useList.userFieldFixed?.split(",");
const userFieldUnFixed = useList.userFieldUnFixed?.split(",");
let mustList = [];
allList?.map((v) => {
let item = {
const userFieldFixed = useList.userFieldFixed?.split(',')
const userFieldUnFixed = useList.userFieldUnFixed?.split(',')
const mustList: any[] = []
allList?.forEach((v) => {
const item = {
name: v.fieldDesc,
id: v.name,
fix: v.isrequired == 2,
checked:
v.isrequired == 2 ||
Boolean(userFieldFixed?.find((v2) => v2 == v.name)) ||
Boolean(userFieldUnFixed?.find((v2) => v2 == v.name)),
};
if (item.fix) {
mustList.push(item);
if (!userFieldFixed?.length && !userFieldUnFixed?.length) {
fixLeftList.value.push(item);
}
v.isrequired == 2
|| Boolean(userFieldFixed?.find(v2 => v2 == v.name))
|| Boolean(userFieldUnFixed?.find(v2 => v2 == v.name)),
}
if (userFieldFixed?.find((v2) => v2 == v.name)) {
fixLeftList.value.push(item);
}
if (userFieldUnFixed?.find((v2) => v2 == v.name)) {
onList.value.push(item);
if (item.fix) {
mustList.push(item)
if (!userFieldFixed?.length && !userFieldUnFixed?.length)
fixLeftList.value.push(item)
}
offList.value.push(item);
});
});
const allCount = computed(() => {
return `全部字段(共${offList.value.length - 1}个)`;
});
if (userFieldFixed?.find(v2 => v2 == v.name))
fixLeftList.value.push(item)
const selectCount = computed(() => {
return `显示字段(共${onList.value.length}个)`;
});
if (userFieldUnFixed?.find(v2 => v2 == v.name))
onList.value.push(item)
function generatList() {
const keys = Object.keys(ColumnsMap);
// const showStr = 'name'
// const showKeys = showStr.split(',').map((key: string) => key.toLowerCase())
offList.value.push(item)
})
})
for (const key of keys) {
const { title, fixed, fixLeft, width } = ColumnsMap[key];
const item = {
id: key,
title,
fix: fixed,
checked: ColumnsMap[key].fixed,
width,
};
if (!fixed) offList.value.push(item);
if (fixLeft) fixLeftList.value.push(item);
}
// showList = showKeys.reduce((acc, key) => {
// const config = {
// id: key,
// title: ColumnsMap[key].name || '',
// fix: ColumnsMap[key].fixed,
// }
// return [...acc, config]
// }, [])
const fixedList = generateDefaultList();
const filterList = fixedList.filter((item) => {
return !item.fixLeft;
});
onList.value.unshift(...filterList);
offList.value.unshift(...fixedList);
}
const allCount = computed(() => {
return `全部字段(共${offList.value.length - 1}个)`
})
function generateDefaultList() {
return Object.keys(ColumnsMap).reduce((acc, key) => {
const { title, fixed, fixLeft, width } = ColumnsMap[key];
if (fixed) {
const config = {
id: key,
title,
fix: true,
checked: true,
fixLeft,
width,
};
return [...acc, config];
} else {
return acc;
}
}, []);
}
const selectCount = computed(() => {
return `显示字段(共${onList.value.length}个)`
})
const show = ref(false);
const checkAll = ref(false);
const show = ref(false)
const checkAll = ref(false)
function showModal() {
show.value = true;
show.value = true
}
function closeModal() {
show.value = false;
show.value = false
}
async function handleSumbit(e: MouseEvent) {
e.preventDefault();
closeModal();
const userStore = useUser();
const userInfo = userStore.getUserInfo;
let userFieldFixed = "";
let userFieldUnFixed = "";
fixLeftList.value.map((v) => {
userFieldFixed += `${v.id},`;
});
onList.value.map((v) => {
userFieldUnFixed += `${v.id},`;
});
userFieldFixed = userFieldFixed.slice(0, userFieldFixed.length - 1);
userFieldUnFixed = userFieldUnFixed.slice(0, userFieldUnFixed.length - 1);
savefield(props.reviewType, userInfo.id, userFieldFixed, userFieldUnFixed);
e.preventDefault()
closeModal()
const userStore = useUser()
const userInfo = userStore.getUserInfo
let userFieldFixed = ''
let userFieldUnFixed = ''
fixLeftList.value.forEach((v) => {
userFieldFixed += `${v.id},`
})
onList.value.forEach((v) => {
userFieldUnFixed += `${v.id},`
})
userFieldFixed = userFieldFixed.slice(0, userFieldFixed.length - 1)
userFieldUnFixed = userFieldUnFixed.slice(0, userFieldUnFixed.length - 1)
savefield(props.reviewType, userInfo.id, userFieldFixed, userFieldUnFixed)
const columns: any[] = [
{
type: "selection",
fixed: "left",
type: 'selection',
fixed: 'left',
width: 50,
},
];
]
const leftList = fixLeftList.value.map((item) => {
return {
title: item.name,
key: item.id,
fixed: "left",
fixed: 'left',
width: 120,
};
});
}
})
const unfixList = onList.value.map((item) => {
return {
title: item.name,
key: item.id,
width: 120,
};
});
}
})
columns.push(...leftList, ...unfixList);
emit("commit", columns);
columns.push(...leftList, ...unfixList)
emit('commit', columns)
}
defineExpose({
showModal,
});
})
// generatList()
const selectIds = ref<string[]>([]);
const selectIds = ref<string[]>([])
function onCheckAllChange(value) {
const ids: string[] = [];
const ids: string[] = []
for (const item of offList.value) {
if (!item.fix) {
item.checked = value;
ids.push(item.id);
item.checked = value
ids.push(item.id)
}
}
if (value) {
offList.value.map((v) => {
if (!v.checked) {
onList.value.push(v);
}
});
} else {
onList.value = [];
fixLeftList.value = [];
offList.value.map((v) => {
if (v.fix) {
fixLeftList.value.push(v);
}
});
offList.value.forEach((v) => {
if (!v.checked)
onList.value.push(v)
})
}
else {
onList.value = []
fixLeftList.value = []
offList.value.forEach((v) => {
if (v.fix)
fixLeftList.value.push(v)
})
}
selectIds.value = value ? ids : [];
selectIds.value = value ? ids : []
}
function onCheckChange(checked: any, item: any) {
item.checked = checked;
item.checked = checked
if (checked) {
onList.value.push(item);
} else {
let index = onList.value.findIndex((v) => v.id == item.id);
onList.value.push(item)
}
else {
let index = onList.value.findIndex(v => v.id == item.id)
if (index > -1) {
onList.value.splice(index, 1);
} else {
index = fixLeftList.value.findIndex((v) => v.id == item.id);
fixLeftList.value.splice(index, 1);
onList.value.splice(index, 1)
}
else {
index = fixLeftList.value.findIndex(v => v.id == item.id)
fixLeftList.value.splice(index, 1)
}
}
// TODO
@ -242,24 +183,26 @@ function onCheckChange(checked: any, item: any) {
const showIds = computed(() => {
return onList.value.map((item) => {
return item.id;
});
});
return item.id
})
})
watch(
() => selectIds.value.length,
(newVal, oldVal) => {
if (newVal === oldVal) return;
if (newVal === oldVal)
return
const action = newVal > oldVal ? "add" : "remove";
const diff: string[] =
action === "add"
const action = newVal > oldVal ? 'add' : 'remove'
const diff: string[]
= action === 'add'
? difference(selectIds.value, showIds.value)
: difference(showIds.value, selectIds.value);
: difference(showIds.value, selectIds.value)
if (diff.length === 0) return;
if (diff.length === 0)
return
if (action === "add") {
if (action === 'add') {
for (const item of offList.value) {
if (!item.fix && diff.includes(item.id)) {
onList.value.push({
@ -267,77 +210,81 @@ watch(
name: item.name,
fix: item.fix || false,
width: 120,
});
})
}
}
} else {
const list = onList.value;
}
else {
const list = onList.value
for (let index = 0; index < list.length; index++) {
const item = list[index];
const item = list[index]
if (!item.fix && diff.includes(item.id)) {
list.splice(index, 1);
return;
list.splice(index, 1)
return
}
}
}
}
);
},
)
watch(
() => showIds.value.length,
(newVal, oldVal) => {
if (newVal === oldVal) return;
if (newVal === oldVal)
return
const diff = difference(selectIds.value, showIds.value);
const diff = difference(selectIds.value, showIds.value)
if (diff.length === 0) return;
if (diff.length === 0)
return
for (const item of offList.value) {
if (!item.fix && diff.includes(item.id)) {
const index = selectIds.value.indexOf(item.id);
item.checked = false;
selectIds.value.splice(index, 1);
const index = selectIds.value.indexOf(item.id)
item.checked = false
selectIds.value.splice(index, 1)
}
}
}
);
},
)
function clearDragSource() {
onList.value = onList.value.filter((item) => {
return item.fix === true;
});
return item.fix === true
})
}
function removeHandler(id: string, type: "fix" | "unfix") {
const list = type === "fix" ? fixLeftList.value : onList.value;
function removeHandler(id: string, type: 'fix' | 'unfix') {
const list = type === 'fix' ? fixLeftList.value : onList.value
let index = list.findIndex((item) => {
return item.id === id;
});
return item.id === id
})
if (index !== -1) list.splice(index, 1);
index = offList.value.findIndex((v) => v.id == id);
if (index !== -1)
list.splice(index, 1)
index = offList.value.findIndex(v => v.id == id)
if (index !== -1) {
offList.value[index].checked = false;
} else {
index == fixLeftList.value.findIndex((v) => v.id == id);
fixLeftList.value[index].checked = false;
offList.value[index].checked = false
}
else {
index = fixLeftList.value.findIndex(v => v.id == id)
fixLeftList.value[index].checked = false
}
}
const indeterminate = computed(() => {
let baseNum = 0;
offList.value.map((v) => {
if (v.fix) {
baseNum += 1;
}
});
return (
onList.value.length + fixLeftList.value.length - baseNum > 0 &&
offList.value.length - baseNum >
onList.value.length + fixLeftList.value.length - baseNum
);
});
onList.value.length
+ fixLeftList.value.length
- offList.value.filter(v => v.fix).length
> 0
&& offList.value.length - offList.value.filter(v => v.fix).length
> onList.value.length
+ fixLeftList.value.length
- offList.value.filter(v => v.fix).length
)
})
</script>
<template>
@ -376,8 +323,8 @@ const indeterminate = computed(() => {
<n-checkbox
v-model:checked="checkAll"
label="全部"
@update:checked="onCheckAllChange"
:indeterminate="indeterminate"
@update:checked="onCheckAllChange"
/>
</div>
<div class="content">
@ -475,7 +422,9 @@ const indeterminate = computed(() => {
<template #footer>
<div class="wrapper-footer">
<n-button type="info" @click="handleSumbit"> </n-button>
<n-button type="info" @click="handleSumbit">
确定
</n-button>
<n-button secondary style="margin-left: 15px" @click="closeModal">
取消
</n-button>
@ -542,8 +491,7 @@ const indeterminate = computed(() => {
.textbtnStyle {
cursor: pointer;
color: #507AFD;
color: #507afd;
}
.drag-wrapper {
@ -604,7 +552,7 @@ const indeterminate = computed(() => {
::v-deep(.n-button--info-type) {
background: #507afd !important;
}
::v-deep(.n-button--default-type){
::v-deep(.n-button--default-type) {
border: 1px solid #cad2dd !important;
}
// ::v-deep(.n-card__content){

@ -1,5 +1,6 @@
<script lang="ts" setup>
import {
computed,
defineOptions,
h,
nextTick,
@ -8,86 +9,101 @@ import {
reactive,
ref,
unref,
computed,
} from "vue";
import { NDataTable } from "naive-ui";
import type { DataTableColumns, DataTableRowKey } from "naive-ui";
import type { SortableEvent } from "sortablejs";
import Sortable from "sortablejs";
import { debounce } from "lodash-es";
import Action from "@/views/home/aside/comp/Action.vue";
import { deleteCondition, getConditionList, sort } from "@/api/home/filter";
import type { FilterSearchParam } from "/#/api";
defineOptions({ name: "FilterModal" });
} from 'vue'
import { NButton, NDataTable, useModal } from 'naive-ui'
import type { DataTableColumns, DataTableRowKey } from 'naive-ui'
import type { SortableEvent } from 'sortablejs'
import Sortable from 'sortablejs'
import { debounce } from 'lodash-es'
import Action from '@/views/home/aside/comp/Action.vue'
import { deleteCondition, getConditionList, sort } from '@/api/home/filter'
import type { FilterSearchParam } from '/#/api'
import SvgIcon from '@/components/Icon/SvgIcon.vue'
import { useKeydown } from '@/hooks/event/useKeydown'
defineOptions({ name: 'FilterModal' })
const emit = defineEmits<{
(e: "showNewFilter"): void;
(e: "editFilter", filter: any): void;
}>();
(e: 'showNewFilter'): void
(e: 'editFilter', filter: any): void
(e: 'handleOk', item: any): void
}>()
const modal = useModal()
const show = ref(false);
const checkedRowKeys = ref([]);
const show = ref(false)
const checkedRowKeys = ref([])
const $message = window.$message
const cardStyle = {
width: "800px",
height: "800px",
"--n-padding-bottom": "10px",
"--n-padding-left": "10px",
};
'width': '800px',
'height': '800px',
'--n-padding-bottom': '10px',
'--n-padding-left': '10px',
}
interface RowData {
id: string;
searchname: string;
createby: string;
createtime: string;
updateby: string;
updatetime: string;
id: string
searchname: string
createby: string
createtime: string
updateby: string
updatetime: string
}
const columns: DataTableColumns<RowData> = [
{
type: "selection",
type: 'selection',
},
{
title: "操作",
key: "action",
title: '操作',
key: 'action',
render(row) {
return h(Action, {
options: [
{ label: "编辑", key: 1 },
{ label: "删除", key: 2 },
{ label: '编辑', key: 1 },
{ label: '删除', key: 2 },
],
id: row.id,
select,
});
})
},
},
{
title: "名称",
key: "searchname",
title: '名称',
key: 'searchname',
},
{
title: "创建者",
key: "createby",
title: '创建者',
key: 'createby',
},
{
title: "创建时间",
key: "createtime",
sorter: (row1, row2) => new Date(row1?.createtime).getTime() - new Date(row2?.createtime).getTime()
title: '创建时间',
key: 'createtime',
renderSorterIcon: ({ order }) => {
if (order === false)
return h(SvgIcon, { name: 'sort-2' })
if (order === 'ascend')
return h(SvgIcon, { name: 'sort-1' })
if (order === 'descend')
return h(SvgIcon, { name: 'sort-3' })
},
sorter: (row1, row2) =>
new Date(row1?.createtime).getTime() - new Date(row2?.createtime).getTime(),
},
{
title: "更新者",
key: "updateby",
title: '更新者',
key: 'updateby',
},
{
title: "更新时间",
key: "updatetime",
title: '更新时间',
key: 'updatetime',
},
];
]
const loading = ref(true);
const total = ref(0);
const loading = ref(true)
const total = ref(0)
const pagination = reactive({
page: 1,
pageCount: 1,
@ -95,211 +111,247 @@ const pagination = reactive({
showSizePicker: true,
pageSizes: [
{
label: "10 每页",
label: '10 每页',
value: 10,
},
{
label: "15 每页",
label: '15 每页',
value: 15,
},
{
label: "30 每页",
label: '30 每页',
value: 30,
},
{
label: "50 每页",
label: '50 每页',
value: 50,
},
],
showQuickJumper: true,
prefix: () => `${total.value} 条数据`,
});
const tableData = ref<Array<RowData>>([]);
const keyword = ref("");
})
const tableData = ref<Array<RowData>>([])
const keyword = ref('')
async function query(page: number, pageSize: number) {
const searchParam: FilterSearchParam = {
search_searchname: { value: keyword.value, op: "like", type: "string" },
};
const result = await getConditionList({ pageNo: page, pageSize }, searchParam, 1);
const { data, pageCount, total: totalCount } = result;
total.value = totalCount;
tableData.value = data;
pagination.page = page;
pagination.pageCount = pageCount;
loading.value = false;
search_searchname: { value: keyword.value, op: 'like', type: 'string' },
}
const result = await getConditionList({ pageNo: page, pageSize }, searchParam, 1)
const { data, pageCount, total: totalCount } = result
total.value = totalCount
tableData.value = data
pagination.page = page
pagination.pageCount = pageCount
loading.value = false
}
function afterLeave() {
pagination.page = 1;
pagination.pageCount = 1;
pagination.pageSize = 10;
pagination.page = 1
pagination.pageCount = 1
pagination.pageSize = 10
}
const selectionIds = ref<DataTableRowKey[]>([]);
const selectionIds = ref<DataTableRowKey[]>([])
const rowKey = (row: RowData) => row.id;
const rowKey = (row: RowData) => row.id
function rowProps(row: RowData) {
return {
"data-id": row.id,
};
'data-id': row.id,
}
}
function handleCheck(rowKeys: DataTableRowKey[]) {
selectionIds.value = rowKeys;
selectionIds.value = rowKeys
}
function select(key: number, id: string) {
switch (key) {
case 1:
editSelection(id);
break;
case 2:
deleteSelection(id);
break;
default:
break;
}
if (key == 1)
editSelection(id)
else
deleteSelection(id)
// const modalInst = modal.create({
// title: "",
// content: "?",
// positiveText: "",
// negativeText: "",
// preset: "dialog",
// onPositiveClick: () => deleteSelection(id),
// onNegativeClick: () => modalInst.destroy(),
// });
}
function editSelection(id = "") {
// eslint-disable-next-line dot-notation
function editSelection(id = '') {
// const $message = window["$message"];
// if (selectionIds.value.length === 0 || selectionIds.value.length > 1) {
// $message.error("");
// return;
// }
const selectedId = id;
const selectedId = id
const selectedFilter = tableData.value.find((item: any) => {
return item.id === selectedId;
});
return item.id === selectedId
})
emit("editFilter", selectedFilter);
closeModal();
emit('editFilter', selectedFilter)
closeModal()
}
function deleteSelection(id = "") {
// eslint-disable-next-line dot-notation
if (selectionIds.value.length === 0) {
function deleteSelection(id = '') {
if (id) {
deleteCondition({ ids: id }).then(() => {
query(pagination.page, pagination.pageSize);
});
return;
query(pagination.page, pagination.pageSize)
})
return
}
deleteCondition({ ids: selectionIds.value.join(",") }).then(() => {
selectionIds.value = [];
query(pagination.page, pagination.pageSize);
});
const modalInst = modal.create({
title: '确认提示',
content: '确认删除所选过滤条件吗?',
positiveText: '确定',
negativeText: '取消',
preset: 'dialog',
onPositiveClick: () =>
deleteCondition({ ids: selectionIds.value.join(',') }).then(() => {
selectionIds.value = []
query(pagination.page, pagination.pageSize)
}),
onNegativeClick: () => modalInst.destroy(),
})
}
async function handlePageChange(currentPage) {
if (loading.value) return;
pagination.page = currentPage;
const { pageSize } = pagination;
await query(currentPage, pageSize);
if (loading.value)
return
pagination.page = currentPage
const { pageSize } = pagination
await query(currentPage, pageSize)
}
async function handlePageSizeChange(currentPageSize) {
if (loading.value) return;
if (loading.value)
return
const { page } = pagination;
pagination.pageSize = currentPageSize;
const { page } = pagination
pagination.pageSize = currentPageSize
await query(page, currentPageSize);
await query(page, currentPageSize)
}
function handleClick() {
emit("showNewFilter");
emit('showNewFilter')
// show.value = false;
closeModal()
}
let sortTable: Sortable | null = null;
const tableRef = ref<InstanceType<typeof NDataTable>>();
useKeydown('n t', handleClick)
let sortTable: Sortable | null = null
const tableRef = ref<InstanceType<typeof NDataTable>>()
onMounted(() => {
nextTick(() => {
console.log(tableRef.value, "tableRef");
});
});
console.log(tableRef.value, 'tableRef')
})
})
async function showModal() {
show.value = true;
show.value = true
const { page, pageSize } = pagination;
await query(page, pageSize);
const { page, pageSize } = pagination
await query(page, pageSize)
nextTick(() => {
if (sortTable !== null) destory();
const el: HTMLDivElement = tableRef.value?.$el;
const tbody: HTMLElement | null = el.querySelector("tbody.n-data-table-tbody")!;
if (tbody) sortTable = Sortable.create(tbody, { onEnd, onMove });
});
if (sortTable !== null)
destory()
const el: HTMLDivElement = tableRef.value?.$el
const tbody: HTMLElement | null = el.querySelector('tbody.n-data-table-tbody')!
if (tbody)
sortTable = Sortable.create(tbody, { onEnd, onMove })
})
}
let relatedId = "";
let insertafter = false;
let relatedId = ''
let insertafter = false
// TODO: bug
function onEnd(event: SortableEvent) {
const data = unref(tableData);
const oldElem = data[event.oldIndex!];
data.splice(event.oldIndex!, 1);
data.splice(event.newIndex!, 0, oldElem);
const data = unref(tableData)
const oldElem = data[event.oldIndex!]
data.splice(event.oldIndex!, 1)
data.splice(event.newIndex!, 0, oldElem)
const dragId = oldElem.id;
const dragId = oldElem.id
const index = data.findIndex((item) => {
return item.id === relatedId;
});
return item.id === relatedId
})
// -1+1
const order = insertafter ? index - 1 : index + 1;
const order = insertafter ? index - 1 : index + 1
// console.log('dragid:', dragId, 'order:', order)
sort(dragId, order);
sort(dragId, order)
}
function onMove(evt: any) {
relatedId = evt.related?.dataset?.id;
insertafter = evt.willInsertAfter;
relatedId = evt.related?.dataset?.id
insertafter = evt.willInsertAfter
// console.log(`${evt.dragged.dataset.id},${evt.related}`, 'insertafter', evt.willInsertAfter)
}
function destory() {
sortTable && sortTable.destroy();
sortTable = null;
sortTable && sortTable.destroy()
sortTable = null
}
onUnmounted(() => {
destory();
});
destory()
})
function closeModal() {
show.value = false;
show.value = false
}
defineExpose({
showModal,
});
closeModal,
query,
pagination,
})
const inputHandler = debounce((word) => {
keyword.value = word;
query(1, 5);
}, 300);
keyword.value = word
query(1, 5)
}, 300)
const showSearch = computed(() => {
return selectionIds.value.length > 0;
});
return selectionIds.value.length > 0
})
function handleOk() {
if (selectionIds.value.length > 1) {
$message.error('只能选择一条筛选条件')
return
}
if (selectionIds.value.length == 1) {
const selectedId = selectionIds.value[0]
const item = tableData.value.find(v => v.id == selectedId)
emit('handleOk', item)
}
if (selectionIds.value.length == 0)
emit('handleOk', '')
closeModal()
}
</script>
<template>
<div>
<!-- <n-modal v-model:show="delShow" >
</n-modal> -->
<n-modal
v-model:show="show"
transform-origin="center"
display-directive="if"
@after-leave="afterLeave"
:mask-closable="false"
class="modal_wrapper"
@after-leave="afterLeave"
>
<n-card
:style="cardStyle"
@ -312,10 +364,16 @@ const showSearch = computed(() => {
<span class="wrapper-title">全部筛选值</span>
<div class="wrapper-bar">
<div class="wrapper-info">
<span :style="{ 'margin-left': '18px' }">基本信息</span>
<span
:style="{
'margin-left': '18px',
'font-size': '16px',
'font-weight': '600',
}"
>基本信息</span>
</div>
</div>
<div class="wrapper-form" v-if="!showSearch">
<div v-if="!showSearch" class="wrapper-form">
<n-input
:style="{ width: '360px', border: '1px solid #cad2dd' }"
placeholder="请输入过滤条件名称搜索"
@ -325,31 +383,29 @@ const showSearch = computed(() => {
<SvgIcon size="14px" name="magnifying-1" />
</template>
</n-input>
<n-button type="info" @click="handleClick">
<NButton type="info" @click="handleClick">
创建
<template #icon>
<SvgIcon size="14px" name="magnifying-1" />
<SvgIcon size="14px" name="creatFilter" />
</template>
</n-button>
</NButton>
</div>
<div class="wrapper-form" v-else>
<div v-else class="wrapper-form">
<div class="del_btn">
<n-button icon-placement="left" size="medium">
<NButton icon-placement="left" size="medium" @click="deleteSelection()">
<template #icon>
<SvgIcon name="delete-history" size="16" />
</template>
删除</n-button
>
删除
</NButton>
</div>
<div class="msg">
<span
>已选中
<span>已选中
<span style="color: #507afd; font-size: 16px">{{
selectionIds.length
}}</span>
</span
>
</span>
<a @click="selectionIds = []">清空</a>
</div>
</div>
@ -364,19 +420,21 @@ const showSearch = computed(() => {
:loading="loading"
:pagination="pagination"
:row-key="rowKey"
:checked-row-keys="selectionIds"
@update:page="handlePageChange"
@update-page-size="handlePageSizeChange"
@update:checked-row-keys="handleCheck"
:checked-row-keys="selectionIds"
/>
</div>
</div>
<template #footer>
<div class="wrapper-footer">
<n-button type="info" @click="closeModal"> </n-button>
<n-button secondary style="margin-left: 15px" @click="closeModal">
<NButton type="info" @click="handleOk">
确认
</NButton>
<NButton secondary style="margin-left: 15px" @click="closeModal">
取消
</n-button>
</NButton>
</div>
</template>
</n-card>
@ -409,13 +467,15 @@ const showSearch = computed(() => {
width: 300px;
border: 1px solid gray;
}
.del_btn {
}
.msg {
span {
padding-right: 16px;
}
a {
margin-left: 30px;
padding-left: 17px;
cursor: pointer;
color: #507afd;
border-left: 1px solid #d8d8d8;
}
}
}
@ -444,4 +504,29 @@ const showSearch = computed(() => {
}
}
}
.del_btn {
margin-left: 12px;
color: #333333;
font-weight: 500;
}
::v-deep(.n-button--info-type) {
background: #507afd !important;
}
::v-deep(.n-data-table
.n-data-table-th
.n-data-table-th__title-wrapper
.n-data-table-th__title) {
font-size: 14px !important;
color: #000000 !important;
}
::v-deep(.n-data-table
.n-data-table-tr:not(.n-data-table-tr--summary):hover
> .n-data-table-td) {
color: #666666 !important;
font-size: 14px !important;
}
::v-deep(.n-data-table .n-data-table-th .n-data-table-sorter) {
position: relative;
left: -80px;
}
</style>

@ -1,6 +1,6 @@
<script lang="ts" setup>
import type { FormInst, FormItemRule, FormRules } from 'naive-ui'
import { computed, onBeforeMount, reactive, ref, unref, watch } from 'vue'
import { computed, defineEmits, onBeforeMount, reactive, ref, unref, watch } from 'vue'
import { asideMap } from '@/config/final'
import { useDictionary } from '@/store/modules/dictonary'
import { useConfig } from '@/store/modules/asideConfig'
@ -9,6 +9,7 @@ import { addCondition, updateCondition } from '@/api/home/filter'
import { formatToDate2, formatToDate3 } from '@/utils/dateUtil'
type Status = 'edit' | 'new'
const emit = defineEmits(['onOk'])
const show = ref(false)
const configStore = useConfig()
@ -85,11 +86,13 @@ const formRef = ref<FormInst | null>(null)
const formValue = reactive<FormType>({
name: null,
logic: 'and',
conditions: [{
type: null,
operator: 'eq',
result: null,
}],
conditions: [
{
type: null,
operator: 'eq',
result: null,
},
],
})
function handleSumbit(e: MouseEvent) {
@ -118,14 +121,13 @@ function handleSumbit(e: MouseEvent) {
if (currentStatus.value === 'new')
addCondition(param)
else
updateCondition({ id: currentEditId!, ...param })
else updateCondition({ id: currentEditId!, ...param })
closeModal()
})
}
function formatValue(searchfield: string, searchvalue: any) {
if (searchfield === 'izuptime') {
if (searchfield === 'izyear') {
const start = formatToDate2(searchvalue[0])
const end = formatToDate2(searchvalue[1])
return `${start}-${end}`
@ -137,7 +139,7 @@ function formatValue(searchfield: string, searchvalue: any) {
//
function unformatValue(searchfield: string, searchvalue: any) {
// 2022/01/03-2023/02/04
if (searchfield === 'izuptime') {
if (searchfield === 'izyear') {
const dataStrs = searchvalue.split('-')
const start = formatToDate3(dataStrs[0])
const end = formatToDate3(dataStrs[1])
@ -182,16 +184,25 @@ onBeforeMount(() => {
dicStore.fetchRelationTypeList()
})
watch(() => dicStore.relationTypeList, (newval) => {
logicOptions.value = newval
})
watch(
() => dicStore.relationTypeList,
(newval) => {
logicOptions.value = newval
},
)
function showModal() {
show.value = true
setTimeout(() => {
// formValue.name = ''
}, 300)
}
function closeModal() {
show.value = false
emit('onOk')
setTimeout(() => {
show.value = false
}, 300)
}
function generateAllData(): Option[] {
@ -200,7 +211,8 @@ function generateAllData(): Option[] {
if (value.startsWith('iz') && asideMap[value]?.inFilterList !== false) {
const name = asideMap[value]?.label
name && acc.push({
name
&& acc.push({
value,
label: name || '未配置',
})
@ -237,8 +249,9 @@ function edit(editFilter: any) {
currentStatus.value = 'edit'
const { searchname, ocrUsersearchchildList, id } = editFilter
currentEditId = id
formValue.name = searchname
formValue.conditions = ocrUsersearchchildList.map((item) => {
return {
type: item.searchfield,
@ -246,6 +259,10 @@ function edit(editFilter: any) {
result: unformatValue(item.searchfield, item.searchvalue),
}
})
formValue.name = editFilter.searchname
// formValue.searchname = searchname
formValue.name = searchname
console.log(formValue)
}
defineExpose({
@ -255,45 +272,98 @@ defineExpose({
</script>
<template>
<n-modal v-model:show="show" transform-origin="center" @after-leave="leaveHandler" :mask-closable="false">
<n-card :style="cardStyle" :bordered="false" size="huge" role="dialog" aria-modal="true">
<n-modal
v-model:show="show"
transform-origin="center"
:mask-closable="false"
@after-leave="leaveHandler"
>
<n-card
:style="cardStyle"
:bordered="false"
size="huge"
role="dialog"
aria-modal="true"
>
<div class="wrapper">
<span class="wrapper-title">{{ modalTitle }}</span>
<div class="wrapper-bar">
<div class="wrapper-info">
<span :style="{ 'margin-left': '18px' }">基本信息</span>
<span
:style="{
'margin-left': '18px',
'font-size': '16px',
'font-weight': '600',
}"
>基本信息</span>
</div>
</div>
<div class="wrapper-form">
<n-form ref="formRef" :model="formValue" :rules="rules">
<n-form
ref="formRef"
:model="formValue"
:rules="rules"
require-mark-placement="left"
>
<n-form-item path="name" label="标题">
<n-input v-model:value="formValue.name" :style="{ width: '780px' }" @keydown.enter.prevent />
<n-input
v-model:value="formValue.name"
:style="{ width: '780px' }"
placeholder="请输入过滤名称"
maxlength="15"
@keydown.enter.prevent
/>
</n-form-item>
<n-form-item path="logic" label="逻辑关系" v-show="false">
<n-select filterable v-model:value="formValue.logic" placeholder="请选择逻辑关系" :options="logicOptions" />
<n-form-item v-show="false" path="logic" label="逻辑关系">
<n-select
v-model:value="formValue.logic"
filterable
placeholder="请选择逻辑关系"
:options="logicOptions"
/>
</n-form-item>
<n-form-item
v-for="(item, index) in formValue.conditions" :key="index" :style="formItemStyle"
path="conditions" :label="formLabel(index)"
v-for="(item, index) in formValue.conditions"
:key="index"
:style="formItemStyle"
path="conditions"
:label="formLabel(index)"
>
<n-select filterable
v-model:value="item.type" placeholder="请选择筛选项名称" :options="typeOptions"
<n-select
v-model:value="item.type"
filterable
placeholder="请选择筛选项名称"
:options="typeOptions"
@change="item.result = ''"
/>
<n-select filterable
v-model:value="item.operator" style="margin-left: 8px;" placeholder="请选择"
<n-select
v-model:value="item.operator"
filterable
style="margin-left: 8px"
placeholder="请选择"
:options="operatorOptions"
/>
<n-space v-if="item.type === 'izuptime'">
<n-space v-if="item.type === 'izyear'">
<n-date-picker
v-model:value="item.result" style="margin-left: 8px;width: 240px;" type="daterange"
v-model:value="item.result"
style="margin-left: 8px; width: 240px"
type="daterange"
clearable
/>
</n-space>
<n-select filterable
v-else v-model:value="item.result" style="margin-left: 8px;" placeholder="请选择" :options="getOptions(item.type!)"
<n-select
v-else
v-model:value="item.result"
filterable
style="margin-left: 8px"
placeholder="请选择"
:options="getOptions(item.type!)"
/>
<n-button :style="noBorderInput" icon-placement="right" @click="removeCondition(index)">
<n-button
:style="noBorderInput"
icon-placement="right"
@click="removeCondition(index)"
>
<template #icon>
<SvgIcon size="24" name="close" />
</template>
@ -302,8 +372,8 @@ defineExpose({
</n-form>
</div>
<div class="wrapper-new" @click="createCondition">
<span>+</span>
<span style="margin-left:8px">添加筛选条件</span>
<span style="font-size: 16px">+</span>
<span style="margin-left: 8px">添加筛选条件</span>
</div>
</div>
<template #footer>
@ -311,7 +381,7 @@ defineExpose({
<n-button type="info" @click="handleSumbit">
确定
</n-button>
<n-button secondary style="margin-left:15px" @click="closeModal">
<n-button secondary style="margin-left: 15px" @click="closeModal">
取消
</n-button>
</div>
@ -327,19 +397,22 @@ defineExpose({
&-title {
font-weight: bold;
font-size: 16px;
font-size: 18px;
color: #333333;
}
&-bar {
background-color: #e8e8e8;
width: 100%;
margin-top: 20px;
margin-top: 27px;
font-size: 16px;
color: #333333;
}
&-form {
display: flex;
justify-content: space-between;
margin-top: 20px;
margin-top: 24px;
}
&-new {
@ -348,6 +421,9 @@ defineExpose({
color: #507afd;
line-height: 22px;
cursor: pointer;
span {
font-size: 11px;
}
&:hover {
color: #507aac;
@ -361,6 +437,7 @@ defineExpose({
&-footer {
display: flex;
justify-content: flex-end;
margin-bottom: 6px;
}
&-info {
@ -368,7 +445,7 @@ defineExpose({
position: relative;
&:before {
background-color: #1980FF;
background-color: #1980ff;
content: "";
width: 5px;
border-radius: 2px;
@ -378,4 +455,9 @@ defineExpose({
}
}
}
::v-deep(.n-form-item .n-form-item-label) {
font-size: 14px;
color: #666666;
font-weight: 500;
}
</style>

@ -26,6 +26,7 @@ import { getRepeatList } from '@/api/final'
import { formatToDateHMS } from '@/utils/dateUtil'
import { audit } from '@/api/task/task'
import NotPassed from '@/components/Approval/NotPassed.vue'
import { useDataHeaderStore } from '@/store/modules/DataHeader'
const emit = defineEmits<{
(e: 'commit', columns: any[])
@ -37,6 +38,7 @@ const izstatusList = ref([])
const dialog = useDialog()
const checkedRowKeys = ref([])
const router = useRouter()
const haeaderstore=useDataHeaderStore()
onBeforeMount(() => {
dicStore.fetchizstatusListt()
@ -328,9 +330,11 @@ function doAudit(param: any) {
audit(param).then((res) => {
const { code } = res
if (code === 'OK') {
message.success(res.message)
reload()
}
haeaderstore.setDataConfig(true)
}
else { message.error(res.message) }
})
},
@ -360,10 +364,11 @@ function reload() {
selectionIds.value = []
checkedRowKeys.value = []
query(pagination.page, pagination.pageSize)
haeaderstore.setDataConfig(true)
}
function goDetail(row) {
router.push({ name: 'final-detail', query: { id: row.id, packageid: row.packageid } })
router.push({ name: 'final-detail', query: { id: row.id, packageid: row.packageid, taskindex: row.taskIndex } })
}
const showActions = computed(() => {

@ -1,9 +1,14 @@
<script lang="ts" setup>
import type { DataTableColumns, DataTableRowKey, PaginationProps } from 'naive-ui'
import type {
DataTableColumns,
DataTableRowKey,
PaginationProps,
} from 'naive-ui'
import { NButton, NDataTable, useDialog, useMessage } from 'naive-ui'
import {
computed,
defineEmits,
defineProps,
h,
nextTick,
onBeforeMount,
@ -16,6 +21,8 @@ import {
} from 'vue'
import { rowPropKeys } from 'naive-ui/es/legacy-grid/src/Row'
import { useRoute, useRouter } from 'vue-router'
import dayjs from 'dayjs'
import { cloneDeep } from 'lodash-es'
import {
CustomTabelModal,
ImportExcelModal,
@ -40,11 +47,21 @@ import type { ApprovalParam } from '/#/api'
import emitter from '@/utils/mitt'
import { formatToDateHMS } from '@/utils/dateUtil'
import { getAllfieldList, getfieldList, savefield } from '@/api/home/filter'
import DataHeader from '@/components/DataHeader/index.vue'
import { useDataHeaderStore } from '@/store/modules/DataHeader'
const props = defineProps({
taskvalue: {
type: String,
default: '',
},
})
const emit = defineEmits(['changeShow'])
function changeContent() {
emit('changeShow')
}
const headerref=ref(null)
const checkedRowKeys = ref([])
const dicStore = useDictionary()
const izstatusList = ref([])
@ -53,10 +70,12 @@ const route = useRoute()
const reviewType = 0
const sortorder = ref('asc')
const sortname = ref('states')
const searchContent = route.query.searchContent as string
const actionsColumns = {
title: '操作',
key: 'actions',
minWidth: 200,
width: 200,
fixed: 'right',
render(row) {
return h(ListAction, {
@ -69,101 +88,7 @@ const actionsColumns = {
},
}
const columnsRef = ref<DataTableColumns<RowData>>([])
// const columns: DataTableColumns<RowData> = [
// {
// type: "selection",
// fixed: "left",
// width: 50,
// },
// {
// title: "Id",
// key: "id",
// fixed: "left",
// width: 190,
// },
// {
// title: "",
// key: "fromtaskname",
// fixed: "left",
// width: 200,
// ellipsis: {
// tooltip: true,
// },
// },
// {
// title: "",
// key: "taskname",
// width: 100,
// },
// {
// title: "",
// key: "states",
// width: 100,
// sorter: "default",
// renderSorterIcon: ({ order }) => {
// if (order === false) return h(SvgIcon, { name: "sort-2" });
// if (order === "ascend") return h(SvgIcon, { name: "sort-1" });
// if (order === "descend") return h(SvgIcon, { name: "sort-3" });
// },
// render(row: any) {
// const item: any = izstatusList.value.find(
// (item: any) => item.value == row.states
// );
// return item ? item.label : "";
// },
// },
// {
// title: "",
// key: "similarityscore",
// width: 150,
// sorter: "default",
// renderSorterIcon: ({ order }) => {
// if (order === false) return h(SvgIcon, { name: "sort-2" });
// if (order === "ascend") return h(SvgIcon, { name: "sort-1" });
// if (order === "descend") return h(SvgIcon, { name: "sort-3" });
// },
// render(row: any) {
// return row.similarityscore ? `${row.similarityscore}%` : "";
// },
// },
// {
// title: "",
// key: "createdate",
// width: 200,
// sorter: "default",
// renderSorterIcon: ({ order }) => {
// if (order === false) return h(SvgIcon, { name: "sort-2" });
// if (order === "ascend") return h(SvgIcon, { name: "sort-1" });
// if (order === "descend") return h(SvgIcon, { name: "sort-3" });
// },
// render(row: any) {
// return formatToDateHMS(row.createdate || 0);
// },
// },
// {
// title: "",
// key: "updatetime",
// width: 200,
// render(row: any) {
// return row.updatetime ? formatToDateHMS(row.updatetime) : "";
// },
// },
// {
// title: "",
// key: "actions",
// width: 200,
// fixed: "right",
// render(row) {
// return h(Action, {
// id: row.id,
// status: row.states,
// trigger: (action) => {
// actionHandler(action, row);
// },
// });
// },
// },
// ];
const haeaderstore=useDataHeaderStore()
async function getColumns() {
columnsRef.value = [
@ -196,6 +121,7 @@ async function getColumns() {
width: 120,
})
}
return v
})
}
else {
@ -207,6 +133,7 @@ async function getColumns() {
fixed: 'left',
width: 120,
})
return v
})
userFieldUnFixed.map((v) => {
const item = allList.find(v2 => v2.name == v)
@ -215,40 +142,10 @@ async function getColumns() {
key: item.name,
width: 120,
})
return v
})
}
// TODO:
// #region
// allList?.map((v) => {
// if (!userFieldFixed?.length && !userFieldUnFixed?.length) {
// if (v.isrequired == 2) {
// columnsRef.value.push({
// title: v.fieldDesc,
// fixed: "left",
// key: v.name,
// width: 120,
// });
// }
// }
// if (userFieldFixed?.find((v2) => v2 == v.name)) {
// columnsRef.value.push({
// title: v.fieldDesc,
// key: v.name,
// fixed: "left",
// width: 120,
// });
// }
// if (userFieldUnFixed?.find((v2) => v2 == v.name)) {
// columnsRef.value.push({
// title: v.fieldDesc,
// key: v.name,
// width: 120,
// });
// }
// });
// #endregion
columnsRef.value.push(actionsColumns as any)
formatColumns()
}
@ -272,7 +169,7 @@ async function formatColumns() {
NButton,
{
'strong': true,
'tertiary': true,
// 'tertiary': true,
'text': true,
'size': 'small',
'text-color': '#507AFD',
@ -360,7 +257,10 @@ async function formatColumns() {
id: row.id,
style: { color: row.similarityscore === 100 ? '#FF4E4F' : '' },
},
{ default: () => (row.similarityscore ? `${row.similarityscore}%` : '') },
{
default: () =>
row.similarityscore ? `${row.similarityscore}%` : '',
},
)
},
}
@ -382,7 +282,7 @@ async function formatColumns() {
return h(SvgIcon, { name: 'sort-3' })
},
render(row: any) {
return formatToDateHMS(row.createdate || 0)
return formatToDateHMS(row.fromuptime || 0)
},
}
}
@ -405,6 +305,7 @@ async function formatColumns() {
render(row: any) {
return row.fromusername
},
}
}
@ -424,15 +325,6 @@ async function formatColumns() {
const deviceHeight = ref(600)
onMounted(() => {
emitter.on('filter-final', refreshHandler)
getColumns()
nextTick(() => {
computeListHeight()
})
})
onBeforeMount(() => {
dicStore.fetchizstatusListt()
})
@ -484,10 +376,39 @@ const dialog = useDialog()
const message = useMessage()
const finalStore = useFinal()
async function query(page: number, pageSize: number, filterId?: any, taskName?: string) {
const asideParmas = unref(finalStore.getAsideValue)
async function query(
page: number,
pageSize: number,
filterId?: any,
taskName?: string,
) {
console.log('query', taskName)
const asideParmas = cloneDeep(unref(finalStore.getAsideValue))
console.log(asideParmas)
if (asideParmas.izyear) {
asideParmas.izuptime = cloneDeep(asideParmas.izyear)
if (typeof asideParmas.izuptime == 'object') {
asideParmas.izuptime[0] = dayjs(asideParmas.izuptime[0]).format(
'YYYY/MM/DD',
)
asideParmas.izuptime[1] = dayjs(asideParmas.izuptime[1]).format(
'YYYY/MM/DD',
)
asideParmas.izuptime = asideParmas.izuptime.join('-')
delete asideParmas.izyear
}
}
// 使使
const params = filterId ? { userSearchId: filterId } : asideParmas
// let params = filterId ? { userSearchId: filterId } : asideParmas
const params = asideParmas
if (params?.izshowall == true) {
params.isFail = true
delete params.izshowall
}
// params = params?.izshowall ? { isFail: true } : params
const result = await getFinalList({
sortorder: sortorder.value,
pageSize,
@ -505,16 +426,13 @@ async function query(page: number, pageSize: number, filterId?: any, taskName?:
}
async function handleSorterChange(value) {
console.log(value)
let name = value.columnKey
if (name === 'fromuptime')
name = 'field11'
name = 'submit_date_timestamp'
else if (name === 'similarityscore')
name = 'similarity_score'
else if (name === 'fromusername')
name = 'fromuserid'
name = 'field1'
sortname.value = name
sortorder.value = value.order === 'ascend' ? 'asc' : 'desc'
@ -526,7 +444,7 @@ async function handlePageChange(currentPage) {
return
const { pageSize } = pagination
pagination.page = currentPage
await query(currentPage, pageSize)
await query(currentPage, pageSize, {}, props.taskvalue)
}
async function handlePageSizeChange(currentPageSize) {
if (loading.value)
@ -535,7 +453,7 @@ async function handlePageSizeChange(currentPageSize) {
const { page } = pagination
pagination.pageSize = currentPageSize
await query(page, currentPageSize)
await query(page, currentPageSize, {}, props.taskvalue)
}
function handleCheck(rowKeys: DataTableRowKey[]) {
@ -576,8 +494,20 @@ const maxHeight = computed(() => {
return tableData.value.length ? `${unref(deviceHeight)}px` : 'auto'
})
query(pagination.page, pagination.pageSize)
const scrollX = computed(() => {
const table = unref(tableRef)
if (!table)
return
const tableEl: any = table?.$el
const wrapper = tableEl.querySelector('.n-data-table-wrapper')
// const arr = columnsRef.value.filter(item => !item.fixed)
let width = 0
columnsRef.value.forEach((item) => {
width += Number(item.width) || 200
})
return width
})
const customTabelRef = ref(null)
const importExcelRef = ref(null)
const notPassModalRef = ref(null) //
@ -684,7 +614,10 @@ function validate(items: any[]) {
}
function goDetail(row) {
router.push({ name: 'final-detail', query: { id: row.id, packageid: row.packageid } })
router.push({
name: 'final-detail',
query: { id: row.id, packageid: row.packageid, taskindex: row.taskIndex, type: 'table' },
})
}
function resetHandler() {
@ -787,6 +720,7 @@ function rejectHandler(list) {
//
function doAudit(param: any) {
const modal = unref(headerref)! as any
dialog.info({
title: '确认提示',
content: '确认给该任务审批为【通过】吗?',
@ -796,8 +730,11 @@ function doAudit(param: any) {
audit(param).then((res) => {
const { code } = res
if (code === 'OK') {
message.success(res.message)
reload()
modal.getData()
// haeaderstore.setDataConfig(true)
}
else {
message.error(res.message)
@ -814,11 +751,16 @@ function switchBatch() {
}
function reload() {
const modal = unref(headerref)! as any
selectionIds.value = []
checkedRowKeys.value = []
const { page, pageSize } = unref(tableRef.value?.pagination) as PaginationProps
query(page!, pageSize!)
const { page, pageSize } = unref(
tableRef.value?.pagination,
) as PaginationProps
query(page!, pageSize!, {}, props.taskvalue)
modal.getData()
//haeaderstore.setDataConfig(true)
}
watch(
@ -829,6 +771,13 @@ watch(
{ deep: true },
)
watch(
() => finalStore.listKey,
(newVal, oldVal) => {
refreshHandler()
},
)
function reset() {
pagination.page = 1
pagination.pageCount = 1
@ -836,18 +785,79 @@ function reset() {
async function refreshHandler(searchId?: any) {
reset()
query(pagination.page, pagination.pageSize, searchId)
let searchKeyword = ''
if (searchContent) {
const id_param = searchContent.match(/-\d+-/)
if (id_param)
searchKeyword = id_param[0].slice(1, -1)
}
console.log('refreshHandler', searchKeyword)
query(pagination.page, pagination.pageSize, searchId, searchKeyword)
}
function filterTableData(keyword) {
pagination.page = 1
pagination.pageSize = 10
if (keyword)
// tableData.value = tableData.value.filter(item => item.id.includes(keyword))
query(pagination.page, pagination.pageSize, '', keyword)
else
query(pagination.page, pagination.pageSize)
else query(pagination.page, pagination.pageSize)
}
async function initData(pageSize, page, filterId?: any, taskName?: string) {
const asideParmas = unref(finalStore.getAsideValue)
if (asideParmas.izyear) {
asideParmas.izuptime = cloneDeep(asideParmas.izyear)
if (typeof asideParmas.izuptime == 'object') {
asideParmas.izuptime[0] = dayjs(asideParmas.izuptime[0]).format(
'YYYY/MM/DD',
)
asideParmas.izuptime[1] = dayjs(asideParmas.izuptime[1]).format(
'YYYY/MM/DD',
)
asideParmas.izuptime = asideParmas.izuptime.join('-')
delete asideParmas.izyear
}
}
// 使使
// let params = filterId ? { userSearchId: filterId } : asideParmas
const params = asideParmas
if (params?.izshowall == true) {
params.isFail = true
delete params.izshowall
}
const result = await getFinalList({
sortorder: sortorder.value,
pageSize,
currPage: page,
sortname: sortname.value,
taskName,
...params,
})
const { data, pageCount, totalCount } = result
tableData.value = data
total.value = totalCount
pagination.page = page
pagination.pageCount = Math.ceil(totalCount / pageSize)
loading.value = false
}
onMounted(() => {
// query(pagination.page, pagination.pageSize);
const asideParmas = cloneDeep(unref(finalStore.getAsideValue))
console.log(asideParmas)
emitter.on('filter-final', refreshHandler)
getColumns()
if (asideParmas == null) {
initData(1, 20, {}, props.taskvalue)
}
else {
reset()
filterTableData(props.taskvalue)
}
// alert(1)
nextTick(() => {
computeListHeight()
})
})
defineExpose({
filterTableData,
})
@ -858,7 +868,12 @@ defineExpose({
<div class="wrapper-header">
<div class="wrapper-header-left">
<span class="wrapper-header-font">任务管理列表</span>
<SvgIcon size="16" name="list-mode" @click="changeContent" />
<SvgIcon
style="cursor: pointer"
size="16"
name="list-mode"
@click="changeContent"
/>
</div>
<div>
<SvgIcon
@ -873,8 +888,8 @@ defineExpose({
<div v-show="!showActions" style="display: flex; align-items: center">
<div class="btn">
<SvgIcon style="margin-right: 6px" size="22" name="batch" />
批量审批
<!-- <SvgIcon style="margin-right: 6px" size="22" name="batch" />
批量审批-->
</div>
</div>
<div v-show="showActions" class="batch">
@ -893,6 +908,7 @@ defineExpose({
>
<SvgIcon size="24" name="vs" />
<img
style="margin-right: 5px;"
class="btn-approval"
src="@/assets/images/task/btn-pass.png"
alt=""
@ -918,10 +934,14 @@ defineExpose({
<SvgIcon size="20" name="import" /><span style="margin-left: 5px">批量导入数据</span>
</li>
<li @click="exportHandler">
<SvgIcon size="20" name="download" /><span style="margin-left: 5px">导出待审数据</span>
<SvgIcon size="20" name="download" /><span
style="margin-left: 5px"
>导出待审数据</span>
</li>
<li>
<SvgIcon size="20" name="download" /><span style="margin-left: 5px">导出全部数据</span>
<SvgIcon size="20" name="download" /><span
style="margin-left: 5px"
>导出全部数据</span>
</li>
<li>
<SvgIcon size="20" name="look" /><span style="margin-left: 5px">查看导入记录</span>
@ -930,19 +950,10 @@ defineExpose({
</n-popover>
</div>
</div>
<!-- <div class="wrapper-statistic">
<div v-for="i in 7" :key="i" class="item">
<div class="icon" />
<div class="content">
<span class="num">6399</span>
<span class="label">任务总数</span>
</div>
<div v-if="i === 7" style="display: flex;align-items: center;">
<div class="divider" />
<SvgIcon size="18" name="setting" />
</div>
</div>
</div> -->
<div class="header_data">
<DataHeader ref="headerref" :has-color="true" />
</div>
<div class="wrapper-settings">
<SvgIcon
style="cursor: pointer"
@ -951,13 +962,15 @@ defineExpose({
@click="showModal(customTabelRef)"
/>
</div>
<div class="sltedtext">已选<span style="width:20px;margin-left:10px;margin-right:10px;color:#507AFD">{{checkedRowKeys.length}}</span></div>
<div class="wrapper-content">
<NDataTable
id="table"
ref="tableRef"
v-model:checked-row-keys="checkedRowKeys"
remote
:columns="columnsRef"
:scroll-x="1250"
:scroll-x="scrollX"
:max-height="maxHeight"
:data="tableData"
:loading="loading"
@ -1018,6 +1031,7 @@ defineExpose({
border-radius: 8px;
cursor: pointer;
}
.wrapper {
display: flex;
flex: 1;
@ -1025,10 +1039,15 @@ defineExpose({
flex-direction: column;
box-sizing: border-box;
margin-left: 16px;
margin-right:16px ;
width: 100%;
background: #fff;
padding: 0px 24px 24px 24px;
.sltedtext{
position: absolute;
top:250px;
color:#202020
}
&-header {
display: flex;
justify-content: space-between;
@ -1056,17 +1075,17 @@ defineExpose({
}
.btn {
width: 118px;
height: 36px;
background: linear-gradient(135deg, #5b85f8, #3c6cf0);
border-radius: 17px;
box-shadow: 0px 2px 6px 0px rgba(116, 153, 253, 0.3);
display: flex;
align-items: center;
justify-content: center;
color: #fff;
margin-right: 6px;
cursor: pointer;
width: 160px;
height: 27px;
background: url(/src/assets/images/pocitypass.png) no-repeat;
background-size: 100% 100%;
border-radius: 17px;
display: flex;
align-items: center;
justify-content: center;
color: #fff;
margin-right: 16px;
cursor: pointer;
}
.more {
@ -1163,13 +1182,20 @@ defineExpose({
background: #fff;
}
}
:deep(.n-data-table .n-data-table-td.n-data-table-td--fixed-right) {
z-index: 100 !important;
}
:deep(.n-data-table-th__title) {
color: #333;
}
:deep(.n-data-table .n-data-table-td) {
color: #666;
}
:deep(.n-data-table .n-data-table-base-table-header) {
overflow: hidden;
}
</style>

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -1,28 +1,56 @@
<script lang="ts" setup>
import { ref } from 'vue'
import { ref , onMounted} from 'vue'
import Aside from './aside/Aside.vue'
import Content from './content/Content.vue'
import ListContent from './content/ListContent.vue'
import Robot from '@/components/Robot/index.vue'
const showList = ref(false);
const contentRef:any = ref(null);
const inputChange = (keyword)=>{
contentRef.value.filterTableData(keyword)
defineOptions({
name: 'FinalMain',
})
const showList = ref(true)
const contentRef: any = ref(null)
const ListRef: any = ref(null)
const asideref=ref(null)
const taskvalue=ref("")
function inputChange(keyword) {
if(asideref.value?.showSearch){
taskvalue.value=keyword
}else{
taskvalue.value=""
}
if (ListRef.value!=null) {
ListRef.value.initData(1,20,{},keyword);
} else {
contentRef.value.filterTableData(keyword);
}
}
onMounted(()=>{
const searchParams = new URLSearchParams(window.location.search);
const type = searchParams.get('type');
if(type=='table'){
showList.value=false
}else{
showList.value=true
}
})
</script>
<template>
<div class="main">
<!-- 侧边 -->
<Aside @inputChange="inputChange" />
<Aside ref="asideref" @input-change="inputChange" />
<!-- 内容 -->
<Content @changeShow="showList=true" ref="contentRef" />
<!-- 任务管理 -->
<!-- TODO:本地演示即可 上传注释注释 -->
<!-- <ListContent /> -->
<ListContent v-if="showList" ref="ListRef" @change-show="showList = false" :taskvalue="taskvalue"/>
<!-- 内容 -->
<Content v-if="!showList" ref="contentRef" @change-show="showList = true" :taskvalue="taskvalue"/>
<!-- 机器人 -->
<Robot />
</div>
</template>
@ -32,5 +60,6 @@ const inputChange = (keyword)=>{
flex-direction: row;
box-sizing: border-box;
width: 100%;
padding-bottom: 16px;
}
</style>

@ -10,261 +10,284 @@ import {
shallowRef,
unref,
watch,
} from "vue";
import { CustomFilterModalVue, FilterModalVue, NewFilterModalVue } from "./comp/modals";
import Search from "./comp/Search.vue";
import AdvanceFilter from "./comp/AdvanceFilter.vue";
import { getViewportOffset } from "@/utils/domUtils";
import { useWindowSizeFn } from "@/hooks/event/useWindowSizeFn";
import { useConfig } from "@/store/modules/asideConfig";
import type { Filter } from "/#/home";
import type { AsideEntity } from "@/config/aside";
import { asideMap } from "@/config/aside";
import type { AsideConfig } from "/#/api";
import emitter from "@/utils/mitt";
import { getFilterList } from "@/api/home/main";
import dayjs from "dayjs";
import { cloneDeep, isEqual } from "lodash-es";
const configStore = useConfig();
} from 'vue'
import dayjs from 'dayjs'
import { cloneDeep, isEqual } from 'lodash-es'
import { CustomFilterModalVue, FilterModalVue, NewFilterModalVue } from './comp/modals'
import Search from './comp/Search.vue'
import AdvanceFilter from './comp/AdvanceFilter.vue'
import { getViewportOffset } from '@/utils/domUtils'
import { useWindowSizeFn } from '@/hooks/event/useWindowSizeFn'
import { useConfig } from '@/store/modules/asideConfig'
import type { Filter } from '/#/home'
import type { AsideEntity } from '@/config/aside'
import { asideMap } from '@/config/aside'
import type { AsideConfig } from '/#/api'
import emitter from '@/utils/mitt'
import { getFilterList } from '@/api/home/main'
import { useKeydown } from '@/hooks/event/useKeydown'
const configStore = useConfig()
//
let asideValue: Record<keyof typeof asideMap, any> = reactive({});
const asideValue: Record<keyof typeof asideMap, any> = reactive({})
// :
const asideVisible: Partial<Record<keyof AsideConfig, boolean>> = reactive({});
const asideVisible: Partial<Record<keyof AsideConfig, boolean>> = reactive({})
//
const showItems = shallowRef<{ key: string; config: AsideEntity }[]>([]);
const showItems = shallowRef<{ key: string, config: AsideEntity }[]>([])
Object.keys(asideMap).forEach((key) => {
const entity = asideMap[key];
const { defaultValue } = entity;
asideValue[key] = defaultValue;
});
const filterModalRef: any = ref(null);
const newFilterModalRef = ref(null);
const customModalRef = ref(null);
const customObjRef = ref<any>(null); //
const customTempObjRef = ref<any>(null); // ()
const configFilterRef = ref<any>([]); //
const AdvanceFilterRef: any = ref(null);
const entity = asideMap[key]
const { defaultValue } = entity
asideValue[key] = defaultValue
})
const filterModalRef: any = ref(null)
const newFilterModalRef = ref(null)
const customModalRef = ref(null)
const customObjRef = ref<any>(null) //
const customTempObjRef = ref<any>(null) // ()
const configFilterRef = ref<any>([]) //
const AdvanceFilterRef: any = ref(null)
function showModal(modalRef: any) {
const modal = unref(modalRef)! as any;
modal.showModal();
const modal = unref(modalRef)! as any
modal.showModal()
}
onMounted(() => {
nextTick(() => {
computeSlideHeight();
let tempAsideValue = cloneDeep(asideValue);
computeSlideHeight()
const tempAsideValue = cloneDeep(asideValue)
// configStore.setAsideValue(tempAsideValue);
console.log("asideMap和asideValue", tempAsideValue);
});
});
console.log('asideMap和asideValue', tempAsideValue)
})
})
const collapse = ref(false);
const mousetrap = inject("mousetrap") as any;
mousetrap.bind("[", collapseHandler);
const collapse = ref(false)
const mousetrap = inject('mousetrap') as any
mousetrap.bind('[', collapseHandler)
function collapseHandler() {
collapse.value = !collapse.value;
collapse.value = !collapse.value
console.log('执行了啊啊啊啊啊啊啊啊啊啊啊啊', collapse.value)
configStore.setCollapse(collapse.value)
}
const asideWidth = computed(() => {
return collapse.value ? 0 : 308;
});
return collapse.value ? 0 : 308
})
const asideHeight = ref(500);
const asideHeight = ref(500)
const asideStyle = computed(() => {
return {
width: `${asideWidth.value}px`,
height: `${asideHeight.value}px`,
};
});
}
})
const collapseIcon = computed(() => {
return collapse.value ? "expand-cir" : "collapse-cir";
});
return collapse.value ? 'expand-cir' : 'collapse-cir'
})
function computeSlideHeight() {
const headEl = document.querySelector(".aside-header")!;
const { bottomIncludeBody } = getViewportOffset(headEl);
const height = bottomIncludeBody;
asideHeight.value = height - 24;
const headEl = document.querySelector('.aside-header')!
const { bottomIncludeBody } = getViewportOffset(headEl)
const height = bottomIncludeBody
asideHeight.value = height - 24
}
useWindowSizeFn(computeSlideHeight, 280);
useWindowSizeFn(computeSlideHeight, 280)
onBeforeMount(async () => {
configStore.fetchConfig();
configStore.fetchCustomConfig();
});
configStore.$subscribe(() => {
const config = configStore.getConfig;
const customConfig = configStore.getCustomConfig;
if (
configFilterRef.value.length > 0 &&
isEqual(configFilterRef.value, configStore.getFilterConfig) &&
customObjRef.value &&
isEqual(customObjRef.value, customTempObjRef.value)
) {
return;
}
if (config == null || customConfig == null) return;
// console.log("config", config, "customConfig", customConfig);
/* rao
configStore.fetchConfig()
configStore.fetchCustomConfig()
})
nextTick(() => {
configStore.$subscribe(() => {
const config = configStore.getConfig
const customConfig = configStore.getCustomConfig
if (
configFilterRef.value.length > 0
&& isEqual(configFilterRef.value, configStore.getFilterConfig)
&& customObjRef.value
&& isEqual(customObjRef.value, customTempObjRef.value)
)
return
if (config == null || customConfig == null)
return
// console.log("config", config, "customConfig", customConfig);
/* rao
const showKeys = [...customConfig].filter(key => !asideMap[key].isDefaultFilter)// customConfig isDefaultFilter
const defaultKeys = Object.keys(asideMap).filter(key => asideMap[key].isDefaultFilter)// asideMap isDefaultFilter
showKeys.unshift(...defaultKeys)
*/
let sortKeyList: any = [];
configStore.getFilterConfig.map((item: any) => {
sortKeyList.push(item.id);
});
const showKeys = [...sortKeyList];
Object.keys(config).forEach((key) => {
if (key.startsWith("iz") && asideMap[key] !== undefined)
asideVisible[key] =
(showKeys.includes(key) || asideMap[key].isDefaultFilter) && config[key] === "Y";
});
if (customObjRef.value) {
//
Object.keys(customObjRef.value).map((key) => {
if (asideMap.hasOwnProperty(key)) {
const str = key.toLowerCase();
// console.log("customObjRef.value[str]1111111111111", customObjRef.value[str]);
if (str == "izsimilarity") {
if (typeof customObjRef.value[str] == "string") {
customObjRef.value[str] = customObjRef.value[str].split(",");
const sortKeyList: any = []
configStore.getFilterConfig.map((item: any) => {
sortKeyList.push(item?.id)
return item
})
const showKeys = [...sortKeyList]
Object.keys(config).forEach((key) => {
if (key.startsWith('iz') && asideMap[key] !== undefined) {
asideVisible[key]
= (showKeys.includes(key) || asideMap[key].isDefaultFilter)
&& config[key] === 'Y'
}
})
if (customObjRef.value) {
//
Object.keys(customObjRef.value).map((key) => {
// TODO hasOwnProperty
// if (asideMap.hasOwnProperty(key)) {
if (Object.prototype.hasOwnProperty.call(customObjRef.value, key)) {
const str = key.toLowerCase()
// console.log("customObjRef.value[str]1111111111111", customObjRef.value[str]);
if (str == 'izsimilarity') {
if (typeof customObjRef.value[str] == 'string')
customObjRef.value[str] = customObjRef.value[str].split(',')
asideValue[key] = customObjRef.value[str] //
console.log('相似度2222222222', asideValue[key])
}
else if (str == 'izyear') {
if (typeof customObjRef.value[str] == 'string') {
const time = customObjRef.value[str].split('-')
time[0] = new Date(time[0]).getTime()
time[1] = new Date(time[1]).getTime()
customObjRef.value[str] = time
}
asideValue[key] = customObjRef.value[str] //
console.log('时间2222222222', asideValue[key])
}
else if (
str != 'izsimilarity'
&& str != 'izyear'
&& customObjRef.value[str]
) {
console.log('customObjRef.value[str]222222', customObjRef.value[str])
// let list = customObjRef.value[str].split(',');
// console.log("list222222", list);
asideValue[key] = customObjRef.value[str] //
}
asideValue[key] = customObjRef.value[str]; //
console.log("相似度2222222222", asideValue[key]);
} else if (str == "izyear") {
if (typeof customObjRef.value[str] == "string") {
let time = customObjRef.value[str].split("-");
time[0] = new Date(time[0]).getTime();
time[1] = new Date(time[1]).getTime();
customObjRef.value[str] = time;
else {
asideValue[key] = null
}
asideValue[key] = customObjRef.value[str]; //
console.log("时间2222222222", asideValue[key]);
} else if (str != "izsimilarity" && str != "izyear" && customObjRef.value[str]) {
console.log("customObjRef.value[str]222222", customObjRef.value[str]);
// let list = customObjRef.value[str].split(',');
// console.log("list222222", list);
asideValue[key] = customObjRef.value[str]; //
} else {
asideValue[key] = null;
// asideMap[str].defaultValue = customObjRef.value[str];//
}
// asideMap[str].defaultValue = customObjRef.value[str];//
}
});
customTempObjRef.value = customObjRef.value;
console.log("asideValue直接处理后的结果", asideValue);
console.log("customTempObjRef.value", customTempObjRef.value);
let tempobj = cloneDeep(asideValue);
console.log("tempObj", tempobj);
configStore.setAsideValue(tempobj);
}
// console.log("showKeys", showKeys);
const items = showKeys.reduce((acc, key) => {
const { render } = asideMap[key];
if (render !== false) {
const str = key.toLowerCase();
const o = {
key: str,
config: asideMap[str],
};
return [...acc, o];
} else {
return acc;
return key
})
customTempObjRef.value = customObjRef.value
console.log('asideValue直接处理后的结果', asideValue)
console.log('customTempObjRef.value', customTempObjRef.value)
const tempobj = cloneDeep(asideValue)
console.log('tempObj', tempobj)
configStore.setAsideValue(tempobj)
}
}, []);
console.log("showItems=================================", items);
showItems.value = items;
configFilterRef.value = configStore.getFilterConfig;
});
const asideEnter = ref(false);
// console.log("showKeys", showKeys);
const items = showKeys.reduce((acc, key) => {
const currentData = asideMap[key]
const render = currentData?.render
if (render !== false) {
const str = key?.toLowerCase()
const o = {
key: str,
config: asideMap[str],
}
return [...acc, o]
}
else {
return acc
}
}, [])
console.log('showItems=================================', items)
showItems.value = items
configFilterRef.value = configStore.getFilterConfig
})
})
const asideEnter = ref(false)
const showCollapse = computed(() => {
return collapse.value ? true : asideEnter.value;
});
return collapse.value ? true : asideEnter.value
})
const showSearch = ref(false);
const showSearch = ref(false)
function setShowSearch(value: boolean) {
showSearch.value = value;
showSearch.value = value
}
const newFilterOk = () => {
function newFilterOk() {
filterModalRef.value.query(
filterModalRef.value.pagination.page,
filterModalRef.value.pagination.pageSize
);
};
filterModalRef.value.pagination.pageSize,
)
filterModalRef.value.closeModal()
}
// key
function scrollHandler(key: string) {
const element = document.querySelector(`#${key}`);
element?.scrollIntoView(true);
const element = document.querySelector(`#${key}`)
element?.scrollIntoView(true)
}
// ->
async function filterHandler(searchId: string) {
// emitter.emit('filter', searchId)
const res = await getFilterList({ userSearchId: searchId });
const res = await getFilterList({ userSearchId: searchId })
// console.log("", res);
if (res.code == "OK") {
let obj = res.data;
customObjRef.value = res.data;
let showKeys: any[] = [];
if (res.code == 'OK') {
const obj = res.data
customObjRef.value = res.data
const showKeys: any[] = []
Object.keys(obj).map((key) => {
if (asideMap.hasOwnProperty(key)) {
showKeys.push(key);
}
});
// TODO hasOwnProperty
// if (asideMap.hasOwnProperty(key)) {
if (Object.prototype.hasOwnProperty.call(asideMap, key))
showKeys.push(key)
return key
})
// console.log(showKeys);
configStore.setCustomConfig(showKeys);
configStore.setCustomConfig(showKeys)
}
}
function editFilter(filter: any) {
const modal = unref(newFilterModalRef)! as any;
modal.showModal();
modal.edit(filter);
const modal = unref(newFilterModalRef)! as any
modal.showModal()
modal.edit(filter)
}
function updateComponent(key, e) {
console.log("跟新值", key, e);
console.log("tempAsideValue跟新值", configStore.getAsideValue, asideValue);
console.log('跟新值', key, e)
console.log('tempAsideValue跟新值', configStore.getAsideValue, asideValue)
// let tempAsideValue = configStore.getAsideValue || asideValue;
let tempobj = cloneDeep(asideValue);
console.log(tempobj, "tempobj");
tempobj[key] = e;
console.log(tempobj, "tempobj After");
customObjRef.value = tempobj;
const tempobj = cloneDeep(asideValue)
console.log(tempobj, 'tempobj')
tempobj[key] = e
console.log(tempobj, 'tempobj After')
customObjRef.value = tempobj
// asideValue = Object.assign({}, asideValue, tempobj);
console.log("asideValue跟新值", tempobj);
configStore.setAsideValue(tempobj);
console.log('asideValue跟新值', tempobj)
configStore.setAsideValue(tempobj)
}
const handleOk = (item: any) => {
console.log("handleOk", item);
function handleOk(item: any) {
console.log('handleOk', item)
if (item) {
AdvanceFilterRef.value.setCurrentlySelectedAdvanced(item.searchname);
filterHandler(item.id);
} else {
AdvanceFilterRef.value.setCurrentlySelectedAdvanced("高级筛选");
filterHandler("");
AdvanceFilterRef.value.setCurrentlySelectedAdvanced(item.searchname)
filterHandler(item.id)
}
};
else {
AdvanceFilterRef.value.setCurrentlySelectedAdvanced('高级筛选')
filterHandler('')
}
}
useKeydown('s', () => setShowSearch(true))
// watch(asideValue, (newVal) => {
// console.log("asideValue", newVal);
// configStore.setAsideValue(newVal)
@ -294,22 +317,23 @@ const handleOk = (item: any) => {
<!-- 高级筛选 -->
<AdvanceFilter
v-show="!showSearch"
ref="AdvanceFilterRef"
:type="0"
toolipvalue="请输入提报人搜索"
@select="filterHandler"
@update:search="setShowSearch(true)"
@show-custom="showModal(customModalRef)"
@show-filter="showModal(filterModalRef)"
ref="AdvanceFilterRef"
/>
</div>
<component
:is="item.config.component"
v-for="(item, index) in showItems"
:is="item.config?.component"
v-for="item in showItems"
:id="item.key"
:key="item.key"
v-model:value="asideValue[item.key]"
:label="item.config.label"
:label="item.config?.label"
@update:value="(e) => updateComponent(item.key, e)"
/>
@ -318,10 +342,10 @@ const handleOk = (item: any) => {
ref="filterModalRef"
@edit-filter="editFilter"
@show-new-filter="showModal(newFilterModalRef)"
@handleOk="handleOk"
@handle-ok="handleOk"
/>
<!-- 新增过滤 -->
<NewFilterModalVue ref="newFilterModalRef" @onOk="newFilterOk" />
<NewFilterModalVue ref="newFilterModalRef" @on-ok="newFilterOk" />
<!-- 筛选 -->
<CustomFilterModalVue ref="customModalRef" />
</n-scrollbar>
@ -337,12 +361,14 @@ const handleOk = (item: any) => {
border: 1px solid #efeff5;
border-radius: 3px;
box-sizing: border-box;
margin-left: 16px;
&-header {
padding: 10px;
width: 100%;
border-bottom: 1px solid #e8e8e8;
margin-bottom: 15px;
height: 58px;
}
&-divider {

@ -1,14 +1,14 @@
<script lang="ts" setup>
import { favorite, getConditionList, unfavorite, sort } from "@/api/home/filter";
import { asideMap } from "@/config/aside";
import { useInfiniteScroll } from "@vueuse/core";
import { debounce } from "lodash-es";
import { onMounted, reactive, ref, watch } from "vue";
import type { FilterSearchParam } from "/#/api";
import type { Filter, FilterEntity } from "/#/home";
import { VueDraggable } from "vue-draggable-plus";
import { useInfiniteScroll } from '@vueuse/core'
import { debounce } from 'lodash-es'
import { onMounted, reactive, ref, watch } from 'vue'
import type { FilterSearchParam } from '/#/api'
import type { Filter, FilterEntity } from '/#/home'
import { VueDraggable } from 'vue-draggable-plus'
import { asideMap } from '@/config/aside'
import { favorite, getConditionList, sort, unfavorite } from '@/api/home/filter'
defineOptions({ name: "AdvanceFilter" });
defineOptions({ name: 'AdvanceFilter' })
const props = defineProps({
type: {
@ -16,43 +16,47 @@ const props = defineProps({
default: 0,
required: true,
},
});
const ruleForm = reactive({
keyword: "",
});
const ruleformRef = ref();
toolipvalue:{
type: String,
default: "",
required: true,
}
})
const emit = defineEmits<{
(e: "show-filter"): void;
(e: "show-custom"): void;
(e: "update:search"): void;
(e: "select", id: string);
}>();
const data = ref<FilterEntity[]>([]);
const unData = ref<FilterEntity[]>([]);
const loading = ref(false);
const canloadMore = true;
const el = ref<HTMLDivElement | null>(null);
const popover = ref<ComponentRef | null>(null);
(e: 'show-filter'): void
(e: 'show-custom'): void
(e: 'update:search'): void
(e: 'select', id: string)
}>()
const ruleForm = reactive({
keyword: '',
})
const ruleformRef = ref()
const data = ref<FilterEntity[]>([])
const unData = ref<FilterEntity[]>([])
const loading = ref(false)
const canloadMore = true
const el = ref<HTMLDivElement | null>(null)
const popover = ref<ComponentRef | null>(null)
const pagination = reactive({
pageNo: 1,
pageSize: 300,
});
const keyword = ref("");
const currentlySelectedAdvanced = ref("高级筛选");
})
const keyword = ref('')
const currentlySelectedAdvanced = ref('高级筛选')
onMounted(() => {
// data.value = generateDefaultConfig()
});
})
//
function generateDefaultConfig(): FilterEntity[] {
return Object.keys(asideMap).reduce((acc, key) => {
const { label, defaultValue, isDefaultFilter } = asideMap[key];
const { label, defaultValue, isDefaultFilter } = asideMap[key]
if (isDefaultFilter === true) {
const config = {
id: "",
id: '',
name: label,
favorite: false,
isDefaultFilter,
@ -62,70 +66,73 @@ function generateDefaultConfig(): FilterEntity[] {
value: defaultValue,
},
],
};
return [...acc, config];
} else {
return acc;
}
return [...acc, config]
}
else {
return acc
}
}, []);
}, [])
}
useInfiniteScroll(
el as any,
() => {
loadMore();
loadMore()
},
{ distance: 10, interval: 300, canLoadMore: () => false }
);
const showClick = async () => {
getSearchedList("");
};
{ distance: 10, interval: 300, canLoadMore: () => false },
)
async function showClick() {
getSearchedList('')
}
async function loadMore() {
if (loading.value || el.value == null) return;
if (loading.value || el.value == null)
return
const more = await featchList();
const more = await featchList()
if (more.length === 0) return;
if (more.length === 0)
return
data.value.push(...more);
data.value.push(...more)
}
async function featchList() {
loading.value = true;
loading.value = true
try {
const searchParam: FilterSearchParam = {
search_searchname: { value: ruleForm.keyword, op: "like", type: "string" },
};
const result = await getConditionList(pagination, searchParam, props.type);
const { data } = result;
search_searchname: { value: ruleForm.keyword, op: 'like', type: 'string' },
}
const result = await getConditionList(pagination, searchParam, props.type)
const { data } = result
// pagination.pageNo += 1
// canloadMore = pageCount >= pagination.pageNo
const entityList = generateFilterEntityList(data);
return entityList;
} catch (error) {
return [];
} finally {
loading.value = false;
const entityList = generateFilterEntityList(data)
return entityList
}
catch (error) {
return []
}
finally {
loading.value = false
}
}
//
function generateFilterEntityList(data) {
const filterEntityList = data.map((item) => {
const { searchname, iztop, ocrUsersearchchildList, id, reorder } = item;
const { searchname, iztop, ocrUsersearchchildList, id, reorder } = item
const list = ocrUsersearchchildList.map((item) => {
const { searchfield, searchvalue } = item;
const { searchfield, searchvalue } = item
return {
key: searchfield,
value: searchvalue,
};
});
}
})
const reg = new RegExp(ruleForm.keyword, "gi");
const hilightText = searchname.replace(reg, `<span>${ruleForm.keyword}</span>`);
const reg = new RegExp(ruleForm.keyword, 'gi')
const hilightText = searchname.replace(reg, `<span>${ruleForm.keyword}</span>`)
return {
id,
@ -135,131 +142,127 @@ function generateFilterEntityList(data) {
filterList: list,
reorder,
searchname,
};
});
}
})
return filterEntityList;
return filterEntityList
}
function selectHandler(item: FilterEntity) {
(popover.value as any).setShow(false);
currentlySelectedAdvanced.value = item.searchname;
emit("select", item.id);
(popover.value as any).setShow(false)
currentlySelectedAdvanced.value = item.searchname
emit('select', item.id)
}
const inputHandler = debounce((word) => {
ruleForm.keyword = word;
ruleformRef.value.validate();
if (word.length < 2 && word) {
return;
}
getSearchedList(word);
}, 300);
ruleForm.keyword = word
ruleformRef.value.validate()
if (word.length < 2 && word)
return
getSearchedList(word)
}, 300)
function getSearchedList(word, isScroll = false) {
if (word) {
pagination.pageSize = 300;
}
if (!word) {
pagination.pageSize = 10;
}
if (isScroll) {
pagination.pageSize = 300;
}
ruleForm.keyword = word;
if (word)
pagination.pageSize = 300
if (!word)
pagination.pageSize = 10
if (isScroll)
pagination.pageSize = 300
ruleForm.keyword = word
featchList().then((list) => {
let dataArr: FilterEntity[] = [];
let unDataArr: FilterEntity[] = [];
list.map((item) => {
if (item.favorite && !item.isDefaultFilter) {
dataArr.push(item);
}
if (!item.favorite && !item.isDefaultFilter) {
unDataArr.push(item);
}
});
const dataArr: FilterEntity[] = []
const unDataArr: FilterEntity[] = []
list.forEach((item) => {
if (item.favorite && !item.isDefaultFilter)
dataArr.push(item)
if (!item.favorite && !item.isDefaultFilter)
unDataArr.push(item)
})
data.value = dataArr.sort(
(a, b) => Number(new Date(a.createtime)) - Number(new Date(b.createtime))
);
(a, b) => Number(new Date(a.createtime)) - Number(new Date(b.createtime)),
)
unData.value = unDataArr.sort(
(a, b) => Number((a as any).reorder) - Number((b as any).reorder)
);
});
(a, b) => Number((a as any).reorder) - Number((b as any).reorder),
)
})
}
function favoriteHandler(event: MouseEvent, item: any) {
event.stopImmediatePropagation();
event.stopPropagation();
event.stopImmediatePropagation()
event.stopPropagation()
const { isDefaultFilter, id } = item;
const { isDefaultFilter, id } = item
if (!isDefaultFilter) {
item.favorite = true;
favorite(id);
data.value.map((v, index) => {
if (v.id == id) {
sort(v.id, 0);
} else {
sort(v.id, index + 1);
}
});
inputHandler(ruleForm.keyword);
item.favorite = true
favorite(id)
data.value.forEach((v, index) => {
if (v.id == id)
sort(v.id, 0)
else sort(v.id, index + 1)
})
inputHandler(ruleForm.keyword)
}
}
const rules = {
keyword: [
{
trigger: ["blur", "input", "change"],
level: "error",
trigger: ['blur', 'input', 'change'],
level: 'error',
validator(_rule, value) {
if (value.length >= 2) {
return true;
} else {
return new Error("搜索关键字最少为两个");
}
if (value.length >= 2)
return true
else return new Error('搜索关键字最少为两个')
},
},
],
};
}
function unFavoriteHandler(event: MouseEvent, item) {
event.stopImmediatePropagation();
event.stopPropagation();
event.stopImmediatePropagation()
event.stopPropagation()
const { isDefaultFilter, id } = item;
const { isDefaultFilter, id } = item
if (!isDefaultFilter) {
item.favorite = false;
unfavorite(id);
inputHandler(ruleForm.keyword);
item.favorite = false
unfavorite(id)
inputHandler(ruleForm.keyword)
}
}
const handleScroll = (event) => {
let timer;
function handleScroll(event) {
let timer
if (timer) {
clearTimeout(timer);
} else {
clearTimeout(timer)
}
else {
timer = setTimeout(() => {
getSearchedList("", true);
}, 2000);
getSearchedList('', true)
}, 2000)
}
};
}
const moveEnd = () => {
unData.value.map((v, index) => {
sort(v.id, index);
});
};
function moveEnd() {
unData.value.forEach((v, index) => {
sort(v.id, index)
})
}
const setCurrentlySelectedAdvanced = (value:string)=>{
currentlySelectedAdvanced.value = value;
function setCurrentlySelectedAdvanced(value: string) {
currentlySelectedAdvanced.value = value
}
defineExpose({
setCurrentlySelectedAdvanced
setCurrentlySelectedAdvanced,
})
</script>
@ -277,9 +280,20 @@ defineExpose({
>
<template #trigger>
<div class="wrapper-left-dropdown" @click="showClick">
<span style="font-size: 20px; color: #333333; font-weight: Medium">{{
currentlySelectedAdvanced
}}</span>
<n-tooltip trigger="hover">
<template #trigger>
<span
style="
color: #333333;
font-weight: Medium;
font-size: 17px;
font-weight: 600;
"
>{{ currentlySelectedAdvanced }}</span>
</template>
{{ currentlySelectedAdvanced }}
</n-tooltip>
<SvgIcon
:style="{ marginLeft: '5px' }"
name="down"
@ -290,21 +304,25 @@ defineExpose({
</template>
<n-spin :show="loading">
<div class="wrapper-left-popover">
<n-form :rules="rules" ref="ruleformRef" :model="ruleForm">
<n-form ref="ruleformRef" :rules="rules" :model="ruleForm">
<n-form-item path="keyword">
<n-input
:style="{ '--n-border': '0px', '--n-display': 'block' }"
placeholder="请输入关键字"
@input="inputHandler"
:style="{
'--n-border': '0px',
'--n-display': 'block',
'--n-height': '40px',
}"
placeholder="请输入关键词"
:value="ruleForm.keyword"
:minlength="2"
@input="inputHandler"
>
<template #prefix>
<SvgIcon size="14px" name="magnifying-1" />
</template>
<template #suffix>
<SvgIcon
size="14px"
size="16"
style="cursor: pointer"
name="setting"
@click="emit('show-filter')"
@ -323,7 +341,7 @@ defineExpose({
>
<SvgIcon
name="drag"
size="18"
size="13"
color="#333333"
style="margin-right: 3px"
/>
@ -331,44 +349,44 @@ defineExpose({
v-if="item.favorite && !item.isDefaultFilter"
name="favorite-fill"
color="#fd9b0a"
width="13"
height="12"
size="18"
style="margin-right: 3px"
@click="unFavoriteHandler($event, item)"
/>
<SvgIcon
v-else-if="!item.favorite && !item.isDefaultFilter"
name="favorite-unfill"
width="13"
height="12"
size="18"
style="margin-right: 3px"
@click="favoriteHandler($event, item)"
/>
<div v-html="item.name" style="color: #333333" />
<div
style="color: #333333; white-space: nowrap; overflow: hidden"
v-html="item.name"
/>
</li>
<!-- filter=".draggable-li[draggable='false']" -->
<VueDraggable
@end="moveEnd"
v-model="unData"
class="draggable-ul"
:animation="150"
group="shared"
@end="moveEnd"
>
<li
v-for="(item, index) in unData"
:key="index"
style="display: flex; align-items: center"
@click="selectHandler(item)"
class="cursor-move draggable-li fix"
:draggable="true"
@click="selectHandler(item)"
>
<SvgIcon name="drag" size="18" style="margin-right: 3px" />
<SvgIcon name="drag" size="13" style="margin-right: 3px" />
<SvgIcon
v-if="item.favorite && !item.isDefaultFilter"
name="favorite-fill"
color="#fd9b0a"
width="13"
height="12"
size="18"
fill="#666666"
style="cursor: pointer !important; margin-right: 3px"
@click="unFavoriteHandler($event, item)"
@ -376,13 +394,15 @@ defineExpose({
<SvgIcon
v-else-if="!item.favorite && !item.isDefaultFilter"
name="favorite-unfill"
width="13"
height="12"
size="18"
fill="#666666"
style="cursor: pointer !important; margin-right: 3px"
@click="favoriteHandler($event, item)"
/>
<div v-html="item.name" style="color: #333333" />
<div
style="color: #333333; white-space: nowrap; overflow: hidden"
v-html="item.name"
/>
</li>
</VueDraggable>
</ul>
@ -391,12 +411,17 @@ defineExpose({
</n-popover>
</div>
<div class="wrapper-right">
<n-tooltip trigger="hover">
<template #trigger>
<SvgIcon
style="display: block; cursor: pointer"
size="18"
name="magnifying-1"
@click="emit('update:search')"
/>
</template>
<span>{{toolipvalue}} </span>
</n-tooltip>
<SvgIcon
style="display: block; cursor: pointer; margin-left: 10px"
size="18"
@ -412,7 +437,14 @@ defineExpose({
display: flex;
justify-content: space-between;
align-items: center;
position: absolute;
width: 100%;
padding: 17px 16px;
border-bottom: 1px solid #e8e8e8;
z-index: 10;
background: #ffffff;
left: 0;
top:0;
&-left {
display: flex;
align-items: center;
@ -423,6 +455,12 @@ defineExpose({
align-items: center;
margin-left: 12px;
cursor: pointer;
span {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
width: 120px;
}
}
&-popvoer {
@ -461,6 +499,16 @@ defineExpose({
align-items: center;
}
}
.wrapper-left-popover {
width: 248px;
height: 288px;
position: absolute;
left: 0;
top: -10px;
border: 1px solid #f3f8ff;
z-index: 10000;
background: #fff;
}
::v-deep(.wrapper-left-popover .n-form-item) {
display: block !important;
}

@ -1,9 +1,11 @@
<script lang="ts" setup>
import { ref } from 'vue'
import { nextTick, onMounted, ref, watch } from 'vue'
import { debounce } from 'lodash-es'
import { useRoute, useRouter } from 'vue-router'
import { asideMap } from '@/config/aside'
import type { SearchEntity } from '/#/home'
import { useConfig } from '@/store/modules/asideConfig'
import { useFinal } from '@/store/modules/final'
defineOptions({ name: 'Search' })
@ -11,16 +13,22 @@ const emit = defineEmits<{
(e: 'close'): void
(e: 'select', key: string): void
(e: 'inputChange', value: string): void
(e: 'showSearch'): void
}>()
const finalStore = useFinal()
const router = useRouter()
const route = useRoute()
const searchContent = route.query.searchContent as string
const data = ref<SearchEntity[]>([])
const popover = ref<ComponentRef | null>(null)
const configStore = useConfig()
const searchKeyword = ref('')
const inputHandler = debounce((keyword) => {
searchKeyword.value = keyword;
emit('inputChange',keyword)
searchKeyword.value = keyword
emit('inputChange', keyword)
}, 300)
configStore.$subscribe(() => {
@ -35,7 +43,7 @@ configStore.$subscribe(() => {
return
const list = keys.map((key) => {
const name = asideMap[key].label
const name = asideMap[key]?.label
return {
key,
@ -52,29 +60,60 @@ function selectHandler(item: SearchEntity) {
}
//
const searchName = () => {
configStore.setSearchValue(searchKeyword.value);
emit('inputChange',searchKeyword.value);
function searchName() {
configStore.setSearchValue(searchKeyword.value)
finalStore.setSearchValue(searchKeyword.value)
emit('inputChange', searchKeyword.value)
}
const close = () => {
searchKeyword.value = "";
configStore.setSearchValue(searchKeyword.value);
emit('close');
function close() {
searchKeyword.value = ''
configStore.setSearchValue(searchKeyword.value)
finalStore.setSearchValue(searchKeyword.value)
if (searchContent)
router.replace(route.path)
emit('close')
}
function initSerach() {
if (searchContent) {
emit('showSearch')
const id_param = searchContent.match(/-\d+-/)
if (id_param) {
searchKeyword.value = id_param[0].slice(1, -1)
emit('inputChange', searchKeyword.value)
}
}
}
onMounted(() => {
initSerach()
})
</script>
<template>
<div class="wrapper">
<n-popover
ref="popover" :style="{ padding: '0px' }" style="width: 248px" :show-arrow="false" placement="bottom-start"
ref="popover"
:style="{ padding: '0px' }"
style="width: 248px"
:show-arrow="false"
placement="bottom-start"
trigger="focus"
>
<template #trigger>
<n-input v-model:value="searchKeyword" style="width: 260px;height: 32px;" placeholder="请输入你需要搜索的内容" @input="inputHandler">
<n-input
v-model:value="searchKeyword"
style="width: 260px; height: 32px"
placeholder="请输入你需要搜索的内容"
@input="inputHandler"
>
<template #suffix>
<SvgIcon size="14px" name="magnifying-1" @click="searchName" style="cursor: pointer;" />
<SvgIcon
size="14px"
name="magnifying-1"
style="cursor: pointer"
@click="searchName"
/>
</template>
</n-input>
</template>
@ -87,7 +126,12 @@ const close = () => {
</div> -->
</n-popover>
<SvgIcon size="16px" style="margin-left: 6px;cursor: pointer;" name="clear" @click="close" />
<SvgIcon
size="16px"
style="margin-left: 6px; cursor: pointer"
name="clear"
@click="close"
/>
</div>
</template>

@ -106,7 +106,7 @@ const handleDrop = async (e) => {
<div v-show="figureHovered" class="wrapper-figure-tools">
<SvgIcon size="28" name="view" @click="previewHandler" />
<div class="wrapper-figure-line" />
<SvgIcon size="28" name="delete" @click="clearHandler" />
<SvgIcon size="28" name="white_delete" @click="clearHandler" />
</div>
</div>
</n-upload-dragger>

@ -66,7 +66,7 @@ function onChange(value: Array<string>) {
<template>
<n-form :model="formValue" style="padding: 0px 10px;" :rules="rules">
<n-form-item :label="label" path="plans" :label-style="labStyle">
<n-select filterable
<n-select filterable clearable
v-model:value="formValue.plans" :max-tag-count="2" placeholder="请选择审核状态" multiple
:options="options" @update:value="onChange"
/>

@ -74,7 +74,7 @@ function onChange(value: Array<string>) {
<template>
<n-form :model="formValue" style="padding: 0px 10px;" :rules="rules">
<n-form-item :label="label" path="plans" :label-style="labStyle">
<n-select filterable
<n-select filterable clearable
v-model:value="formValue.plans" :max-tag-count="2" placeholder="请选择拜访客户级别" multiple
:options="options" @update:value="onChange"
/>

@ -71,7 +71,7 @@ function onChange(value: Array<string>) {
<template>
<n-form :model="formValue" style="padding: 0px 10px;" :rules="rules">
<n-form-item :label="label" path="plans" :label-style="labStyle">
<n-select filterable
<n-select filterable clearable
v-model:value="formValue.plans" :max-tag-count="2" placeholder="请选择拜访客户名称" multiple
:options="options" @update:value="onChange"
/>

@ -70,7 +70,7 @@ function onChange(value: Array<string>) {
<template>
<n-form :model="formValue" style="padding: 0px 10px;" :rules="rules">
<n-form-item :label="label" path="plans" :label-style="labStyle">
<n-select filterable
<n-select filterable clearable
v-model:value="formValue.plans" :max-tag-count="2" placeholder="请选择拜访客户类型" multiple
:options="options" @update:value="onChange"
/>

@ -70,7 +70,7 @@ function onChange(value: Array<string>) {
<template>
<n-form :model="formValue" style="padding: 0px 10px;" :rules="rules">
<n-form-item :label="label" path="plans" :label-style="labStyle">
<n-select filterable
<n-select filterable clearable
v-model:value="formValue.plans" :max-tag-count="2" placeholder="请选择产品名称" multiple
:options="options" @update:value="onChange"
/>

@ -3,6 +3,7 @@ import { onBeforeMount, onMounted, ref } from 'vue'
import type { FormItemRule, FormRules } from 'naive-ui'
import { useDictionary } from '@/store/modules/dictonary'
import { useConfig } from '@/store/modules/asideConfig'
import { useFinal } from '@/store/modules/final'
const configUseStore = useConfig()
@ -24,6 +25,27 @@ configUseStore.$subscribe(() => {
formValue.value.plans = [];
}
});
const finalStore = useFinal()
finalStore.$subscribe(() => {
if(isLoadValue.value) {
isLoadValue.value = false;
return
}
let asideValue = finalStore.getAsideValue;
if(asideValue && asideValue['izproject']) {
if(typeof asideValue['izproject'] == "string") {
let list = asideValue['izproject'].split(',');
formValue.value.plans = list;
}else {
formValue.value.plans = asideValue['izproject'];
}
console.log("formValue.value.izproject", formValue.value.plans);
}else {
formValue.value.plans = [];
}
});
const props = defineProps<{
value: string[] | null
label: string
@ -71,7 +93,7 @@ function onChange(value: Array<string>) {
<template>
<n-form :model="formValue" style="padding: 0px 10px;" :rules="rules">
<n-form-item :label="label" path="plans" :label-style="labStyle">
<n-select filterable
<n-select filterable clearable
v-model:value="formValue.plans" :max-tag-count="2" placeholder="请选择所属项目" multiple
:options="options" @update:value="onChange"
/>

@ -0,0 +1,46 @@
<script lang="ts" setup>
import { ref } from 'vue'
import { useConfig } from '@/store/modules/asideConfig'
const props = defineProps({
value: {
type: Boolean,
default: false,
},
label: {
type: String,
default: '',
},
})
const emit = defineEmits<{
(e: 'update:value', value: boolean): void
}>()
const configStore = useConfig()
const download = ref(props.value)
function onChange(value: boolean) {
emit('update:value', value)
}
</script>
<template>
<div class="download">
<span class="download-title">{{ label }}</span>
<n-switch v-model:value="download" @update:value="onChange" />
</div>
</template>
<style lang="less" scoped>
.download {
display: flex;
padding: 10px;
justify-content: space-between;
&-title {
font-weight: bold;
}
}
</style>

@ -3,6 +3,7 @@ import { onBeforeMount, onMounted, ref } from 'vue'
import type { FormRules } from 'naive-ui'
import { useDictionary } from '@/store/modules/dictonary'
import { useConfig } from '@/store/modules/asideConfig'
import { useFinal } from '@/store/modules/final'
const configUseStore = useConfig()
@ -24,6 +25,27 @@ configUseStore.$subscribe(() => {
formValue.value.plans = [];
}
});
const finalStore = useFinal()
finalStore.$subscribe(() => {
if(isLoadValue.value) {
isLoadValue.value = false;
return
}
let asideValue = finalStore.getAsideValue;
if(asideValue && asideValue['izstatus']) {
if(typeof asideValue['izstatus'] == "string") {
let list = asideValue['izstatus'].split(',');
formValue.value.plans = list;
}else {
formValue.value.plans = asideValue['izstatus'];
}
console.log("formValue.value.izstatus", formValue.value.plans);
}else {
formValue.value.plans = [];
}
});
const props = defineProps<{
value: string[] | null
label: string
@ -70,7 +92,7 @@ function onChange(value: Array<string>) {
<template>
<n-form :model="formValue" style="padding: 0px 10px;" :rules="rules">
<n-form-item :label="label" path="plans" :label-style="labStyle">
<n-select filterable
<n-select filterable clearable
v-model:value="formValue.plans" :max-tag-count="2" placeholder="请选择审核状态" multiple
:options="options" @update:value="onChange"
/>

@ -70,7 +70,7 @@ function onChange(value: Array<string>) {
<template>
<n-form :model="formValue" style="padding: 0px 10px;" :rules="rules">
<n-form-item :label="label" path="plans" :label-style="labStyle">
<n-select filterable
<n-select filterable clearable
v-model:value="formValue.plans" :max-tag-count="2" placeholder="请选择发布地区" multiple
:options="options" @update:value="onChange"
/>

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save