|
@@ -145,6 +145,7 @@
|
|
|
<a-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24">
|
|
|
<div class="ccfullCalendar">
|
|
|
<FullCalendar :options="calendarOptions" class="eventDeal-wrap" />
|
|
|
+ <save-plan ref="savePlan" :fatherMethod="search" :fatherData="timeList"></save-plan>
|
|
|
</div>
|
|
|
</a-col>
|
|
|
</a-row>
|
|
@@ -222,6 +223,7 @@ import { enterpriseEQueryById } from '@api/oa/cd-enterprise-announcement'
|
|
|
import { enterpriseEList } from '@api/oa/cd-enterprise-announcement'
|
|
|
import '@fullcalendar/daygrid/main.css'
|
|
|
import JEditor from '../../components/jeecg/JEditor.vue'
|
|
|
+import SavePlan from '@views/oa/my-plan/add/savePlan.vue' // 子组件
|
|
|
import '@/assets/less/dataVTable.less' // 修改首页 DataV 轮播表样式
|
|
|
import { getUserPermissionByTokenBottom, getListByCreateBy } from '@api/api.js'
|
|
|
import { ACCESS_TOKEN } from '@/store/mutation-types'
|
|
@@ -232,6 +234,7 @@ export default {
|
|
|
FullCalendar, //日历
|
|
|
JEditor, //富文本
|
|
|
DetAnnModal, //公告详情弹框
|
|
|
+ SavePlan ,// 弹框 日程表单
|
|
|
MyoaTabs //我的待办、已办、申请 tabs
|
|
|
},
|
|
|
data() {
|
|
@@ -614,6 +617,25 @@ export default {
|
|
|
handleDateClick(selectInfo) {
|
|
|
this.$router.push('/oa/my-plan/schedulePlan')
|
|
|
},
|
|
|
+ // 点击日程(回显)
|
|
|
+ handleEventClick (e) {
|
|
|
+ this.$refs.savePlan.savePlanModalVisible = true
|
|
|
+ console.log('点击项ID', e.event.id)
|
|
|
+ if (e.event.id) {
|
|
|
+ // 根据id查询日程(注意接口文档传参格式要求)
|
|
|
+ this.$nextTick(() => {
|
|
|
+ scheduleQueryById({ id: e.event.id }).then(res => {
|
|
|
+ if (res.success) {
|
|
|
+ let formData = res.result // 查询结果赋值
|
|
|
+ this.data = formData
|
|
|
+ console.log('表单回显数据', this.data)
|
|
|
+ this.$refs.savePlan.formData = this.data // 查询到的日程数据赋值给子组件表单
|
|
|
+ this.$refs.savePlan.getFormInfo() // 调用子组件的回显数据
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
//企业公告
|
|
|
openEnterAnn() {
|
|
|
this.$router.push('/oa/enterpriseAnnouncement')
|