修改任务统计页面功能
This commit is contained in:
parent
1a1d09f695
commit
f5ead8ecde
|
@ -14,7 +14,7 @@
|
|||
</a-col>
|
||||
<a-col :md="6" :sm="10" >
|
||||
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
|
||||
<a-button @click="handleAdd" type="primary" v-has="'cont:btn'" icon="search">查询</a-button>
|
||||
<a-button @click="loadData" type="primary" v-has="'cont:btn'" icon="search">查询</a-button>
|
||||
</span>
|
||||
</a-col>
|
||||
</a-row>
|
||||
|
@ -27,7 +27,11 @@
|
|||
bordered
|
||||
rowKey="id"
|
||||
:columns="columns"
|
||||
:dataSource="dataSource">
|
||||
:dataSource="dataSource"
|
||||
@change="handleTableChange">
|
||||
<span slot="action" slot-scope="text, record">
|
||||
<a @click="handleEdit(record)">选中</a>
|
||||
</span>
|
||||
</a-table>
|
||||
|
||||
<div class="linese"></div>
|
||||
|
@ -43,7 +47,7 @@
|
|||
<img src="~@/assets/img/icon-结构化数据条数.png" />
|
||||
</a-col>
|
||||
<a-col :span="16">
|
||||
<div class="datanum">9694</div>
|
||||
<div class="datanum">{{fileNum.totalNumRow}}</div>
|
||||
<div>结构化数据条数</div>
|
||||
</a-col>
|
||||
</a-col>
|
||||
|
@ -52,7 +56,7 @@
|
|||
<img src="~@/assets/img/icon非结构化文件大小.png" />
|
||||
</a-col>
|
||||
<a-col :span="16">
|
||||
<div class="datanum">10.92GB</div>
|
||||
<div class="datanum">{{fileNum.totalFileSize}}GB</div>
|
||||
<div>非结构化文件(大小)</div>
|
||||
</a-col>
|
||||
</a-col>
|
||||
|
@ -61,7 +65,7 @@
|
|||
<img src="~@/assets/img/icon-表数量.png" />
|
||||
</a-col>
|
||||
<a-col :span="14">
|
||||
<div class="datanum">22</div>
|
||||
<div class="datanum">{{fileNum.tableCount}}</div>
|
||||
<div>表数量</div>
|
||||
</a-col>
|
||||
</a-col>
|
||||
|
@ -70,7 +74,7 @@
|
|||
<img src="~@/assets/img/icon-文件接引数量.png" />
|
||||
</a-col>
|
||||
<a-col :span="14">
|
||||
<div class="datanum">7</div>
|
||||
<div class="datanum">{{ fileNum.fileLinkCount }}</div>
|
||||
<div>文件接引数量</div>
|
||||
</a-col>
|
||||
</a-col>
|
||||
|
@ -79,7 +83,7 @@
|
|||
<img src="~@/assets/img/icon-文档数量.png" />
|
||||
</a-col>
|
||||
<a-col :span="14">
|
||||
<div class="datanum">5</div>
|
||||
<div class="datanum">{{ fileNum.docFileCount }}</div>
|
||||
<div>文档数量</div>
|
||||
</a-col>
|
||||
</a-col>
|
||||
|
@ -89,7 +93,7 @@
|
|||
<div class="linese"></div>
|
||||
<div class="linese"></div>
|
||||
<a-row :gutter="20">
|
||||
<a-col :md="12" :sm="2" style="height:calc(100vh - 420px);">
|
||||
<a-col :md="12" :sm="1" style="height:calc(100vh - 420px);">
|
||||
<div class="echartsTitle"><div class="ecicon"></div>数据清洗差异统计</div>
|
||||
<div id="cleaningVariance" ref="cleaningVariance" style="width: 100%; height: calc(100% - 36px);background:rgb(8,34,52);"></div>
|
||||
</a-col>
|
||||
|
@ -107,13 +111,11 @@
|
|||
<script>
|
||||
import { shipModelPageList,
|
||||
shipModeldeleteById } from '@/api/ship'
|
||||
import { taskCreate,
|
||||
taskUpdateById,
|
||||
taskQueryById,
|
||||
import { getDataAnalysis,
|
||||
taskPageList,
|
||||
taskDistributeTask,
|
||||
taskDeleteById } from '@/api/task'
|
||||
getTaskDataTypeAnalysis } from '@/api/task'
|
||||
import { getAction } from '@/api/manage'
|
||||
|
||||
import JEllipsis from "@/components/jeecg/JEllipsis";
|
||||
export default {
|
||||
name: "statistics",
|
||||
|
@ -123,10 +125,11 @@
|
|||
data () {
|
||||
return {
|
||||
description: '任务统计',
|
||||
dataSources: [],
|
||||
dataSource: [],
|
||||
queryParam: {
|
||||
pageNum :1,
|
||||
pageSize:20
|
||||
pageSize:20,
|
||||
name:""
|
||||
},
|
||||
columns: [
|
||||
{
|
||||
|
@ -156,11 +159,19 @@
|
|||
width:180,
|
||||
scopedSlots: { customRender: 'action' },
|
||||
}
|
||||
]
|
||||
],
|
||||
fileNum:{
|
||||
totalNumRow:0,
|
||||
tableCount:0,
|
||||
docFileCount:0,
|
||||
totalFileSize:0,
|
||||
fileLinkCount:0
|
||||
},
|
||||
cleaningVariancesource:[],
|
||||
totalNumberCataloguesData:[]
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.getTables()
|
||||
this.loadData();
|
||||
},
|
||||
computed: {
|
||||
|
@ -172,27 +183,52 @@
|
|||
|
||||
},
|
||||
methods: {
|
||||
dataAdd(){
|
||||
},
|
||||
getselect(){
|
||||
|
||||
},
|
||||
loadData() {
|
||||
taskPageList(this.queryParam).then((res) => {
|
||||
if (res.success) {
|
||||
this.dataSource = res.result.rows||res.result;
|
||||
if(res.result.total)
|
||||
{
|
||||
this.ipagination.total = res.result.total;
|
||||
handleTableChange(pagination, filters, sorter) {
|
||||
if (Object.keys(sorter).length > 0) {
|
||||
this.isorter.column = sorter.field;
|
||||
this.isorter.order = "ascend" == sorter.order ? "asc" : "desc"
|
||||
}
|
||||
this.ipagination = pagination;
|
||||
this.loadData();
|
||||
},
|
||||
handleEdit(value){
|
||||
this.cleaningVariancesource =[];
|
||||
getDataAnalysis({taskId:value.id,startDate:value.startTime,endDate:value.endTime}).then((res) => {
|
||||
if (res.success) {
|
||||
res.result.schemaNames.forEach(row => {
|
||||
this.cleaningVariancesource.push([row, parseInt(res.result.numRowMap[row]) ])
|
||||
})
|
||||
this.fileNum.totalNumRow = res.result.totalNumRow
|
||||
this.fileNum.tableCount = res.result.tableCount
|
||||
this.fileNum.docFileCount = res.result.docFileCount
|
||||
this.fileNum.totalFileSize = res.result.totalFileSize
|
||||
this.fileNum.fileLinkCount = res.result.fileLinkCount
|
||||
this.getcleaningVariance();
|
||||
} else {
|
||||
this.$message.warning(res.message);
|
||||
}
|
||||
});
|
||||
this.totalNumberCataloguesData =[]
|
||||
getTaskDataTypeAnalysis({taskId:value.id,startDate:value.startTime,endDate:value.endTime}).then((res) => {
|
||||
if (res.success) {
|
||||
res.result.typeName.forEach(row => {
|
||||
this.totalNumberCataloguesData.push({ value: parseFloat(res.result.numRowMap[row]), name: row })
|
||||
})
|
||||
this.gettotalNumberCatalogues();
|
||||
} else {
|
||||
this.$message.warning(res.message);
|
||||
}
|
||||
});
|
||||
},
|
||||
getTables(){
|
||||
this.getcleaningVariance();
|
||||
this.gettotalNumberCatalogues();
|
||||
loadData() {
|
||||
taskPageList(this.queryParam).then((res) => {
|
||||
if (res.success) {
|
||||
this.dataSource = res.result.rows||res.result;
|
||||
this.handleEdit(res.result.rows[0]);
|
||||
} else {
|
||||
this.$message.warning(res.message);
|
||||
}
|
||||
});
|
||||
},
|
||||
getcleaningVariance(){
|
||||
var myChart = this.$echarts.init(this.$refs.cleaningVariance);
|
||||
|
@ -206,16 +242,7 @@
|
|||
bottom:'20px'
|
||||
},
|
||||
dataset: {
|
||||
source: [
|
||||
['product', '', ],
|
||||
['平台', 43.3],
|
||||
['编队', 83.1],
|
||||
['航空兵', 86.4],
|
||||
['陆战队', 72.4],
|
||||
['作战', 72.4],
|
||||
['反潜', 72.4],
|
||||
['舰炮', 72.4]
|
||||
]
|
||||
source: this.cleaningVariancesource
|
||||
},
|
||||
xAxis: {
|
||||
type: 'category',
|
||||
|
@ -266,15 +293,7 @@
|
|||
name: '占比',
|
||||
type: 'pie',
|
||||
radius: '80%',
|
||||
data: [
|
||||
{ value: 1048, name: '平台' },
|
||||
{ value: 735, name: '编队' },
|
||||
{ value: 580, name: '航空兵' },
|
||||
{ value: 484, name: '陆战队' },
|
||||
{ value: 300, name: '作战' },
|
||||
{ value: 735, name: '反潜' },
|
||||
{ value: 580, name: '舰炮' }
|
||||
],
|
||||
data: this.totalNumberCataloguesData,
|
||||
emphasis: {
|
||||
itemStyle: {
|
||||
shadowBlur: 10,
|
||||
|
|
Loading…
Reference in New Issue
Block a user