Skip to content

Commit

Permalink
2.4.4 workflow 搜索
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaobaidadada committed Feb 3, 2025
1 parent 84cd34a commit e5a85e6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "filecat",
"version": "2.4.3",
"version": "2.4.4",
"description": "filecat 文件管理器",
"author": "xiaobaidadada",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/main/domain/data/basedata/base_data_util.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export class Base_data_util {
let start = buffer.readUInt32LE(0);
const meta = this.get_meata(start,data_fd);
if(judge_handle(num,meta)) {
r.push({meta: meta, data: this.get_data(start,data_fd)})
r.push({meta: meta, data: this.get_data(start,data_fd),index:num})
}
position+=4;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export function WorkFlow(props) {
v.index = value.index;
return v}))
set_total(pojo.total);
set_max_page_num(parseInt((pojo.total / page_size).toFixed(0)))
set_max_page_num(parseInt(((pojo.total / page_size)+1).toFixed(0)))
}

const search_run_name = async (search_name)=>{
Expand All @@ -76,14 +76,13 @@ export function WorkFlow(props) {
const data:WsData<WorkflowGetRsq> = await ws.sendData(CmdType.workflow_search_by_run_name,req);
if(!data)return;
const pojo = data.context as WorkflowGetRsq;
// console.log(pojo.list)
set_task_rows(pojo.list.map(value => {
// @ts-ignore
const v = typeof value.meta === "string"?JSON.parse(value.meta):value.meta;
v.index = value.index;
return v}))
set_total(pojo.total);
set_max_page_num(parseInt((pojo.total / page_size).toFixed(0)))
set_max_page_num(parseInt(((pojo.total / page_size)+1).toFixed(0)))
set_page_num(0)
set_search_name_status(false);
}
Expand Down

0 comments on commit e5a85e6

Please sign in to comment.