mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-13 16:51:07 +03:30
77 lines
3.1 KiB
Vue
77 lines
3.1 KiB
Vue
<template>
|
|
<div>
|
|
<v-container fluid>
|
|
<material-card class color="black" title="Show Test Resualt" text>
|
|
<v-layout align-center wrap class="my-3">
|
|
<v-flex xs12 md12 sm12>
|
|
<div>Auto Clave Id : {{ data.autoclave_id }}</div>
|
|
</v-flex>
|
|
<v-flex xs12 md12 sm12>
|
|
<div>Result : {{ data.result }}</div>
|
|
</v-flex>
|
|
<v-flex xs12 md12 sm12>
|
|
<div>verify : {{ data.verified }}</div>
|
|
</v-flex>
|
|
<v-flex xs12 md12 sm12>
|
|
<div>Register User : {{ data.user.name }}</div>
|
|
</v-flex>
|
|
<template v-if="data.inputs">
|
|
<v-flex xs12 md12 sm12 v-for="(inputData, keyInputs) in data.inputs" :key="keyInputs">
|
|
<div>{{keyInputs}} : {{inputData}}</div>
|
|
</v-flex>
|
|
</template>
|
|
<template v-if="data.options">
|
|
<v-flex xs12 md12 sm12 v-for="(optionData, keyOptions) in data.options" :key="keyOptions">
|
|
<div>{{keyOptions}} : <span v-for="(data, dataKey) in optionData" :key="dataKey">{{data}}, </span></div>
|
|
</v-flex>
|
|
</template>
|
|
<template v-if="data.children">
|
|
<v-flex xs12 md12 sm12 v-for="(formData, keyForm) in data.children" :key="keyForm">
|
|
<h1>{{keyForm}}</h1>
|
|
<div v-for="(childData, keyChild) in formData" :key="keyChild">
|
|
<div>{{keyChild}} :
|
|
<template v-if="Array.isArray(childData)"><span v-for="(data, dataKey) in childData" :key="dataKey">{{data}}, </span> </template>
|
|
<template v-else > <span>{{childData}}</span> </template>
|
|
</div>
|
|
</div>
|
|
</v-flex>
|
|
</template>
|
|
</v-layout>
|
|
<v-divider></v-divider>
|
|
<v-layout align-center wrap class="my-3">
|
|
<v-flex md12>
|
|
</v-flex>
|
|
</v-layout>
|
|
</material-card>
|
|
</v-container>
|
|
</div>
|
|
</template>
|
|
<script>
|
|
import { mapGetters, mapMutations } from "vuex";
|
|
// import { ApiService } from "@/services";
|
|
// import { urls } from "@/config/urls";
|
|
export default {
|
|
data: () => ({
|
|
data: {},
|
|
}),
|
|
methods: {
|
|
// ...mapMutations("modal", ["closeModal", "setResultModal"]),
|
|
// async changeRole() {
|
|
// const result = await ApiService.post(
|
|
// urls.changeRoleUser(this.getModalProperties.user.id),
|
|
// this.data
|
|
// );
|
|
// if (result && result.status == 200) {
|
|
// this.setResultModal(result.data.data);
|
|
// this.closeModal();
|
|
// }
|
|
// }
|
|
},
|
|
created(){
|
|
this.data = this.getModalProperties.result.data.data;
|
|
},
|
|
computed: {
|
|
...mapGetters("modal", ["getModalProperties"]),
|
|
}
|
|
};
|
|
</script> |