feat: 优化大屏
This commit is contained in:
@@ -111,7 +111,6 @@ const schema = [
|
||||
itemId: '',
|
||||
meterTypeId: '',
|
||||
});
|
||||
console.log(await formApi.getValues());
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -216,8 +215,6 @@ const [BasicModal, modalApi] = useVbenModal({
|
||||
isUpdate.value = !!id;
|
||||
if (isUpdate.value && id) {
|
||||
const record = await costMeterWaterInfo(id);
|
||||
console.log(1, record);
|
||||
|
||||
const costItemsRes = await costItemSettingList({
|
||||
pageSize: 1000000000,
|
||||
pageNum: 1,
|
||||
@@ -253,7 +250,6 @@ const [BasicModal, modalApi] = useVbenModal({
|
||||
},
|
||||
]);
|
||||
await formApi.setValues(record);
|
||||
console.log(2, await formApi.getValues());
|
||||
}
|
||||
await markInitialized();
|
||||
|
||||
@@ -270,8 +266,6 @@ async function handleConfirm() {
|
||||
}
|
||||
// getValues获取为一个readonly的对象 需要修改必须先深拷贝一次
|
||||
const data = cloneDeep(await formApi.getValues());
|
||||
console.log(data);
|
||||
|
||||
await (isUpdate.value
|
||||
? costMeterWaterUpdate(data)
|
||||
: costMeterWaterAdd(data));
|
||||
|
Reference in New Issue
Block a user