| | |
| | | <el-row class="title"> |
| | | <el-col :span="12" style="padding-left: 20px;">项目数据统计</el-col> |
| | | <el-col :span="12" style="text-align: right;"> |
| | | <el-button size="small" @click=""> |
| | | <el-button size="small" @click="$refs.ValueTable.openDownDia()" v-if="outPower"> |
| | | <i class="el-icon-download" style="color: #3A7BFA;"></i> |
| | | <span style="color: #3A7BFA;">导出</span> |
| | | </el-button> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="table"> |
| | | <ValueTable ref="ValueTable" :url="$api.dataReporting.selectProductCountDtoPageList" :componentData="componentData" :key="upIndex"/> |
| | | <ValueTable ref="ValueTable" :url="$api.dataReporting.selectProductCountDtoPageList" :componentData="componentData" :key="upIndex" :downUrl="$api.dataReporting.downProductCountFile"/> |
| | | </div> |
| | | </div> |
| | | </template> |
| | |
| | | entityCopy: {}, |
| | | upIndex: 0, |
| | | addDia: false, |
| | | product: [] |
| | | product: [], |
| | | outPower: true |
| | | } |
| | | }, |
| | | mounted() { |
| | | this.entityCopy = this.HaveJson(this.componentData.entity) |
| | | this.selectProductEnumList() |
| | | this.getPower() |
| | | }, |
| | | methods: { |
| | | refreshTable() { |
| | |
| | | this.$axios.get(this.$api.enums.selectProductEnumList).then(res=>{ |
| | | this.product = res.data |
| | | }) |
| | | }, |
| | | // 权限分配 |
| | | getPower() { |
| | | let power = JSON.parse(sessionStorage.getItem('power')) |
| | | let outPower = false |
| | | for (var i = 0; i < power.length; i++) { |
| | | if (power[i].menuMethod == 'downProductCountFile') { |
| | | outPower = true |
| | | } |
| | | } |
| | | this.outPower = outPower |
| | | } |
| | | } |
| | | } |