|
@@ -35,6 +35,14 @@
|
|
@click="$router.push({ path: '/monthlyReport/index' })"
|
|
@click="$router.push({ path: '/monthlyReport/index' })"
|
|
>取消
|
|
>取消
|
|
</el-button>
|
|
</el-button>
|
|
|
|
+ <el-button
|
|
|
|
+ v-if="pageType.search(/All/) > -1 && pageDate && pageDate.status === 20 && (roleCode === 100 || roleCode === 0)"
|
|
|
|
+ slot="reference"
|
|
|
|
+ plain
|
|
|
|
+ size="small"
|
|
|
|
+ @click="publishAllReport"
|
|
|
|
+ >发布
|
|
|
|
+ </el-button>
|
|
<el-dropdown v-if="pageDate.status === 30 && (roleCode === 100 || roleCode === 0)" trigger="click" @command="returnReport">
|
|
<el-dropdown v-if="pageDate.status === 30 && (roleCode === 100 || roleCode === 0)" trigger="click" @command="returnReport">
|
|
<span class="el-dropdown-link">
|
|
<span class="el-dropdown-link">
|
|
回退<i class="el-icon-arrow-down el-icon--right" />
|
|
回退<i class="el-icon-arrow-down el-icon--right" />
|
|
@@ -358,6 +366,11 @@ export default {
|
|
// this.$message('删除操作已取消!')
|
|
// this.$message('删除操作已取消!')
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ publishAllReport(key) {
|
|
|
|
+ this.$store.dispatch('monthlyReportEdit/publishAllReport', () => {
|
|
|
|
+ this.$router.push({ path: '/monthlyReport/index' })
|
|
|
|
+ })
|
|
|
|
+ },
|
|
tabClick(tab, event) {
|
|
tabClick(tab, event) {
|
|
this.$store.dispatch('monthlyReportEdit/tabActiveChange', {
|
|
this.$store.dispatch('monthlyReportEdit/tabActiveChange', {
|
|
...this.$route.query,
|
|
...this.$route.query,
|