|
@@ -4,15 +4,15 @@
|
4
|
4
|
<div class="flex">
|
5
|
5
|
<date-picker title="自定义" :quickFlag='true' :afferent_time="default_time" :clearFlag='false'
|
6
|
6
|
@changeTime="changeTime"></date-picker>
|
7
|
|
- <self-channel title="投手" style="margin-left: 20px" type='pitcher' :labelWidth="true"
|
|
7
|
+ <self-channel title="投手" type='pitcher' :labelWidth="true"
|
8
|
8
|
:afferent_params="{ corp_id: '' }"
|
9
|
9
|
@channelDefine="(val) => { duplicateRemovalData.flag = false; user_id = val; stat_throwPersonData(); init(1) }">
|
10
|
10
|
</self-channel>
|
11
|
|
- <self-channel title="剧集" style="margin-left: 20px" type='dramaList' :labelWidth="true"
|
|
11
|
+ <self-channel title="剧集" type='dramaList' :labelWidth="true"
|
12
|
12
|
@channelDefine="(val) => { duplicateRemovalData.flag = false; drama_id = val; stat_throwPersonData(); init(1) }">
|
13
|
13
|
</self-channel>
|
14
|
14
|
</div>
|
15
|
|
- <el-button type="primary" size="mini" @click="init(1, 'export')">导出Excel</el-button>
|
|
15
|
+ <el-button v-if="isCanExport" type="primary" size="mini" @click="init(1, 'export')">导出Excel</el-button>
|
16
|
16
|
</div>
|
17
|
17
|
<div class="dataInfoBox" v-loading="dataLoading">
|
18
|
18
|
<div class="dataInfoItem" v-for="(item, index) in dataInfoArrs" :key="index">
|
|
@@ -158,6 +158,12 @@ export default {
|
158
|
158
|
},//去重数据
|
159
|
159
|
}
|
160
|
160
|
},
|
|
161
|
+ computed: {
|
|
162
|
+ // 是否有“导出”权限
|
|
163
|
+ isCanExport() {
|
|
164
|
+ return !!this.$store.state.dataBoardAuth.can_export
|
|
165
|
+ },
|
|
166
|
+ },
|
161
|
167
|
created () {
|
162
|
168
|
this.height = document.documentElement.clientHeight - 340 > 400 ? document.documentElement.clientHeight - 340 : 400
|
163
|
169
|
this.time = this.default_time
|
|
@@ -309,6 +315,9 @@ export default {
|
309
|
315
|
}
|
310
|
316
|
</script>
|
311
|
317
|
<style lang="scss" scoped>
|
|
318
|
+/deep/ .common-screen-label {
|
|
319
|
+ flex-shrink: 0;
|
|
320
|
+}
|
312
|
321
|
.screenBox {
|
313
|
322
|
background: #fff;
|
314
|
323
|
padding: 5px 20px;
|