|
|
@@ -219,7 +219,10 @@ export default {
|
|
|
created () {
|
|
|
this.loadData()
|
|
|
// this.getConfig() //获取配置的报表
|
|
|
- this.listConfig.toolbars.push({ key: 'remove' })
|
|
|
+ const pageName = this.$route.name
|
|
|
+ if (pageName === 'ywyxjlsc') {
|
|
|
+ this.listConfig.toolbars.push({ key: 'remove' })
|
|
|
+ }
|
|
|
this.listConfig.toolbars.push({ key: 'export' })
|
|
|
this.selection = true
|
|
|
},
|
|
|
@@ -635,7 +638,7 @@ export default {
|
|
|
})
|
|
|
const pageName = this.$route.name
|
|
|
|
|
|
- if (state.length === 0) {
|
|
|
+ if (state.length === 0 && this.depth !== 0 && pageName === 'ywyxjlsc') {
|
|
|
const chongfu = this.listConfig.toolbars.filter((el) => {
|
|
|
return el.key === 'add'
|
|
|
})
|