ออกคำสั่ง
This commit is contained in:
parent
73c41d9b01
commit
671c7103ab
7 changed files with 86 additions and 61 deletions
|
|
@ -102,19 +102,19 @@ async function fetchDataCommandList() {
|
|||
*
|
||||
* เช็คการเปลี่ยนแปลงของข้อมูล ถ้าการเปลี่ยนแปลงของข้อมูลจะบันทึกข้อมูล
|
||||
*/
|
||||
watch(tabs, (newValue, oldValue) => {
|
||||
//เช็คการเปลี่ยนแปลงของข้อมูล
|
||||
if (isChangeData.value) {
|
||||
const refMap: { [key: string]: any } = {
|
||||
Detail: childDetailRef,
|
||||
ListPersons: childListPersonsRef,
|
||||
ReceivedCopy: childReceivedCopyRef,
|
||||
Attached: childAttachedRef,
|
||||
};
|
||||
// watch(tabs, (newValue, oldValue) => {
|
||||
// //เช็คการเปลี่ยนแปลงของข้อมูล
|
||||
// if (isChangeData.value) {
|
||||
// const refMap: { [key: string]: any } = {
|
||||
// Detail: childDetailRef,
|
||||
// ListPersons: childListPersonsRef,
|
||||
// ReceivedCopy: childReceivedCopyRef,
|
||||
// Attached: childAttachedRef,
|
||||
// };
|
||||
|
||||
refMap[oldValue]?.value?.onSubmit();
|
||||
}
|
||||
});
|
||||
// refMap[oldValue]?.value?.onSubmit();
|
||||
// }
|
||||
// });
|
||||
|
||||
/**
|
||||
* ทำงานเมื่อ Components ถูกเรียกใช้งาน
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue