8/19 月报

This commit is contained in:
Zy
2026-08-19 08:48:36 +08:00
parent 0dfd541769
commit 144b9d9670
19 changed files with 455 additions and 235 deletions

View File

@@ -25,7 +25,6 @@
import { ref } from 'vue';
import PageHeader from '@/components/Pageheader/index.vue';
import { addItem, getItem, updateItem } from '@/api/system/InspectionItem';
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
const router = useRouter();
const route = useRoute();
@@ -59,12 +58,12 @@ const submitForm = () => {
formRef.value?.validate(async (valid: boolean) => {
if (valid) {
if (userid.value) {
updateItem(form.value).then((res) => {
updateItem(form.value).then(() => {
ElMessage.success('编辑成功');
cancelForm();
});
} else {
addItem(form.value).then((res) => {
addItem(form.value).then(() => {
ElMessage.success('添加成功');
cancelForm();
});