Commit 599aed8a authored by yht15023815643's avatar yht15023815643

项目概览

parent e4f17a5a
This diff is collapsed.
...@@ -14,7 +14,9 @@ ...@@ -14,7 +14,9 @@
:amountTotal="amountTotal" :amountTotal="amountTotal"
@handle-search="handleSearch" @handle-search="handleSearch"
/> />
<skeleton style="margin-left:16px;" v-if="isSkeleton"></skeleton>
<tables <tables
v-else
:indexFixed="true" :indexFixed="true"
:tableLoading="tableLoading" :tableLoading="tableLoading"
:tableData="tableData" :tableData="tableData"
...@@ -39,6 +41,7 @@ ...@@ -39,6 +41,7 @@
import mixin from '../../mixins/mixin' import mixin from '../../mixins/mixin'
import {clientProjectPage,getSelect,bidWinMergeDetail} from '@/api/detail/party-a/dealings' import {clientProjectPage,getSelect,bidWinMergeDetail} from '@/api/detail/party-a/dealings'
import HeadDetailForm from "../../component/HeadDetailForm" import HeadDetailForm from "../../component/HeadDetailForm"
import skeleton from '@/views/project/projectList/component/skeleton'
export default { export default {
props: [ props: [
...@@ -47,12 +50,13 @@ export default { ...@@ -47,12 +50,13 @@ export default {
'title' 'title'
], ],
components: { components: {
HeadDetailForm HeadDetailForm,skeleton
}, },
mixins: [mixin], mixins: [mixin],
data() { data() {
return { return {
drawer: false, drawer: false,
isSkeleton:true,
queryParams: { queryParams: {
cid: this.companyId, cid: this.companyId,
companyId: this.data.companyId, companyId: this.data.companyId,
...@@ -113,6 +117,7 @@ export default { ...@@ -113,6 +117,7 @@ export default {
if(res.code==200){ if(res.code==200){
this.tableData = res.rows this.tableData = res.rows
} }
this.isSkeleton = false;
this.tableDataTotal = res.total this.tableDataTotal = res.total
this.amountTotal = res.totalAmount this.amountTotal = res.totalAmount
}, },
......
...@@ -14,7 +14,9 @@ ...@@ -14,7 +14,9 @@
:amountTotal="amountTotal" :amountTotal="amountTotal"
@handle-search="handleSearch" @handle-search="handleSearch"
/> />
<skeleton style="margin-left:16px;" v-if="isSkeleton"></skeleton>
<tables <tables
v-else
:indexFixed="true" :indexFixed="true"
:tableLoading="tableLoading" :tableLoading="tableLoading"
:tableData="tableData" :tableData="tableData"
...@@ -39,6 +41,7 @@ ...@@ -39,6 +41,7 @@
import mixin from '../../mixins/mixin' import mixin from '../../mixins/mixin'
import { supplierProjectPage,getSelect,bidWinMergeDetail } from '@/api/detail/party-a/dealings' import { supplierProjectPage,getSelect,bidWinMergeDetail } from '@/api/detail/party-a/dealings'
import HeadDetailForm from "../../component/HeadDetailForm" import HeadDetailForm from "../../component/HeadDetailForm"
import skeleton from '@/views/project/projectList/component/skeleton'
export default { export default {
props: [ props: [
...@@ -47,11 +50,12 @@ export default { ...@@ -47,11 +50,12 @@ export default {
'title' 'title'
], ],
components: { components: {
HeadDetailForm HeadDetailForm,skeleton
}, },
mixins: [mixin], mixins: [mixin],
data() { data() {
return { return {
isSkeleton:true,
drawer: false, drawer: false,
queryParams: { queryParams: {
companyId: this.data.companyId, companyId: this.data.companyId,
...@@ -113,6 +117,7 @@ export default { ...@@ -113,6 +117,7 @@ export default {
if(res.code==200){ if(res.code==200){
this.tableData = res.rows this.tableData = res.rows
} }
this.isSkeleton = false;
this.tableDataTotal = res.total this.tableDataTotal = res.total
this.amountTotal = res.totalAmount this.amountTotal = res.totalAmount
}, },
......
...@@ -130,7 +130,7 @@ export default { ...@@ -130,7 +130,7 @@ export default {
handleClick(e, data) { handleClick(e, data) {
this.rowData = data this.rowData = data
this.isDetails = true; this.isDetails = true;
this.title = '与客户'+data.companyName+'合作记录' this.title = '与客户'+data.companyName.replace(/<font color='red'>/g,'').replace(/<\/font>/g,'')+'合作记录'
}, },
handleDetail(row){ handleDetail(row){
if(row.sourceUrl){ if(row.sourceUrl){
......
...@@ -124,7 +124,7 @@ export default { ...@@ -124,7 +124,7 @@ export default {
handleClick(e, data) { handleClick(e, data) {
this.rowData = data this.rowData = data
this.isDetails = true this.isDetails = true
this.title = '与供应商'+data.companyName+'合作记录' this.title = '与供应商'+data.companyName.replace(/<font color='red'>/g,'').replace(/<\/font>/g,'')+'合作记录'
}, },
handleDetail(row){ handleDetail(row){
if(row.sourceUrl){ if(row.sourceUrl){
......
...@@ -342,6 +342,7 @@ ...@@ -342,6 +342,7 @@
import * as echarts from 'echarts' import * as echarts from 'echarts'
import addproject from '../projectList/component/addProject' import addproject from '../projectList/component/addProject'
import NoData from '../../component/noData' import NoData from '../../component/noData'
import '@/assets/lib/china.js'
export default { export default {
name: 'Overview', name: 'Overview',
...@@ -473,9 +474,11 @@ export default { ...@@ -473,9 +474,11 @@ export default {
countGroupByProvince(data).then(res=>{ countGroupByProvince(data).then(res=>{
if(res.code==200){ if(res.code==200){
this.viewData4 = res.data; this.viewData4 = res.data;
console.log(this.viewData4)
if(this.viewData4.length>0){ if(this.viewData4.length>0){
res.data.map(item=>{ this.viewData4.map(item=>{
item.name = item.type
item.value = {count:item.count}
item.select = { item.select = {
itemStyle:{ itemStyle:{
areaColor: '#0081FF', areaColor: '#0081FF',
...@@ -486,9 +489,11 @@ export default { ...@@ -486,9 +489,11 @@ export default {
} }
} }
}) })
let chartDom1 = document.getElementById("drawChinese") this.$nextTick(()=>{
this.myChart4 = echarts.init(chartDom1) console.log(this.viewData4)
this.initChart4() this.initChart4()
})
} }
} }
}) })
...@@ -722,15 +727,18 @@ export default { ...@@ -722,15 +727,18 @@ export default {
}, },
//中国地图 //中国地图
initChart4(){ initChart4(){
let chartDom1 = document.getElementById("drawChinese")
this.myChart4 = echarts.init(chartDom1)
let _this = this let _this = this
// 指定图表的配置项和数据 // 指定图表的配置项和数据
// 绘制图表 // 绘制图表
let options = { let options = {
tooltip: { tooltip: {
trigger: 'item', trigger: 'item',
show: false, show: true,
formatter: function(params) { formatter: function(params) {
return params.type + ':' + params.count console.dir(params )
return `${params.value}`
} }
}, },
// 左侧小导航图标 // 左侧小导航图标
...@@ -749,6 +757,7 @@ export default { ...@@ -749,6 +757,7 @@ export default {
mapType: 'china', mapType: 'china',
roam: false, roam: false,
zoom: 1.2, zoom: 1.2,
label: { label: {
normal: { normal: {
show: false, // 省份名称 show: false, // 省份名称
...@@ -1183,6 +1192,7 @@ export default { ...@@ -1183,6 +1192,7 @@ export default {
height: 360px; height: 360px;
margin-top: -30px; margin-top: -30px;
position: relative; position: relative;
margin: 0 auto;
.nhzd{ .nhzd{
width: 50px; width: 50px;
height: auto; height: auto;
......
...@@ -282,15 +282,7 @@ ...@@ -282,15 +282,7 @@
<img src="@/assets/images/addree.png" alt=""> <img src="@/assets/images/addree.png" alt="">
<p class="list-content-text" v-if="item.province||item.city||item.area"> <p class="list-content-text" v-if="item.province||item.city||item.area">
<span>行政区划:</span> <span>行政区划:</span>
<span > <span >{{item.province}}<template v-if="item.city">-{{item.city}}</template><template v-if="item.area">-{{item.area}}</template></span>
{{item.province}}
<template v-if="item.city">
-{{item.city}}
</template>
<template v-if="item.area">
-{{item.area}}
</template>
</span>
</p> </p>
<p class="list-content-text" v-if="item.landAddr"> <p class="list-content-text" v-if="item.landAddr">
<span>土地坐落:</span> <span>土地坐落:</span>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment