| | |
| | | <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.selectRegistrantCountDtoPageList" :componentData="componentData" :key="upIndex"/> |
| | | <ValueTable ref="ValueTable" :url="$api.dataReporting.selectRegistrantCountDtoPageList" :componentData="componentData" :key="upIndex" :downUrl="$api.dataReporting.downRegistrantCountFile"/> |
| | | </div> |
| | | </div> |
| | | </template> |
| | |
| | | name: null, |
| | | product: null, |
| | | orderBy: { |
| | | field: 'update_time', |
| | | order: 'asc' |
| | | field: 'create_time', |
| | | order: 'desc' |
| | | } |
| | | }, |
| | | isIndex: false, |
| | |
| | | upIndex: 0, |
| | | addDia: false, |
| | | product: [], |
| | | custom:[] |
| | | custom:[], |
| | | outPower: true |
| | | } |
| | | }, |
| | | mounted() { |
| | | this.entityCopy = this.HaveJson(this.componentData.entity) |
| | | this.selectProductEnumList() |
| | | this.selectCustomEnumList() |
| | | this.getPower() |
| | | }, |
| | | methods: { |
| | | refreshTable() { |
| | |
| | | this.$axios.get(this.$api.enums.selectCustomEnumList).then(res=>{ |
| | | this.custom = 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 == 'downRegistrantCountFile') { |
| | | outPower = true |
| | | } |
| | | } |
| | | this.outPower = outPower |
| | | } |
| | | } |
| | | } |