From 91f689c3d488a5c9d621574bc2de623c6cb969cc Mon Sep 17 00:00:00 2001 From: zhangshun <453905631@qq.com> Date: Mon, 1 Jun 2026 18:02:10 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9A=90=E8=97=8F=E6=A8=A1=E5=9E=8B=E4=BB=B7?= =?UTF-8?q?=E6=A0=BC=E9=87=8D=E9=87=8F=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/pages/app/modules/models.ts | 26 +++++--------------------- 1 file changed, 5 insertions(+), 21 deletions(-) diff --git a/web/src/pages/app/modules/models.ts b/web/src/pages/app/modules/models.ts index 70becec..0d32d2e 100644 --- a/web/src/pages/app/modules/models.ts +++ b/web/src/pages/app/modules/models.ts @@ -308,8 +308,6 @@ function renderModelCard(item: ModelItem) {
品牌
${escapeHtml(item.brand_name ?? "")}
类型
${escapeHtml(item.type_name ?? "")}
型号
${escapeHtml(prop.model ?? "")}
-
价钱
${escapeHtml(prop.price ?? "")}
-
重量
${escapeHtml(prop.weight ?? "")}
`; @@ -508,8 +506,6 @@ async function openUploadModelDialog() { - - ${dictionaryDatalistHtml()} @@ -532,9 +528,7 @@ async function openUploadModelDialog() { typeName: String(form.get("typeName") ?? ""), operationTree: defaultOperationTree, properties: { - model: String(form.get("model") ?? ""), - price: String(form.get("price") ?? ""), - weight: String(form.get("weight") ?? "") + model: String(form.get("model") ?? "") } }); return true; @@ -572,8 +566,6 @@ export async function openProcessModelUploadDialog(input?: { - - ${dictionaryDatalistHtml()} @@ -593,9 +585,7 @@ export async function openProcessModelUploadDialog(input?: { typeName: String(form.get("typeName") ?? ""), operationTree: String(form.get("operationTree") ?? ""), properties: { - model: String(form.get("model") ?? ""), - price: String(form.get("price") ?? ""), - weight: String(form.get("weight") ?? "") + model: String(form.get("model") ?? "") } }); return true; @@ -750,7 +740,7 @@ async function editModel(id: number) { const card = document.querySelector(`button[data-id="${id}"]`)?.closest(".model-card"); const oldName = card?.querySelector("strong")?.textContent ?? ""; await loadDictionaries(); - const result = await formDialog<{ name: string; brandName: string; typeName: string; model: string; price: string; weight: string }>({ + const result = await formDialog<{ name: string; brandName: string; typeName: string; model: string }>({ title: "编辑模型", width: 520, height: 390, @@ -762,8 +752,6 @@ async function editModel(id: number) { - - ${dictionaryDatalistHtml()} @@ -778,9 +766,7 @@ async function editModel(id: number) { name, brandName: String(form.get("brandName") ?? ""), typeName: String(form.get("typeName") ?? ""), - model: String(form.get("model") ?? ""), - price: String(form.get("price") ?? ""), - weight: String(form.get("weight") ?? "") + model: String(form.get("model") ?? "") }; } }); @@ -792,9 +778,7 @@ async function editModel(id: number) { brandName: result.brandName, typeName: result.typeName, properties: { - model: result.model, - price: result.price, - weight: result.weight + model: result.model } }) });