themblem/web/src/views/verification-model.vue
Fam Zheng 2c74d59d37 Add admin configuration for verification model per batch
- Add verification_model field to CodeBatch model (TextField)
- Add verification_model field to ScanData model to track model used
- Update QrVerifyView to pass model parameter to v5 QR verify endpoint
- Create VerificationModel table to track available models
- Add VerificationModelResource API endpoint (admin only)
- Add verification-model Vue component with GenericManager
- Add verification-model route and sidebar navigation entry
- Add migrations for all database changes
- Add analysis document for feature design
2025-11-25 22:32:02 +00:00

52 lines
851 B
Vue

<template>
<GenericManager
:uri="resource_uri"
object_name="验证模型"
no_details=1
show_search=1
:list_fields="['id', 'name', 'description', 'created_at', 'updated_at']"
:visible_fields="visible_fields"
:editable_fields="editable_fields"
ref="gm"
/>
</template>
<script>
export default {
name: 'VerificationModel',
props: [],
components: {
},
data: function () {
return {
resource_uri: "/api/v1/verification-model/",
};
},
computed: {
editable_fields: function() {
return [
'name',
'description',
];
},
visible_fields: function() {
return [
'id',
'name',
'description',
'created_at',
'updated_at',
];
},
},
methods: {
},
mounted() {
},
}
</script>
<style scoped>
</style>