diff --git a/src/main/webapp/app/admin/menu/menu-edit.vue b/src/main/webapp/app/admin/menu/menu-edit.vue index e67f319..ab7f708 100644 --- a/src/main/webapp/app/admin/menu/menu-edit.vue +++ b/src/main/webapp/app/admin/menu/menu-edit.vue @@ -23,7 +23,7 @@ diff --git a/src/main/webapp/app/entities/company/company-edit.vue b/src/main/webapp/app/entities/company/company-edit.vue index cd4f0e5..4afbcd6 100644 --- a/src/main/webapp/app/entities/company/company-edit.vue +++ b/src/main/webapp/app/entities/company/company-edit.vue @@ -31,7 +31,7 @@ > diff --git a/src/main/webapp/app/entities/depart/depart-edit.vue b/src/main/webapp/app/entities/depart/depart-edit.vue index cd1a949..4e2025e 100644 --- a/src/main/webapp/app/entities/depart/depart-edit.vue +++ b/src/main/webapp/app/entities/depart/depart-edit.vue @@ -23,7 +23,7 @@ diff --git a/src/main/webapp/app/entities/dict/dict-edit.vue b/src/main/webapp/app/entities/dict/dict-edit.vue index 568ef59..e663653 100644 --- a/src/main/webapp/app/entities/dict/dict-edit.vue +++ b/src/main/webapp/app/entities/dict/dict-edit.vue @@ -23,7 +23,7 @@ diff --git a/src/main/webapp/app/entities/material/material-edit.component.ts b/src/main/webapp/app/entities/material/material-edit.component.ts index 096b44e..25dce78 100644 --- a/src/main/webapp/app/entities/material/material-edit.component.ts +++ b/src/main/webapp/app/entities/material/material-edit.component.ts @@ -3,7 +3,7 @@ import { useI18n } from 'vue-i18n'; import { useAlertService } from '@/shared/alert/alert.service'; import { useRoute, useRouter } from 'vue-router'; import axios from 'axios'; -import type { VxeFormInstance, VxeSelectInstance } from 'vxe-table'; +import type { VxeFormInstance } from 'vxe-table'; export default defineComponent({ name: 'MaterialUpdate', @@ -119,6 +119,16 @@ export default defineComponent({ router.go(-1); }; + const handleChange = (event: any) => { + const dataCy = event.$event.target.getAttribute('data-cy'); + console.log(`字段 ${dataCy} 触发,值为:`, event.value); + console.log(event); + }; + + const handleInput = (event: any) => { + console.log(event); + }; + const clearInput = (field: string) => { if (material.value[field]) { material.value[field] = null; @@ -161,6 +171,8 @@ export default defineComponent({ formRules, previousState, save, + handleChange, + handleInput, clearInput, statusDicts, matGroupDicts, diff --git a/src/main/webapp/app/entities/material/material-edit.vue b/src/main/webapp/app/entities/material/material-edit.vue index 68a2687..3106649 100644 --- a/src/main/webapp/app/entities/material/material-edit.vue +++ b/src/main/webapp/app/entities/material/material-edit.vue @@ -31,7 +31,7 @@ > @@ -65,7 +65,7 @@ :item-render="{}" >