แก้ไข noteส่งไม่ไป,แสดงผลคอลัมน์
This commit is contained in:
parent
c8a9e61625
commit
64573c492f
3 changed files with 7 additions and 9 deletions
|
|
@ -181,7 +181,6 @@ async function fetchData(id: string) {
|
|||
}
|
||||
onMounted(async () => {
|
||||
fetchData(id.value);
|
||||
console.log(id.value);
|
||||
});
|
||||
|
||||
async function onSubmit() {
|
||||
|
|
@ -207,7 +206,7 @@ async function addData() {
|
|||
name: name.value,
|
||||
isActive: isActive.value,
|
||||
shortName: shortName.value,
|
||||
note: note.value == "" ? "-" : "",
|
||||
note: note.value == "" ? "-" : note.value,
|
||||
insigniaTypeId: id.value,
|
||||
});
|
||||
fetchData(id.value);
|
||||
|
|
@ -218,7 +217,7 @@ async function editData(idData: string) {
|
|||
name: name.value,
|
||||
isActive: isActive.value,
|
||||
shortName: shortName.value,
|
||||
note: note.value == "" ? "-" : "",
|
||||
note: note.value == "" ? "-" : note.value,
|
||||
insigniaTypeId: id.value,
|
||||
});
|
||||
fetchData(id.value);
|
||||
|
|
@ -232,10 +231,6 @@ async function deleteData(idData: string) {
|
|||
import { defineEmits } from "vue";
|
||||
|
||||
const emit = defineEmits(["nameType"]);
|
||||
|
||||
const nameType = () => {
|
||||
emit("nameType", insigniaTypeId.value);
|
||||
};
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue