|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<div ref="pageWrapper" class="page-wrapper" @click="setInit">
|
|
|
- <headerCom title="月报" :sub-title="subTitle">
|
|
|
+ <headerCom title="月报" :sub-title="subTitle" address="/monthlyReport/index">
|
|
|
<template v-if="pageType === 'edit'" slot="content">
|
|
|
<el-button
|
|
|
type="primary"
|
|
@@ -22,12 +22,22 @@ size="small"
|
|
|
>取消
|
|
|
</el-button>
|
|
|
<el-button
|
|
|
+ v-if="pageDate && pageDate.status === 0"
|
|
|
slot="reference"
|
|
|
plain
|
|
|
size="small"
|
|
|
@click="dialogOpen('dialogDelete')"
|
|
|
>删除
|
|
|
</el-button>
|
|
|
+ <el-button
|
|
|
+ v-if="pageDate && pageDate.status === 0"
|
|
|
+ slot="reference"
|
|
|
+ plain
|
|
|
+ size="small"
|
|
|
+ @click="dialogOpen('dialogDelete')"
|
|
|
+ >删除
|
|
|
+ </el-button>
|
|
|
+
|
|
|
</template>
|
|
|
</headerCom>
|
|
|
<!-- <div style="position: fixed;z-index: 99; top: 20px">
|
|
@@ -145,6 +155,9 @@ export default {
|
|
|
this.tabPageData.children.length
|
|
|
)
|
|
|
},
|
|
|
+ pageDate() {
|
|
|
+ return this.$store.state.monthlyReportEdit.pageDate
|
|
|
+ },
|
|
|
tabPageData() {
|
|
|
return this.$store.state.monthlyReportEdit.tabPageData
|
|
|
},
|