修改部分按钮显示

This commit is contained in:
zhangshun
2026-06-02 10:38:40 +08:00
parent bbed65e41e
commit e215f93ef2
2 changed files with 5 additions and 5 deletions

View File

@@ -35,8 +35,8 @@ export async function renderApp() {
<div class="content-actions">
${canManageUsers ? `<button id="manageUsersBtn" type="button">人员权限</button>` : ""}
${isAdmin ? `<button id="manageDictionariesBtn" type="button">字典维护</button>` : ""}
${isAdmin ? `<button id="addProcessModelBtn" type="button" hidden>上传工艺模型</button>` : ""}
${isAdmin ? `<button id="addModelBtn1" class="primary-btn" type="button" hidden>增加模型</button>` : ""}
${canManageUsers ? `<button id="addProcessModelBtn" type="button" hidden>上传工艺模型</button>` : ""}
${canManageUsers ? `<button id="addModelBtn1" class="primary-btn" type="button" hidden>增加模型</button>` : ""}
</div>
</div>
<div class="filter-toolbar">
@@ -56,8 +56,8 @@ export async function renderApp() {
<span>关键字</span>
<input id="keywordFilter" placeholder="模型名 / 文件名 / 属性" />
</label>
<button id="resetFilterBtn" type="button">重置</button>
<button id="addModelBtn" class="primary-btn" type="button">增加模型</button>
<button id="resetFilterBtn" type="button">筛选模型</button>
<button id="addModelBtn" class="primary-btn" type="button">导入模型</button>
</div>
<div id="modelGrid" class="model-grid"></div>
<footer id="modelPagination" class="pagination"></footer>

View File

@@ -485,7 +485,7 @@ async function openUploadModelDialog() {
const result = await formDialog<boolean>({
title: "增加模型",
width: 560,
height: 520,
height: 430,
blockPage: false,
body: `
<form id="modelUploadPopupForm" class="popup-form upload-popup-form">