add harcode dialog
This commit is contained in:
@@ -56,37 +56,42 @@
|
||||
<p
|
||||
:class="['font-weight-medium rounded-lg pointer', item.details_order[0].status === 'Y' ? 'bg-success' : 'bg-grey-lighten-2']"
|
||||
style=" width: 80%; height: 60%; align-content: center;"
|
||||
@click="dialog=true"
|
||||
@click="openMultiDialog(true, 'order')"
|
||||
>{{ item.details_order[0].group_name }}</p>
|
||||
</td>
|
||||
<td align="center" class="pa-2">
|
||||
<p
|
||||
:class="['font-weight-medium rounded-lg pointer', item.details_sampling[0].status === 'Y' ? 'bg-success' : 'bg-grey-lighten-2']"
|
||||
style=" width: 80%; height: 60%; align-content: center;"
|
||||
@click="openMultiDialog(true, 'sample')"
|
||||
>{{ item.details_sampling[0].group_name }}</p>
|
||||
</td>
|
||||
<td align="center" class="pa-2">
|
||||
<p
|
||||
:class="['font-weight-medium rounded-lg pointer', item.details_process[0].status === 'Y' ? 'bg-success' : 'bg-grey-lighten-2']"
|
||||
style=" width: 80%; height: 60%; align-content: center;"
|
||||
@click="openMultiDialog(true, 'process')"
|
||||
>{{ item.details_process[0].group_name }}</p>
|
||||
</td>
|
||||
<td align="center" class="pa-2">
|
||||
<p
|
||||
:class="['font-weight-medium rounded-lg pointer', item.details_result_verification[0].status === 'Y' ? 'bg-success' : 'bg-grey-lighten-2']"
|
||||
style=" width: 80%; height: 60%; align-content: center;"
|
||||
@click="openMultiDialog(true, 'verif')"
|
||||
>{{ item.details_result_verification[0].group_name }}</p>
|
||||
</td>
|
||||
<td align="center" class="pa-2">
|
||||
<p
|
||||
:class="['font-weight-medium rounded-lg pointer', item.details_result_validation[0].status === 'Y' ? 'bg-success' : 'bg-grey-lighten-2']"
|
||||
style=" width: 80%; height: 60%; align-content: center;"
|
||||
@click="openMultiDialog(true, 'valid')"
|
||||
>{{ item.details_result_validation[0].group_name }}</p>
|
||||
</td>
|
||||
<td align="center" class="pa-2">
|
||||
<p
|
||||
:class="['font-weight-medium rounded-lg pointer', item.details_print[0].status === 'Y' ? 'bg-success' : 'bg-grey-lighten-2']"
|
||||
style=" width: 80%; height: 60%; align-content: center;"
|
||||
@click="print_dialog=true"
|
||||
>{{ item.details_print[0].group_name }}</p>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -94,15 +99,18 @@
|
||||
</v-data-table>
|
||||
<v-pagination :length="total_page"></v-pagination>
|
||||
<sp-dialog></sp-dialog>
|
||||
<print-dialog></print-dialog>
|
||||
</v-container>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import PrintDialog from './print-dialog.vue';
|
||||
import Sp_dialog from './sp_dialog.vue';
|
||||
export default {
|
||||
name: "contentcomp",
|
||||
components: {
|
||||
"sp-dialog": Sp_dialog
|
||||
"sp-dialog": Sp_dialog,
|
||||
"print-dialog": PrintDialog,
|
||||
},
|
||||
mounted() {},
|
||||
data() {
|
||||
@@ -203,6 +211,28 @@
|
||||
set(bool) {
|
||||
this.$store.commit("setDialog", bool);
|
||||
}
|
||||
},
|
||||
multi_dialog: {
|
||||
get() {
|
||||
return this.$store.state.stored.multi_dialog;
|
||||
},
|
||||
set(bool, nama) {
|
||||
this.$store.commit("setMultiDialog", bool, nama)
|
||||
}
|
||||
},
|
||||
print_dialog: {
|
||||
get() {
|
||||
return this.$store.state.stored.print_dialog;
|
||||
},
|
||||
set(bool) {
|
||||
this.$store.commit("setPrintDialog", bool);
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
openMultiDialog(bool, nama) {
|
||||
this.multi_dialog.open = bool;
|
||||
this.multi_dialog.name = nama;
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user