87 lines
2.3 KiB
Vue
87 lines
2.3 KiB
Vue
<template>
|
|
<div
|
|
id="home"
|
|
>
|
|
<div class="demo">
|
|
<div class="container" v-if="!showSketch">
|
|
<h5 >{{ $t("ID_CUSTOM_CASES_LISTS") }}</h5>
|
|
<div class="x_content">
|
|
<b-container fluid>
|
|
<b-tabs content-class="mt-3">
|
|
<b-tab :title="$t('TO_DO')" active>
|
|
<Tables module="inbox"
|
|
@showSketch="onShowSketch"
|
|
@closeSketch="onCloseSketch"
|
|
/>
|
|
</b-tab>
|
|
<b-tab :title="$t('ID_DRAFT')" lazy>
|
|
<Tables module="draft"/>
|
|
</b-tab>
|
|
<b-tab :title="$t('ID_UNASSIGNED')" lazy>
|
|
<Tables module="unassigned"/>
|
|
</b-tab>
|
|
<b-tab :title="$t('ID_PAUSED')" lazy>
|
|
<Tables module="paused"/>
|
|
</b-tab>
|
|
</b-tabs>
|
|
</b-container>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="container" v-if="showSketch">
|
|
<CaseListSketch
|
|
@showSketch="onShowSketch"
|
|
@closeSketch="onCloseSketch"
|
|
:params="params"
|
|
/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
<script>
|
|
import Tables from "./Tables";
|
|
import CaseListSketch from "./CaseListSketch"
|
|
export default {
|
|
name: "CustomCaseList",
|
|
components: {
|
|
Tables,
|
|
CaseListSketch
|
|
},
|
|
data() {
|
|
return {
|
|
showSketch: false,
|
|
params: {}
|
|
};
|
|
},
|
|
mounted() {
|
|
|
|
},
|
|
methods: {
|
|
onShowSketch (params) {
|
|
this.showSketch = true;
|
|
this.params = params;
|
|
},
|
|
onCloseSketch (params) {
|
|
this.showSketch = false;
|
|
}
|
|
}
|
|
};
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
#home {
|
|
padding-left: 0px;
|
|
transition: 0.3s;
|
|
}
|
|
#home.collapsed {
|
|
padding-left: 50px;
|
|
}
|
|
#home.onmobile {
|
|
padding-left: 50px;
|
|
}
|
|
|
|
.container {
|
|
max-width: 1500px;
|
|
}
|
|
</style>
|