Merged PR 75: feat:一覧画面の値変更イベント を利用不可にする

修正内容:
1.一覧画面の値変更イベント を利用不可にする
2.値変更イベント の設定可能な項目は以下の種別を限定する
- ラジオボタン
- ドロップダウン
-  チェックボックス
- •複数選択
-  ユーザー選択
- •組織選択
-  グループ選択
-  日付
- 時刻
-  日時
- 文字列1行 *1
- 数値 *2

Related work items: #579
This commit is contained in:
Shohtetsu Ma
2024-08-06 05:59:10 +00:00
committed by Takuto Yoshida(タクト)
2 changed files with 22 additions and 8 deletions

View File

@@ -34,7 +34,7 @@
</template> </template>
</q-tree> </q-tree>
<show-dialog v-model:visible="showDialog" name="フィールド選択" @close="closeDg"> <show-dialog v-model:visible="showDialog" name="フィールド選択" @close="closeDg">
<field-select ref="appDg" name="フィールド" type="single" :appId="store.appInfo?.appId"></field-select> <field-select ref="appDg" name="フィールド" type="single" :fieldTypes="fieldTypes" :appId="store.appInfo?.appId"></field-select>
</show-dialog> </show-dialog>
</template> </template>
@@ -58,6 +58,19 @@ export default defineComponent({
const store = useFlowEditorStore(); const store = useFlowEditorStore();
const showDialog = ref(false); const showDialog = ref(false);
const tree = ref<QTree>(); const tree = ref<QTree>();
const fieldTypes=[
'RADIO_BUTTON',
'DROP_DOWN',
'CHECK_BOX',
'MULTI_SELECT',
'USER_SELECT',
'GROUP_SELECT',
'ORGANIZATION_SELECT',
'DATE',
'DATETIME',
'TIME',
'SINGLE_LINE_TEXT',
'NUMBER'];
// const eventTree=ref(kintoneEvents); // const eventTree=ref(kintoneEvents);
// const selectedFlow = store.currentFlow; // const selectedFlow = store.currentFlow;
@@ -148,7 +161,8 @@ export default defineComponent({
addChangeEvent, addChangeEvent,
deleteEvent, deleteEvent,
closeDg, closeDg,
store store,
fieldTypes
} }
} }
}); });

View File

@@ -287,12 +287,12 @@ export class KintoneEventManager {
'app.record.index.edit.submit.success', 'app.record.index.edit.submit.success',
'app.record.index' 'app.record.index'
), ),
new kintoneEventForChange( // new kintoneEventForChange(
'app.record.index.edit.change', // 'app.record.index.edit.change',
'インライン編集のフィールド値を変更したとき', // 'インライン編集のフィールド値を変更したとき',
[], // [],
'app.record.index' // 'app.record.index'
), // ),
new kintoneEventGroup( new kintoneEventGroup(
'app.record.index.show.customButtonClick', 'app.record.index.show.customButtonClick',
'ボタンをクリックした時', 'ボタンをクリックした時',