src/views/dashboard/Analysis.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/dashboard/IndexBdc.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/dashboard/IndexChart.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/dashboard/IndexTask.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/dashboard/Monitor.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/dashboard/Workplace.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/views/dashboard/Analysis.vue
@@ -1,30 +1,26 @@ <template> <div> <index-chart v-if="indexStyle==1"></index-chart> <!--<index-bdc v-if="indexStyle==2"></index-bdc>--> <!--<index-task v-if="indexStyle==3"></index-task>--> <!--<div style="width: 100%;text-align: right;margin-top: 20px">--> <!--请选择首页样式:--> <!--<!–<a-radio-group v-model="indexStyle">–>--> <!--<!–<a-radio :value="1">统计图表</a-radio>–>--> <!--<!–<a-radio :value="2">统计图表2</a-radio>–>--> <!--<!–<a-radio :value="3">任务表格</a-radio>–>--> <!--<!–</a-radio-group>–>--> <!--</div>--> <a-button type="primary" size="large" v-for="item in workshopList" :key="item.workshopId" @click="navigateToWorkshopSignage(item.id)">{{item.workshopName}} </a-button> <index-bdc v-if="indexStyle==2"></index-bdc> <index-task v-if="indexStyle==3"></index-task> <div style="width: 100%;text-align: right;margin-top: 20px"> 请选择首页样式: <a-radio-group v-model="indexStyle"> <a-radio :value="1">统计图表</a-radio> <a-radio :value="2">统计图表2</a-radio> <a-radio :value="3">任务表格</a-radio> </a-radio-group> </div> </div> </template> <script> import IndexChart from './IndexChart' import IndexTask from './IndexTask' import IndexTask from "./IndexTask" import IndexBdc from './IndexBdc' import api from '@/api/mdc' export default { name: 'Analysis', name: "Analysis", components: { IndexChart, IndexTask, @@ -32,50 +28,14 @@ }, data() { return { indexStyle: 1, workshopList: [ { workshopName: '长沙车间', id: '5321' }, { workshopName: '天津车间', id: '6312' }, { workshopName: '武汉车间', id: '3463' }, { workshopName: '北京车间', id: '8421' } ] indexStyle: 1 } }, created() { this.getWorkshopListByApi() }, methods: { /** * 通过车间Id跳转至相应车间大屏看板 * @param id 车间Id */ navigateToWorkshopSignage(id) { const url = this.$router.resolve(`/workshopSignage/${id}`).href window.open(url, '_blank') }, /** * 获取车间列表 */ getWorkshopListByApi() { api.getWorkshopListInHomePageApi().then(res => { console.log('res', res) if (res.result && res.result.length > 0) { this.workshopList = res.result } }) } } } </script> src/views/dashboard/IndexBdc.vue
@@ -1,9 +1,21 @@ <template> <div class="page-header-index-wide"> <a-row :gutter="24"> <a-col :sm="24" :md="12" :xl="6" :style="{ marginBottom: '24px' }"> <chart-card :loading="loading" title="受理量" :total="cardCount.sll | NumberFormat"> <a-tooltip title="指标说明" slot="action"> <a-col :sm="24" :md="12" :xl="6" :style="{ marginBottom: '24px' }" > <chart-card :loading="loading" title="受理量" :total="cardCount.sll | NumberFormat" > <a-tooltip title="指标说明" slot="action" > <a-icon type="info-circle-o" /> </a-tooltip> <div> @@ -12,9 +24,21 @@ <template slot="footer">今日受理量:<span>{{ todaySll }}</span></template> </chart-card> </a-col> <a-col :sm="24" :md="12" :xl="6" :style="{ marginBottom: '24px' }"> <chart-card :loading="loading" title="办结量" :total="cardCount.bjl | NumberFormat"> <a-tooltip title="指标说明" slot="action"> <a-col :sm="24" :md="12" :xl="6" :style="{ marginBottom: '24px' }" > <chart-card :loading="loading" title="办结量" :total="cardCount.bjl | NumberFormat" > <a-tooltip title="指标说明" slot="action" > <a-icon type="info-circle-o" /> </a-tooltip> <div> @@ -23,34 +47,75 @@ <template slot="footer">今日办结量:<span>{{ todayBjl }}</span></template> </chart-card> </a-col> <a-col :sm="24" :md="12" :xl="6" :style="{ marginBottom: '24px' }"> <chart-card :loading="loading" title="用户受理量" :total="cardCount.isll | NumberFormat"> <a-tooltip title="指标说明" slot="action"> <a-col :sm="24" :md="12" :xl="6" :style="{ marginBottom: '24px' }" > <chart-card :loading="loading" title="用户受理量" :total="cardCount.isll | NumberFormat" > <a-tooltip title="指标说明" slot="action" > <a-icon type="info-circle-o" /> </a-tooltip> <div> <mini-bar :datasource="chartData.isll" :height="50"/> <mini-bar :datasource="chartData.isll" :height="50" /> </div> <template slot="footer">用户今日受理量:<span>{{ todayISll }}</span></template> </chart-card> </a-col> <a-col :sm="24" :md="12" :xl="6" :style="{ marginBottom: '24px' }"> <chart-card :loading="loading" title="用户办结量" :total="cardCount.ibjl | NumberFormat"> <a-tooltip title="指标说明" slot="action"> <a-col :sm="24" :md="12" :xl="6" :style="{ marginBottom: '24px' }" > <chart-card :loading="loading" title="用户办结量" :total="cardCount.ibjl | NumberFormat" > <a-tooltip title="指标说明" slot="action" > <a-icon type="info-circle-o" /> </a-tooltip> <div> <mini-bar :datasource="chartData.ibjl" :height="50"/> <mini-bar :datasource="chartData.ibjl" :height="50" /> </div> <template slot="footer">用户今日办结量:<span>{{ todayIBjl }}</span></template> </chart-card> </a-col> </a-row> <a-card :loading="loading" :bordered="false" :body-style="{padding: '0'}"> <a-card :loading="loading" :bordered="false" :body-style="{padding: '0'}" > <div class="salesCard"> <a-tabs default-active-key="1" size="large" :tab-bar-style="{marginBottom: '24px', paddingLeft: '16px'}"> <div class="extra-wrapper" slot="tabBarExtraContent"> <a-tabs default-active-key="1" size="large" :tab-bar-style="{marginBottom: '24px', paddingLeft: '16px'}" > <div class="extra-wrapper" slot="tabBarExtraContent" > <div class="extra-item"> <a>今日</a> <a>本周</a> @@ -60,18 +125,50 @@ <a-range-picker :style="{width: '256px'}" /> </div> <a-tab-pane loading="true" tab="受理监管" key="1"> <a-tab-pane loading="true" tab="受理监管" key="1" > <a-row> <a-col :xl="16" :lg="12" :md="12" :sm="24" :xs="24"> <a-col :xl="16" :lg="12" :md="12" :sm="24" :xs="24" > <index-bar title="受理量统计" /> </a-col> <a-col :xl="8" :lg="12" :md="12" :sm="24" :xs="24"> <a-col :xl="8" :lg="12" :md="12" :sm="24" :xs="24" > <a-card title="快速开始 / 便捷导航" style="margin-bottom: 24px" :bordered="false" :body-style="{padding: 0}"> <a-card title="快速开始 / 便捷导航" style="margin-bottom: 24px" :bordered="false" :body-style="{padding: 0}" > <div class="item-group"> <a-row> <a-col :class="'more-btn'" :span="12" v-for="(item,index) in registerTypeList" :key=" 'registerType'+index "> <a-button @click="goPage(index)" style="margin-bottom:10px" size="small" type="primary" ghost>{{ item.text }}</a-button> <a-col :class="'more-btn'" :span="12" v-for="(item,index) in registerTypeList" :key=" 'registerType'+index " > <a-button @click="goPage(index)" style="margin-bottom:10px" size="small" type="primary" ghost >{{ item.text }}</a-button> </a-col> </a-row> </div> @@ -81,18 +178,53 @@ </a-row> </a-tab-pane> <a-tab-pane tab="交互监管" key="2"> <a-tab-pane tab="交互监管" key="2" > <a-row> <a-col :xl="16" :lg="12" :md="12" :sm="24" :xs="24"> <bar-multid :sourceData="jhjgData" :fields="jhjgFields" title="平台与部门交互量统计"></bar-multid> <a-col :xl="16" :lg="12" :md="12" :sm="24" :xs="24" > <bar-multid :sourceData="jhjgData" :fields="jhjgFields" title="平台与部门交互量统计" ></bar-multid> </a-col> <a-col :xl="8" :lg="12" :md="12" :sm="24" :xs="24"> <a-col :xl="8" :lg="12" :md="12" :sm="24" :xs="24" > <a-card title="快速开始 / 便捷导航" style="margin-bottom: 24px" :bordered="false" :body-style="{padding: 0}"> <a-card title="快速开始 / 便捷导航" style="margin-bottom: 24px" :bordered="false" :body-style="{padding: 0}" > <div class="item-group"> <a-row> <a-col :class="'more-btn'" :span="12" v-for="(item,index) in registerTypeList" :key=" 'registerType'+index "> <a-button @click="goPage(index)" style="margin-bottom:10px" size="small" type="primary" ghost>{{ item.text }}</a-button> <a-col :class="'more-btn'" :span="12" v-for="(item,index) in registerTypeList" :key=" 'registerType'+index " > <a-button @click="goPage(index)" style="margin-bottom:10px" size="small" type="primary" ghost >{{ item.text }}</a-button> </a-col> </a-row> </div> @@ -102,25 +234,63 @@ </a-row> </a-tab-pane> <a-tab-pane tab="存储监管" key="4"> <a-tab-pane tab="存储监管" key="4" > <a-row> <a-col :xl="16" :lg="12" :md="12" :sm="24" :xs="24"> <a-col :xl="16" :lg="12" :md="12" :sm="24" :xs="24" > <a-row> <template v-if="diskInfo && diskInfo.length>0"> <a-col :span="12" v-for="(item,index) in diskInfo" :key=" 'diskInfo'+index "> <dash-chart-demo :title="item.name" :datasource="item.restPPT"></dash-chart-demo> <a-col :span="12" v-for="(item,index) in diskInfo" :key=" 'diskInfo'+index " > <dash-chart-demo :title="item.name" :datasource="item.restPPT" ></dash-chart-demo> </a-col> </template> </a-row> </a-col> <a-col :xl="8" :lg="12" :md="12" :sm="24" :xs="24"> <a-col :xl="8" :lg="12" :md="12" :sm="24" :xs="24" > <a-card title="快速开始 / 便捷导航" style="margin-bottom: 24px" :bordered="false" :body-style="{padding: 0}"> <a-card title="快速开始 / 便捷导航" style="margin-bottom: 24px" :bordered="false" :body-style="{padding: 0}" > <div class="item-group"> <a-row> <a-col :class="'more-btn'" :span="10" v-for="(item,index) in registerTypeList" :key=" 'registerType'+index "> <a-button @click="goPage(index)" style="margin-bottom:10px" size="small" type="primary" ghost>{{ item.text }}</a-button> <a-col :class="'more-btn'" :span="10" v-for="(item,index) in registerTypeList" :key=" 'registerType'+index " > <a-button @click="goPage(index)" style="margin-bottom:10px" size="small" type="primary" ghost >{{ item.text }}</a-button> </a-col> </a-row> </div> @@ -136,36 +306,83 @@ </a-card> <a-row :gutter="12"> <a-card :loading="loading" :class="{ 'anty-list-cust':true }" :bordered="false" :style="{ marginTop: '24px' }"> <a-card :loading="loading" :class="{ 'anty-list-cust':true }" :bordered="false" :style="{ marginTop: '24px' }" > <a-tabs v-model="indexBottomTab" size="large" :tab-bar-style="{marginBottom: '24px', paddingLeft: '16px'}"> <div class="extra-wrapper" slot="tabBarExtraContent"> <a-radio-group v-model="indexRegisterType" @change="changeRegisterType"> <a-tabs v-model="indexBottomTab" size="large" :tab-bar-style="{marginBottom: '24px', paddingLeft: '16px'}" > <div class="extra-wrapper" slot="tabBarExtraContent" > <a-radio-group v-model="indexRegisterType" @change="changeRegisterType" > <a-radio-button value="转移登记">转移登记</a-radio-button> <a-radio-button value="抵押登记">抵押登记</a-radio-button> <a-radio-button value="">所有</a-radio-button> </a-radio-group> </div> <a-tab-pane loading="true" tab="业务流程限时监管" key="1"> <a-tab-pane loading="true" tab="业务流程限时监管" key="1" > <a-table :dataSource="dataSource1" size="default" rowKey="id" :columns="columns" :pagination="ipagination1" @change="tableChange1"> <template slot="flowRate" slot-scope="text, record, index"> <a-progress :strokeColor="getPercentColor(record.flowRate)" :format="getPercentFormat" :percent="getFlowRateNumber(record.flowRate)" style="width:80px" /> <a-table :dataSource="dataSource1" size="default" rowKey="id" :columns="columns" :pagination="ipagination1" @change="tableChange1" > <template slot="flowRate" slot-scope="text, record, index" > <a-progress :strokeColor="getPercentColor(record.flowRate)" :format="getPercentFormat" :percent="getFlowRateNumber(record.flowRate)" style="width:80px" /> </template> </a-table> </a-tab-pane> <a-tab-pane loading="true" tab="业务节点限时监管" key="2"> <a-table :dataSource="dataSource2" size="default" rowKey="id" :columns="columns2" :pagination="ipagination2" @change="tableChange2"> <template slot="flowRate" slot-scope="text, record, index"> <a-tab-pane loading="true" tab="业务节点限时监管" key="2" > <a-table :dataSource="dataSource2" size="default" rowKey="id" :columns="columns2" :pagination="ipagination2" @change="tableChange2" > <template slot="flowRate" slot-scope="text, record, index" > <span style="color: red;">{{ record.flowRate }}小时</span> </template> </a-table> </a-tab-pane> </a-tabs> </a-card> </a-row> @@ -481,7 +698,7 @@ } .list-content-item { color: rgba(0, 0, 0, .45); color: rgba(0, 0, 0, 0.45); display: inline-block; vertical-align: middle; font-size: 14px; @@ -499,21 +716,31 @@ margin-left:20px; } .width-hidden4{ display:none display: none; } } .list-content-item{ span{line-height: 20px;} span { line-height: 20px; } } .list-content-item{ p{margin-top: 4px;margin-bottom:0;line-height:22px;} p { margin-top: 4px; margin-bottom: 0; line-height: 22px; } } .anty-list-cust { .ant-list-item-meta{flex: 0.3 !important;} .ant-list-item-meta { flex: 0.3 !important; } } .anty-list-cust { .ant-list-item-content{flex:1 !important; justify-content:flex-start !important;margin-left: 20px;} .ant-list-item-content { flex: 1 !important; justify-content: flex-start !important; margin-left: 20px; } } </style> src/views/dashboard/IndexChart.vue
@@ -1,134 +1,276 @@ <template> <div class="page-header-index-wide"> <!--<a-row :gutter="24">--> <!--<a-col :sm="24" :md="12" :xl="6" :style="{ marginBottom: '24px' }">--> <!--<chart-card :loading="loading" title="总销售额" total="¥126,560">--> <!--<a-tooltip title="指标说明" slot="action">--> <!--<a-icon type="info-circle-o" />--> <!--</a-tooltip>--> <!--<div>--> <!--<trend flag="up" style="margin-right: 16px;">--> <!--<span slot="term">周同比</span>--> <!--12%--> <!--</trend>--> <!--<trend flag="down">--> <!--<span slot="term">日同比</span>--> <!--11%--> <!--</trend>--> <!--</div>--> <!--<template slot="footer">日均销售额<span>¥ 234.56</span></template>--> <!--</chart-card>--> <!--</a-col>--> <!--<a-col :sm="24" :md="12" :xl="6" :style="{ marginBottom: '24px' }">--> <!--<chart-card :loading="loading" title="订单量" :total="8846 | NumberFormat">--> <!--<a-tooltip title="指标说明" slot="action">--> <!--<a-icon type="info-circle-o" />--> <!--</a-tooltip>--> <!--<div>--> <!--<mini-area />--> <!--</div>--> <!--<template slot="footer">日订单量<span> {{ '1234' | NumberFormat }}</span></template>--> <!--</chart-card>--> <!--</a-col>--> <!--<a-col :sm="24" :md="12" :xl="6" :style="{ marginBottom: '24px' }">--> <!--<chart-card :loading="loading" title="支付笔数" :total="6560 | NumberFormat">--> <!--<a-tooltip title="指标说明" slot="action">--> <!--<a-icon type="info-circle-o" />--> <!--</a-tooltip>--> <!--<div>--> <!--<mini-bar :height="40" />--> <!--</div>--> <!--<template slot="footer">转化率 <span>60%</span></template>--> <!--</chart-card>--> <!--</a-col>--> <!--<a-col :sm="24" :md="12" :xl="6" :style="{ marginBottom: '24px' }">--> <!--<chart-card :loading="loading" title="运营活动效果" total="78%">--> <!--<a-tooltip title="指标说明" slot="action">--> <!--<a-icon type="info-circle-o" />--> <!--</a-tooltip>--> <!--<div>--> <!--<mini-progress color="rgb(19, 194, 194)" :target="80" :percentage="78" :height="8" />--> <!--</div>--> <!--<template slot="footer">--> <!--<trend flag="down" style="margin-right: 16px;">--> <!--<span slot="term">同周比</span>--> <!--12%--> <!--</trend>--> <!--<trend flag="up">--> <!--<span slot="term">日环比</span>--> <!--80%--> <!--</trend>--> <!--</template>--> <!--</chart-card>--> <!--</a-col>--> <!--</a-row>--> <a-row :gutter="24"> <a-col :sm="24" :md="12" :xl="6" :style="{ marginBottom: '24px' }" > <chart-card :loading="loading" title="总销售额" total="¥126,560" > <a-tooltip title="指标说明" slot="action" > <a-icon type="info-circle-o" /> </a-tooltip> <div> <trend flag="up" style="margin-right: 16px;" > <span slot="term">周同比</span> 12% </trend> <trend flag="down"> <span slot="term">日同比</span> 11% </trend> </div> <template slot="footer">日均销售额<span>¥ 234.56</span></template> </chart-card> </a-col> <a-col :sm="24" :md="12" :xl="6" :style="{ marginBottom: '24px' }" > <chart-card :loading="loading" title="订单量" :total="8846 | NumberFormat" > <a-tooltip title="指标说明" slot="action" > <a-icon type="info-circle-o" /> </a-tooltip> <div> <mini-area /> </div> <template slot="footer">日订单量<span> {{ '1234' | NumberFormat }}</span></template> </chart-card> </a-col> <a-col :sm="24" :md="12" :xl="6" :style="{ marginBottom: '24px' }" > <chart-card :loading="loading" title="支付笔数" :total="6560 | NumberFormat" > <a-tooltip title="指标说明" slot="action" > <a-icon type="info-circle-o" /> </a-tooltip> <div> <mini-bar :height="40" /> </div> <template slot="footer">转化率 <span>60%</span></template> </chart-card> </a-col> <a-col :sm="24" :md="12" :xl="6" :style="{ marginBottom: '24px' }" > <chart-card :loading="loading" title="运营活动效果" total="78%" > <a-tooltip title="指标说明" slot="action" > <a-icon type="info-circle-o" /> </a-tooltip> <div> <mini-progress color="rgb(19, 194, 194)" :target="80" :percentage="78" :height="8" /> </div> <template slot="footer"> <trend flag="down" style="margin-right: 16px;" > <span slot="term">同周比</span> 12% </trend> <trend flag="up"> <span slot="term">日环比</span> 80% </trend> </template> </chart-card> </a-col> </a-row> <!--<a-card :loading="loading" :bordered="false" :body-style="{padding: '0'}">--> <!--<div class="salesCard">--> <!--<a-tabs default-active-key="1" size="large" :tab-bar-style="{marginBottom: '24px', paddingLeft: '16px'}">--> <!--<div class="extra-wrapper" slot="tabBarExtraContent">--> <!--<div class="extra-item">--> <!--<a>今日</a>--> <!--<a>本周</a>--> <!--<a>本月</a>--> <!--<a>本年</a>--> <!--</div>--> <!--<a-range-picker :style="{width: '256px'}" />--> <!--</div>--> <!--<a-tab-pane loading="true" tab="销售额" key="1">--> <!--<a-row>--> <!--<a-col :xl="16" :lg="12" :md="12" :sm="24" :xs="24">--> <!--<bar title="销售额排行" :dataSource="barData"/>--> <!--</a-col>--> <!--<a-col :xl="8" :lg="12" :md="12" :sm="24" :xs="24">--> <!--<rank-list title="门店销售排行榜" :list="rankList"/>--> <!--</a-col>--> <!--</a-row>--> <!--</a-tab-pane>--> <!--<a-tab-pane tab="销售趋势" key="2">--> <!--<a-row>--> <!--<a-col :xl="16" :lg="12" :md="12" :sm="24" :xs="24">--> <!--<bar title="销售额趋势" :dataSource="barData"/>--> <!--</a-col>--> <!--<a-col :xl="8" :lg="12" :md="12" :sm="24" :xs="24">--> <!--<rank-list title="门店销售排行榜" :list="rankList"/>--> <!--</a-col>--> <!--</a-row>--> <!--</a-tab-pane>--> <!--</a-tabs>--> <!--</div>--> <!--</a-card>--> <a-card :loading="loading" :bordered="false" :body-style="{padding: '0'}" > <div class="salesCard"> <a-tabs default-active-key="1" size="large" :tab-bar-style="{marginBottom: '24px', paddingLeft: '16px'}" > <div class="extra-wrapper" slot="tabBarExtraContent" > <div class="extra-item"> <a>今日</a> <a>本周</a> <a>本月</a> <a>本年</a> </div> <a-range-picker :style="{width: '256px'}" /> </div> <a-tab-pane loading="true" tab="销售额" key="1" > <a-row> <a-col :xl="16" :lg="12" :md="12" :sm="24" :xs="24" > <bar title="销售额排行" :dataSource="barData" /> </a-col> <a-col :xl="8" :lg="12" :md="12" :sm="24" :xs="24" > <rank-list title="门店销售排行榜" :list="rankList" /> </a-col> </a-row> </a-tab-pane> <a-tab-pane tab="销售趋势" key="2" > <a-row> <a-col :xl="16" :lg="12" :md="12" :sm="24" :xs="24" > <bar title="销售额趋势" :dataSource="barData" /> </a-col> <a-col :xl="8" :lg="12" :md="12" :sm="24" :xs="24" > <rank-list title="门店销售排行榜" :list="rankList" /> </a-col> </a-row> </a-tab-pane> </a-tabs> </div> </a-card> <a-row> <a-col :span="24"> <a-card :loading="loading" :bordered="false" title="最近一周访问量统计" :style="{ marginTop: '24px' }"> <a-card :loading="loading" :bordered="false" title="最近一周访问量统计" :style="{ marginTop: '24px' }" > <a-row> <a-col :span="6"> <head-info title="今日IP" :content="loginfo.todayIp"></head-info> <head-info title="今日IP" :content="loginfo.todayIp" ></head-info> </a-col> <a-col :span="2"> <a-spin class='circle-cust'> <a-icon slot="indicator" type="environment" style="font-size: 24px" /> <a-icon slot="indicator" type="environment" style="font-size: 24px" /> </a-spin> </a-col> <a-col :span="6"> <head-info title="今日访问" :content="loginfo.todayVisitCount"></head-info> <head-info title="今日访问" :content="loginfo.todayVisitCount" ></head-info> </a-col> <a-col :span="2"> <a-spin class='circle-cust'> <a-icon slot="indicator" type="team" style="font-size: 24px" /> <a-icon slot="indicator" type="team" style="font-size: 24px" /> </a-spin> </a-col> <a-col :span="6"> <head-info title="总访问量" :content="loginfo.totalVisitCount"></head-info> <head-info title="总访问量" :content="loginfo.totalVisitCount" ></head-info> </a-col> <a-col :span="2"> <a-spin class='circle-cust'> <a-icon slot="indicator" type="rise" style="font-size: 24px" /> <a-icon slot="indicator" type="rise" style="font-size: 24px" /> </a-spin> </a-col> </a-row> <line-chart-multid :fields="visitFields" :dataSource="visitInfo"></line-chart-multid> <line-chart-multid :fields="visitFields" :dataSource="visitInfo" ></line-chart-multid> </a-card> </a-col> </a-row> @@ -250,9 +392,9 @@ } span { color: rgba(0, 0, 0, .45); color: rgba(0, 0, 0, 0.45); display: inline-block; font-size: .95rem; font-size: 0.95rem; line-height: 42px; margin-bottom: 4px; } src/views/dashboard/IndexTask.vue
@@ -1,15 +1,29 @@ <template> <div class="index-container-ty"> <a-spin :spinning="loading"> <a-row type="flex" justify="start" :gutter="3"> <a-col :sm="24" :lg="12"> <a-row type="flex" justify="start" :gutter="3" > <a-col :sm="24" :lg="12" > <a-card> <div slot="title" class="index-md-title"> <div slot="title" class="index-md-title" > <img src="../../assets/daiban.png"/> 我的待办【{{ dataSource1.length }}】 </div> <div slot="extra"> <a v-if="dataSource1 && dataSource1.length>0" slot="footer" @click="goPage">更多 <a-icon type="double-right" /></a> <a v-if="dataSource1 && dataSource1.length>0" slot="footer" @click="goPage" >更多 <a-icon type="double-right" /></a> </div> <a-table :class="'my-index-table tytable1'" @@ -18,16 +32,34 @@ rowKey="id" :columns="columns" :dataSource="dataSource1" :pagination="false"> <template slot="ellipsisText" slot-scope="text"> <j-ellipsis :value="text" :length="textMaxLength"></j-ellipsis> :pagination="false" > <template slot="ellipsisText" slot-scope="text" > <j-ellipsis :value="text" :length="textMaxLength" ></j-ellipsis> </template> <template slot="dayWarnning" slot-scope="text,record"> <a-icon type="bulb" theme="twoTone" style="font-size:22px" :twoToneColor="getTipColor(record)"/> <template slot="dayWarnning" slot-scope="text,record" > <a-icon type="bulb" theme="twoTone" style="font-size:22px" :twoToneColor="getTipColor(record)" /> </template> <span slot="action" slot-scope="text, record"> <span slot="action" slot-scope="text, record" > <a @click="handleData">办理</a> </span> @@ -35,14 +67,24 @@ </a-card> </a-col> <a-col :sm="24" :lg="12"> <a-col :sm="24" :lg="12" > <a-card> <div slot="title" class="index-md-title"> <div slot="title" class="index-md-title" > <img src="../../assets/zaiban.png"/> 我的在办【{{ dataSource2.length }}】 </div> <div slot="extra"> <a v-if="dataSource2 && dataSource2.length>0" slot="footer" @click="goPage">更多 <a-icon type="double-right" /></a> <a v-if="dataSource2 && dataSource2.length>0" slot="footer" @click="goPage" >更多 <a-icon type="double-right" /></a> </div> <a-table :class="'my-index-table tytable2'" @@ -51,16 +93,34 @@ rowKey="id" :columns="columns" :dataSource="dataSource2" :pagination="false"> <template slot="ellipsisText" slot-scope="text"> <j-ellipsis :value="text" :length="textMaxLength"></j-ellipsis> :pagination="false" > <template slot="ellipsisText" slot-scope="text" > <j-ellipsis :value="text" :length="textMaxLength" ></j-ellipsis> </template> <template slot="dayWarnning" slot-scope="text,record"> <a-icon type="bulb" theme="twoTone" style="font-size:22px" :twoToneColor="getTipColor(record)"/> <template slot="dayWarnning" slot-scope="text,record" > <a-icon type="bulb" theme="twoTone" style="font-size:22px" :twoToneColor="getTipColor(record)" /> </template> <span slot="action" slot-scope="text, record"> <span slot="action" slot-scope="text, record" > <a @click="handleData">办理</a> </span> @@ -72,9 +132,15 @@ <div style="height: 5px;"></div> </a-col> <a-col :sm="24" :lg="12"> <a-col :sm="24" :lg="12" > <a-card> <div slot="title" class="index-md-title"> <div slot="title" class="index-md-title" > <img src="../../assets/guaz.png"/> 我的挂账【{{ dataSource4.length }}】 </div> @@ -85,16 +151,34 @@ rowKey="id" :columns="columns" :dataSource="dataSource4" :pagination="false"> <template slot="ellipsisText" slot-scope="text"> <j-ellipsis :value="text" :length="textMaxLength"></j-ellipsis> :pagination="false" > <template slot="ellipsisText" slot-scope="text" > <j-ellipsis :value="text" :length="textMaxLength" ></j-ellipsis> </template> <template slot="dayWarnning" slot-scope="text,record"> <a-icon type="bulb" theme="twoTone" style="font-size:22px" :twoToneColor="getTipColor(record)"/> <template slot="dayWarnning" slot-scope="text,record" > <a-icon type="bulb" theme="twoTone" style="font-size:22px" :twoToneColor="getTipColor(record)" /> </template> <span slot="action" slot-scope="text, record"> <span slot="action" slot-scope="text, record" > <a @click="handleData">办理</a> </span> @@ -102,9 +186,15 @@ </a-card> </a-col> <a-col :sm="24" :lg="12"> <a-col :sm="24" :lg="12" > <a-card> <div slot="title" class="index-md-title"> <div slot="title" class="index-md-title" > <img src="../../assets/duban.png"/> 我的督办【{{ dataSource3.length }}】 </div> @@ -115,16 +205,34 @@ rowKey="id" :columns="columns" :dataSource="dataSource3" :pagination="false"> <template slot="ellipsisText" slot-scope="text"> <j-ellipsis :value="text" :length="textMaxLength"></j-ellipsis> :pagination="false" > <template slot="ellipsisText" slot-scope="text" > <j-ellipsis :value="text" :length="textMaxLength" ></j-ellipsis> </template> <template slot="dayWarnning" slot-scope="text,record"> <a-icon type="bulb" theme="twoTone" style="font-size:22px" :twoToneColor="getTipColor(record)"/> <template slot="dayWarnning" slot-scope="text,record" > <a-icon type="bulb" theme="twoTone" style="font-size:22px" :twoToneColor="getTipColor(record)" /> </template> <span slot="action" slot-scope="text, record"> <span slot="action" slot-scope="text, record" > <a @click="handleData">办理</a> </span> @@ -304,27 +412,47 @@ </script> <style> .my-index-table{height:270px} .my-index-table table{font-size: 14px !important;} .my-index-table { height: 270px; } .my-index-table table { font-size: 14px !important; } .index-container-ty .ant-card-head-title{padding-top: 6px;padding-bottom: 6px;} .index-container-ty .ant-card-extra{padding:0} .index-container-ty .ant-card-extra a{color:#fff} .index-container-ty .ant-card-extra a:hover{color:#152ede} .index-container-ty .ant-card-head-wrapper,.index-container-ty .ant-card-head{ .index-container-ty .ant-card-head-title { padding-top: 6px; padding-bottom: 6px; } .index-container-ty .ant-card-extra { padding: 0; } .index-container-ty .ant-card-extra a { color: #fff; } .index-container-ty .ant-card-extra a:hover { color: #152ede; } .index-container-ty .ant-card-head-wrapper, .index-container-ty .ant-card-head { line-height:24px; min-height:24px; /*background: #90aeff;*/ background: #7196fb; } .index-container-ty .ant-card-body{padding: 10px 12px 0px 12px} .index-container-ty .ant-card-body { padding: 10px 12px 0px 12px; } /* .index-container-ty .ant-card-actions{background: #fff} .index-container-ty .ant-card-actions li {margin:2px 0;} .index-container-ty .ant-card-actions > li > span{width: 100%}*/ .index-container-ty .ant-table-footer{text-align: right;padding:6px 12px 6px 6px;background: #fff;border-top: 2px solid #f7f1f1;} .index-container-ty .ant-table-footer { text-align: right; padding: 6px 12px 6px 6px; background: #fff; border-top: 2px solid #f7f1f1; } .index-md-title{ postion:relative; @@ -347,18 +475,43 @@ border-bottom:1px solid #90aeff;*/ } .index-container-ty .ant-table-thead > tr > th, .index-container-ty .ant-table-tbody > tr > td{ border-bottom: 1px solid #90aeff; } .index-container-ty .ant-table-small > .ant-table-content > .ant-table-fixed-left > .ant-table-body-outer > .ant-table-body-inner > table > .ant-table-thead > tr > th, .index-container-ty .ant-table-small > .ant-table-content > .ant-table-fixed-right > .ant-table-body-outer > .ant-table-body-inner > table > .ant-table-thead > tr > th{ .index-container-ty .ant-table-small > .ant-table-content > .ant-table-fixed-left > .ant-table-body-outer > .ant-table-body-inner > table > .ant-table-thead > tr > th, .index-container-ty .ant-table-small > .ant-table-content > .ant-table-fixed-right > .ant-table-body-outer > .ant-table-body-inner > table > .ant-table-thead > tr > th { border-bottom: 1px solid #90aeff; } .index-container-ty .ant-table-small > .ant-table-content > .ant-table-scroll > .ant-table-body > table > .ant-table-thead > tr > th{ .index-container-ty .ant-table-small > .ant-table-content > .ant-table-scroll > .ant-table-body > table > .ant-table-thead > tr > th { border-bottom: 1px solid #90aeff; } @@ -367,6 +520,6 @@ } .index-container-ty .ant-table-placeholder { padding: 0 padding: 0; } </style> src/views/dashboard/Monitor.vue
@@ -11,5 +11,4 @@ </script> <style scoped> </style> src/views/dashboard/Workplace.vue
@@ -7,37 +7,74 @@ <div slot="extra"> <a-row class="more-info"> <a-col :span="8"> <head-info title="项目数" content="56" :center="false" :bordered="false"/> <head-info title="项目数" content="56" :center="false" :bordered="false" /> </a-col> <a-col :span="8"> <head-info title="团队排名" content="8/24" :center="false" :bordered="false"/> <head-info title="团队排名" content="8/24" :center="false" :bordered="false" /> </a-col> <a-col :span="8"> <head-info title="项目访问" content="2,223" :center="false" /> <head-info title="项目访问" content="2,223" :center="false" /> </a-col> </a-row> </div> <div> <a-row :gutter="24"> <a-col :xl="16" :lg="24" :md="24" :sm="24" :xs="24"> <a-col :xl="16" :lg="24" :md="24" :sm="24" :xs="24" > <a-card class="project-list" :loading="loading" style="margin-bottom: 24px;" :bordered="false" title="进行中的项目" :body-style="{ padding: 0 }"> :body-style="{ padding: 0 }" > <a slot="extra">全部项目</a> <div> <a-card-grid class="project-card-grid" :key="i" v-for="(item, i) in projects"> <a-card :bordered="false" :body-style="{ padding: 0 }"> <a-card-grid class="project-card-grid" :key="i" v-for="(item, i) in projects" > <a-card :bordered="false" :body-style="{ padding: 0 }" > <a-card-meta> <div slot="title" class="card-title"> <a-avatar size="small" :src="item.cover"/> <div slot="title" class="card-title" > <a-avatar size="small" :src="item.cover" /> <a>{{ item.title }}</a> </div> <div slot="description" class="card-description"> <div slot="description" class="card-description" > {{ item.description }} </div> </a-card-meta> @@ -50,11 +87,21 @@ </div> </a-card> <a-card :loading="loading" title="动态" :bordered="false"> <a-card :loading="loading" title="动态" :bordered="false" > <a-list> <a-list-item :key="index" v-for="(item, index) in activities"> <a-list-item :key="index" v-for="(item, index) in activities" > <a-list-item-meta> <a-avatar slot="avatar" :src="item.user.avatar" /> <a-avatar slot="avatar" :src="item.user.avatar" /> <div slot="title"> <span>{{ item.user.nickname }}</span> 在 <a href="#">{{ item.project.name }}</a> @@ -73,8 +120,14 @@ :lg="24" :md="24" :sm="24" :xs="24"> <a-card title="快速开始 / 便捷导航" style="margin-bottom: 24px" :bordered="false" :body-style="{padding: 0}"> :xs="24" > <a-card title="快速开始 / 便捷导航" style="margin-bottom: 24px" :bordered="false" :body-style="{padding: 0}" > <div class="item-group"> <a>操作一</a> <a>操作二</a> @@ -82,21 +135,43 @@ <a>操作四</a> <a>操作五</a> <a>操作六</a> <a-button size="small" type="primary" ghost icon="plus">添加</a-button> <a-button size="small" type="primary" ghost icon="plus" >添加</a-button> </div> </a-card> <a-card title="XX 指数" style="margin-bottom: 24px" :loading="radarLoading" :bordered="false" :body-style="{ padding: 0 }"> <a-card title="XX 指数" style="margin-bottom: 24px" :loading="radarLoading" :bordered="false" :body-style="{ padding: 0 }" > <div style="min-height: 400px;"> <!-- :scale="scale" :axis1Opts="axis1Opts" :axis2Opts="axis2Opts" --> <radar :data="radarData" /> </div> </a-card> <a-card :loading="loading" title="团队" :bordered="false"> <a-card :loading="loading" title="团队" :bordered="false" > <div class="members"> <a-row> <a-col :span="12" v-for="(item, index) in teams" :key="index"> <a-col :span="12" v-for="(item, index) in teams" :key="index" > <a> <a-avatar size="small" :src="item.avatar" /> <a-avatar size="small" :src="item.avatar" /> <span class="member">{{ item.name }}</span> </a> </a-col> @@ -247,7 +322,6 @@ <style lang="less" scoped> .project-list { .card-title { font-size: 0; @@ -321,7 +395,7 @@ height: 24px; .member { font-size: 14px; color: rgba(0, 0, 0, .65); color: rgba(0, 0, 0, 0.65); line-height: 24px; max-width: 100px; vertical-align: top; @@ -338,9 +412,7 @@ } .mobile { .project-list { .project-card-grid { width: 100%; } @@ -356,5 +428,4 @@ display: none; } } </style>