|
@@ -21,21 +21,38 @@
|
|
</div>
|
|
</div>
|
|
<BaseCalendar
|
|
<BaseCalendar
|
|
ref="baseCalendar"
|
|
ref="baseCalendar"
|
|
|
|
+ :markText="{
|
|
|
|
+ date:`${$t('ToolBox.ForexCalendar.mark_date',{
|
|
|
|
+ month:$i18n.locale==='zh'?`${currentMonth}`:calendarTrans.Month[Number(currentMonth)||1].en,
|
|
|
|
+ year:currentYear||'2024'})
|
|
|
|
+ }`,
|
|
|
|
+ type:'XXX品种'
|
|
|
|
+ }"
|
|
@dateClick="dateClick"
|
|
@dateClick="dateClick"
|
|
@eventClick="eventClick"
|
|
@eventClick="eventClick"
|
|
></BaseCalendar>
|
|
></BaseCalendar>
|
|
|
|
+ <AddEventDialog
|
|
|
|
+ :isEventDialogShow="isEventDialogShow"
|
|
|
|
+ :choosedDay="choosedDay"
|
|
|
|
+ @save="addEvents"
|
|
|
|
+ @close="isEventDialogShow=false"
|
|
|
|
+ />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import BaseCalendar from './components/BaseCalendar.vue';
|
|
import BaseCalendar from './components/BaseCalendar.vue';
|
|
|
|
+import AddEventDialog from './components/AddEventDialog.vue';
|
|
import calendarTrans from '@/lang/modules/ToolBox/calendar/commonLang';
|
|
import calendarTrans from '@/lang/modules/ToolBox/calendar/commonLang';
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
monthValue:'',
|
|
monthValue:'',
|
|
calendarApi:null,
|
|
calendarApi:null,
|
|
- calendarTrans:calendarTrans
|
|
|
|
|
|
+ calendarTrans:calendarTrans,
|
|
|
|
+ isEventDialogShow:false,
|
|
|
|
+ eventInfo:null,
|
|
|
|
+ choosedDay:'',
|
|
};
|
|
};
|
|
},
|
|
},
|
|
computed:{
|
|
computed:{
|
|
@@ -56,12 +73,17 @@ export default {
|
|
dateClick(info){
|
|
dateClick(info){
|
|
console.log("dateClick-info",info)
|
|
console.log("dateClick-info",info)
|
|
//打开弹窗
|
|
//打开弹窗
|
|
|
|
+ this.isEventDialogShow = true
|
|
|
|
+ this.choosedDay = info.dateStr
|
|
},
|
|
},
|
|
eventClick(info){
|
|
eventClick(info){
|
|
console.log("eventClick-info",info)
|
|
console.log("eventClick-info",info)
|
|
},
|
|
},
|
|
|
|
+ addEvents(events){
|
|
|
|
+ //addEventSource
|
|
|
|
+ },
|
|
},
|
|
},
|
|
- components: { BaseCalendar },
|
|
|
|
|
|
+ components: { BaseCalendar , AddEventDialog },
|
|
mounted(){
|
|
mounted(){
|
|
this.monthValue = this.$moment(new Date()).format('YYYY-MM')
|
|
this.monthValue = this.$moment(new Date()).format('YYYY-MM')
|
|
this.calendarApi = this.$refs.baseCalendar.$refs.fullCalendar.getApi()
|
|
this.calendarApi = this.$refs.baseCalendar.$refs.fullCalendar.getApi()
|