diff --git a/static/app.js b/static/app.js index 37a6c51..8894db9 100644 --- a/static/app.js +++ b/static/app.js @@ -184,12 +184,22 @@ function renderProjects() { `` ]); document.querySelector("#projects").innerHTML = `
- ${card(formHtml([ - { label: "项目名称", input: `` }, - { label: "当前阶段", input: `` }, - { label: "项目金额", input: `` }, - { label: "负责人", input: `` }, - ], { handler: "createOperation", text: "新增项目" }), "p-4")} +
+
+ ${[["all","全部"],["项目准备","准备"],["项目执行","执行"],["项目验收","验收"],["验收完毕","完毕"]].map(([k,v]) => ``).join("")} +
+ +
+ ${renderTable(["项目", "项目说明", "当前阶段", "项目金额", "负责人", "进展"], rows, items.map((x) => ({ resource: "operations", id: x.id })))}
`; }