| | |
| | | <template> |
| | | <div class="dataStatistics"> |
| | | <My-bread |
| | | :list="[ |
| | | <My-bread :list="[ |
| | | `${$t('dataManage.dataManage')}`, |
| | | `${$t('dataManage.dataStatistics')}`, |
| | | ]" |
| | | ></My-bread> |
| | | ]"></My-bread> |
| | | <el-divider /> |
| | | <div class="contentBox"> |
| | | <div class="content_Left subpage_Div" style="border: 1px solid #dcdfe6;"> |
| | | <div |
| | | class="content_Left subpage_Div" |
| | | style="border: 1px solid #dcdfe6;" |
| | | > |
| | | <el-tree |
| | | :data="treeData" |
| | | @node-click="handleNodeClick" |
| | |
| | | > |
| | | </el-tree> |
| | | </div> |
| | | <div class="content_Right subpage_Div" style="border: 1px solid #dcdfe6;"> |
| | | <div class="iquery subpage_Div" style="padding-bottom: 14px"> |
| | | <div |
| | | class="content_Right subpage_Div" |
| | | style="border: 1px solid #dcdfe6;" |
| | | > |
| | | <div |
| | | class="iquery subpage_Div" |
| | | style="padding-bottom: 14px" |
| | | > |
| | | <div> |
| | | <el-button |
| | | icon="el-icon-c-scale-to-original" |
| | | size="small" |
| | | type="warning" |
| | | @click="setCountFlagChange(1)" |
| | | >{{ $t("shuJuGuanLi.butten.Report") }}</el-button |
| | | > |
| | | >{{ $t("shuJuGuanLi.butten.Report") }}</el-button> |
| | | <el-button |
| | | icon="el-icon-pie-chart" |
| | | size="small" |
| | | type="primary" |
| | | @click="setCountFlagChange(2)" |
| | | >{{ $t("shuJuGuanLi.butten.Histogram") }}</el-button |
| | | > |
| | | >{{ $t("shuJuGuanLi.butten.Histogram") }}</el-button> |
| | | <el-button |
| | | icon="el-icon-download" |
| | | size="small" |
| | | type="success" |
| | | @click="setCountFlagChange(3)" |
| | | >{{ $t("shuJuGuanLi.butten.Download") }}</el-button |
| | | > |
| | | >{{ $t("shuJuGuanLi.butten.Download") }}</el-button> |
| | | </div> |
| | | </div> |
| | | <div class="dividing-line"></div> |
| | | <div class="contentTable subpage_Div" v-show="setCountFlag"> |
| | | <div |
| | | class="contentTable subpage_Div" |
| | | v-show="setCountFlag" |
| | | > |
| | | <el-table |
| | | :data="tableData" |
| | | style="width: 100%" |
| | |
| | | :formatter="showFormat" |
| | | > |
| | | </el-table-column> |
| | | <el-table-column width="120" :label="$t('common.operate')"> |
| | | <el-table-column |
| | | width="120" |
| | | :label="$t('common.operate')" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-button @click="setDownLoadRow(scope.row)" size="small"> |
| | | <el-button |
| | | @click="setDownLoadRow(scope.row)" |
| | | size="small" |
| | | > |
| | | {{ $t("common.download") }} |
| | | </el-button> |
| | | </template> |
| | |
| | | this.closeDownLoadFlag(); |
| | | done(); |
| | | }) |
| | | .catch((_) => {}); |
| | | .catch((_) => { }); |
| | | }, |
| | | closeDownLoadFlag() { |
| | | this.showDownLoadFlag = false; |
| | |
| | | } |
| | | }, |
| | | async getQueryDownloadData() { |
| | | this.modelData = []; |
| | | this.listData = { |
| | | pageIndex: 1, |
| | | pageSize: 10, |
| | |
| | | startValue: dataAxis[Math.max(params.dataIndex - zoomSize / 2, 0)], |
| | | endValue: |
| | | dataAxis[ |
| | | Math.min(params.dataIndex + zoomSize / 2, data.length - 1) |
| | | Math.min(params.dataIndex + zoomSize / 2, data.length - 1) |
| | | ], |
| | | }); |
| | | }); |
| | |
| | | }, |
| | | //查询统计信息 |
| | | async setQueryCountData() { |
| | | var data; |
| | | var data, val; |
| | | if (this.queryData.value == "countServices") { |
| | | data = await dataCount_selectCountServices(); |
| | | |
| | | } else if (this.queryData.value == "countSizes") { |
| | | data = await dataCount_selectCountSizes(); |
| | | } else if (this.queryData.value == "countOperates") { |
| | |
| | | data.result[i].count = data.result[i].sizes; |
| | | } |
| | | } |
| | | |
| | | if (this.queryData.value == "countOperates") { |
| | | for (var i in data.result) { |
| | | if (data.result[i].m2) { |
| | | data.result[i].m1 = data.result[i].m1 + '\\' + data.result[i].m2 |
| | | } |
| | | |
| | | } |
| | | } |
| | | |
| | | this.tableData = data.result; |
| | | this.$nextTick(() => { |
| | | this.$refs.table.doLayout(); |