@@ -82,7 +82,7 @@ export class M_calendar {
82
82
//加上周期
83
83
const avids_zq = await this . getAVreferenceid ( '周期' ) ;
84
84
console . log ( avids ) ;
85
- if ( avids . includes ( msg . data [ 0 ] . doOperations [ 0 ] . avID ) || avids_zq . includes ( msg . data [ 0 ] . doOperations [ 0 ] . avID ) ) {
85
+ if ( avids . includes ( msg . data [ 0 ] . doOperations [ 0 ] . avID ) || avids_zq . includes ( msg . data [ 0 ] . doOperations [ 0 ] . avID ) ) {
86
86
console . log ( "更新了日程信息" ) ;
87
87
//延时执行
88
88
this . avButton ( ) ; //数据库每次更新都会重新加载页面
@@ -142,7 +142,7 @@ export class M_calendar {
142
142
private avButton ( ) {
143
143
setTimeout ( async ( ) => {
144
144
const targetSpans = Array . from ( document . querySelectorAll ( 'span[data-type="av-add-more"]' ) )
145
- . filter ( span => span . closest ( '[name="日程"]' ) || span . closest ( '[name="周期"]' ) ) ;
145
+ . filter ( span => span . closest ( '[name="日程"]' ) || span . closest ( '[name="周期"]' ) ) ;
146
146
// console.log(targetSpans, "targetSpans");
147
147
148
148
targetSpans . forEach ( targetSpan => {
@@ -232,6 +232,18 @@ export class M_calendar {
232
232
233
233
}
234
234
235
+ showhelp ( ) {
236
+ // new Dialog({
237
+ // title: null,
238
+ // content: ``,
239
+ // width: '70%',
240
+ // height: '80vh',
241
+ // disableClose: false,
242
+ // hideCloseIcon: true,
243
+ // });
244
+
245
+ }
246
+
235
247
236
248
237
249
onunload ( ) {
@@ -408,6 +420,7 @@ export class M_calendar {
408
420
console . error ( `Invalid response for avId ${ avId } :` , response ) ;
409
421
}
410
422
}
423
+ //周期部分
411
424
const avIds_zq = await this . getAVreferenceid ( '周期' ) ;
412
425
for ( const avId of avIds_zq ) {
413
426
const response = await api . renderAttributeView ( avId ) ;
@@ -417,9 +430,9 @@ export class M_calendar {
417
430
return {
418
431
blockContent : row . cells [ 0 ] ?. value ?. block ?. content || 'N/A' , //标题
419
432
dateContent : row . cells [ 1 ] ?. value ?. date ?. content || 0 , //日期
420
- textContent : row . cells [ 2 ] ?. value ?. text ?. content || 'N/A' , //描述
433
+ textContent : row . cells [ 4 ] ?. value ?. text ?. content || 'N/A' , //描述
421
434
rule : row . cells [ 3 ] ?. value ?. text ?. content || 'N/A' , //频率规则
422
- duration : row . cells [ 4 ] ?. value ?. number ?. content || 1 , //持续时间
435
+ duration : row . cells [ 2 ] ?. value ?. number ?. content || 1 , //持续时间
423
436
} ;
424
437
} ) ;
425
438
await this . runAddEvent ( result , true ) ;
0 commit comments