|
@@ -360,30 +360,25 @@ export default defineComponent({
|
|
|
// "entType":"加工增值"
|
|
|
}).then((res: any) => {
|
|
|
if (res.resp_code === 0 && res.datas?.length > 0) {
|
|
|
- // for (let i = 0; i < 105; i++) {
|
|
|
- // const obj = {
|
|
|
- // name: '企业企业企业企业企业_' + i,
|
|
|
- // wkt: `POINT(${that.$util.randomNum(108.738329, 110.912130, 6)} ${that.$util.randomNum(18.154784, 20, 6)})`,
|
|
|
- // }
|
|
|
- // if (i % 2 === 0) {
|
|
|
- // obj.type = 'lgszyjkscsb'
|
|
|
- // } else if (i % 2 === 1) {
|
|
|
- // obj.type = 'jgzzmgs'
|
|
|
- // } else if (i % 2 === 2) {
|
|
|
- // obj.type = 'lgsjkyfl'
|
|
|
- // }
|
|
|
- // arr.push(obj)
|
|
|
- // }
|
|
|
+ const tempStatistic = {
|
|
|
+ total: res.datas.length,
|
|
|
+ lgszyjkscsb: 0,
|
|
|
+ jgzzmgs: 0,
|
|
|
+ lgsjkyfl: 0
|
|
|
+ }
|
|
|
const features: any = []
|
|
|
res.datas.forEach(v => {
|
|
|
try {
|
|
|
const feat: any = new format.WKT().readFeature(`POINT(${v.longitude} ${v.latitude})`)
|
|
|
let type = ''
|
|
|
- if (v.qykx = '零关税自用进口生产设备') {
|
|
|
+ if (v.qykx === '零关税自用进口生产设备') {
|
|
|
+ tempStatistic.lgszyjkscsb += 1
|
|
|
type = 'lgszyjkscsb'
|
|
|
- } else if (v.qykx = '加工增值免关税') {
|
|
|
+ } else if (v.qykx === '加工增值免关税') {
|
|
|
+ tempStatistic.jgzzmgs += 1
|
|
|
type = 'jgzzmgs'
|
|
|
- } else if (v.qykx = '零关税进口原辅料') {
|
|
|
+ } else if (v.qykx === '零关税进口原辅料') {
|
|
|
+ tempStatistic.lgsjkyfl += 1
|
|
|
type = 'lgsjkyfl'
|
|
|
}
|
|
|
feat.set('defaultStyle', QyStyle.qyStyle(type))
|
|
@@ -442,6 +437,7 @@ export default defineComponent({
|
|
|
console.error('异常企业:', v)
|
|
|
}
|
|
|
})
|
|
|
+ store.dispatch('gis/LOAD_tempStatistic', tempStatistic)
|
|
|
state.qyParams.source = new source.Vector({
|
|
|
features: features,
|
|
|
wrapX: false
|