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