|
|
@@ -1,5 +1,155 @@
|
|
|
<template>
|
|
|
- <div class="about">
|
|
|
- <h1>This is company page</h1>
|
|
|
+ <div class="company">
|
|
|
+ <!-- 搜索框 -->
|
|
|
+ <div class="input-box">
|
|
|
+ <img src="../../assets/search.png" alt="search" />
|
|
|
+ <input type="text" placeholder="请输入企业名/人名" v-model="searchVal"/>
|
|
|
+ <button>确定</button>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="chart-box">
|
|
|
+ <div class="chart-title">按园区统计</div>
|
|
|
+ <annular :list="annularList"></annular>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="chart-box" style="margin-top: 40px">
|
|
|
+ <div class="chart-title">按行业统计</div>
|
|
|
+ <singleBar :chartDataList="annularList"></singleBar>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="chart-box">
|
|
|
+ <div class="chart-title">按纳税金额统计</div>
|
|
|
+ <pie :list="annularList"></pie>
|
|
|
+ </div>
|
|
|
+
|
|
|
</div>
|
|
|
</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+ import annular from '../../components/annularChart'
|
|
|
+ import singleBar from '../../components/singleBarChart'
|
|
|
+ import pie from '../../components/PieChart'
|
|
|
+ export default {
|
|
|
+//import引入的组件需要注入到对象中才能使用
|
|
|
+ components: {
|
|
|
+ annular,
|
|
|
+ singleBar,
|
|
|
+ pie
|
|
|
+ },
|
|
|
+ data() {
|
|
|
+//这里存放数据
|
|
|
+ return {
|
|
|
+ searchVal:'',
|
|
|
+ annularList:[
|
|
|
+ { value: 1048, name: '创新科技园' },
|
|
|
+ { value: 735, name: '科技园' },
|
|
|
+ { value: 580, name: '空港园区' },
|
|
|
+ { value: 484, name: '底张工业园' },
|
|
|
+ { value: 300, name: '科技创业园' },
|
|
|
+ { value: 623, name: '其他' }
|
|
|
+ ],
|
|
|
+
|
|
|
+ };
|
|
|
+ },
|
|
|
+//监听属性 类似于data概念
|
|
|
+ computed: {},
|
|
|
+//监控data中的数据变化
|
|
|
+ watch: {},
|
|
|
+//方法集合
|
|
|
+ methods: {
|
|
|
+ tabShow:function(flag){
|
|
|
+ this.tabFlag = flag;
|
|
|
+ },
|
|
|
+ selectClick(event) {
|
|
|
+ this.activeName = event.target.value;
|
|
|
+ switch (this.activeName) {
|
|
|
+ case '当月':
|
|
|
+ //this.runChartHttp('month');
|
|
|
+ break;
|
|
|
+ case '当年':
|
|
|
+ //this.runChartHttp('year');
|
|
|
+ break;
|
|
|
+ case '去年':
|
|
|
+ //this.runChartHttp('last');
|
|
|
+ break;
|
|
|
+ case '全部':
|
|
|
+ // this.runChartHttp('all');
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ topSearch: function () {
|
|
|
+ let that = this;
|
|
|
+ that.$api.totalApi.searchApi(that.searchVal,'common','company','list').then(res=>{
|
|
|
+ console.log(res)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ pageInit:function () {
|
|
|
+ //this.bullStockHttp();
|
|
|
+ },
|
|
|
+ },
|
|
|
+//生命周期 - 创建完成(可以访问当前this实例)
|
|
|
+ created() {
|
|
|
+
|
|
|
+ },
|
|
|
+//生命周期 - 挂载完成(可以访问DOM元素)
|
|
|
+ mounted() {
|
|
|
+ this.pageInit();
|
|
|
+ // setTimeout(()=>{
|
|
|
+ // window.location.reload()
|
|
|
+ // },1800000)
|
|
|
+ },
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+</script>
|
|
|
+<style>
|
|
|
+ .company {
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ }
|
|
|
+ .input-box {
|
|
|
+ width: 100%;
|
|
|
+ height: 50px;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ position: relative;
|
|
|
+ justify-content: start;
|
|
|
+ }
|
|
|
+ .input-box img {
|
|
|
+ position: absolute;
|
|
|
+ left: 36px;
|
|
|
+ width: 20px;
|
|
|
+ height:20px;
|
|
|
+ }
|
|
|
+ .input-box input {
|
|
|
+ background-color: #ffffff;
|
|
|
+ width: 65%;
|
|
|
+ height: 60%;
|
|
|
+ border-radius: 25px;
|
|
|
+ padding: 2px;
|
|
|
+ font-size: 14px;
|
|
|
+ padding-left: 50px;
|
|
|
+ border: 1px solid #ccc;
|
|
|
+ margin-right: 10px;
|
|
|
+ margin-left: 15px;
|
|
|
+ }
|
|
|
+ .input-box button {
|
|
|
+ height: 30px;
|
|
|
+ width: 55px;
|
|
|
+ color: #fff;
|
|
|
+ border: none;
|
|
|
+ background-color: cornflowerblue;
|
|
|
+ border-radius: 5px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .chart-title {
|
|
|
+ text-align: left;
|
|
|
+ padding-left: 20px;
|
|
|
+ }
|
|
|
+ .chart-box {
|
|
|
+ width: 100%;
|
|
|
+ height:40%;
|
|
|
+ margin-top: 20px;
|
|
|
+ }
|
|
|
+
|
|
|
+</style>
|