Compare commits

..

No commits in common. "3a3147cbf3d37a865baccdc06f2fc1a359f70035" and "18692c21578271db9a2436cdb657e2d12b77beb5" have entirely different histories.

View File

@ -395,9 +395,9 @@ const handleAdd = () => {
case "people":
model.title = "新增人员";
model.content = PersonAddDialog;
Object.assign(peopleForm, INIT_FORM_people);
peopleForm.value = { ...INIT_FORM_people };
model.props = {
form: peopleForm,
form: peopleForm.value,
};
model.onConfirm = handleAddPeopleConfirm;
model.onCancel = handleCancel;
@ -427,7 +427,7 @@ const handleAdd = () => {
model.title = "新增设备";
model.content = EquipmentAddDialog;
//
Object.assign(equipmentForm, INIT_FORM_equipment);
equipmentForm.value = { ...INIT_FORM_equipment };
model.props = {
form: equipmentForm,
basicData: props.basicData,
@ -485,10 +485,6 @@ const handleAddMaterialConfirm = async () => {
//
const handleAddEquipmentConfirm = async () => {
try {
const data = {
equipment: toRaw(equipmentForm),
};
console.log("data", data);
const res = await request({
url: "/snow-ops-platform/yjsb/add",
method: "post",