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 } }) });