| | |
| | | type="date" |
| | | placeholder="选择起始日期" |
| | | v-model="startDate" |
| | | value-format="yyyy-MM-dd" |
| | | style="width: 100%" |
| | | ></el-date-picker> |
| | | </el-col> |
| | |
| | | type="date" |
| | | placeholder="选择截止日期" |
| | | v-model="endDate" |
| | | value-format="yyyy-MM-dd" |
| | | style="width: 100%" |
| | | ></el-date-picker> |
| | | </el-col> |
| | | </el-form-item> |
| | | <el-form-item label="电池类型"> |
| | | <el-select v-model="battType"> |
| | | <el-option label="全部" :value="0"></el-option> |
| | | <el-option label="1.2V" :value="1.2"></el-option> |
| | | <el-option label="2V" :value="2"></el-option> |
| | | <el-option label="6V" :value="6"></el-option> |
| | | <el-option label="12V" :value="12"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | |
| | | label="操作" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-button |
| | | size="mini" |
| | | type="danger" |
| | | @click="handleDelete(scope.row)" |
| | | >删除</el-button |
| | | <el-popconfirm |
| | | title="删除后将删除数据库记录后对应的站内关联,确定删除吗?" |
| | | @confirm="handleDelete(scope.row)" |
| | | > |
| | | <el-button |
| | | slot="reference" |
| | | size="mini" |
| | | type="danger" |
| | | >删除</el-button |
| | | > |
| | | </el-popconfirm> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | total: 0, |
| | | startDate: "", |
| | | endDate: "", |
| | | battType: 12, |
| | | battType: 0, |
| | | type: 0, |
| | | }; |
| | | }, |
| | | components: {}, |
| | | watch: { |
| | | type() { |
| | | this.$nextTick(() => { |
| | | this.$refs.table.doLayout(); |
| | | }); |
| | | }, |
| | | }, |
| | | computed: { |
| | | headers() { |
| | | let header_res = [], |
| | |
| | | } = this; |
| | | let params = { |
| | | battVol, |
| | | startTime: startDate + " 00:00:00", |
| | | endTime: endDate + " 23:59:59", |
| | | startTime: !startDate ? "" : startDate + " 00:00:00", |
| | | endTime: !endDate ? "" : endDate + " 23:59:59", |
| | | pageCurr, |
| | | pageSize, |
| | | }; |
| | |
| | | v["sdBasebs"] = Math.round(battInfo.sdBasebs * 10000) / 100 + "%"; |
| | | v["sdBasebv"] = Math.round(battInfo.sdBasebv * 10000) / 100 + "%"; |
| | | v["sdBasecr"] = Math.round(battInfo.sdBasecr * 10000) / 100 + "%"; |
| | | v['stationId'] = battInfo.stationId; |
| | | v["stationId"] = battInfo.stationId; |
| | | battInfo.battDataList.forEach((val, i) => { |
| | | let idx = i + 1; |
| | | v["res" + idx] = val.br; |
| | |
| | | }, |
| | | handleDelete(data) { |
| | | // console.log("delete", data); |
| | | const { |
| | | fileId, |
| | | stationId |
| | | } = data; |
| | | const { fileId, stationId } = data; |
| | | let params = { |
| | | fileId, |
| | | stationId |
| | | stationId, |
| | | }; |
| | | deleteData(params).then((res) => { |
| | | let { code} = res.data; |
| | | let { code } = res.data; |
| | | if (code) { |
| | | this.$message.success('操作成功'); |
| | | this.$message.success("操作成功"); |
| | | this.getDatas(); |
| | | this.$bus.$emit('stationReload'); |
| | | this.$bus.$emit("stationReload"); |
| | | } else { |
| | | this.$message.error('操作失败'); |
| | | this.$message.error("操作失败"); |
| | | } |
| | | }); |
| | | }, |
| | |
| | | } |
| | | } |
| | | .row-filter { |
| | | padding: 4px 4px 0 0; |
| | | display: flex; |
| | | .btn-grp { |
| | | margin-left: 0.4em; |