|
@@ -1,16 +1,33 @@
|
|
|
<template>
|
|
|
-<normalLayout class="normal-card" @onRefresh="getSubmitEditAction">
|
|
|
- <div slot="content" class="container">
|
|
|
- <time-select @timeChange="timeChange" @clearSelect="clearSelect" v-if="tool.checkAuth($route.name,'read')"></time-select>
|
|
|
- <list :list="oneData" type="more" v-if="tool.checkAuth($route.name,'read')"></list>
|
|
|
- <!--分页-->
|
|
|
- <pagination :total="total" :pageSize="param.content.pageSize" :currentPage="param.content.pageNumber" @pageChange="pageChange">
|
|
|
- </pagination>
|
|
|
- </div>
|
|
|
-</normalLayout>
|
|
|
+<div>
|
|
|
+ <el-drawer
|
|
|
+ title="我是标题"
|
|
|
+ :visible.sync="drawer"
|
|
|
+ :with-header="false"
|
|
|
+ direction="rtl"
|
|
|
+ size="90%"
|
|
|
+ append-to-body
|
|
|
+ @close="closeDrawer">
|
|
|
+ <div>
|
|
|
+ <router-view/>
|
|
|
+ </div>
|
|
|
+ </el-drawer>
|
|
|
+ <normalLayout class="normal-card" @onRefresh="getSubmitEditAction">
|
|
|
+ <div slot="content" class="container">
|
|
|
+ <time-select @timeChange="timeChange" @clearSelect="clearSelect" v-if="tool.checkAuth($route.name,'read')"></time-select>
|
|
|
+ <list :list="oneData" type="more" v-if="tool.checkAuth($route.name,'read')"></list>
|
|
|
+ <!--分页-->
|
|
|
+ <pagination :total="total" :pageSize="param.content.pageSize" :currentPage="param.content.pageNumber" @pageChange="pageChange">
|
|
|
+ </pagination>
|
|
|
+ </div>
|
|
|
+ </normalLayout>
|
|
|
+</div>
|
|
|
+
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import {mapGetters} from 'vuex'
|
|
|
+
|
|
|
import Pagination from '@/components/pagination/Pagination'
|
|
|
import SelectPanl from '@/SManagement/submitedit_one/components/SelectPanl'
|
|
|
import TimeSelect from '@/SManagement/submitedit_one/components/TimeSelect'
|
|
@@ -35,6 +52,7 @@ export default {
|
|
|
},
|
|
|
oneData:[],
|
|
|
total: 0,
|
|
|
+ drawer:false
|
|
|
}
|
|
|
},
|
|
|
components: {
|
|
@@ -44,13 +62,28 @@ export default {
|
|
|
TimeSelect
|
|
|
},
|
|
|
computed: {
|
|
|
+ ...mapGetters({
|
|
|
+ DrawerShow:'DrawerShow'
|
|
|
+ })
|
|
|
},
|
|
|
watch: {
|
|
|
+ $route (val) {
|
|
|
+ if (val.path == '/submitedit_more') {
|
|
|
+ this.getSubmitEditAction()
|
|
|
+ }
|
|
|
+ },
|
|
|
+ DrawerShow (val) {
|
|
|
+ val ? this.drawer = true : this.drawer = false
|
|
|
+ }
|
|
|
},
|
|
|
created () {
|
|
|
this.getSubmitEditAction()
|
|
|
},
|
|
|
methods: {
|
|
|
+ closeDrawer () {
|
|
|
+ this.$store.dispatch('DrawerShowChange',false)
|
|
|
+ this.$router.back()
|
|
|
+ },
|
|
|
//获取所有一事一报
|
|
|
async getSubmitEditAction () {
|
|
|
let res = await this.$api.requested(this.param)
|