|
@@ -178,7 +178,7 @@ import interactionPlugin from '@fullcalendar/interaction'
|
|
import timeGridPlugin from '@fullcalendar/timegrid'
|
|
import timeGridPlugin from '@fullcalendar/timegrid'
|
|
import SchedulePlan from '@views/oa/my-plan/schedulePlan'
|
|
import SchedulePlan from '@views/oa/my-plan/schedulePlan'
|
|
// import '@fullcalendar/core/main.css'
|
|
// import '@fullcalendar/core/main.css'
|
|
-import { scheduleGetListByTime, scheduleQueryById } from '@api/oa/cd-schedule'
|
|
|
|
|
|
+import { scheduleGetListByTime, scheduleQueryById, scheduleGetLastMonth } from '@api/oa/cd-schedule'
|
|
import { enterpriseEQueryById } from '@api/oa/cd-enterprise-announcement'
|
|
import { enterpriseEQueryById } from '@api/oa/cd-enterprise-announcement'
|
|
import { enterpriseEList } from '@api/oa/cd-enterprise-announcement'
|
|
import { enterpriseEList } from '@api/oa/cd-enterprise-announcement'
|
|
import '@fullcalendar/daygrid/main.css'
|
|
import '@fullcalendar/daygrid/main.css'
|
|
@@ -316,6 +316,7 @@ export default {
|
|
this.getAnnList() //渲染公告(已发布)
|
|
this.getAnnList() //渲染公告(已发布)
|
|
this.getFooterNav() // 获取快捷导航
|
|
this.getFooterNav() // 获取快捷导航
|
|
this.getMyLinks() //友情链接(已发布)
|
|
this.getMyLinks() //友情链接(已发布)
|
|
|
|
+ this.getMyLastM() //上月我计划
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
// 系统消息计算
|
|
// 系统消息计算
|
|
@@ -344,9 +345,16 @@ export default {
|
|
this.getAnnList()
|
|
this.getAnnList()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ // 上月我计划
|
|
|
|
+ async getMyLastM() {
|
|
|
|
+ // createBy:'' ,人员账号(不传则查询全部人员)
|
|
|
|
+ // whereTimeType:'',时间类型(0无时间筛选1查询上月的2本月)
|
|
|
|
+ await scheduleGetLastMonth({ createBy: '', whereTimeType: '1' }).then(res => {
|
|
|
|
+ console.log('我的上月计划res', res)
|
|
|
|
+ })
|
|
|
|
+ },
|
|
// 友情链接跳转
|
|
// 友情链接跳转
|
|
openItemLink(e) {
|
|
openItemLink(e) {
|
|
- console.log('e????', e)
|
|
|
|
window.open(e.link, '_blank') //新窗口打开
|
|
window.open(e.link, '_blank') //新窗口打开
|
|
console.log('e.link', e.link)
|
|
console.log('e.link', e.link)
|
|
},
|
|
},
|
|
@@ -360,7 +368,7 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
|
|
- // 获取快捷菜单
|
|
|
|
|
|
+ // 获取底部快捷菜单
|
|
async getFooterNav() {
|
|
async getFooterNav() {
|
|
await getListByCreateBy().then(res => {
|
|
await getListByCreateBy().then(res => {
|
|
if (res.success) {
|
|
if (res.success) {
|
|
@@ -459,9 +467,9 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
// 代办数据
|
|
// 代办数据
|
|
- getDataList() {
|
|
|
|
|
|
+ async getDataList() {
|
|
this.loading = true
|
|
this.loading = true
|
|
- this.postFormAction('/actTask/todoList', {}).then(res => {
|
|
|
|
|
|
+ await this.postFormAction('/actTask/todoList', {}).then(res => {
|
|
this.loading = false
|
|
this.loading = false
|
|
if (res.success) {
|
|
if (res.success) {
|
|
this.todoList = res.result || []
|
|
this.todoList = res.result || []
|
|
@@ -473,8 +481,8 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
// 获取 OA 按钮
|
|
// 获取 OA 按钮
|
|
- getActiveKeyAll() {
|
|
|
|
- this.postFormAction('/activiti_process/listData', { status: 1, roles: true }).then(res => {
|
|
|
|
|
|
+ async getActiveKeyAll() {
|
|
|
|
+ await this.postFormAction('/activiti_process/listData', { status: 1, roles: true }).then(res => {
|
|
this.activeKeyAll = []
|
|
this.activeKeyAll = []
|
|
if (res.success) {
|
|
if (res.success) {
|
|
var result = res.result || []
|
|
var result = res.result || []
|