ลบ props มาใช้ get
This commit is contained in:
parent
a0da7e0c94
commit
61f0d4dd5f
2 changed files with 1 additions and 7 deletions
|
|
@ -17,10 +17,6 @@ const route = useRoute();
|
|||
const idParam = ref<string>(route.params.id as string);
|
||||
|
||||
const props = defineProps({
|
||||
dataCapacity: {
|
||||
type: Object as () => FormCapacityList,
|
||||
required: true,
|
||||
},
|
||||
getDataList: Function,
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -12,7 +12,6 @@ import type { FormCapacityList } from '@/modules/08_KPI/interface/request/index'
|
|||
const route = useRoute()
|
||||
const id = ref<string>(route.params.id as string);
|
||||
const idCapacity = ref<string|null>(null)
|
||||
const dataCapacity = ref<any>()
|
||||
|
||||
const $q = useQuasar()
|
||||
const mixin = useCounterMixin();
|
||||
|
|
@ -114,7 +113,6 @@ function getData(){
|
|||
|
||||
function onEdit(data:FormCapacityList){
|
||||
modal.value = true;
|
||||
dataCapacity.value = data
|
||||
idCapacity.value = data.id
|
||||
}
|
||||
|
||||
|
|
@ -216,7 +214,7 @@ onMounted(()=>{
|
|||
</q-card-section>
|
||||
</q-card>
|
||||
|
||||
<Dialog v-model:modal="modal" v-model:competency-type="type" v-model:id="idCapacity" :data-capacity="dataCapacity" :get-data-list="getData"/>
|
||||
<Dialog v-model:modal="modal" v-model:competency-type="type" v-model:id="idCapacity" :get-data-list="getData"/>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue