fix : style

This commit is contained in:
zeinab.ashrafi
2025-04-10 14:13:49 +03:30
parent fc029045bc
commit 47d81a2aa6
4 changed files with 70 additions and 77 deletions
+29 -31
View File
@@ -2,7 +2,7 @@
<v-form ref="form">
<v-container grid-list-xs>
<material-card color="black" title="Submit Test Result">
<v-layout wrap class="px-5 my-3" v-if="!$route.params.testResult">
<v-layout wrap class="px-3 my-3" v-if="!$route.params.testResult">
<v-flex xs12 sm6 md4 lg3 xl2 class="WM-FlexCenter">
<v-icon class="fa fa-align-left mr-2 WM-Margin-B-8"/>
<v-autocomplete
@@ -25,7 +25,7 @@
/>
</v-flex>
<v-spacer/>
<v-flex xs12 sm4 md4 lg3 xl2 class="text-xs-center text-sm-center text-md-center">
<v-flex xs12 sm4 md4 lg4 xl3 class="text-center text-md-right">
<v-btn class="WM-NoShadow WM-Outline-Btn WM-Border WM-Border-Black"
@click="selectTestType"
style="padding:10px 60px;">
@@ -34,10 +34,10 @@
</v-btn>
</v-flex>
</v-layout>
<v-layout row wrap class="px-5 my-3" v-if="!$route.params.testResult && form.length">
<v-layout row wrap class="px-3 my-3" v-if="!$route.params.testResult && form.length">
<v-divider/>
</v-layout>
<v-layout wrap class="px-5 my-3" v-if="form.length">
<v-layout wrap class="px-3 my-3" v-if="form.length">
<v-flex xs12 sm12 md12>
<h3 class="WM-BorderLeftTitle">{{ testTypeNameSelected }}</h3>
</v-flex>
@@ -89,9 +89,9 @@
<!--______________________ DynamicComponent :: Began _______________________-->
<v-layout wrap class="px-5 my-3">
<v-layout wrap class="px-3 my-3 align-center">
<v-flex :class="['pa-2', item.size]" v-for="(item, key) in form" :key="key">
<v-container row md-12 sm-12 xs-12 v-if="item.type == 'Temperature'">
<v-container row md-12 sm-12 xs-12 class="pa-0" v-if="item.type == 'Temperature'">
<v-layout row wrap>
<h3 class="WM-BorderLeftTitle">{{ item.name }}</h3>
</v-layout>
@@ -110,7 +110,7 @@
</v-container>
</v-layout>
</v-container>
<v-container row md-12 sm-12 xs-12 v-if="item.type == 'Text'">
<v-container row md-12 sm-12 xs-12 class="pa-0" v-if="item.type == 'Text'">
<v-layout row wrap>
<h3 class="WM-BorderLeftTitle">{{ item.name }}</h3>
</v-layout>
@@ -125,7 +125,7 @@
</v-container>
</v-layout>
</v-container>
<v-container row md-12 sm-12 xs-12 v-if="item.type == 'Pressure'">
<v-container row md-12 sm-12 xs-12 class="pa-0" v-if="item.type == 'Pressure'">
<v-layout row wrap>
<h3 class="WM-BorderLeftTitle">{{ item.name }}</h3>
</v-layout>
@@ -144,7 +144,7 @@
</v-container>
</v-layout>
</v-container>
<v-container row md-12 sm-12 xs-12 v-if="item.type == 'Select'">
<v-container row md-12 sm-12 xs-12 class="pa-0" v-if="item.type == 'Select'">
<v-layout row wrap>
<h3 class="WM-BorderLeftTitle">{{ item.name }}</h3>
</v-layout>
@@ -165,7 +165,7 @@
</v-container>
</v-layout>
</v-container>
<v-container row md-12 sm-12 xs-12 v-if="item.type == 'Checkbox'">
<v-container row md-12 sm-12 xs-12 class="pa-0" v-if="item.type == 'Checkbox'">
<v-layout row wrap>
<h3 class="WM-BorderLeftTitle">{{ item.name }}</h3>
</v-layout>
@@ -183,7 +183,7 @@
</v-container>
</v-layout>
</v-container>
<v-container row md-12 sm-12 xs-12 v-if="item.type == 'Radiobutton'">
<v-container row md-12 sm-12 xs-12 class="pa-0" v-if="item.type == 'Radiobutton'">
<v-layout row wrap>
<h3 class="WM-BorderLeftTitle">{{ item.name }}</h3>
</v-layout>
@@ -202,7 +202,7 @@
</v-container>
</v-layout>
</v-container>
<v-container row md-12 sm-12 xs-12 v-if="item.type == 'Switch'">
<v-container row md-12 sm-12 xs-12 class="pa-0" v-if="item.type == 'Switch'">
<v-layout row wrap>
<h3 class="WM-BorderLeftTitle">{{ item.name }}</h3>
</v-layout>
@@ -218,7 +218,7 @@
</v-container>
</v-layout>
</v-container>
<v-container row md-12 sm-12 xs-12 v-if="item.type == 'Range'">
<v-container row md-12 sm-12 xs-12 class="pa-0" v-if="item.type == 'Range'">
<v-layout row wrap>
<h3 class="WM-BorderLeftTitle">{{ item.name }}</h3>
</v-layout>
@@ -237,7 +237,7 @@
</v-container>
</v-layout>
</v-container>
<v-container row md-12 sm-12 xs-12 v-if="item.type == 'Time'">
<v-container row md-12 sm-12 xs-12 class="pa-0" v-if="item.type == 'Time'">
<v-layout row wrap>
<h3 class="WM-BorderLeftTitle">{{ item.name }}</h3>
</v-layout>
@@ -269,7 +269,7 @@
:class="['pa-2', children.size]"
v-for="(children, keyChildren) in item.children"
:key="keyChildren">
<v-container fluid v-if="children.type == 'Text'" class="WM-Padding-LR-0">
<v-container fluid v-if="children.type == 'Text'" class="pa-0">
<p>{{ children.name }}</p>
<v-flex xs12>
<v-text-field
@@ -280,7 +280,7 @@
/>
</v-flex>
</v-container>
<v-container fluid v-if="children.type == 'Temperature'" class="WM-Padding-LR-0">
<v-container fluid v-if="children.type == 'Temperature'" class="pa-0">
<p>{{ children.name }}</p>
<v-flex xs12>
<v-slider
@@ -293,7 +293,7 @@
/>
</v-flex>
</v-container>
<v-container fluid v-if="children.type == 'Pressure'" class="WM-Padding-LR-0">
<v-container fluid v-if="children.type == 'Pressure'" class="pa-0">
<p>{{ children.name }}</p>
<v-flex xs12>
<v-slider
@@ -306,7 +306,7 @@
/>
</v-flex>
</v-container>
<v-container fluid v-if="children.type == 'Select'" class="WM-Padding-LR-0">
<v-container fluid v-if="children.type == 'Select'" class="pa-0">
<p>{{ children.name }}</p>
<v-flex xs12>
<v-select
@@ -321,7 +321,7 @@
/>
</v-flex>
</v-container>
<v-container fluid v-if="children.type == 'Checkbox'" class="WM-Padding-LR-0">
<v-container fluid v-if="children.type == 'Checkbox'" class="pa-0">
<p>{{ children.name }}</p>
<v-flex xs12 class="WM-FlexWrap mr-3">
<v-checkbox
@@ -333,7 +333,7 @@
/>
</v-flex>
</v-container>
<v-container fluid v-if="children.type == 'Radiobutton'" class="WM-Padding-LR-0">
<v-container fluid v-if="children.type == 'Radiobutton'" class="pa-0">
<p>{{ children.name }}</p>
<v-flex xs12 class="WM-FlexWrap">
<v-radio-group v-model="formData[children.name+'_'+children.id]">
@@ -346,7 +346,7 @@
</v-radio-group>
</v-flex>
</v-container>
<v-container fluid v-if="children.type == 'Switch'" class="WM-Padding-LR-0">
<v-container fluid v-if="children.type == 'Switch'" class="pa-0">
<p>{{ children.name }}</p>
<v-flex xs12>
<v-switch
@@ -356,7 +356,7 @@
/>
</v-flex>
</v-container>
<v-container fluid v-if="children.type == 'Range'" class="WM-Padding-LR-0">
<v-container fluid v-if="children.type == 'Range'" class="pa-0">
<p>{{ item.name }}</p>
<v-flex xs12>
<v-slider
@@ -368,7 +368,7 @@
/>
</v-flex>
</v-container>
<v-container fluid v-if="children.type == 'Time'" class="WM-Padding-LR-0">
<v-container fluid v-if="children.type == 'Time'" class="pa-0">
<p>{{ children.name }}</p>
<v-flex xs12>
<v-text-field
@@ -387,24 +387,21 @@
</v-layout> -->
</v-flex>
</v-layout>
<v-layout row wrap class="px-5 my-3">
<v-layout row wrap class="px-3 my-3">
<v-divider/>
</v-layout>
<v-layout align-center justify-center wrap class="px-5 mt-2">
<v-flex class xs12 sm4 md3>
<v-layout align-center justify-center wrap class="px-3 mt-2">
<router-link :to="{name: 'AllResultTest'}">
<v-btn class="WM-NoShadow WM-Outline-Btn WM-Border WM-Border-Black ml-5">
<v-btn class="WM-NoShadow WM-Outline-Btn WM-Border WM-Border-Black">
<v-icon class="black--text mr-2 caption">fas fa-chevron-left</v-icon>
<span class="black--text">Back</span>
</v-btn>
</router-link>
</v-flex>
<v-flex class xs12 sm4 md3>
<v-spacer/>
<v-btn class="WM-CyanBlueGradient-BG" style="padding:10px 60px" @click="submitForm">
<v-icon class="white--text mr-2 caption">fas fa-check</v-icon>
<span class="white--text">SAVE</span>
</v-btn>
</v-flex>
</v-layout>
</material-card>
</v-container>
@@ -502,7 +499,8 @@ export default {
}
} else if (result.data.data.inputs[key].type == "Checkbox" || result.data.data.inputs[key].type == "Select") {
this.formData[result.data.data.inputs[key].name + "_" + result.data.data.inputs[key].id] = [];
} else {this.formData[result.data.data.inputs[key].name + "_" + result.data.data.inputs[key].id] = "";
} else {
this.formData[result.data.data.inputs[key].name + "_" + result.data.data.inputs[key].id] = "";
}
}
}