| | |
| | | <el-row class="title"> |
| | | <el-col :span="12" style="padding-left: 20px;">数据上报</el-col> |
| | | <el-col :span="12" style="text-align: right;padding-right: 8px;"> |
| | | <el-button size="small" @click=""> |
| | | <el-button size="small" @click="$refs.ValueTable.openDownDia()"> |
| | | <i class="el-icon-download" style="color: #3A7BFA;"></i> |
| | | <span style="color: #3A7BFA;">导出</span> |
| | | </el-button> |
| | |
| | | <div class="search_input"> |
| | | <el-select size="small" style="width: 100%;" placeholder="请选择" v-model="componentData.entity.product"> |
| | | <el-option :value="null" label="全部"></el-option> |
| | | <el-option v-for="(a, ai) in product" :key="ai" :label="a.product" :value="a.product"></el-option> |
| | | </el-select> |
| | | </div> |
| | | </div> |
| | |
| | | addDia: false, |
| | | upDia: false, |
| | | upLoad: false, |
| | | upData: {} |
| | | upData: {}, |
| | | product: [], |
| | | } |
| | | }, |
| | | mounted() { |
| | | this.entityCopy = this.HaveJson(this.componentData.entity) |
| | | this.selectProductEnumList() |
| | | this.getPower() |
| | | }, |
| | | methods: { |
| | | refreshTable() { |
| | |
| | | this.upDia = false |
| | | this.refreshTable() |
| | | }) |
| | | }, |
| | | selectProductEnumList(){ |
| | | this.$axios.get(this.$api.enums.selectProductEnumList).then(res=>{ |
| | | this.product = res.data |
| | | }) |
| | | }, |
| | | // 权限分配 |
| | | getPower(){ |
| | | let power = JSON.parse(sessionStorage.getItem('power')) |
| | | let up = false |
| | | for (var i = 0; i < power.length; i++) { |
| | | if(power[i].menuMethod=='upDataReporting'){ |
| | | up = true |
| | | break |
| | | } |
| | | } |
| | | if(!up){ |
| | | this.componentData.do = [] |
| | | } |
| | | } |
| | | } |
| | | } |