|
@@ -5,34 +5,30 @@
|
|
|
<FocusContentCom class="one" v-loading="loading.statistic">
|
|
|
<div class="one-top">
|
|
|
<img src="@/assets/images/gis-business/enterprise_icon1.png" alt=""/>
|
|
|
- <!-- <StatisticTitleCom title="企业总数" :num="statistic.qy.total" unit="家"/>-->
|
|
|
- <StatisticTitleCom title="企业总数" :num="$store.state.gis.tempStatistic.total" unit="家"/>
|
|
|
+ <StatisticTitleCom title="企业总数" :num="statistic.qy.total" unit="家"/>
|
|
|
</div>
|
|
|
<div class="one-bottom">
|
|
|
<div class="one-bottom-item">
|
|
|
<div class="chart">
|
|
|
- <!-- <PieSimpleChartCom :num="statistic.qy.lgszyjkscsb" :total="statistic.qy.total" color="#00FFFF"/>-->
|
|
|
- <PieSimpleChartCom :num="$store.state.gis.tempStatistic.lgszyjkscsb" :total="$store.state.gis.tempStatistic.total" color="#00FFFF"/>
|
|
|
+ <PieSimpleChartCom :num="statistic.qy.lgszyjkscsb" :total="statistic.qy.total" color="#00FFFF"/>
|
|
|
</div>
|
|
|
<div class="text">零关税自用<br/>进口生产设备</div>
|
|
|
</div>
|
|
|
<div class="one-bottom-item">
|
|
|
<div class="chart">
|
|
|
- <!-- <PieSimpleChartCom :num="statistic.qy.jgzzmgs" :total="statistic.qy.total" color="#FFCC8F"/>-->
|
|
|
- <PieSimpleChartCom :num="$store.state.gis.tempStatistic.jgzzmgs" :total="$store.state.gis.tempStatistic.total" color="#FFCC8F"/>
|
|
|
+ <PieSimpleChartCom :num="statistic.qy.jgzzmgs" :total="statistic.qy.total" color="#FFCC8F"/>
|
|
|
</div>
|
|
|
<div class="text">加工增值免关税</div>
|
|
|
</div>
|
|
|
<div class="one-bottom-item">
|
|
|
<div class="chart">
|
|
|
- <!-- <PieSimpleChartCom :num="statistic.qy.lgsjkyfl" :total="statistic.qy.total" color="#EB90FF"/>-->
|
|
|
- <PieSimpleChartCom :num="$store.state.gis.tempStatistic.lgsjkyfl" :total="$store.state.gis.tempStatistic.total" color="#EB90FF"/>
|
|
|
+ <PieSimpleChartCom :num="statistic.qy.lgsjkyfl" :total="statistic.qy.total" color="#EB90FF"/>
|
|
|
</div>
|
|
|
<div class="text">零关税进口<br/>原辅料</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</FocusContentCom>
|
|
|
- <FocusContentCom class="two">
|
|
|
+ <FocusContentCom class="two" v-loading="loading.statistic">
|
|
|
<div class="two-main">
|
|
|
<img src="@/assets/images/gis-business/enterprise_icon2.png" alt=""/>
|
|
|
<StatisticTitleCom title="预警总数" :num="statistic.warning" unit="条"/>
|
|
@@ -117,7 +113,7 @@ import BusinessMainCom from '../common/business-main.vue'
|
|
|
import FocusContentCom from '../common/focus-content.vue'
|
|
|
import PieSimpleChartCom from '../common/pie-simple-chart.vue'
|
|
|
import StatisticTitleCom from '../common/statistic-title.vue'
|
|
|
-import {enterpriseQuery} from "@/api/modules/enterprise";
|
|
|
+import {enterpriseQuery, staticsQuery} from "@/api/modules/enterprise";
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: '',
|
|
@@ -197,17 +193,21 @@ export default defineComponent({
|
|
|
}
|
|
|
const initStatistic = () => {
|
|
|
state.loading.statistic = true
|
|
|
- setTimeout(() => {
|
|
|
- state.statistic = {
|
|
|
- qy: {
|
|
|
- total: 0,
|
|
|
- lgszyjkscsb: 0,
|
|
|
- jgzzmgs: 0,
|
|
|
- lgsjkyfl: 0
|
|
|
- },
|
|
|
- warning: 0
|
|
|
+ that.$api.staticsQuery().then(res => {
|
|
|
+ if (res.resp_code === 0) {
|
|
|
+ state.statistic = {
|
|
|
+ qy: {
|
|
|
+ total: res.datas?.count || 0,
|
|
|
+ lgszyjkscsb: res.datas?.deviceCount || 0,
|
|
|
+ jgzzmgs: res.datas?.noTaxCount || 0,
|
|
|
+ lgsjkyfl: res.datas?.materialCount || 0
|
|
|
+ },
|
|
|
+ warning: res.datas?.alertCount || 0
|
|
|
+ }
|
|
|
}
|
|
|
state.loading.statistic = false
|
|
|
+ }).catch(() => {
|
|
|
+ state.loading.statistic = false
|
|
|
})
|
|
|
}
|
|
|
const handleClick = (item) => {
|