傅行帆 5 vuotta sitten
vanhempi
commit
5d60c75c28

+ 3
- 0
src/pages/statistical/building/detail.jsx Näytä tiedosto

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

+ 3
- 0
src/pages/statistical/building/index.jsx Näytä tiedosto

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