|
@@ -47,7 +47,7 @@
|
|
|
<el-button icon="el-icon-refresh" @click="resetQuery">重置</el-button>
|
|
|
</el-form-item>
|
|
|
|
|
|
- <!-- <el-form-item label="图形类型">
|
|
|
+ <el-form-item label="图形类型">
|
|
|
<el-select v-model="contentType" placeholder="请选择图形类型">
|
|
|
<el-option
|
|
|
v-for="item in contentTypelist"
|
|
@@ -56,127 +56,55 @@
|
|
|
:value="item.value">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
- </el-form-item> -->
|
|
|
+ </el-form-item>
|
|
|
</el-form>
|
|
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
</el-row>
|
|
|
|
|
|
- <el-table :data="dataList" height="500px">
|
|
|
+ <el-table :data="dataList" height="500px" v-if="contentType == 1">
|
|
|
<el-table-column label="保税区" align="center" prop="cbName">
|
|
|
<template slot-scope="scope">
|
|
|
{{ scope.row.cbName }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="指标名称" align="center" prop="colName">
|
|
|
+ <el-table-column label="所得分数" align="center" prop="colValue">
|
|
|
<template slot-scope="scope">
|
|
|
- {{ scope.row.colName }}
|
|
|
+ {{ scope.row.colValue }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
|
|
|
- <!-- <el-table-column v-for="item in datails" :key="Math.random()" :label="item[0].timeValue" align="center" prop="colName">
|
|
|
- <template slot="header" slot-scope="scope">
|
|
|
- {{ scope.row.$index }}
|
|
|
- </template>
|
|
|
- <el-table-column label="对比值" align="center" prop="colName">
|
|
|
- <template slot-scope="scope">
|
|
|
- 1
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="当前" align="center" prop="colName">
|
|
|
- <template slot-scope="scope">
|
|
|
- 2
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="浮动" align="center" prop="colName">
|
|
|
- <template slot-scope="scope">
|
|
|
- 3
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- </el-table-column> -->
|
|
|
-
|
|
|
-
|
|
|
- <el-table-column align="center" prop="colName" v-if="queryParams.dateType == '1' || queryParams.dateType == ''">
|
|
|
- <template slot="header" slot-scope="scope">
|
|
|
- {{ timeValue[0]?timeValue[0]:'月份' }}
|
|
|
- </template>
|
|
|
- <el-table-column label="对比值" align="center" prop="colName">
|
|
|
- <template slot-scope="scope">
|
|
|
- {{ scope.row.datails[0].oldValue }}
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="当前" align="center" prop="colName">
|
|
|
- <template slot-scope="scope">
|
|
|
- {{ scope.row.datails[0].nowValue }}
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="浮动" align="center" prop="colName">
|
|
|
- <template slot-scope="scope">
|
|
|
- {{ scope.row.datails[0].redio }}
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- </el-table-column>
|
|
|
-
|
|
|
- <el-table-column align="center" prop="colName" v-if="queryParams.dateType == '2' || queryParams.dateType == ''">
|
|
|
- <template slot="header" slot-scope="scope">
|
|
|
- {{ timeValue[1]?timeValue[1] + '季度':'季度' }}
|
|
|
- </template>
|
|
|
- <el-table-column label="对比值" align="center" prop="colName">
|
|
|
- <template slot-scope="scope">
|
|
|
- {{ scope.row.datails[1].oldValue }}
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="当前" align="center" prop="colName">
|
|
|
- <template slot-scope="scope">
|
|
|
- {{ scope.row.datails[1].nowValue }}
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="浮动" align="center" prop="colName">
|
|
|
- <template slot-scope="scope">
|
|
|
- {{ scope.row.datails[1].redio }}
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- </el-table-column>
|
|
|
-
|
|
|
- <el-table-column align="center" prop="colName" v-if="queryParams.dateType == '3' || queryParams.dateType == ''">
|
|
|
- <template slot="header" slot-scope="scope">
|
|
|
- {{ timeValue[2]?timeValue[2] + '年度':'年度' }}
|
|
|
- </template>
|
|
|
- <el-table-column label="对比值" align="center" prop="colName">
|
|
|
- <template slot-scope="scope">
|
|
|
- {{ scope.row.datails[2].oldValue }}
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="当前" align="center" prop="colName">
|
|
|
- <template slot-scope="scope">
|
|
|
- {{ scope.row.datails[2].nowValue }}
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="浮动" align="center" prop="colName">
|
|
|
- <template slot-scope="scope">
|
|
|
- {{ scope.row.datails[2].redio }}
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- </el-table-column>
|
|
|
-
|
|
|
</el-table>
|
|
|
|
|
|
+ <circle-chart v-else-if="contentType == 2" :chartData="dataList" style="width: 100%;"></circle-chart>
|
|
|
+ <category-chart v-else-if="contentType == 3" itemName="所得分数" :chartData="dataList" style="width: 100%"></category-chart>
|
|
|
+ <line-chart v-else-if="contentType == 4" :chartData="dataList" style="width: 100%"> </line-chart>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import { getDFZL,normFeelistAll,bondedList } from '@/api/portal/figure/figure.js';
|
|
|
+import circleChart from '../dashboard/DFZLcircleChart.vue';
|
|
|
+import categoryChart from '../dashboard/DFZLcategoryChart.vue';
|
|
|
+import lineChart from '../dashboard/DFZLlineChart.vue';
|
|
|
export default {
|
|
|
name: 'DFZL',
|
|
|
+ components:{
|
|
|
+ circleChart,
|
|
|
+ categoryChart,
|
|
|
+ lineChart
|
|
|
+
|
|
|
+ },
|
|
|
data() {
|
|
|
return {
|
|
|
categoryChartData: {},
|
|
|
contentType:'1',
|
|
|
contentTypelist:[
|
|
|
{ label: '列表', value: '1' },
|
|
|
- { label: '柱状图', value: '2' },
|
|
|
- { label: '雷达图', value: '3' },
|
|
|
+ { label: '饼状', value: '2' },
|
|
|
+ { label: '柱状', value: '3' },
|
|
|
+ { label: '折线', value: '4' },
|
|
|
],
|
|
|
datelist:[
|
|
|
{ label: '月', value: '1' },
|
|
@@ -208,7 +136,6 @@ export default {
|
|
|
},
|
|
|
normFeelistAll:[], //指标列表
|
|
|
regionList:[], //保税区列表
|
|
|
- timeValue:[],
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -220,14 +147,10 @@ export default {
|
|
|
this.queryParams.dateValue = ''
|
|
|
},
|
|
|
getList() {
|
|
|
- this.timeValue = []
|
|
|
this.loading = true;
|
|
|
getDFZL(this.queryParams).then(response => {
|
|
|
this.dataList = []
|
|
|
this.dataList = response.data;
|
|
|
- for (const i in this.dataList[0].datails) {
|
|
|
- this.timeValue.push(this.dataList[0].datails[i].timeValue)
|
|
|
- }
|
|
|
this.loading = false;
|
|
|
});
|
|
|
},
|