傅行帆 5 years ago
parent
commit
5d60c75c28

+ 3
- 0
src/pages/statistical/building/detail.jsx View File

@@ -7,6 +7,7 @@ import apis from '../../../services/apis';
7 7
 import StatsChartLine from './component/StatsChartLine';
8 8
 import BuildSelect from '../../../components/SelectButton/BuildSelect'
9 9
 import router from 'umi/router';
10
+import AuthButton from '@/components/AuthButton';
10 11
 
11 12
 
12 13
 const { RangePicker } = DatePicker;
@@ -167,7 +168,9 @@ class buildingDetailStats extends React.Component {
167 168
               <span>详细数据</span>
168 169
             </Col>
169 170
             <Col span={2}>
171
+            <AuthButton name="admin.statistical.building.content.export" noRight={null}>
170 172
               <Button type="primary" onClick={this.exportBuildingStats}>导出</Button>
173
+            </AuthButton>
171 174
             </Col>
172 175
         </Row>
173 176
         

+ 3
- 0
src/pages/statistical/building/index.jsx View File

@@ -7,6 +7,7 @@ import apis from '../../../services/apis';
7 7
 import StatsChart from './component/StatsChart';
8 8
 import BuildSelect from '../../../components/SelectButton/BuildSelect'
9 9
 import router from 'umi/router';
10
+import AuthButton from '@/components/AuthButton';
10 11
 
11 12
 
12 13
 const { RangePicker } = DatePicker;
@@ -211,7 +212,9 @@ class buildingStats extends React.Component {
211 212
               <BuildSelect slot='action' onChange={(e => this.handleBuildingChange(e))} value={this.state.buildingId}></BuildSelect>
212 213
             </Col>
213 214
             <Col span={2}>
215
+            <AuthButton name="admin.statistical.building.export" noRight={null}>
214 216
               <Button type="primary" onClick={this.exportBuildingStats}>导出</Button>
217
+            </AuthButton>
215 218
             </Col>
216 219
         </Row>
217 220