|
@@ -1,105 +1,112 @@
|
|
|
<template>
|
|
|
<div id="home">
|
|
|
- <!-- 我的 OA工作台 日历 -->
|
|
|
+ <!-- 第一行 -->
|
|
|
<a-row :gutter="24" class="topCard">
|
|
|
- <a-col :xs="24" :sm="24" :md="24" :lg="24" :style="{ marginBottom: '8px' }">
|
|
|
- <a-row :gutter="24">
|
|
|
- <!-- 大 -->
|
|
|
- <a-col :xs="24" :sm="24" :md="24" :lg="12" :style="{ marginBottom: '8px' }">
|
|
|
- <a-card title="我的" style="width: 100%;height:200px;" :style="{ marginBottom: '8px' }" class="clearfix">
|
|
|
+ <!-- 我的 -->
|
|
|
+ <a-col :xs="24" :sm="24" :md="24" :lg="7" :style="{ marginBottom: '8px', paddingRight: 0 }">
|
|
|
+ <!-- 等高设置 -->
|
|
|
+ <a-card title="我的" style="width: 100%;" :bordered="false" :style="{ marginBottom: '8px', height: '264px' }">
|
|
|
+ <a-row :gutter="24">
|
|
|
+ <!-- 头像 -->
|
|
|
+ <a-col :xs="24" :sm="24" :md="12" :lg="14">
|
|
|
<a-row :gutter="24">
|
|
|
- <!-- -->
|
|
|
- <a-col :xs="24" :sm="24" :md="12" :lg="12" style="">
|
|
|
- <div class="userImg fl">
|
|
|
- <img src="../../assets/user.jpg" width="50px" />
|
|
|
- </div>
|
|
|
- <div class="userInfo ">
|
|
|
- <span class="department">{{ userInfo.realname }}</span>
|
|
|
- <span>账号:{{ userInfo.username }}</span>
|
|
|
- <span class="telphone">Tel:{{ userInfo.telphone }}</span>
|
|
|
+ <a-col :xs="24" :sm="24" :md="12" :lg="8">
|
|
|
+ <div class="userImg">
|
|
|
+ <img src="../../assets/user.jpg" width="50px;" />
|
|
|
</div>
|
|
|
</a-col>
|
|
|
- <!-- -->
|
|
|
- <a-col :xs="24" :sm="24" :md="12" :lg="12" class="msgBox clearfix">
|
|
|
- <div >
|
|
|
- <em class="fl" >
|
|
|
- <span> {{ todoList.length }}</span>
|
|
|
- <p>我的待办</p>
|
|
|
- </em>
|
|
|
- <em class="fl">
|
|
|
- <span>{{ msgTotal }}</span>
|
|
|
- <p>系统消息</p></em>
|
|
|
+ <a-col :xs="24" :sm="24" :md="12" :lg="16">
|
|
|
+ <div class="userInfo">
|
|
|
+ <span>{{ userInfo.realname }}</span>
|
|
|
+ <p>账号:{{ userInfo.username }}</p>
|
|
|
+ <em>Tel:{{ userInfo.telphone }}</em>
|
|
|
</div>
|
|
|
</a-col>
|
|
|
</a-row>
|
|
|
+ </a-col>
|
|
|
|
|
|
- <!-- <a-divider type="vertical" style="height:110px;width:1px;margin:0 20px;" class="fl" /> -->
|
|
|
- </a-card>
|
|
|
+ <!-- 数量 -->
|
|
|
+ <a-col :xs="24" :sm="24" :md="12" :lg="10" class="msgBox">
|
|
|
+ <span> {{ todoList.length }}</span>
|
|
|
+ <p>我的待办</p>
|
|
|
+ <span>{{ msgTotal }}</span>
|
|
|
+ <p>系统消息</p>
|
|
|
+ </a-col>
|
|
|
+ </a-row>
|
|
|
+ </a-card>
|
|
|
+ </a-col>
|
|
|
|
|
|
- <!-- 下 -->
|
|
|
- <a-card title="OA工作台" style="width:100%;height:172px;">
|
|
|
- <div v-for="(item, index) in activeKeyAll" :key="index">
|
|
|
- <a @click.prevent="aClick(item)" class="oaIcon">
|
|
|
- <a-avatar shape="square" :size="30" :src="item.iconAddress" />
|
|
|
- <h4>{{ item.name }}</h4>
|
|
|
- </a>
|
|
|
- </div>
|
|
|
- </a-card>
|
|
|
- </a-col>
|
|
|
+ <!-- 待办 -->
|
|
|
+ <a-col :xs="24" :sm="24" :md="24" :lg="11" :style="{ marginBottom: '8px', paddingRight: 0 }">
|
|
|
+ <MyoaTabs />
|
|
|
+ </a-col>
|
|
|
|
|
|
- <!-- 日历 -->
|
|
|
- <a-col :xs="24" :sm="24" :md="24" :lg="12" style="paddingLeft:0;">
|
|
|
- <a-card title="日历" :bordered="false" class="fullCard">
|
|
|
- <template #extra>
|
|
|
- <a href="javascript:void(0);" @click="openCalTab">更多</a>
|
|
|
- </template>
|
|
|
- <div class="ccfullCalendar">
|
|
|
- <FullCalendar :options="calendarOptions" style="height:300px;" class="eventDeal-wrap" />
|
|
|
- </div>
|
|
|
- </a-card>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
+ <!-- 按钮 -->
|
|
|
+ <a-col :xs="24" :sm="24" :md="24" :lg="6" :style="{ marginBottom: '8px' }">
|
|
|
+ <!-- 等高设置 -->
|
|
|
+ <a-card title="OA工作台" :bordered="false" style="height: 264px;">
|
|
|
+ <div v-for="(item, index) in activeKeyAll" :key="index" class="oaBig">
|
|
|
+ <a @click.prevent="aClick(item)" class="oaItem fl" >
|
|
|
+ <!-- 图标 -->
|
|
|
+ <a-avatar shape="square" :size="36" :src="item.iconAddress" />
|
|
|
+ <h4>{{ item.name }}</h4>
|
|
|
+ </a>
|
|
|
+ </div>
|
|
|
+ </a-card>
|
|
|
</a-col>
|
|
|
</a-row>
|
|
|
|
|
|
- <!-- 公告 计划 友情链接 -->
|
|
|
+ <!-- 第二行-->
|
|
|
<a-row :gutter="24" class="news">
|
|
|
- <a-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" :style="{ marginBottom: '8px' }">
|
|
|
+ <!-- 公告 -->
|
|
|
+ <a-col :xs="24" :sm="24" :md="24" :lg="24" :xl="9" :style="{ marginBottom: '8px', paddingRight: 0 }">
|
|
|
+ <a-card title="企业公告" :bordered="false" class="notice">
|
|
|
+ <template #extra>
|
|
|
+ <a href="javascript:void(0);" @click="openEnterAnn">更多</a>
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <div class="dataV">
|
|
|
+ <dv-scroll-board
|
|
|
+ class="board"
|
|
|
+ :config="config"
|
|
|
+ style="width:100%;height:300px;color:#333;paddinLeft:40px;"
|
|
|
+ @click="getMethod"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ </a-card>
|
|
|
+ </a-col>
|
|
|
+
|
|
|
+ <!-- 计划 友情链接 -->
|
|
|
+ <a-col :xs="24" :sm="24" :md="24" :lg="24" :xl="7" :style="{ marginBottom: '8px' }">
|
|
|
<a-row :gutter="24">
|
|
|
- <!-- 企业公告 -->
|
|
|
- <a-col :xs="24" :sm="24" :md="24" :lg="24" :xl="8" :style="{ marginBottom: '8px', paddingRight: 0 }">
|
|
|
- <a-card title="企业公告" :bordered="false" class="notice" style=" height: 400px;">
|
|
|
- <template #extra>
|
|
|
- <a href="javascript:void(0);" @click="openEnterAnn">更多</a>
|
|
|
- </template>
|
|
|
+ <a-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" :style="{ marginBottom: '8px', paddingRight: 0 }">
|
|
|
+ <a-card title="我的计划" :bordered="false" style="width:100%;height:200px;">
|
|
|
+ <a-col :xs="24" :sm="24" :md="24" :lg="24" :xl="12" :style="{ marginBottom: '8px', paddingRight: 0 }">
|
|
|
+ <p>
|
|
|
+ 上月我的计划:
|
|
|
+ <strong style="color:#fa6b5c;marginRight:4px;textDecoration: underline;"> 0 </strong>份
|
|
|
+ </p>
|
|
|
+ <p>
|
|
|
+ 本月我的计划:
|
|
|
+ <strong style="color:#fa6b5c;marginRight:4px;textDecoration: underline;"> 1 </strong>份
|
|
|
+ </p>
|
|
|
+ </a-col>
|
|
|
|
|
|
- <div class="dataV">
|
|
|
- <dv-scroll-board
|
|
|
- class="board"
|
|
|
- :config="config"
|
|
|
- style="width:100%;height:300px;color:#333;paddinLeft:40px;"
|
|
|
- @click="getMethod"
|
|
|
- />
|
|
|
- </div>
|
|
|
+ <a-col :xs="24" :sm="24" :md="24" :lg="24" :xl="12">
|
|
|
+ <p>
|
|
|
+ 上月他人计划:
|
|
|
+ <strong style="color:#fa6b5c;marginRight:4px;textDecoration: underline;"> 0 </strong>份
|
|
|
+ </p>
|
|
|
+ <p>
|
|
|
+ 本月他人计划:
|
|
|
+ <strong style="color:#fa6b5c;marginRight:4px;textDecoration: underline;"> 2 </strong>份
|
|
|
+ </p>
|
|
|
+ </a-col>
|
|
|
</a-card>
|
|
|
</a-col>
|
|
|
|
|
|
- <!-- 我的计划 友情链接 -->
|
|
|
- <a-col :xs="24" :sm="24" :md="24" :lg="24" :xl="6" :style="{ marginBottom: '8px', paddingRight: 0 }">
|
|
|
- <a-card title="我的计划" style="width:100%;height:196px;marginBottom:8px">
|
|
|
- <div class="total clearfix">
|
|
|
- <div class="left fl">
|
|
|
- <span>上月我的计划:<strong>0</strong>份</span>
|
|
|
- <span>本月我的计划<strong>1</strong>份</span>
|
|
|
- </div>
|
|
|
- <div class="right fr">
|
|
|
- <span>上月他人计划:<strong>0</strong>份</span>
|
|
|
- <span>本月他人计划<strong>2</strong>份</span>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </a-card>
|
|
|
-
|
|
|
- <a-card title="友情链接" style="width:100%;height:196px;" class="links">
|
|
|
+ <a-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" :style="{ marginBottom: '8px', paddingRight: 0 }">
|
|
|
+ <a-card title="友情链接" :bordered="false" style="width:100%;height:196px;" class="links">
|
|
|
<template #extra><a href="javascript:void(0);" @click="openMyLinks">更多</a></template>
|
|
|
<button><a href="https://www.yonyou.com/" target="_blank">用友</a></button>
|
|
|
<button><a href="http://www.dakabg.com/" target="_blank">哒咔办公</a></button>
|
|
@@ -114,13 +121,20 @@
|
|
|
</button>
|
|
|
</a-card>
|
|
|
</a-col>
|
|
|
-
|
|
|
- <!-- 我的事项 待办 已办 申请 -->
|
|
|
- <a-col :xs="24" :sm="24" :md="24" :lg="24" :xl="10" :style="{ marginBottom: '8px', paddingRight: 0 }">
|
|
|
- <MyoaTabs />
|
|
|
- </a-col>
|
|
|
</a-row>
|
|
|
</a-col>
|
|
|
+
|
|
|
+ <!-- 日历 -->
|
|
|
+ <a-col :xs="24" :sm="24" :md="24" :lg="24" :xl="8" :style="{ marginBottom: '8px' }">
|
|
|
+ <a-card title="日程" :bordered="false" class="fullCard">
|
|
|
+ <template #extra>
|
|
|
+ <a href="javascript:void(0);" @click="openCalTab">更多</a>
|
|
|
+ </template>
|
|
|
+ <div class="ccfullCalendar">
|
|
|
+ <FullCalendar :options="calendarOptions" style="height:300px;" class="eventDeal-wrap" />
|
|
|
+ </div>
|
|
|
+ </a-card>
|
|
|
+ </a-col>
|
|
|
</a-row>
|
|
|
|
|
|
<!-- 按钮弹框 -->
|
|
@@ -321,9 +335,9 @@ export default {
|
|
|
this.config = {
|
|
|
oddRowBGC: 'white',
|
|
|
evenRowBGC: 'white',
|
|
|
- columnWidth: [10, 100, 460, 200, 400],
|
|
|
+ columnWidth: [50, 200, 600, 300, 400],
|
|
|
align: ['center'],
|
|
|
- rowNum: 6,
|
|
|
+ rowNum: 7,
|
|
|
waitTime: 2000,
|
|
|
data: scrollData //双向绑定(轮播表数据 绑定到配置的 data数据中)
|
|
|
}
|