Keisuke-Takagi
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # リサーチ情報、事前設定項目定数が残っている箇所 ## 項目追加の実装漏れの可能性がある箇所のみまとめ ### CSV エクスポート画面 検索項目 項目が足りないかもしれないです。 ![](https://i.imgur.com/vnQtApF.png) ### OP架電画面->印刷ボタン 項目が足りないかもしれないです。 ![](https://i.imgur.com/02CnXZU.png) ## 1. 現状のinterface で型表記が固定されているのに何故動作しているのかについての調査結果 以下何故動作しているのか気になったので調べた結果の報告です。主に以下の2種類のことが起こっており現状動作しているのだと思っています。 ### ① vue ファイルでデータを参照している Storeがそもそも異なっている こちら中村さんの修正で意図的にやっていただいたと思うのですが、.vue ファイルでデータを参照している Storeがそもそも異なっているので動作している箇所ありました。 現状テンプレートでは 事前設定項目、リサーチ情報は ItemCustomStore.ts で参照していると思います。 この場合、MasterStore.ts や他のstore で今までの記述が残り、そこに、リサーチ情報と事前設定項目の直書き の記述(以前の仕様)が残っている様な状態に現状のブランチではなっているのではと考えています。 ### ② 現在の利用で、新しく追加された項目を取得する記述がない(response 用のinterfaceなど) response 用のinterface に直書きでかかれていてそれを利用しているのに動いている理由について、 axios通信をした結果(response.data等)で今回追加していただいた箇所(research11とか)をkey名を指定して、取得していないから不具合が発生していないのだと思います。なので今後取り出そうとする記述を書く際に困るかなと思います。 ### ③ interfaceに定義が足りない箇所はイベント発火時に連想配列がついかされている(checkボックス、フォーム等追加) interfaceに定義が足りない箇所はイベント発火時に連想配列が追加されているようです。 例) 事前情報1 を編集した場合は 事前に用意してあるadvancedInformation1というkeyにvalueがバインドされる。 事前情報11 を編集した場合は advancedInformation11 の連想配列が新たに作成され値がバインドされるため動作している。初期表示だと、事前設定項目は8までだけあります。 ![](https://i.imgur.com/amZ0uFc.gif) ## 2. 直書きされている箇所 以前の仕様のままのソースと考え 「research3」で検索した結果の箇所全てのファイルを下に列挙しました。 ### 140 件の結果 - 22 ファイル ### `AdminCallingDetail.vue` リサーチ情報をMasterstore に入れる記述を直書きをしているがMasterStoreの値をテンプレートで使用せず、itemCustomStoreを見てループしているため動いていると思います。 ### `BaseSearch.vue`  自分の変更で削除済みな気がします。 [https://github.com/scene-live/list-navigator/pull/1799](https://github.com/scene-live/list-navigator/pull/1799) ### `OpPrint.vue` リサーチ情報をMasterstore に入れる記述を直書きをしているがMasterStoreの値をテンプレートで使用せず、itemCustomStoreを見てループしているため動いていると思います。 ### ==`UpdateListRequest.ts`== import ないので、使われていない?使用箇所の記述が見つかりませんでした。 ### `ListDeleteRequest.ts` store に入れる記述を直書きをしているがstoreの値をテンプレートで使用せず、itemCustomStoreを見てループいるため動いていると思います。削除しても問題なければ削除でいいかもしれないです ### `ListSearchRequest.ts` store に入れる記述を直書きをしているがstoreの値をテンプレートで使用せず、itemCustomStoreを見てループしているため動いていると思います。削除しても問題なければ削除でいいかもしれないです ### `AdminCallingResponse.ts` research11 以降、advancedInformation9以降使っているかもしれないですが、直接key名を指定して使っていないため動いていると思います。 --- OperatorSearchStore.ts updateList() でinterface に定義されていない keyがParam としてpost されているような気がします。 <確認方法> 管理者架電 -> 情報をセットして次へを押下し確認しました。 ``` [OperatorSearchStore.ts 一部] @Action public async updateList(args: { operatorId?: number, sipId?: string; number?: string; recordName?: string; type?: string; updateType?: number; isNotHistoryRegist?: number; actualCallFlag?: number; }): Promise<boolean> { interface Param { updateParams: ListDetailData; listId: number; operatorId: number; isNotHistoryRegist: number; sipUser?: string; dstNumber?: string; recFileName?: string; type?: string; updateType?: number; actualCallFlag?: number; } let param: Param = { updateParams: this._listDetailData, listId: Number(this._listDetailData.listId), operatorId: (args.operatorId) ? args.operatorId : 1, isNotHistoryRegist: (args.isNotHistoryRegist) ? args.isNotHistoryRegist : 0, recFileName: args.recordName, type: args.type, updateType: args.updateType, actualCallFlag: args.actualCallFlag, }; (以下省略) ``` 型安全怪しいので修正必要かもしれません。 ![](https://i.imgur.com/1EjxTpX.png) ### `MasterDataResponse.ts` research11 以降、advancedInformation9以降key名を指定して使っていないため動いていると思います。 追加した項目を今の記述のまま利用しようとした場合に企業によってはキーが存在せずエラーになると思います。 - OperatorSearchStore.ts (1例です) 現状は追加した項目のkey名の指定を使用していないためエラーになっていないかと。 ``` Store側 [OperatorSearchStore.ts] @Action public async initMaster(targetMasterKeys?: string[]): Promise<boolean | BaseError> { if (!targetMasterKeys) { targetMasterKeys = ['callStatus']; } try { // ここ戻り値型安全をresearch10まで行っている const result = await post<MasterDataResponse, {}>(GET_MASTER(targetMasterKeys)); 以下略 -- インターフェイス側: [MasterDataResponse.ts] export interface MasterDataResponse extends BaseResponse { data: { displayMasterDataList: any; masterDataList: MasterDataList; }; } // research11でkey 名を指定して取得できない状況 export interface DisplayMasterDataList { itemTitle: string[] | null; pref: string[] | null; listGroup: string[] | null; research1: string[] | null; research2: string[] | null; research3: string[] | null; research4: string[] | null; research5: string[] | null; research6: string[] | null; research7: string[] | null; research8: string[] | null; research9: string[] | null; research10: string[] | null; week: Week[] | null; banStatus: BanStatus[] | null; callStatus: CallStatus[] | null; predictStatus: CallStatus[] | null; } ``` ### `OpCallResponse.ts` research11 以降、advancedInformation9以降key名を指定して使っていないため動いていると思います。 追加した項目を今の記述のまま利用しようとした場合に企業によってはキーが存在せずエラーになると思います。 (MasterDataResponset.ts と同じ) ### `CompanyAllocationStore.ts` store に入れる記述を直書きをしているがstoreの値をテンプレートで使用せず、itemCustomStoreを見てループしているため動いていると思います。削除しても問題なければ直書きの箇所削除でいいかもしれないです ### `CompanyReleaseStore.ts` store に入れる記述を直書きをしているがstoreの値をテンプレートで使用せず、itemCustomStoreを見てループしているため動いていると思います。削除しても問題なければ直書きの箇所削除でいいかもしれないです ### `CsvExportStore.ts` CSVエクスポート 検索項目足りない気がします。自分の環境だと画像のようになりました。 ![](https://i.imgur.com/vnQtApF.png) ### `ListCleaningStore.ts` store に入れる記述を直書きをしているがstoreの値をテンプレートで使用せず、itemCustomStoreを見てループしているため動いていると思います。削除しても問題なければ直書きの箇所削除でいいかもしれないです。 ### `ListCreateCallingStore.ts` store に入れる記述を直書きをしているがstoreの値をテンプレートで使用せず、itemCustomStoreを見てループしているため動いていると思います。削除しても問題なければ直書きの箇所削除でいいかもしれないです。 ### `ListDeleteStore.ts` store に入れる記述を直書きをしているがstoreの値をテンプレートで使用せず、itemCustomStoreを見てループしているため動いていると思います。削除しても問題なければ直書きの箇所削除でいいかもしれないです。 ### `ListOpToOpStore.ts` store に入れる記述を直書きをしているがstoreの値をテンプレートで使用せず、itemCustomStoreを見てループしているため動いていると思います。削除しても問題なければ直書きの箇所削除でいいかもしれないです。 ### `MasterDataStore.ts` ### OP画面->印刷ボタンで表示項目が足りない気がします。 ![](https://i.imgur.com/02CnXZU.png) ### `OperatorAllocationStore.ts` store に入れる記述を直書きをしているがstoreの値をテンプレートで使用せず、itemCustomStoreを見てループしているため動いていると思います。削除しても問題なければ直書きの箇所削除でいいかもしれないです。 ### `OperatorReleaseStore.ts` store に入れる記述を直書きをしているがstoreの値をテンプレートで使用せず、itemCustomStoreを見てループしているため動いていると思います。削除しても問題なければ直書きの箇所削除でいいかもしれないです。 ### `OperatorCallStore.ts` resetListData() メソッドで初期化できていない気がします。 使われてはいそうですが、事前情報とリサーチ情報に関しては、itemCustomStoreを見てループしているため動いていると思います。 ### `OperatorSearchStore.ts` resetListData() メソッドで初期化できていない気がします。 使われてはいそうですが、事前情報とリサーチ情報に関しては、itemCustomStoreを見てループしているため動いていると思います。 ### `PredictiveListStore.ts` RESET_SEARCH_FORM() メソッドで初期化できていない気がします。 ---

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully