メインコンテンツまでスキップ

統合 & 自動化-ホッチキスのスケジュールの表示/作成

1. 使用シーン

会社が毎月月末に全員総括大会を開く必要がある場合は、事前に会議の準備をする必要がある。会議グループのメンバーは、自分のスケジュールを作成する必要があります。これで、適切なフォームの記入と提出によって、自動的にホッチキスにスケジュールを作成できるようになりました。可将To-doはホッチキスのカレンダーに書き込まれ、ホッチキスのカレンダーに表示されます。

2.機能を実現する

2.1スケジュールの作成

(1) フォームページの作成

このフォームが送信されると、統合自動作成スケジュールがトリガーされます。

(2) 構成インテグレーション & 自動化

2.2スケジュールを見る

(1) カスタムページの作成

(2) スケジュールデータの取得用コネクタの設定

(3) 下記のコードをページjsにコピーする

export function didMount() {
console.log(`「页面 JS」:当前页面地址 ${location.href}`);
// console.log(`「页面 JS」:当前页面 id 参数为 ${this.state.urlParams.id}`);
// 更多 this 相关 API 请参考:https://www.yuque.com/yida/support/ocmxyv#OCEXd
// document.title = window.loginUser.userName + ' | 宜搭';
this.dataSourceMap.getData.load({
inputs: JSON.stringify({
timeMax: new Date().getTime(),
timeMin: new Date().getTime() - 7 * 24 * 3600 * 1000,
userId: [window.loginUser && window.loginUser.userId]
})
}).then(res => {
let list = [];
try {
list = JSON.parse(res) && JSON.parse(res).recordResult || [];
} catch(err) {}
this.setState({
list: list.reverse()
});
})
}

/**
* button onClick
*/
export function onClick(){
const { id } = this.item;
const arr = id.split('_') || [];
const uniqueId = arr[0];
const recurrenceId = arr[1];
const page = `pages/detail/index?uniqueId=${uniqueId}&recurrenceId=${recurrenceId || ''}`;
const fallback_url = `dingtalk://dingtalkclient/page/calendar_detail?id=0&uniqueId=${uniqueId}&recurrenceId=${recurrenceId || ''}`;
const url = `dingtalk://dingtalkclient/action/open_mini_app?miniAppId=2018112162280005&ddMode=push&mainTask=true&keepAlive=false&newCalendar=1&page=${encodeURIComponent(page)}&fallback_url=${encodeURIComponent(fallback_url)}`;
window.open(url);
}

(4) パラメータとイベントのバインド


3.効果を実現する

3.1スケジュールの作成

3.2スケジュールを見る

4.オンラインで試してみます

この文書は機械翻訳により生成されています。翻訳により生じた齟齬や相違点は拘束力を持たず、コンプライアンスや執行目的において法的効力はありません。
© DingTalk (Singapore) Private Limited