Commit c4aa188d authored by danfuman's avatar danfuman

修改

parent d50433f3
...@@ -70,7 +70,7 @@ export const constantRoutes = [ ...@@ -70,7 +70,7 @@ export const constantRoutes = [
path: 'index', path: 'index',
component: () => import('@/views/index'), component: () => import('@/views/index'),
name: 'Index', name: 'Index',
meta: { title: '首页', icon: 'index', } meta: { title: '首页', icon: 'index',noCache: false }
} }
] ]
}, },
......
...@@ -337,19 +337,25 @@ ...@@ -337,19 +337,25 @@
textStyle: { textStyle: {
align: 'left', align: 'left',
}, },
formatter: function (value,index) {
if (value.length > 15) {
value=`${value.slice(0, 15)}...`
}
return value
},
}, },
}, },
xAxis: { xAxis: {
type: 'value', type: 'value',
axisLabel: { //坐标轴刻度标签的相关设置 axisLabel: { //坐标轴刻度标签的相关设置
color:"#666666" // color:"#666666"
}, },
name: '单位/万元', name: '单位/万元',
// nameLocation: 'start', // nameLocation: 'start',
nameLocation: 'end', nameLocation: 'end',
nameTextStyle: { nameTextStyle: {
padding: [0, 0, 0, 0], // 四个数字分别为上右下左与原位置距离 padding: [0, 0, 0, 0], // 四个数字分别为上右下左与原位置距离
color: '#666666', // color: '#666666',
}, },
}, },
grid: { grid: {
...@@ -360,11 +366,11 @@ ...@@ -360,11 +366,11 @@
}, },
tooltip: { tooltip: {
show: true, show: true,
backgroundColor: 'rgba(0,0,0,.7)', // backgroundColor: 'rgba(0,0,0,.7)',
borderWidth: 0, borderWidth: 0,
textStyle: { // textStyle: {
color: '#fff', // color: '#fff',
}, // },
}, },
series: { series: {
name:'合同总额', name:'合同总额',
......
...@@ -155,8 +155,8 @@ ...@@ -155,8 +155,8 @@
> >
<el-table-column prop="companyName" label="企业名称"> <el-table-column prop="companyName" label="企业名称">
<template slot-scope="scope"> <template slot-scope="scope">
<router-link v-if="scope.row.companyId" :to="`/enterprise/${encodeStr(scope.row.companyId)}`" tag="a" class="a-link companyName" v-html="scope.row.companyName" ></router-link> <!--<router-link v-if="scope.row.companyId" :to="`/enterprise/${encodeStr(scope.row.companyId)}`" tag="a" class="a-link companyName" v-html="scope.row.companyName" ></router-link>-->
<span v-else>{{scope.row.companyName}}</span> <span style="cursor: pointer;" class="a-link companyName" @click="getUipIdByCid(scope.row.companyId)">{{scope.row.companyName}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="count" label="中标数量(个)" align="right" sortable width="150"/> <el-table-column prop="count" label="中标数量(个)" align="right" sortable width="150"/>
...@@ -458,6 +458,7 @@ ...@@ -458,6 +458,7 @@
import CustomMoneySelect from './component/CustomMoneySelect' import CustomMoneySelect from './component/CustomMoneySelect'
import skeleton from './component/skeleton' import skeleton from './component/skeleton'
import { countByCompany,bidRank,bigWinningBidsPage,bigBidPage } from '@/api/index' import { countByCompany,bidRank,bigWinningBidsPage,bigBidPage } from '@/api/index'
import { getUipIdByCid } from '@/api/macro/macro'
import api from '@/api/radar/radar.js'; import api from '@/api/radar/radar.js';
export default { export default {
name: "Index", name: "Index",
...@@ -1319,6 +1320,21 @@ export default { ...@@ -1319,6 +1320,21 @@ export default {
this.getBigBidPage() this.getBigBidPage()
} }
}, },
getUipIdByCid(companyId){
var params=[companyId]
getUipIdByCid(params).then(res=>{
if (res.code==200) {
if(res.data&&res.data.length>0&&res.data[0].uipId){
this.$router.push({path: '/enterprise/'+this.encodeStr(companyId)})
}else{
this.$router.push({path: '/company/'+this.encodeStr(companyId)})
}
}
}).catch(error=>{
});
},
} }
}; };
</script> </script>
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
</el-table-column> </el-table-column>
<el-table-column label="地区" min-width="150" align="left" fixed> <el-table-column label="地区" min-width="150" align="left" fixed>
<template slot-scope="scope"> <template slot-scope="scope">
<span @click="clickTo(scope.row)">{{ scope.row.province}}{{scope.row.city ? '-': ''}}{{ scope.row.city}}{{scope.row.area ? '-': ''}}{{ scope.row.area}}</span> <span @click="clickTo(scope.row)" style="cursor: pointer;" class="a-link">{{ scope.row.province}}{{scope.row.city ? '-': ''}}{{ scope.row.city}}{{scope.row.area ? '-': ''}}{{ scope.row.area}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="年度明细" prop="id" width="90" align="center" fixed> <el-table-column label="年度明细" prop="id" width="90" align="center" fixed>
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
</el-select> </el-select>
</div> </div>
</div> </div>
<div class="content_box"> <div class="content_box" v-if="xmtjList.length > 0 && !isSkeleton">
<div class="box-left"> <div class="box-left">
<div id="echarts1" style="height: 280px"></div> <div id="echarts1" style="height: 280px"></div>
</div> </div>
...@@ -38,10 +38,10 @@ ...@@ -38,10 +38,10 @@
</el-table> </el-table>
</div> </div>
</div> </div>
<!--<div class="empty">--> <div class="empty" v-if="xmtjList.length === 0 && !isSkeleton">
<!--<img class="img" src="@/assets/images/project/empty.png">--> <img class="img" src="@/assets/images/project/empty.png">
<!--<div class="p1">抱歉,暂无数据展示</div>--> <div class="p1">抱歉,暂无数据展示</div>
<!--</div>--> </div>
</div> </div>
<div v-if="!zbtjState" class="td_content"> <div v-if="!zbtjState" class="td_content">
<div class="flex-box query-box"> <div class="flex-box query-box">
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
</el-select> </el-select>
</div> </div>
</div> </div>
<div class="content_box"> <div class="content_box" v-if="topList.length > 0 && !zbtjState">
<div class="box-left"> <div class="box-left">
<div id="echarts2" style="height: 280px"></div> <div id="echarts2" style="height: 280px"></div>
</div> </div>
...@@ -79,10 +79,10 @@ ...@@ -79,10 +79,10 @@
</el-table> </el-table>
</div> </div>
</div> </div>
<!--<div class="empty" v-if="!zbtjState">--> <div class="empty" v-if="topList.length === 0 && !zbtjState">
<!--<img class="img" src="@/assets/images/project/empty.png">--> <img class="img" src="@/assets/images/project/empty.png">
<!--<div class="p1">抱歉,暂无数据展示</div>--> <div class="p1">抱歉,暂无数据展示</div>
<!--</div>--> </div>
</div> </div>
<div v-if="!jefxState" class="td_content"> <div v-if="!jefxState" class="td_content">
<div class="flex-box query-box"> <div class="flex-box query-box">
...@@ -93,7 +93,7 @@ ...@@ -93,7 +93,7 @@
</el-select> </el-select>
</div> </div>
</div> </div>
<div class="content_box"> <div class="content_box" v-if="zbjeList.length > 0 && !jefxState">
<div class="box-left"> <div class="box-left">
<div id="echarts3" style="height: 280px"></div> <div id="echarts3" style="height: 280px"></div>
</div> </div>
...@@ -118,10 +118,10 @@ ...@@ -118,10 +118,10 @@
</el-table> </el-table>
</div> </div>
</div> </div>
<!--<div class="empty" v-if="!jefxState">--> <div class="empty" v-if="zbjeList.length === 0 && !jefxState">
<!--<img class="img" src="@/assets/images/project/empty.png">--> <img class="img" src="@/assets/images/project/empty.png">
<!--<div class="p1">抱歉,暂无数据展示</div>--> <div class="p1">抱歉,暂无数据展示</div>
<!--</div>--> </div>
</div> </div>
<div v-if="!qsfxState" class="td_content"> <div v-if="!qsfxState" class="td_content">
<div class="flex-box query-box"> <div class="flex-box query-box">
...@@ -129,7 +129,7 @@ ...@@ -129,7 +129,7 @@
<span class="common-title">全国中标趋势分析</span> <span class="common-title">全国中标趋势分析</span>
</div> </div>
</div> </div>
<div class="content_box"> <div class="content_box" v-if="zbqsList.length > 0 && !qsfxState">
<div class="box-left"> <div class="box-left">
<div id="echarts4" style="height: 300px"></div> <div id="echarts4" style="height: 300px"></div>
</div> </div>
...@@ -154,6 +154,10 @@ ...@@ -154,6 +154,10 @@
</el-table> </el-table>
</div> </div>
</div> </div>
<div class="empty" v-if="zbqsList.length === 0 && !qsfxState">
<img class="img" src="@/assets/images/project/empty.png">
<div class="p1">抱歉,暂无数据展示</div>
</div>
</div> </div>
<div v-if="!xflState" class="td_content"> <div v-if="!xflState" class="td_content">
<div class="flex-box query-box"> <div class="flex-box query-box">
...@@ -164,7 +168,7 @@ ...@@ -164,7 +168,7 @@
</el-select> </el-select>
</div> </div>
</div> </div>
<div class="content_box"> <div class="content_box" v-if="xflList.length > 0 && !xflState">
<div class="box-left"> <div class="box-left">
<div id="echarts5" style="height: 280px"></div> <div id="echarts5" style="height: 280px"></div>
</div> </div>
...@@ -189,17 +193,17 @@ ...@@ -189,17 +193,17 @@
</el-table> </el-table>
</div> </div>
</div> </div>
<!--<div class="empty" v-if="!xflState">--> <div class="empty" v-if="xflList.length === 0 && !xflState">
<!--<img class="img" src="@/assets/images/project/empty.png">--> <img class="img" src="@/assets/images/project/empty.png">
<!--<div class="p1">抱歉,暂无数据展示</div>--> <div class="p1">抱歉,暂无数据展示</div>
<!--</div>--> </div>
</div> </div>
<div v-if="!xmlxState" class="td_content"> <div v-if="!xmlxState" class="td_content">
<div class="flex-box query-box"> <div class="flex-box query-box">
<div class="flex-box query-params"> <div class="flex-box query-params">
<span class="common-title">全国中标业绩项目类型下浮率</span> <span class="common-title">全国中标业绩项目类型下浮率</span>
<el-select @change="handleYears(6)" style="margin-right: 8px" v-model="address" collapse-tags filterable class="form-content-width" placeholder="地区筛选" :popper-append-to-body='false' size="small"> <el-select @change="handleYears(6)" style="margin-right: 8px" v-model="address" clearable collapse-tags filterable class="form-content-width" placeholder="地区筛选" :popper-append-to-body='false' size="small">
<el-option v-for="(item, index) in addressList" :key="index" :label="item.label" :value="item.id" /> <el-option v-for="(item, index) in addressList" :key="index" :label="item.label" :value="item.id" />
</el-select> </el-select>
<el-select v-model="years4" @change="handleYears(6)" collapse-tags filterable class="form-content-width" placeholder="请选择" :popper-append-to-body='false' size="small"> <el-select v-model="years4" @change="handleYears(6)" collapse-tags filterable class="form-content-width" placeholder="请选择" :popper-append-to-body='false' size="small">
...@@ -207,7 +211,7 @@ ...@@ -207,7 +211,7 @@
</el-select> </el-select>
</div> </div>
</div> </div>
<div class="content_box"> <div class="content_box" v-if="xmxflList.length > 0 && !isSkeleton">
<div class="box-left"> <div class="box-left">
<div id="echarts6" style="height: 300px"></div> <div id="echarts6" style="height: 300px"></div>
</div> </div>
...@@ -233,10 +237,10 @@ ...@@ -233,10 +237,10 @@
</el-table> </el-table>
</div> </div>
</div> </div>
<!--<div class="empty">--> <div class="empty" v-if="xmxflList.length === 0 && !xmlxState">
<!--<img class="img" src="@/assets/images/project/empty.png">--> <img class="img" src="@/assets/images/project/empty.png">
<!--<div class="p1">抱歉,暂无数据展示</div>--> <div class="p1">抱歉,暂无数据展示</div>
<!--</div>--> </div>
</div> </div>
</div> </div>
......
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