longz
2026-06-29 9d4cbff7464ebfd7803c2ce53ded49d0f73fe011
frontend-admin/src/views/RegionLocalUnitsView.vue
@@ -183,6 +183,7 @@
import { computed, nextTick, onMounted, reactive, ref } from "vue";
import { ElMessage, ElMessageBox } from "element-plus";
import http from "../api/http";
import { normalizeFormData } from "../utils/formHelper";
type UnitRow = {
  id: number;
@@ -380,7 +381,7 @@
  const t = form.approverType;
  const base: Record<string, unknown> = {
    unitName: form.unitName.trim(),
    remark: form.remark?.trim() || undefined,
    remark: form.remark?.trim() || "",
    approverType: t,
  };
  if (t === 1) {
@@ -421,7 +422,7 @@
  if (!validateForm()) return;
  saving.value = true;
  try {
    const body = buildSubmitBody();
    const body = normalizeFormData(buildSubmitBody());
    if (!editing.value) {
      await http.post("/sys/local-units", body);
      ElMessage.success("已创建");