2018-10-23 18:12:36 +05:30
|
|
|
<template>
|
2019-12-23 16:07:30 +05:30
|
|
|
<div class="flex overflow-hidden">
|
2021-11-24 14:38:13 +05:30
|
|
|
<Sidebar class="w-56 flex-shrink-0" @change-db-file="$emit('change-db-file')"/>
|
2019-10-13 17:33:01 +05:30
|
|
|
<div class="flex flex-1 overflow-y-hidden bg-white">
|
2019-12-05 00:11:29 +05:30
|
|
|
<keep-alive>
|
|
|
|
<router-view class="flex-1" :key="$route.path" />
|
2019-10-11 15:25:50 +05:30
|
|
|
</keep-alive>
|
2019-11-08 16:16:24 +05:30
|
|
|
<div class="flex" v-if="showQuickEdit">
|
2019-10-11 15:25:50 +05:30
|
|
|
<keep-alive>
|
2019-11-08 16:16:24 +05:30
|
|
|
<router-view
|
|
|
|
name="edit"
|
|
|
|
class="w-80 flex-1"
|
|
|
|
:key="$route.query.doctype + $route.query.name"
|
|
|
|
/>
|
2019-10-11 15:25:50 +05:30
|
|
|
</keep-alive>
|
|
|
|
</div>
|
2018-10-23 18:12:36 +05:30
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
|
|
import Sidebar from '../components/Sidebar';
|
|
|
|
export default {
|
|
|
|
name: 'Desk',
|
|
|
|
components: {
|
|
|
|
Sidebar
|
2019-11-08 16:16:24 +05:30
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
showQuickEdit() {
|
|
|
|
return (
|
|
|
|
this.$route.query.edit &&
|
|
|
|
this.$route.query.doctype &&
|
|
|
|
this.$route.query.name
|
|
|
|
);
|
|
|
|
}
|
2018-10-23 18:12:36 +05:30
|
|
|
}
|
2019-07-19 18:54:31 +05:30
|
|
|
};
|
2018-10-23 18:12:36 +05:30
|
|
|
</script>
|