|
@@ -34,11 +34,11 @@
|
|
|
<!-- 日历 -->
|
|
|
<a-col :xs="24" :sm="24" :md="24" :lg="10">
|
|
|
<a-card title="日历" :bordered="false" class="fullCard">
|
|
|
- <template #extra><a href="javascript:void(0);" @click="openCalTab">更多</a></template>
|
|
|
- <!-- <div> -->
|
|
|
+ <template #extra>
|
|
|
+ <a href="javascript:void(0);" @click="openCalTab">更多</a>
|
|
|
+ </template>
|
|
|
<div class="ccfullCalendar">
|
|
|
<FullCalendar :options="calendarOptions" style="height:300px;" class="eventDeal-wrap" />
|
|
|
- <!-- </div> -->
|
|
|
</div>
|
|
|
</a-card>
|
|
|
</a-col>
|
|
@@ -81,49 +81,14 @@
|
|
|
<a-col :xs="24" :sm="24" :md="24" :lg="24" :xl="10" :style="{ marginBottom: '10px' }">
|
|
|
<a-card title="企业公告" :bordered="false" class="notice newsColItem">
|
|
|
<template #extra><a href="javascript:void(0);" @click="openEnterAnn">详情</a></template>
|
|
|
- <ul class="clearfix">
|
|
|
- <li>
|
|
|
+ <ul class="clearfix" >
|
|
|
+ <!-- style="overflow:hidden;" -->
|
|
|
+ <li v-for="item in annList" :key="item.id">
|
|
|
<a href="https://m.thepaper.cn/baijiahao_14855630" class="clearfix">
|
|
|
- <span class="department fl">[人事]</span>
|
|
|
- <span class="info fl">王健林称万达高管全部换乘红旗汽车</span>
|
|
|
- <span class="time fr">2021-10-11</span>
|
|
|
- <span class="person fr">王健林</span>
|
|
|
- </a>
|
|
|
- </li>
|
|
|
-
|
|
|
- <li>
|
|
|
- <a href="https://baijiahao.baidu.com/s?id=1713375072968520817&wfr=spider&for=pc" class="clearfix">
|
|
|
- <span class="department fl">[运动]</span>
|
|
|
- <span class="info fl">德国成为首支晋级卡塔尔世界杯球队</span>
|
|
|
- <span class="time fr">2021-10-12</span>
|
|
|
- <span class="person fr">卡塔尔</span>
|
|
|
- </a>
|
|
|
- </li>
|
|
|
-
|
|
|
- <li>
|
|
|
- <a href="https://news.sina.cn/kx/2021-10-12/detail-iktzscyx9169344.d.html" class="clearfix">
|
|
|
- <span class="department fl">[财务]</span>
|
|
|
- <span class="info fl">浙江女子围观宰鸭后确诊鹦鹉热</span>
|
|
|
- <span class="time fr">2021-10-11</span>
|
|
|
- <span class="person fr">鹦鹉</span>
|
|
|
- </a>
|
|
|
- </li>
|
|
|
-
|
|
|
- <li>
|
|
|
- <a href="https://baijiahao.baidu.com/s?id=1713366904170468936&wfr=spider&for=pc" class="clearfix">
|
|
|
- <span class="department fl">[人事]</span>
|
|
|
- <span class="info fl">李铁:有没有自己的球迷是巨大区别</span>
|
|
|
- <span class="time fr">2021-10-11</span>
|
|
|
- <span class="person fr">李铁</span>
|
|
|
- </a>
|
|
|
- </li>
|
|
|
-
|
|
|
- <li>
|
|
|
- <a href="https://haokan.baidu.com/v?pd=wisenatural&vid=15789314381003157969" class="clearfix">
|
|
|
- <span class="department fl">[人事]</span>
|
|
|
- <span class="info fl">今年为什么会出现南旱北涝</span>
|
|
|
- <span class="time fr">2021-10-11</span>
|
|
|
- <span class="person fr">某某</span>
|
|
|
+ <span class="department fl">[{{ item.type }}]</span>
|
|
|
+ <span class="title fl">{{ item.title }}</span>
|
|
|
+ <span class="createTime fr">{{ item.createTime }}</span>
|
|
|
+ <span class="createBy fr">{{ item.createBy }}</span>
|
|
|
</a>
|
|
|
</li>
|
|
|
</ul>
|
|
@@ -132,7 +97,6 @@
|
|
|
<!-- 我的计划 -->
|
|
|
<a-col :xs="24" :sm="14" :md="12" :lg="12" :xl="7" :style="{ marginBottom: '10px' }">
|
|
|
<a-card title="我的计划" :bordered="false" class="plan newsColItem">
|
|
|
- <!-- 数据统计 -->
|
|
|
<div class="total clearfix">
|
|
|
<div class="left fl">
|
|
|
<span>上月我的计划:<strong>0</strong>份</span>
|
|
@@ -145,6 +109,8 @@
|
|
|
</div>
|
|
|
</a-card>
|
|
|
</a-col>
|
|
|
+
|
|
|
+ <!-- 友情链接 -->
|
|
|
<a-col :xs="24" :sm="10" :md="12" :lg="12" :xl="7">
|
|
|
<a-card title="友情链接" :bordered="false" class="link newsColItem">
|
|
|
<template #extra><a href="javascript:void(0);" @click="openMyLinks">详情</a></template>
|
|
@@ -277,6 +243,7 @@ import timeGridPlugin from '@fullcalendar/timegrid'
|
|
|
import SchedulePlan from '@views/oa/my-plan/schedulePlan' // 子组件
|
|
|
// import '@fullcalendar/core/main.css'
|
|
|
import { scheduleGetListByTime, scheduleQueryById } from '@api/oa/cd-schedule'
|
|
|
+import { enterpriseEList } from '@api/oa/cd-enterprise-announcement'
|
|
|
import '@fullcalendar/daygrid/main.css'
|
|
|
export default {
|
|
|
name: 'Home',
|
|
@@ -351,12 +318,12 @@ export default {
|
|
|
hour12: false // 设置时间为24小时制
|
|
|
}
|
|
|
},
|
|
|
- ////日历组件参数结尾----------------------
|
|
|
userInfo: this.$store.getters.userInfo,
|
|
|
todoList: [],
|
|
|
activeKeyAll: [],
|
|
|
msg1Count: '0',
|
|
|
msg2Count: '0',
|
|
|
+ annList: [],//企业公告列表
|
|
|
url: {
|
|
|
listCementByUser: '/sys/annountCement/listByUser'
|
|
|
},
|
|
@@ -386,9 +353,10 @@ export default {
|
|
|
},
|
|
|
|
|
|
created() {
|
|
|
+ this.getScheduleData() //查询日程数据
|
|
|
this.getDataList() //待办数据
|
|
|
this.getActiveKeyAll() //OA按钮
|
|
|
- this.getScheduleData() //查询日程数据
|
|
|
+ this.getAnnList() //渲染公告
|
|
|
},
|
|
|
computed: {
|
|
|
// 系统消息计算
|
|
@@ -416,11 +384,6 @@ export default {
|
|
|
this.loadData()
|
|
|
},
|
|
|
methods: {
|
|
|
- prev() {
|
|
|
- this.calendarApi.prev()
|
|
|
- console.log(this.calendarApi.prev)
|
|
|
- },
|
|
|
-
|
|
|
//查询日程数据
|
|
|
getScheduleData() {
|
|
|
this.$nextTick(() => {
|
|
@@ -445,14 +408,53 @@ export default {
|
|
|
}
|
|
|
eventList.push(Object) // 把日程推到日程列表
|
|
|
})
|
|
|
- console.log('总共的日程', eventList)
|
|
|
+ // console.log('总共的日程', eventList)
|
|
|
// 刷新 日程列表
|
|
|
this.calendarOptions.events = eventList
|
|
|
}
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
+ // 代办数据
|
|
|
+ getDataList() {
|
|
|
+ this.loading = true
|
|
|
+ this.postFormAction('/actTask/todoList', {}).then(res => {
|
|
|
+ this.loading = false
|
|
|
+ if (res.success) {
|
|
|
+ this.todoList = res.result || []
|
|
|
+ console.log('首页 我的待办数字:', this.todoList.length)
|
|
|
+ this.total = this.data.leading
|
|
|
+ console.log('系统消息:', this.data)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 获取 OA 按钮
|
|
|
+ getActiveKeyAll() {
|
|
|
+ this.postFormAction('/activiti_process/listData', { status: 1, roles: true }).then(res => {
|
|
|
+ this.activeKeyAll = []
|
|
|
+ if (res.success) {
|
|
|
+ var result = res.result || []
|
|
|
+ if (result.length > 0) {
|
|
|
+ this.activeKeyAll = result
|
|
|
+ // this.activeKeyAll.push.apply(this.activeKeyAll,result);
|
|
|
+ // console.log(this.activeKeyAll)
|
|
|
+ // console.log('OA 4个按钮被渲染')
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
|
|
|
+ // 公告数据
|
|
|
+ getAnnList() {
|
|
|
+ enterpriseEList(null).then(res => {
|
|
|
+ // console.log('>>>>', res)
|
|
|
+ if (res.success) {
|
|
|
+ this.annList = res.result.records ||[]
|
|
|
+ // =type: this.annList.type
|
|
|
+ console.log('----->', this.annList)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
handleEvents(info) {
|
|
|
// console.log('what', info)
|
|
|
// 打印了事件(完成、位置)
|
|
@@ -505,35 +507,6 @@ export default {
|
|
|
},
|
|
|
...mapGetters(['nickname', 'avatar']),
|
|
|
|
|
|
- // 代办数据
|
|
|
- getDataList() {
|
|
|
- this.loading = true
|
|
|
- this.postFormAction('/actTask/todoList', {}).then(res => {
|
|
|
- this.loading = false
|
|
|
- if (res.success) {
|
|
|
- this.todoList = res.result || []
|
|
|
- console.log('首页 我的待办数字:', this.todoList.length)
|
|
|
- this.total = this.data.leading
|
|
|
- console.log('系统消息:',this.data)
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
- // 获取 OA 按钮
|
|
|
- getActiveKeyAll() {
|
|
|
- this.postFormAction('/activiti_process/listData', { status: 1, roles: true }).then(res => {
|
|
|
- this.activeKeyAll = []
|
|
|
- if (res.success) {
|
|
|
- var result = res.result || []
|
|
|
- if (result.length > 0) {
|
|
|
- this.activeKeyAll = result
|
|
|
- // this.activeKeyAll.push.apply(this.activeKeyAll,result);
|
|
|
- // console.log(this.activeKeyAll)
|
|
|
- console.log('OA 4个按钮被渲染')
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
-
|
|
|
//OA图标点击事件
|
|
|
aClick(v) {
|
|
|
console.log(v)
|
|
@@ -580,6 +553,10 @@ export default {
|
|
|
// 去处理按钮
|
|
|
toDealWith() {
|
|
|
this.$router.push({ path: '/activiti/todoManage' })
|
|
|
+ },
|
|
|
+ prev() {
|
|
|
+ this.calendarApi.prev()
|
|
|
+ console.log(this.calendarApi.prev)
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -749,7 +726,7 @@ a {
|
|
|
// 公告
|
|
|
.news {
|
|
|
.newsColItem {
|
|
|
- height: 300px;
|
|
|
+ height: 400px;
|
|
|
}
|
|
|
.notice {
|
|
|
ul {
|
|
@@ -763,12 +740,12 @@ a {
|
|
|
.department {
|
|
|
margin-right: 10px;
|
|
|
}
|
|
|
- .person {
|
|
|
+ .createBy {
|
|
|
color: #333;
|
|
|
}
|
|
|
- .time {
|
|
|
+ .createTime {
|
|
|
color: rgb(164, 164, 164);
|
|
|
- margin: 0 4px 0 10px;
|
|
|
+ margin: 0 4px 0 20px;
|
|
|
}
|
|
|
}
|
|
|
a:hover {
|
|
@@ -780,7 +757,6 @@ a {
|
|
|
// 我的计划
|
|
|
.plan {
|
|
|
.total {
|
|
|
- // border-bottom: 1px dashed #ccc;
|
|
|
span {
|
|
|
display: block;
|
|
|
line-height: 40px;
|
|
@@ -791,21 +767,6 @@ a {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- // .tabsLinks {
|
|
|
- // margin-top: 20px;
|
|
|
- // a {
|
|
|
- // color: rgb(23, 119, 184);
|
|
|
- // margin: 0 6px;
|
|
|
- // }
|
|
|
- // a:hover {
|
|
|
- // color: #fa6b5c;
|
|
|
- // }
|
|
|
- // /deep/ .ant-divider,
|
|
|
- // .ant-divider-vertical {
|
|
|
- // width: 2px;
|
|
|
- // background-color: rgb(200, 200, 200);
|
|
|
- // }
|
|
|
- // }
|
|
|
}
|
|
|
// 友情链接
|
|
|
.link {
|