@lm_fe/pages-mchc 0.1.201
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +74 -0
- package/dist/a_chunks/.root.js +1391 -0
- package/dist/a_chunks/.root.js.map +1 -0
- package/dist/a_chunks/.root10.js +120 -0
- package/dist/a_chunks/.root10.js.map +1 -0
- package/dist/a_chunks/.root100.js +106 -0
- package/dist/a_chunks/.root100.js.map +1 -0
- package/dist/a_chunks/.root101.js +108 -0
- package/dist/a_chunks/.root101.js.map +1 -0
- package/dist/a_chunks/.root102.js +684 -0
- package/dist/a_chunks/.root102.js.map +1 -0
- package/dist/a_chunks/.root103.js +72 -0
- package/dist/a_chunks/.root103.js.map +1 -0
- package/dist/a_chunks/.root104.js +65 -0
- package/dist/a_chunks/.root104.js.map +1 -0
- package/dist/a_chunks/.root105.js +440 -0
- package/dist/a_chunks/.root105.js.map +1 -0
- package/dist/a_chunks/.root106.js +215 -0
- package/dist/a_chunks/.root106.js.map +1 -0
- package/dist/a_chunks/.root107.js +106 -0
- package/dist/a_chunks/.root107.js.map +1 -0
- package/dist/a_chunks/.root108.js +1135 -0
- package/dist/a_chunks/.root108.js.map +1 -0
- package/dist/a_chunks/.root109.js +203 -0
- package/dist/a_chunks/.root109.js.map +1 -0
- package/dist/a_chunks/.root11.js +86 -0
- package/dist/a_chunks/.root11.js.map +1 -0
- package/dist/a_chunks/.root110.js +186 -0
- package/dist/a_chunks/.root110.js.map +1 -0
- package/dist/a_chunks/.root111.js +30 -0
- package/dist/a_chunks/.root111.js.map +1 -0
- package/dist/a_chunks/.root112.js +193 -0
- package/dist/a_chunks/.root112.js.map +1 -0
- package/dist/a_chunks/.root113.js +21 -0
- package/dist/a_chunks/.root113.js.map +1 -0
- package/dist/a_chunks/.root114.js +1190 -0
- package/dist/a_chunks/.root114.js.map +1 -0
- package/dist/a_chunks/.root12.js +106 -0
- package/dist/a_chunks/.root12.js.map +1 -0
- package/dist/a_chunks/.root13.js +137 -0
- package/dist/a_chunks/.root13.js.map +1 -0
- package/dist/a_chunks/.root14.js +137 -0
- package/dist/a_chunks/.root14.js.map +1 -0
- package/dist/a_chunks/.root15.js +132 -0
- package/dist/a_chunks/.root15.js.map +1 -0
- package/dist/a_chunks/.root16.js +33 -0
- package/dist/a_chunks/.root16.js.map +1 -0
- package/dist/a_chunks/.root17.js +165 -0
- package/dist/a_chunks/.root17.js.map +1 -0
- package/dist/a_chunks/.root18.js +233 -0
- package/dist/a_chunks/.root18.js.map +1 -0
- package/dist/a_chunks/.root19.js +123 -0
- package/dist/a_chunks/.root19.js.map +1 -0
- package/dist/a_chunks/.root2.js +108 -0
- package/dist/a_chunks/.root2.js.map +1 -0
- package/dist/a_chunks/.root20.js +123 -0
- package/dist/a_chunks/.root20.js.map +1 -0
- package/dist/a_chunks/.root21.js +135 -0
- package/dist/a_chunks/.root21.js.map +1 -0
- package/dist/a_chunks/.root22.js +104 -0
- package/dist/a_chunks/.root22.js.map +1 -0
- package/dist/a_chunks/.root23.js +11 -0
- package/dist/a_chunks/.root23.js.map +1 -0
- package/dist/a_chunks/.root24.js +9 -0
- package/dist/a_chunks/.root24.js.map +1 -0
- package/dist/a_chunks/.root25.js +11 -0
- package/dist/a_chunks/.root25.js.map +1 -0
- package/dist/a_chunks/.root26.js +11 -0
- package/dist/a_chunks/.root26.js.map +1 -0
- package/dist/a_chunks/.root27.js +265 -0
- package/dist/a_chunks/.root27.js.map +1 -0
- package/dist/a_chunks/.root28.js +6 -0
- package/dist/a_chunks/.root28.js.map +1 -0
- package/dist/a_chunks/.root29.js +9 -0
- package/dist/a_chunks/.root29.js.map +1 -0
- package/dist/a_chunks/.root3.js +529 -0
- package/dist/a_chunks/.root3.js.map +1 -0
- package/dist/a_chunks/.root30.js +75 -0
- package/dist/a_chunks/.root30.js.map +1 -0
- package/dist/a_chunks/.root31.js +9 -0
- package/dist/a_chunks/.root31.js.map +1 -0
- package/dist/a_chunks/.root32.js +1661 -0
- package/dist/a_chunks/.root32.js.map +1 -0
- package/dist/a_chunks/.root33.js +41 -0
- package/dist/a_chunks/.root33.js.map +1 -0
- package/dist/a_chunks/.root34.js +226 -0
- package/dist/a_chunks/.root34.js.map +1 -0
- package/dist/a_chunks/.root35.js +141 -0
- package/dist/a_chunks/.root35.js.map +1 -0
- package/dist/a_chunks/.root36.js +35 -0
- package/dist/a_chunks/.root36.js.map +1 -0
- package/dist/a_chunks/.root37.js +105 -0
- package/dist/a_chunks/.root37.js.map +1 -0
- package/dist/a_chunks/.root38.js +180 -0
- package/dist/a_chunks/.root38.js.map +1 -0
- package/dist/a_chunks/.root39.js +30 -0
- package/dist/a_chunks/.root39.js.map +1 -0
- package/dist/a_chunks/.root4.js +502 -0
- package/dist/a_chunks/.root4.js.map +1 -0
- package/dist/a_chunks/.root40.js +193 -0
- package/dist/a_chunks/.root40.js.map +1 -0
- package/dist/a_chunks/.root41.js +264 -0
- package/dist/a_chunks/.root41.js.map +1 -0
- package/dist/a_chunks/.root42.js +456 -0
- package/dist/a_chunks/.root42.js.map +1 -0
- package/dist/a_chunks/.root43.js +32 -0
- package/dist/a_chunks/.root43.js.map +1 -0
- package/dist/a_chunks/.root44.js +32 -0
- package/dist/a_chunks/.root44.js.map +1 -0
- package/dist/a_chunks/.root45.js +30 -0
- package/dist/a_chunks/.root45.js.map +1 -0
- package/dist/a_chunks/.root46.js +30 -0
- package/dist/a_chunks/.root46.js.map +1 -0
- package/dist/a_chunks/.root47.js +172 -0
- package/dist/a_chunks/.root47.js.map +1 -0
- package/dist/a_chunks/.root48.js +119 -0
- package/dist/a_chunks/.root48.js.map +1 -0
- package/dist/a_chunks/.root49.js +175 -0
- package/dist/a_chunks/.root49.js.map +1 -0
- package/dist/a_chunks/.root5.js +208 -0
- package/dist/a_chunks/.root5.js.map +1 -0
- package/dist/a_chunks/.root50.js +133 -0
- package/dist/a_chunks/.root50.js.map +1 -0
- package/dist/a_chunks/.root51.js +63 -0
- package/dist/a_chunks/.root51.js.map +1 -0
- package/dist/a_chunks/.root52.js +491 -0
- package/dist/a_chunks/.root52.js.map +1 -0
- package/dist/a_chunks/.root53.js +10 -0
- package/dist/a_chunks/.root53.js.map +1 -0
- package/dist/a_chunks/.root54.js +10 -0
- package/dist/a_chunks/.root54.js.map +1 -0
- package/dist/a_chunks/.root55.js +644 -0
- package/dist/a_chunks/.root55.js.map +1 -0
- package/dist/a_chunks/.root56.js +744 -0
- package/dist/a_chunks/.root56.js.map +1 -0
- package/dist/a_chunks/.root57.js +200 -0
- package/dist/a_chunks/.root57.js.map +1 -0
- package/dist/a_chunks/.root58.js +215 -0
- package/dist/a_chunks/.root58.js.map +1 -0
- package/dist/a_chunks/.root59.js +227 -0
- package/dist/a_chunks/.root59.js.map +1 -0
- package/dist/a_chunks/.root6.js +416 -0
- package/dist/a_chunks/.root6.js.map +1 -0
- package/dist/a_chunks/.root60.js +256 -0
- package/dist/a_chunks/.root60.js.map +1 -0
- package/dist/a_chunks/.root61.js +74 -0
- package/dist/a_chunks/.root61.js.map +1 -0
- package/dist/a_chunks/.root62.js +174 -0
- package/dist/a_chunks/.root62.js.map +1 -0
- package/dist/a_chunks/.root63.js +159 -0
- package/dist/a_chunks/.root63.js.map +1 -0
- package/dist/a_chunks/.root64.js +480 -0
- package/dist/a_chunks/.root64.js.map +1 -0
- package/dist/a_chunks/.root65.js +521 -0
- package/dist/a_chunks/.root65.js.map +1 -0
- package/dist/a_chunks/.root66.js +125 -0
- package/dist/a_chunks/.root66.js.map +1 -0
- package/dist/a_chunks/.root67.js +1027 -0
- package/dist/a_chunks/.root67.js.map +1 -0
- package/dist/a_chunks/.root68.js +6 -0
- package/dist/a_chunks/.root68.js.map +1 -0
- package/dist/a_chunks/.root69.js +19 -0
- package/dist/a_chunks/.root69.js.map +1 -0
- package/dist/a_chunks/.root7.js +18532 -0
- package/dist/a_chunks/.root7.js.map +1 -0
- package/dist/a_chunks/.root70.js +12 -0
- package/dist/a_chunks/.root70.js.map +1 -0
- package/dist/a_chunks/.root71.js +9 -0
- package/dist/a_chunks/.root71.js.map +1 -0
- package/dist/a_chunks/.root72.js +10 -0
- package/dist/a_chunks/.root72.js.map +1 -0
- package/dist/a_chunks/.root73.js +255 -0
- package/dist/a_chunks/.root73.js.map +1 -0
- package/dist/a_chunks/.root74.js +260 -0
- package/dist/a_chunks/.root74.js.map +1 -0
- package/dist/a_chunks/.root75.js +72 -0
- package/dist/a_chunks/.root75.js.map +1 -0
- package/dist/a_chunks/.root76.js +119 -0
- package/dist/a_chunks/.root76.js.map +1 -0
- package/dist/a_chunks/.root77.js +112 -0
- package/dist/a_chunks/.root77.js.map +1 -0
- package/dist/a_chunks/.root78.js +545 -0
- package/dist/a_chunks/.root78.js.map +1 -0
- package/dist/a_chunks/.root79.js +321 -0
- package/dist/a_chunks/.root79.js.map +1 -0
- package/dist/a_chunks/.root8.js +141 -0
- package/dist/a_chunks/.root8.js.map +1 -0
- package/dist/a_chunks/.root80.js +474 -0
- package/dist/a_chunks/.root80.js.map +1 -0
- package/dist/a_chunks/.root81.js +125 -0
- package/dist/a_chunks/.root81.js.map +1 -0
- package/dist/a_chunks/.root82.js +217 -0
- package/dist/a_chunks/.root82.js.map +1 -0
- package/dist/a_chunks/.root83.js +425 -0
- package/dist/a_chunks/.root83.js.map +1 -0
- package/dist/a_chunks/.root84.js +254 -0
- package/dist/a_chunks/.root84.js.map +1 -0
- package/dist/a_chunks/.root85.js +207 -0
- package/dist/a_chunks/.root85.js.map +1 -0
- package/dist/a_chunks/.root86.js +576 -0
- package/dist/a_chunks/.root86.js.map +1 -0
- package/dist/a_chunks/.root87.js +92 -0
- package/dist/a_chunks/.root87.js.map +1 -0
- package/dist/a_chunks/.root88.js +72 -0
- package/dist/a_chunks/.root88.js.map +1 -0
- package/dist/a_chunks/.root89.js +1686 -0
- package/dist/a_chunks/.root89.js.map +1 -0
- package/dist/a_chunks/.root9.js +68 -0
- package/dist/a_chunks/.root9.js.map +1 -0
- package/dist/a_chunks/.root90.js +180 -0
- package/dist/a_chunks/.root90.js.map +1 -0
- package/dist/a_chunks/.root91.js +193 -0
- package/dist/a_chunks/.root91.js.map +1 -0
- package/dist/a_chunks/.root92.js +552 -0
- package/dist/a_chunks/.root92.js.map +1 -0
- package/dist/a_chunks/.root93.js +820 -0
- package/dist/a_chunks/.root93.js.map +1 -0
- package/dist/a_chunks/.root94.js +151 -0
- package/dist/a_chunks/.root94.js.map +1 -0
- package/dist/a_chunks/.root95.js +103 -0
- package/dist/a_chunks/.root95.js.map +1 -0
- package/dist/a_chunks/.root96.js +71 -0
- package/dist/a_chunks/.root96.js.map +1 -0
- package/dist/a_chunks/.root97.js +120 -0
- package/dist/a_chunks/.root97.js.map +1 -0
- package/dist/a_chunks/.root98.js +119 -0
- package/dist/a_chunks/.root98.js.map +1 -0
- package/dist/a_chunks/.root99.js +491 -0
- package/dist/a_chunks/.root99.js.map +1 -0
- package/dist/a_chunks/DoctorEnd_FurtherPage.js +1388 -0
- package/dist/a_chunks/DoctorEnd_FurtherPage.js.map +1 -0
- package/dist/a_chunks/HistoryTable.js +92 -0
- package/dist/a_chunks/HistoryTable.js.map +1 -0
- package/dist/a_chunks/bindLifecycle.js +234 -0
- package/dist/a_chunks/bindLifecycle.js.map +1 -0
- package/dist/a_chunks/diagnoses-week.js +106 -0
- package/dist/a_chunks/diagnoses-week.js.map +1 -0
- package/dist/a_chunks/extends.js +11 -0
- package/dist/a_chunks/extends.js.map +1 -0
- package/dist/a_chunks/hoist-non-react-statics.cjs.js +382 -0
- package/dist/a_chunks/hoist-non-react-statics.cjs.js.map +1 -0
- package/dist/a_chunks/index.js +1671 -0
- package/dist/a_chunks/index.js.map +1 -0
- package/dist/a_chunks/index1.js +9 -0
- package/dist/a_chunks/index1.js.map +1 -0
- package/dist/a_chunks/index12.js +9 -0
- package/dist/a_chunks/index12.js.map +1 -0
- package/dist/a_chunks/index2.js +123 -0
- package/dist/a_chunks/index2.js.map +1 -0
- package/dist/a_chunks/index3.js +227 -0
- package/dist/a_chunks/index3.js.map +1 -0
- package/dist/a_chunks/index4.js +140 -0
- package/dist/a_chunks/index4.js.map +1 -0
- package/dist/a_chunks/index5.js +105 -0
- package/dist/a_chunks/index5.js.map +1 -0
- package/dist/a_chunks/index6.js +754 -0
- package/dist/a_chunks/index6.js.map +1 -0
- package/dist/a_chunks/react-router.js +1890 -0
- package/dist/a_chunks/react-router.js.map +1 -0
- package/dist/a_chunks/request.js +305 -0
- package/dist/a_chunks/request.js.map +1 -0
- package/dist/a_chunks/utils.js +115 -0
- package/dist/a_chunks/utils.js.map +1 -0
- package/dist/a_chunks/utils2.js +58 -0
- package/dist/a_chunks/utils2.js.map +1 -0
- package/dist/a_chunks//345/255/225/344/272/247/345/217/262.js +14 -0
- package/dist/a_chunks//345/255/225/344/272/247/345/217/262.js.map +1 -0
- package/dist/a_chunks//351/253/230/345/215/261/347/256/241/347/220/206.js +225 -0
- package/dist/a_chunks//351/253/230/345/215/261/347/256/241/347/220/206.js.map +1 -0
- package/dist/env/index.d.ts +8 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +23 -0
- package/dist/index.js.map +1 -0
- package/dist/pages/config-table/form_config.d.ts +2 -0
- package/dist/pages/config-table/index.d.ts +3 -0
- package/dist/pages/config-table/list/index.d.ts +4 -0
- package/dist/pages/config-table/list2/index.d.ts +4 -0
- package/dist/pages/config-table/panel/index.d.ts +4 -0
- package/dist/pages/config-table/utils.d.ts +16 -0
- package/dist/pages/data-report/admission-visit/index.d.ts +2 -0
- package/dist/pages/data-report/breast-cancer/form_config.d.ts +3 -0
- package/dist/pages/data-report/breast-cancer/index.d.ts +2 -0
- package/dist/pages/data-report/cervical-cancer/form_config.d.ts +3 -0
- package/dist/pages/data-report/cervical-cancer/index.d.ts +2 -0
- package/dist/pages/data-report/first-visit/index.d.ts +2 -0
- package/dist/pages/data-report/labour-record/index.d.ts +2 -0
- package/dist/pages/data-report/labour-record-common/index.d.ts +2 -0
- package/dist/pages/data-report/premarital-checkup/index.d.ts +2 -0
- package/dist/pages/data-report/progestation-checkup/index.d.ts +2 -0
- package/dist/pages/data-report/second-visit/index.d.ts +2 -0
- package/dist/pages/data-report/two-cancer/index.d.ts +2 -0
- package/dist/pages/deliver-management/bgg-record/Inner.d.ts +5 -0
- package/dist/pages/deliver-management/bgg-record/form_config.d.ts +4 -0
- package/dist/pages/deliver-management/bgg-record/index.d.ts +2 -0
- package/dist/pages/deliver-management/bgg-record/search_config.d.ts +4 -0
- package/dist/pages/deliver-management/bgg-record/types.d.ts +1 -0
- package/dist/pages/deliver-management/disease-screening/Inner.d.ts +2 -0
- package/dist/pages/deliver-management/disease-screening/form_config.d.ts +3 -0
- package/dist/pages/deliver-management/disease-screening/index.d.ts +2 -0
- package/dist/pages/deliver-management/disease-screening/search_config.d.ts +4 -0
- package/dist/pages/deliver-management/hbig-record/index.d.ts +2 -0
- package/dist/pages/deliver-management/hbvac-record/index.d.ts +2 -0
- package/dist/pages/deliver-management/labour-record/form_config.d.ts +4 -0
- package/dist/pages/deliver-management/labour-record/index.d.ts +2 -0
- package/dist/pages/deliver-management/labour-record/modalForm_config.d.ts +4 -0
- package/dist/pages/deliver-management-v2/admission/list/config/form.d.ts +7 -0
- package/dist/pages/deliver-management-v2/admission/list/config/table.d.ts +2 -0
- package/dist/pages/deliver-management-v2/admission/list/config/useTableConfig.d.ts +3 -0
- package/dist/pages/deliver-management-v2/admission/list/index.d.ts +4 -0
- package/dist/pages/deliver-management-v2/index.d.ts +2 -0
- package/dist/pages/fetal-custom-analyse/Inner.d.ts +6 -0
- package/dist/pages/fetal-custom-analyse/Table.d.ts +11 -0
- package/dist/pages/fetal-custom-analyse/index.d.ts +2 -0
- package/dist/pages/fetal-custom-analyse/strategies/Cst.d.ts +2 -0
- package/dist/pages/fetal-custom-analyse/strategies/Cstoct.d.ts +2 -0
- package/dist/pages/fetal-custom-analyse/strategies/Fischer.d.ts +2 -0
- package/dist/pages/fetal-custom-analyse/strategies/Krebs.d.ts +2 -0
- package/dist/pages/fetal-custom-analyse/strategies/Nst.d.ts +2 -0
- package/dist/pages/fetal-custom-analyse/strategies/Sogc.d.ts +2 -0
- package/dist/pages/fetal-custom-analyse/strategies/strategies.d.ts +2 -0
- package/dist/pages/fetal-custom-analyse/strategies/utils.d.ts +93 -0
- package/dist/pages/fetal-custom-analyse/tableData.d.ts +5 -0
- package/dist/pages/fetal-custom-analyse/types.d.ts +199 -0
- package/dist/pages/fetal-custom-analyse/useSign.d.ts +8 -0
- package/dist/pages/fetal-custom-analyse-entry/index.d.ts +7 -0
- package/dist/pages/fetal-custom-analyse-list/HistoryTable.d.ts +15 -0
- package/dist/pages/fetal-custom-analyse-list/Inner.d.ts +6 -0
- package/dist/pages/fetal-custom-analyse-list/Table.d.ts +13 -0
- package/dist/pages/fetal-custom-analyse-list/index.d.ts +2 -0
- package/dist/pages/fetal-custom-analyse-list/types.d.ts +177 -0
- package/dist/pages/fetal-custom-analyse-list/useSign.d.ts +8 -0
- package/dist/pages/follow-up/questionnaire3/Inner.d.ts +6 -0
- package/dist/pages/follow-up/questionnaire3/create/Step2Right.d.ts +11 -0
- package/dist/pages/follow-up/questionnaire3/create/common.d.ts +46 -0
- package/dist/pages/follow-up/questionnaire3/create/fakeData.d.ts +6 -0
- package/dist/pages/follow-up/questionnaire3/create/question-item.d.ts +14 -0
- package/dist/pages/follow-up/questionnaire3/create/step1.d.ts +9 -0
- package/dist/pages/follow-up/questionnaire3/create/step2.d.ts +10 -0
- package/dist/pages/follow-up/questionnaire3/create/step3.d.ts +8 -0
- package/dist/pages/follow-up/questionnaire3/create/step4.d.ts +8 -0
- package/dist/pages/follow-up/questionnaire3/index.d.ts +2 -0
- package/dist/pages/follow-up/test/index.d.ts +6 -0
- package/dist/pages/gynecological-diseases/test/index.d.ts +3 -0
- package/dist/pages/gynecological-diseases/women/edit/components/Form.d.ts +3 -0
- package/dist/pages/gynecological-diseases/women/edit/config/adapter.d.ts +5 -0
- package/dist/pages/gynecological-diseases/women/edit/index.d.ts +14 -0
- package/dist/pages/gynecological-diseases/women/index.d.ts +2 -0
- package/dist/pages/gynecological-diseases/women/list/bf_default.d.ts +2 -0
- package/dist/pages/gynecological-diseases/women/list/components/Query.d.ts +22 -0
- package/dist/pages/gynecological-diseases/women/list/components/Table.d.ts +3 -0
- package/dist/pages/gynecological-diseases/women/list/config/form.d.ts +37 -0
- package/dist/pages/gynecological-diseases/women/list/config/table.d.ts +4 -0
- package/dist/pages/gynecological-diseases/women/list/form_config/bf_default.d.ts +2 -0
- package/dist/pages/gynecological-diseases/women/list/form_config/default.d.ts +4 -0
- package/dist/pages/gynecological-diseases/women/list/index.d.ts +2 -0
- package/dist/pages/gynecological-diseases/women/public-exam/BasicInfo.d.ts +15 -0
- package/dist/pages/gynecological-diseases/women/public-exam/GynecologicalExam.d.ts +15 -0
- package/dist/pages/gynecological-diseases/women/public-exam/GynecologicalLabExam.d.ts +15 -0
- package/dist/pages/gynecological-diseases/women/public-exam/GynecologicalNote.d.ts +16 -0
- package/dist/pages/gynecological-diseases/women/public-exam/MaritalHistory.d.ts +15 -0
- package/dist/pages/gynecological-diseases/women/public-exam/MenstrualHistory.d.ts +15 -0
- package/dist/pages/gynecological-diseases/women/public-exam/PhysicalExam.d.ts +15 -0
- package/dist/pages/gynecological-diseases/women/public-exam/adapter.d.ts +5 -0
- package/dist/pages/gynecological-diseases/women/women-exam-records/List.d.ts +26 -0
- package/dist/pages/gynecological-diseases/women/women-exam-records/add/index copy.d.ts +12 -0
- package/dist/pages/gynecological-diseases/women/women-exam-records/add/index.d.ts +2 -0
- package/dist/pages/gynecological-diseases/women/women-exam-records/components/Table.d.ts +3 -0
- package/dist/pages/gynecological-diseases/women/women-exam-records/config/table.d.ts +5 -0
- package/dist/pages/gynecological-diseases/women/women-exam-records/config//345/273/272/347/223/257.d.ts +5 -0
- package/dist/pages/gynecological-diseases/women/women-exam-records/edit/index copy.d.ts +11 -0
- package/dist/pages/gynecological-diseases/women/women-exam-records/edit/index.d.ts +3 -0
- package/dist/pages/gynecological-diseases/women/women-exam-records/form_config/common.d.ts +3 -0
- package/dist/pages/gynecological-diseases/women/women-exam-records/form_config/default.d.ts +4 -0
- package/dist/pages/gynecological-diseases/women/women-exam-records/form_config/index.d.ts +1 -0
- package/dist/pages/gynecological-diseases/women/women-exam-records/form_config//345/273/272/347/223/257.d.ts +4 -0
- package/dist/pages/gynecological-diseases/women/women-exam-records/index.d.ts +10 -0
- package/dist/pages/highrisk-management/list/form_config.d.ts +3 -0
- package/dist/pages/highrisk-management/list/index.d.ts +2 -0
- package/dist/pages/highrisk-management/list/search_config.d.ts +3 -0
- package/dist/pages/index.d.ts +1 -0
- package/dist/pages/my-knowledge/components/article-modal/article-modal.d.ts +11 -0
- package/dist/pages/my-knowledge/components/query.d.ts +53 -0
- package/dist/pages/my-knowledge/components/table.d.ts +5 -0
- package/dist/pages/my-knowledge/config/contants.d.ts +11 -0
- package/dist/pages/my-knowledge/config/query-form.d.ts +93 -0
- package/dist/pages/my-knowledge/config/table.d.ts +15 -0
- package/dist/pages/my-knowledge/list/index.d.ts +80 -0
- package/dist/pages/my-knowledge/request.d.ts +15 -0
- package/dist/pages/pregnant-school/lessons/.list/form_config.d.ts +4 -0
- package/dist/pages/pregnant-school/lessons/.list/index.d.ts +5 -0
- package/dist/pages/pregnant-school/lessons/index.d.ts +2 -0
- package/dist/pages/pregnant-school/midwifery-lessons/index.d.ts +2 -0
- package/dist/pages/pregnant-school/midwifery-ordered/index.d.ts +2 -0
- package/dist/pages/pregnant-school/ordered/.list/form_config.d.ts +4 -0
- package/dist/pages/pregnant-school/ordered/.list/form_config_midwifery.d.ts +4 -0
- package/dist/pages/pregnant-school/ordered/.list/index.d.ts +5 -0
- package/dist/pages/pregnant-school/ordered/index.d.ts +2 -0
- package/dist/pages/pregnant-school/personal-records/.list/components/Query.d.ts +17 -0
- package/dist/pages/pregnant-school/personal-records/.list/components/Table.d.ts +3 -0
- package/dist/pages/pregnant-school/personal-records/.list/config/form.d.ts +27 -0
- package/dist/pages/pregnant-school/personal-records/.list/config/table.d.ts +22 -0
- package/dist/pages/pregnant-school/personal-records/.list/index.d.ts +46 -0
- package/dist/pages/pregnant-school/personal-records/index.d.ts +2 -0
- package/dist/pages/pregnant-school/personal-statistics/.list/components/index.d.ts +2 -0
- package/dist/pages/pregnant-school/personal-statistics/.list/components/query-components.d.ts +24 -0
- package/dist/pages/pregnant-school/personal-statistics/.list/components/tables-components.d.ts +3 -0
- package/dist/pages/pregnant-school/personal-statistics/.list/config/index.d.ts +2 -0
- package/dist/pages/pregnant-school/personal-statistics/.list/config/qurey-form.d.ts +39 -0
- package/dist/pages/pregnant-school/personal-statistics/.list/config/table-form.d.ts +7 -0
- package/dist/pages/pregnant-school/personal-statistics/.list/index.d.ts +2 -0
- package/dist/pages/pregnant-school/personal-statistics/index.d.ts +2 -0
- package/dist/pages/pregnant-school/statistics/.list/components/Query.d.ts +17 -0
- package/dist/pages/pregnant-school/statistics/.list/components/Table.d.ts +3 -0
- package/dist/pages/pregnant-school/statistics/.list/config/form.d.ts +27 -0
- package/dist/pages/pregnant-school/statistics/.list/config/table.d.ts +22 -0
- package/dist/pages/pregnant-school/statistics/.list/index.d.ts +46 -0
- package/dist/pages/pregnant-school/statistics/index.d.ts +2 -0
- package/dist/pages/pregnant-school/types.d.ts +1 -0
- package/dist/pages/prenatal-visit/fetal-monitor/form_config.d.ts +4 -0
- package/dist/pages/prenatal-visit/fetal-monitor/index.d.ts +2 -0
- package/dist/pages/prenatal-visit/gbs/form_config.d.ts +4 -0
- package/dist/pages/prenatal-visit/gbs/index.d.ts +2 -0
- package/dist/pages/prenatal-visit/physical-sign/list/bf_default.d.ts +3 -0
- package/dist/pages/prenatal-visit/physical-sign/list/components/ModalForm.d.ts +14 -0
- package/dist/pages/prenatal-visit/physical-sign/list/components/Query.d.ts +22 -0
- package/dist/pages/prenatal-visit/physical-sign/list/components/Table.d.ts +3 -0
- package/dist/pages/prenatal-visit/physical-sign/list/config/form.d.ts +343 -0
- package/dist/pages/prenatal-visit/physical-sign/list/config/table.d.ts +150 -0
- package/dist/pages/prenatal-visit/physical-sign/list/index copy.d.ts +2 -0
- package/dist/pages/prenatal-visit/physical-sign/list/index.d.ts +2 -0
- package/dist/pages/prenatal-visit/physical-sign/list/index_old.d.ts +177 -0
- package/dist/pages/prenatal-visit/physical-sign/list/methods/index.d.ts +3 -0
- package/dist/pages/prenatal-visit/pregnancy/add/index.d.ts +2 -0
- package/dist/pages/prenatal-visit/pregnancy/check/index.d.ts +2 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.api/base.d.ts +7 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.api/components.d.ts +18 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.api/curve.d.ts +9 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.api/further.d.ts +18 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.api/home.d.ts +6 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.api/image.d.ts +6 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.api/index.d.ts +97 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.api/initial.d.ts +21 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.api/postpartum.d.ts +4 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.api/survey.d.ts +6 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.base/Inner.d.ts +10 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.base/husband/form_config.d.ts +2 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.base/husband/index.d.ts +10 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.base/index.d.ts +3 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.base/pregnancy/form_config.d.ts +2 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.base/pregnancy/index.d.ts +10 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.components/DiabetesAppointment/index.d.ts +19 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.components/DiagReminder/index.d.ts +13 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.components/Diagnoses/Inner.d.ts +5 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.components/Diagnoses/diagnoses-item/Inner.d.ts +18 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.components/Diagnoses/diagnoses-item/diagnoses-item.d.ts +2 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.components/Diagnoses/diagnoses-week/diagnoses-week.d.ts +9 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.components/Diagnoses/index.d.ts +3 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.components/Diagnoses/template/Inner.d.ts +16 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.components/Diagnoses/template/index.d.ts +2 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.components/PreventPreeclampsia/index.d.ts +8 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.components/ResultImport/index.d.ts +11 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.components/TemplateTree/Inner.d.ts +55 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.components/TemplateTree/index.d.ts +2 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.further/DoctorEnd_FurtherPage.d.ts +24 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.further/components/FurtherForm/config.d.ts +10 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.further/components/FurtherForm/form_config/Form.d.ts +9 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.further/components/FurtherForm/form_config/default.d.ts +4 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.further/components/FurtherForm/index.d.ts +23 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.further/components/FurtherSidebar/diag-table/Inner.d.ts +11 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.further/components/FurtherSidebar/diag-table/index.d.ts +2 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.further/components/FurtherSidebar/index.d.ts +20 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.further/components/FurtherSidebar/management-plan/Inner.d.ts +36 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.further/components/FurtherSidebar/management-plan/config.d.ts +2 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.further/components/FurtherSidebar/management-plan/index.d.ts +2 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.further/components/FurtherSidebar/management-plan/methods/request.d.ts +7 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.further/components/FurtherSidebar/prenatal-tree/index.d.ts +9 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.further/components/FurtherSidebar/survey-list/Inner.d.ts +12 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.further/components/FurtherSidebar/survey-list/index.d.ts +2 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.further/components/FurtherTable/config.d.ts +3 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.further/components/FurtherTable/index.d.ts +12 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.further/index.d.ts +3 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.further/methods/request.d.ts +13 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.home-care/components/BloodGlucose/index.d.ts +21 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.home-care/components/BloodPressure/index.d.ts +21 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.home-care/components/FetalMovement/index.d.ts +34 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.home-care/index.d.ts +12 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.image-report/Inner.d.ts +10 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.image-report/index.d.ts +2 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.initial/DoctorEnd_Initial.d.ts +26 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.initial/components/JianYanJianCha/index.d.ts +3 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.initial/components/QiTaBingshi/config.d.ts +4 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.initial/components/QiTaBingshi/index.d.ts +3 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.initial/components/TiGeJianCha/config.d.ts +4 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.initial/components/TiGeJianCha/index.d.ts +3 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.initial/components/YiBanBingShi/config.d.ts +3 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.initial/components/YiBanBingShi/index.d.ts +3 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.initial/components/YuChanQi/index.d.ts +6 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.initial/components/YunChanShi/index.d.ts +3 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.initial/components/ZhenDuanChuLi/config.d.ts +3 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.initial/components/ZhenDuanChuLi/index.d.ts +26 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.initial/components/ZhuanKeJianCha/form_config.d.ts +4 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.initial/components/ZhuanKeJianCha/index.d.ts +6 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.initial/func.d.ts +33 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.initial/index.d.ts +3 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.initial/methods/request.d.ts +67 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.survey-report/components/ExaminationItemCurve/Inner.d.ts +10 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.survey-report/components/ExaminationItemCurve/index.d.ts +2 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.survey-report/index.d.ts +10 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/.utils/index.d.ts +2 -0
- package/dist/pages/prenatal-visit/pregnancy/doctor-end/out.d.ts +9 -0
- package/dist/pages/prenatal-visit/pregnancy/list/components/prenatal-modal/constant.d.ts +32 -0
- package/dist/pages/prenatal-visit/pregnancy/list/components/prenatal-modal/prenatal-modal.d.ts +7 -0
- package/dist/pages/prenatal-visit/pregnancy/list/config/form.d.ts +3 -0
- package/dist/pages/prenatal-visit/pregnancy/list/config/table.d.ts +4 -0
- package/dist/pages/prenatal-visit/pregnancy/list/config/useTableConfig.d.ts +2 -0
- package/dist/pages/prenatal-visit/pregnancy/list/index.d.ts +3 -0
- package/dist/pages/prenatal-visit/pregnancy/nurse-end/InformedConsent/Inner.d.ts +26 -0
- package/dist/pages/prenatal-visit/pregnancy/nurse-end/InformedConsent/data.d.ts +137 -0
- package/dist/pages/prenatal-visit/pregnancy/nurse-end/InformedConsent/index1.d.ts +2 -0
- package/dist/pages/prenatal-visit/pregnancy/nurse-end/InformedConsent/method.d.ts +5 -0
- package/dist/pages/prenatal-visit/pregnancy/nurse-end/archival-information/Inner.d.ts +8 -0
- package/dist/pages/prenatal-visit/pregnancy/nurse-end/archival-information/Ws.d.ts +2 -0
- package/dist/pages/prenatal-visit/pregnancy/nurse-end/archival-information/form/common.d.ts +9 -0
- package/dist/pages/prenatal-visit/pregnancy/nurse-end/archival-information/form/form_config.d.ts +4 -0
- package/dist/pages/prenatal-visit/pregnancy/nurse-end/archival-information/form//344/270/210/345/244/253/345/237/272/346/234/254/344/277/241/346/201/257.d.ts +2 -0
- package/dist/pages/prenatal-visit/pregnancy/nurse-end/archival-information/form//344/275/223/345/276/201/346/243/200/346/237/245.d.ts +1 -0
- package/dist/pages/prenatal-visit/pregnancy/nurse-end/archival-information/form//345/205/266/344/273/226.d.ts +1 -0
- package/dist/pages/prenatal-visit/pregnancy/nurse-end/archival-information/form//345/255/225/344/272/247/345/217/262.d.ts +1 -0
- package/dist/pages/prenatal-visit/pregnancy/nurse-end/archival-information/form//345/255/225/345/246/207/345/237/272/346/234/254/344/277/241/346/201/257.d.ts +2 -0
- package/dist/pages/prenatal-visit/pregnancy/nurse-end/archival-information/form//346/227/242/345/276/200/345/217/262.d.ts +71 -0
- package/dist/pages/prenatal-visit/pregnancy/nurse-end/archival-information/form//346/234/254/346/254/241/345/255/225/344/272/247/344/277/241/346/201/257.d.ts +1 -0
- package/dist/pages/prenatal-visit/pregnancy/nurse-end/archival-information/form//350/275/254/345/205/245/347/231/273/350/256/260.d.ts +2 -0
- package/dist/pages/prenatal-visit/pregnancy/nurse-end/archival-information/form//351/253/230/345/215/261/347/256/241/347/220/206.d.ts +2 -0
- package/dist/pages/prenatal-visit/pregnancy/nurse-end/archival-information/form_new/form_config.d.ts +5 -0
- package/dist/pages/prenatal-visit/pregnancy/nurse-end/archival-information/form_new//345/273/272/347/223/257.d.ts +5 -0
- package/dist/pages/prenatal-visit/pregnancy/nurse-end/archival-information/index1.d.ts +2 -0
- package/dist/pages/prenatal-visit/pregnancy/nurse-end/archival-information/utils.d.ts +6 -0
- package/dist/pages/prenatal-visit/pregnancy/nurse-end/close-archives/Inner.d.ts +10 -0
- package/dist/pages/prenatal-visit/pregnancy/nurse-end/close-archives/components/Form.d.ts +16 -0
- package/dist/pages/prenatal-visit/pregnancy/nurse-end/close-archives/form_config.d.ts +2 -0
- package/dist/pages/prenatal-visit/pregnancy/nurse-end/close-archives/index1.d.ts +3 -0
- package/dist/pages/prenatal-visit/pregnancy/nurse-end/further-visit/components/Table.d.ts +3 -0
- package/dist/pages/prenatal-visit/pregnancy/nurse-end/further-visit/config/table.d.ts +86 -0
- package/dist/pages/prenatal-visit/pregnancy/nurse-end/further-visit/index1.d.ts +115 -0
- package/dist/pages/prenatal-visit/pregnancy/nurse-end/index.d.ts +4 -0
- package/dist/pages/prenatal-visit/pregnancy/nurse-end/outercourt-report/components/Table.d.ts +7 -0
- package/dist/pages/prenatal-visit/pregnancy/nurse-end/outercourt-report/config/table.d.ts +16 -0
- package/dist/pages/prenatal-visit/pregnancy/nurse-end/outercourt-report/index1.d.ts +43 -0
- package/dist/pages/prenatal-visit/pregnancy/nurse-end/postpartum-visit/components/Table.d.ts +3 -0
- package/dist/pages/prenatal-visit/pregnancy/nurse-end/postpartum-visit/config/table.d.ts +69 -0
- package/dist/pages/prenatal-visit/pregnancy/nurse-end/postpartum-visit/index1.d.ts +98 -0
- package/dist/pages/prenatal-visit/pregnancy/utils.d.ts +2 -0
- package/dist/pages/prenatal-visit/report/list/components/Query.d.ts +38 -0
- package/dist/pages/prenatal-visit/report/list/components/Table.d.ts +7 -0
- package/dist/pages/prenatal-visit/report/list/config/form.d.ts +63 -0
- package/dist/pages/prenatal-visit/report/list/config/table.d.ts +11 -0
- package/dist/pages/prenatal-visit/report/list/index copy.d.ts +46 -0
- package/dist/pages/prenatal-visit/report/list/index.d.ts +10 -0
- package/dist/pages/prenatal-visit/report/list/schema.d.ts +58 -0
- package/dist/pages/referral-management/referral-in/add/components/Form.d.ts +6 -0
- package/dist/pages/referral-management/referral-in/add/index.d.ts +11 -0
- package/dist/pages/referral-management/referral-in/add/methods/index.d.ts +1 -0
- package/dist/pages/referral-management/referral-in/list/components/Query.d.ts +26 -0
- package/dist/pages/referral-management/referral-in/list/components/Table.d.ts +3 -0
- package/dist/pages/referral-management/referral-in/list/config/form.d.ts +45 -0
- package/dist/pages/referral-management/referral-in/list/config/table.d.ts +37 -0
- package/dist/pages/referral-management/referral-in/list/index.d.ts +2 -0
- package/dist/pages/referral-management/referral-out/add/components/Form.d.ts +8 -0
- package/dist/pages/referral-management/referral-out/add/index.d.ts +11 -0
- package/dist/pages/referral-management/referral-out/add/methods/index.d.ts +1 -0
- package/dist/pages/referral-management/referral-out/list/components/Query.d.ts +26 -0
- package/dist/pages/referral-management/referral-out/list/components/Table.d.ts +3 -0
- package/dist/pages/referral-management/referral-out/list/config/form.d.ts +45 -0
- package/dist/pages/referral-management/referral-out/list/config/table.d.ts +36 -0
- package/dist/pages/referral-management/referral-out/list/index.d.ts +2 -0
- package/dist/pages/statistics/archives/list/index.d.ts +2 -0
- package/dist/pages/statistics/archives/list/serch_config.d.ts +4 -0
- package/dist/pages/statistics/archives/list/table_config.d.ts +4 -0
- package/dist/pages/system/configuration/config/table.d.ts +82 -0
- package/dist/pages/system/configuration/index.d.ts +3 -0
- package/dist/pages/system/request-log/index.d.ts +2 -0
- package/dist/pages/system/role/components/ApiPermissionCard.d.ts +15 -0
- package/dist/pages/system/role/components/MenuPermissionCard.d.ts +15 -0
- package/dist/pages/system/role/components/RoleTable.d.ts +4 -0
- package/dist/pages/system/role/components/RolesModal.d.ts +37 -0
- package/dist/pages/system/role/config/adapter.d.ts +3 -0
- package/dist/pages/system/role/config/form.d.ts +117 -0
- package/dist/pages/system/role/config/table.d.ts +20 -0
- package/dist/pages/system/role/index.d.ts +42 -0
- package/dist/pages/system/user/components/Query.d.ts +27 -0
- package/dist/pages/system/user/components/ResetPasswordModal.d.ts +11 -0
- package/dist/pages/system/user/components/Table.d.ts +3 -0
- package/dist/pages/system/user/components/UsersModal.d.ts +37 -0
- package/dist/pages/system/user/config/adapter.d.ts +5 -0
- package/dist/pages/system/user/config/form.d.ts +117 -0
- package/dist/pages/system/user/config/table.d.ts +30 -0
- package/dist/pages/system/user/index.d.ts +56 -0
- package/dist/pages/system-config/VersionModal.d.ts +8 -0
- package/dist/pages/system-config/config.d.ts +12 -0
- package/dist/pages/system-config/form_config.d.ts +4 -0
- package/dist/pages/system-config/index.d.ts +4 -0
- package/dist/pages/task-logs/components/Query.d.ts +18 -0
- package/dist/pages/task-logs/components/Table.d.ts +3 -0
- package/dist/pages/task-logs/config/form.d.ts +29 -0
- package/dist/pages/task-logs/config/table.d.ts +52 -0
- package/dist/pages/task-logs/index.d.ts +72 -0
- package/dist/pages/tasks/list/components/ModalForm.d.ts +16 -0
- package/dist/pages/tasks/list/components/PushDate.d.ts +20 -0
- package/dist/pages/tasks/list/components/Query.d.ts +28 -0
- package/dist/pages/tasks/list/components/RangeInput.d.ts +10 -0
- package/dist/pages/tasks/list/components/Table.d.ts +3 -0
- package/dist/pages/tasks/list/components/UserSelect.d.ts +13 -0
- package/dist/pages/tasks/list/config/adapter.d.ts +75 -0
- package/dist/pages/tasks/list/config/form.d.ts +111 -0
- package/dist/pages/tasks/list/config/table.d.ts +32 -0
- package/dist/pages/tasks/list/index.d.ts +57 -0
- package/dist/pages/tasks/list/methods/index.d.ts +2 -0
- package/dist/pages/tasks/test/index.d.ts +2 -0
- package/dist/pages/test/index.d.ts +2 -0
- package/dist/pages/visit-management/remind-record/Inner.d.ts +5 -0
- package/dist/pages/visit-management/remind-record/index.d.ts +3 -0
- package/dist/pages/visit-management/remind-record/types.d.ts +1 -0
- package/dist/pages/visit-management/telephone-followup-record/Inner.d.ts +2 -0
- package/dist/pages/visit-management/telephone-followup-record/index.d.ts +2 -0
- package/dist/pages/visit-management/timeout-remind-record/index.d.ts +2 -0
- package/dist/routes/index.d.ts +69 -0
- package/dist/routes/meta.d.ts +71 -0
- package/dist/utils/index.d.ts +1 -0
- package/package.json +45 -0
|
@@ -0,0 +1,1661 @@
|
|
|
1
|
+
import _typeof from "@babel/runtime/helpers/typeof";
|
|
2
|
+
import 'antd/es/steps/style';
|
|
3
|
+
import _Steps from 'antd/es/steps';
|
|
4
|
+
import 'antd/es/message/style';
|
|
5
|
+
import _message from 'antd/es/message';
|
|
6
|
+
import { s as styleInject, a as __spreadArray, d as __assign, b as __awaiter, c as __generator } from './index.js';
|
|
7
|
+
import React__default, { useRef, useState, Fragment, useEffect } from 'react';
|
|
8
|
+
import 'antd/es/list/style';
|
|
9
|
+
import _List from 'antd/es/list';
|
|
10
|
+
import 'antd/es/card/style';
|
|
11
|
+
import _Card from 'antd/es/card';
|
|
12
|
+
import { EditOutlined, CopyOutlined, DeleteOutlined, PieChartOutlined, CloseCircleOutlined, StarOutlined, CheckCircleOutlined, BorderOutlined, CaretDownOutlined, MobileOutlined, DesktopOutlined, TabletOutlined } from '@ant-design/icons';
|
|
13
|
+
import { mchcEnv } from '@lm_fe/env';
|
|
14
|
+
import 'antd/es/row/style';
|
|
15
|
+
import _Row from 'antd/es/row';
|
|
16
|
+
import 'antd/es/button/style';
|
|
17
|
+
import _Button from 'antd/es/button';
|
|
18
|
+
import 'antd/es/tabs/style';
|
|
19
|
+
import _Tabs from 'antd/es/tabs';
|
|
20
|
+
import 'antd/es/form/style';
|
|
21
|
+
import _Form from 'antd/es/form';
|
|
22
|
+
import 'antd/es/input/style';
|
|
23
|
+
import _Input from 'antd/es/input';
|
|
24
|
+
import 'antd/es/col/style';
|
|
25
|
+
import _Col from 'antd/es/col';
|
|
26
|
+
import { mchcEnums, SMchc_Questionnaire } from '@lm_fe/service';
|
|
27
|
+
import 'antd/es/input-number/style';
|
|
28
|
+
import _InputNumber from 'antd/es/input-number';
|
|
29
|
+
import { LazyAntd, SimpleForm } from '@lm_fe/components';
|
|
30
|
+
import 'antd/es/checkbox/style';
|
|
31
|
+
import _Checkbox from 'antd/es/checkbox';
|
|
32
|
+
import 'antd/es/rate/style';
|
|
33
|
+
import _Rate from 'antd/es/rate';
|
|
34
|
+
import 'antd/es/radio/style';
|
|
35
|
+
import _Radio from 'antd/es/radio';
|
|
36
|
+
import 'antd/es/space/style';
|
|
37
|
+
import _Space from 'antd/es/space';
|
|
38
|
+
import 'lodash/size';
|
|
39
|
+
import 'lodash/get';
|
|
40
|
+
import '@lm_fe/utils';
|
|
41
|
+
import 'lodash/orderBy';
|
|
42
|
+
import 'lodash/map';
|
|
43
|
+
import 'antd/es/collapse/style';
|
|
44
|
+
import 'antd/es/collapse';
|
|
45
|
+
import 'antd/es/badge/style';
|
|
46
|
+
import 'antd/es/badge';
|
|
47
|
+
import 'lodash/assign';
|
|
48
|
+
import '@lm_fe/components_m';
|
|
49
|
+
import '@lm_fe/pages';
|
|
50
|
+
var css_248z$3 = ".step1-module_questionnaire-steps__tVCBT {\n background-color: white;\n height: 70px;\n display: flex;\n align-items: center;\n padding: 0 15% !important;\n margin-bottom: 8px;\n}\n.step1-module_questionnaire-steps-content__eFPGF {\n padding: 16px;\n background-color: white;\n}\n.step1-module_follow-up-step1__xlcv7 .ant-col {\n height: 100% !important;\n}\n.step1-module_follow-up-step1__xlcv7 .ant-list-item {\n height: 100%;\n border-radius: 4px;\n}\n.step1-module_follow-up-step1__xlcv7 .ant-list-item .step1-module_ant-card-meta-detail__ZT-VV .step1-module_ant-card-meta-description__cX5KE,\n.step1-module_follow-up-step1__xlcv7 .ant-list-item .step1-module_ant-card-meta-detail__ZT-VV .step1-module_ant-card-actions__-RQUA,\n.step1-module_follow-up-step1__xlcv7 .ant-list-item .step1-module_ant-card-meta-detail__ZT-VV .step1-module_ant-card-meta-title__K1g1r {\n color: #333;\n}\n.step1-module_follow-up-step1__xlcv7 .ant-list-item .step1-module_ant-card-actions__-RQUA > li {\n color: #333;\n}\n.step1-module_follow-up-step1__xlcv7 .step1-module_item-top__ai1OV {\n text-align: center;\n}\n.step1-module_follow-up-step1__xlcv7 .step1-module_item-top-img__t15PZ {\n height: 100px;\n width: auto;\n margin: 10px 0;\n}\n.step1-module_follow-up-new-item__69jcy {\n width: 100%;\n height: 94%;\n padding-top: 20px;\n color: #5050e8;\n background-color: #fff;\n border-color: red;\n border-radius: 2px;\n display: flex;\n align-items: center;\n flex-direction: column;\n background-image: url('/lm_imgs/qn/questionnaire-item-bg.png');\n background-repeat: no-repeat;\n background-size: cover;\n background-position: center;\n cursor: pointer;\n}\n.step1-module_follow-up-new-item__69jcy:hover {\n border-color: transparent;\n box-shadow: 0 1px 2px -2px rgba(0, 0, 0, 0.16), 0 3px 6px 0 rgba(0, 0, 0, 0.12), 0 5px 12px 4px rgba(0, 0, 0, 0.09);\n}\n.step1-module_follow-up-new-item__69jcy span {\n display: block;\n font-weight: bold;\n font-size: 18px;\n}\n.step1-module_follow-up-new-item__69jcy .step1-module_anticon__sOqE7 {\n font-size: 56px;\n}\n";
|
|
51
|
+
var styles$3 = {
|
|
52
|
+
"questionnaire-steps": "step1-module_questionnaire-steps__tVCBT",
|
|
53
|
+
"questionnaire-steps-content": "step1-module_questionnaire-steps-content__eFPGF",
|
|
54
|
+
"follow-up-step1": "step1-module_follow-up-step1__xlcv7",
|
|
55
|
+
"ant-card-meta-detail": "step1-module_ant-card-meta-detail__ZT-VV",
|
|
56
|
+
"ant-card-meta-description": "step1-module_ant-card-meta-description__cX5KE",
|
|
57
|
+
"ant-card-actions": "step1-module_ant-card-actions__-RQUA",
|
|
58
|
+
"ant-card-meta-title": "step1-module_ant-card-meta-title__K1g1r",
|
|
59
|
+
"item-top": "step1-module_item-top__ai1OV",
|
|
60
|
+
"item-top-img": "step1-module_item-top-img__t15PZ",
|
|
61
|
+
"follow-up-new-item": "step1-module_follow-up-new-item__69jcy",
|
|
62
|
+
"anticon": "step1-module_anticon__sOqE7"
|
|
63
|
+
};
|
|
64
|
+
styleInject(css_248z$3);
|
|
65
|
+
var itemBgColors = ['#FFEFDD', '#FBDDDD', '#DDF3FB', '#DDFBE4', '#E8DDFB'];
|
|
66
|
+
function Step1(props) {
|
|
67
|
+
var handleInitQuestions = props.handleInitQuestions,
|
|
68
|
+
templateList = props.templateList,
|
|
69
|
+
onDeleteTemplate = props.onDeleteTemplate;
|
|
70
|
+
function handleNewTemplate() {
|
|
71
|
+
handleInitQuestions({});
|
|
72
|
+
}
|
|
73
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
74
|
+
className: styles$3["follow-up-step1"]
|
|
75
|
+
}, /*#__PURE__*/React__default.createElement(_List, {
|
|
76
|
+
rowKey: function rowKey(item) {
|
|
77
|
+
return (item === null || item === void 0 ? void 0 : item.id) || -1;
|
|
78
|
+
},
|
|
79
|
+
grid: {
|
|
80
|
+
gutter: 24,
|
|
81
|
+
column: 4
|
|
82
|
+
},
|
|
83
|
+
dataSource: __spreadArray([null], templateList, true),
|
|
84
|
+
renderItem: function renderItem(item) {
|
|
85
|
+
return item ? /*#__PURE__*/React__default.createElement(_List.Item, {
|
|
86
|
+
key: item.id
|
|
87
|
+
}, /*#__PURE__*/React__default.createElement(_Card, {
|
|
88
|
+
hoverable: true,
|
|
89
|
+
bodyStyle: {
|
|
90
|
+
paddingBottom: 20
|
|
91
|
+
},
|
|
92
|
+
onClick: function onClick() {
|
|
93
|
+
handleInitQuestions(item);
|
|
94
|
+
},
|
|
95
|
+
cover: /*#__PURE__*/React__default.createElement("div", {
|
|
96
|
+
className: styles$3["item-top"],
|
|
97
|
+
style: {
|
|
98
|
+
backgroundColor: itemBgColors[Math.round(Math.random() * 5)] || '#FFEFDD'
|
|
99
|
+
}
|
|
100
|
+
}, /*#__PURE__*/React__default.createElement("img", {
|
|
101
|
+
className: styles$3["item-top-img"],
|
|
102
|
+
src: mchcEnv.gs(function (_) {
|
|
103
|
+
return _.lm_imgs.qn['questionnaire-item-top.png'];
|
|
104
|
+
}),
|
|
105
|
+
alt: ""
|
|
106
|
+
})),
|
|
107
|
+
actions: [/*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(EditOutlined, {
|
|
108
|
+
key: "edit"
|
|
109
|
+
}), "\u7F16\u8F91"), /*#__PURE__*/React__default.createElement("div", {
|
|
110
|
+
onClick: function onClick(e) {
|
|
111
|
+
e.stopPropagation();
|
|
112
|
+
handleInitQuestions(item, true);
|
|
113
|
+
}
|
|
114
|
+
}, /*#__PURE__*/React__default.createElement(CopyOutlined, {
|
|
115
|
+
key: "copy"
|
|
116
|
+
}), "\u590D\u5236"), /*#__PURE__*/React__default.createElement("div", {
|
|
117
|
+
onClick: function onClick(e) {
|
|
118
|
+
e.stopPropagation();
|
|
119
|
+
onDeleteTemplate(item);
|
|
120
|
+
}
|
|
121
|
+
}, /*#__PURE__*/React__default.createElement(DeleteOutlined, {
|
|
122
|
+
key: "delete"
|
|
123
|
+
}), "\u5220\u9664"), /*#__PURE__*/React__default.createElement("div", {
|
|
124
|
+
onClick: function onClick(e) {
|
|
125
|
+
e.stopPropagation();
|
|
126
|
+
handleInitQuestions(item, false, 3);
|
|
127
|
+
}
|
|
128
|
+
}, /*#__PURE__*/React__default.createElement(PieChartOutlined, {
|
|
129
|
+
key: "delete"
|
|
130
|
+
}), "\u7EDF\u8BA1")]
|
|
131
|
+
}, /*#__PURE__*/React__default.createElement(_Card.Meta, {
|
|
132
|
+
style: {
|
|
133
|
+
cursor: 'pointer'
|
|
134
|
+
},
|
|
135
|
+
title: item.questionnaireTitle,
|
|
136
|
+
description: /*#__PURE__*/React__default.createElement("div", {
|
|
137
|
+
title: item.description,
|
|
138
|
+
style: {
|
|
139
|
+
overflow: 'hidden',
|
|
140
|
+
textOverflow: 'ellipsis',
|
|
141
|
+
whiteSpace: 'nowrap'
|
|
142
|
+
}
|
|
143
|
+
}, item.description)
|
|
144
|
+
}))) : /*#__PURE__*/React__default.createElement(_List.Item, null, /*#__PURE__*/React__default.createElement("div", {
|
|
145
|
+
className: styles$3["follow-up-new-item"],
|
|
146
|
+
onClick: handleNewTemplate
|
|
147
|
+
}, /*#__PURE__*/React__default.createElement("span", null, "\u65B0\u5EFA\u8C03\u67E5\u95EE\u5377")));
|
|
148
|
+
}
|
|
149
|
+
}));
|
|
150
|
+
}
|
|
151
|
+
var QuestionTypeEnums = mchcEnums.Questionnaire.type;
|
|
152
|
+
var chooseArray = [{
|
|
153
|
+
title: '单选题',
|
|
154
|
+
iconImg: mchcEnv.gs(function (_) {
|
|
155
|
+
return _.lm_imgs.qn['radio.png'];
|
|
156
|
+
})
|
|
157
|
+
}, {
|
|
158
|
+
title: '多选题',
|
|
159
|
+
iconImg: mchcEnv.gs(function (_) {
|
|
160
|
+
return _.lm_imgs.qn['checkbox.png'];
|
|
161
|
+
})
|
|
162
|
+
}, {
|
|
163
|
+
title: '下拉题',
|
|
164
|
+
iconImg: mchcEnv.gs(function (_) {
|
|
165
|
+
return _.lm_imgs.qn['select.png'];
|
|
166
|
+
})
|
|
167
|
+
}, {
|
|
168
|
+
title: '填空题',
|
|
169
|
+
iconImg: mchcEnv.gs(function (_) {
|
|
170
|
+
return _.lm_imgs.qn['vacancy.png'];
|
|
171
|
+
})
|
|
172
|
+
}];
|
|
173
|
+
var starArray = [{
|
|
174
|
+
title: '打分题',
|
|
175
|
+
iconImg: mchcEnv.gs(function (_) {
|
|
176
|
+
return _.lm_imgs.qn['stars.png'];
|
|
177
|
+
})
|
|
178
|
+
}];
|
|
179
|
+
var descArray = [{
|
|
180
|
+
title: '段落说明',
|
|
181
|
+
iconImg: mchcEnv.gs(function (_) {
|
|
182
|
+
return _.lm_imgs.qn['description.png'];
|
|
183
|
+
})
|
|
184
|
+
}];
|
|
185
|
+
var labelsArray = __spreadArray(__spreadArray(__spreadArray([], chooseArray, true), starArray, true), descArray, true);
|
|
186
|
+
var labelsArrayMapping = labelsArray.reduce(function (a, b) {
|
|
187
|
+
var _a;
|
|
188
|
+
return Object.assign(a, (_a = {}, _a[b.title] = b, _a));
|
|
189
|
+
}, {});
|
|
190
|
+
var defaultSelectOptions = [{
|
|
191
|
+
optionIndex: 1000,
|
|
192
|
+
optionScore: 0,
|
|
193
|
+
optionTitle: '选项1'
|
|
194
|
+
}, {
|
|
195
|
+
optionIndex: 1001,
|
|
196
|
+
optionScore: 0,
|
|
197
|
+
optionTitle: '选项2'
|
|
198
|
+
}];
|
|
199
|
+
var defaultOtherOptions = [{
|
|
200
|
+
optionIndex: 1000,
|
|
201
|
+
optionScore: 0,
|
|
202
|
+
optionTitle: 'contain'
|
|
203
|
+
}];
|
|
204
|
+
var initQuestionMap = {
|
|
205
|
+
'单选题': {
|
|
206
|
+
questionOptionList: defaultSelectOptions,
|
|
207
|
+
questionTitle: '',
|
|
208
|
+
questionType: QuestionTypeEnums.getValue('单选题')
|
|
209
|
+
},
|
|
210
|
+
'多选题': {
|
|
211
|
+
questionOptionList: defaultSelectOptions,
|
|
212
|
+
questionTitle: '',
|
|
213
|
+
questionType: QuestionTypeEnums.getValue('多选题')
|
|
214
|
+
},
|
|
215
|
+
'下拉题': {
|
|
216
|
+
questionOptionList: defaultSelectOptions,
|
|
217
|
+
questionTitle: '',
|
|
218
|
+
questionType: QuestionTypeEnums.getValue('下拉题')
|
|
219
|
+
},
|
|
220
|
+
'填空题': {
|
|
221
|
+
questionOptionList: defaultOtherOptions,
|
|
222
|
+
questionTitle: '',
|
|
223
|
+
questionType: QuestionTypeEnums.getValue('填空题')
|
|
224
|
+
},
|
|
225
|
+
'打分题': {
|
|
226
|
+
questionOptionList: defaultOtherOptions,
|
|
227
|
+
questionTitle: '',
|
|
228
|
+
questionType: QuestionTypeEnums.getValue('打分题')
|
|
229
|
+
},
|
|
230
|
+
'段落说明': {
|
|
231
|
+
questionOptionList: defaultOtherOptions,
|
|
232
|
+
questionTitle: '',
|
|
233
|
+
questionType: QuestionTypeEnums.getValue('段落说明')
|
|
234
|
+
}
|
|
235
|
+
};
|
|
236
|
+
function getTargetQuestionInGroup(allQuestions, groupIndex, group) {
|
|
237
|
+
if (typeof groupIndex !== 'number' || !group) return undefined;
|
|
238
|
+
var allIdx = allQuestions.map(function (_) {
|
|
239
|
+
return _.questionIndex;
|
|
240
|
+
});
|
|
241
|
+
var list = group.questionIndexList.filter(function (_) {
|
|
242
|
+
return allIdx.includes(_);
|
|
243
|
+
});
|
|
244
|
+
var realQuestionIndex = list[groupIndex];
|
|
245
|
+
var activeQuestion = typeof realQuestionIndex === 'number' ? allQuestions.find(function (_) {
|
|
246
|
+
return _.questionIndex === realQuestionIndex;
|
|
247
|
+
}) : undefined;
|
|
248
|
+
return activeQuestion;
|
|
249
|
+
}
|
|
250
|
+
function getQuestionsInGroup(allQuestions, groups) {
|
|
251
|
+
var _a;
|
|
252
|
+
var data = ((_a = groups === null || groups === void 0 ? void 0 : groups.questionIndexList) === null || _a === void 0 ? void 0 : _a.map(function (_) {
|
|
253
|
+
return allQuestions.find(function (q) {
|
|
254
|
+
return q.questionIndex === _;
|
|
255
|
+
});
|
|
256
|
+
}).filter(function (_) {
|
|
257
|
+
return !!_;
|
|
258
|
+
})) || [];
|
|
259
|
+
return data;
|
|
260
|
+
}
|
|
261
|
+
var css_248z$2 = ".step2-module_questionnaire-steps__2fRCr {\n background-color: white;\n height: 70px;\n display: flex;\n align-items: center;\n padding: 0 15% !important;\n margin-bottom: 8px;\n}\n.step2-module_questionnaire-steps-content__uzsSb {\n padding: 16px;\n background-color: white;\n}\n.step2-module_question-step-two__panel-question__Oydc6 {\n height: auto;\n position: fixed;\n width: 15%;\n}\n.step2-module_question-step-two__panel-question-card__KXAYi {\n font-size: 16px;\n}\n.step2-module_question-step-two__panel-question-card-item__ZHOVW {\n display: flex;\n border-bottom: 1px solid #edeef5;\n margin: 16px 0;\n}\n.step2-module_question-step-two__panel-question-card-item__title__lBYEW {\n display: block;\n font-weight: 400;\n flex: 1;\n}\n.step2-module_question-step-two__panel-question-card-item__btns__HSN3o {\n display: flex;\n flex: 2;\n flex-flow: column wrap;\n justify-content: space-between;\n margin-left: 8px;\n}\n.step2-module_question-step-two__panel-question-card-item__btns-btn__Mg2vz {\n margin: 8px 0;\n display: flex;\n cursor: pointer;\n}\n.step2-module_question-step-two__panel-question-card-item__btns-btn__Mg2vz img {\n width: 24px;\n height: 24px;\n margin-right: 8px;\n}\n.step2-module_question-step-two__panel-question-card-item__btns-btn__Mg2vz:first-child {\n margin-top: 0;\n}\n.step2-module_question-step-two__panel-preview__Cm3Hv {\n border: 1px solid #d9d9d9;\n}\n.step2-module_question-step-two__panel-preview-top__nd9Qh {\n background-color: white;\n padding: 24px 8px;\n margin-bottom: 12px;\n}\n.step2-module_question-step-two__panel-preview-top__desc__X8iJG {\n margin-top: 8px;\n}\n.step2-module_question-step-two__panel-preview-middle__start__TUt0d {\n height: 250px;\n line-height: 250px;\n border: 1px dotted skyblue;\n text-align: center;\n}\n.step2-module_question-step-two__panel-preview-middle__question__ELZqX {\n background-color: white;\n padding: 16px 8px;\n margin-bottom: 8px;\n border-top: 4px solid transparent;\n border-bottom: 4px solid transparent;\n border-bottom: 1px solid #d9d9d9;\n}\n.step2-module_question-step-two__panel-preview-middle__question__ELZqX:hover {\n background-color: #eee;\n}\n.step2-module_question-step-two__panel-preview-middle__question-tip__6jWsd {\n font-size: 12px;\n color: #5050e8;\n}\n.step2-module_question-step-two__panel-preview-middle__question-title__l1gIU {\n margin-bottom: 4px;\n display: flex;\n flex-flow: row wrap;\n justify-content: space-between;\n}\n.step2-module_question-step-two__panel-preview-middle__question-title-icon-delete__YHSIy {\n display: none;\n cursor: pointer;\n}\n.step2-module_question-step-two__panel-preview-middle__question-title-icon-delete__YHSIy:hover {\n color: red;\n}\n.step2-module_question-step-two__panel-preview-middle__question-options__MIHIk {\n margin: 4px 0;\n display: flex;\n flex-flow: row nowrap;\n align-items: center;\n}\n.step2-module_question-step-two__panel-preview-middle__question-options-input__LLOjS {\n width: 100% !important;\n}\n.step2-module_question-step-two__panel-preview-middle__question-options-delete__4SiWC {\n display: none;\n width: 10%;\n cursor: pointer;\n}\n.step2-module_question-step-two__panel-preview-middle__question-options-delete__4SiWC:hover {\n color: red;\n}\n.step2-module_question-step-two__panel-preview-middle__question-options__MIHIk:hover .step2-module_question-step-two__panel-preview-middle__question-options-delete__4SiWC {\n display: block;\n}\n.step2-module_question-step-two__panel-preview-middle__question__ELZqX:hover .step2-module_question-step-two__panel-preview-middle__question-title-icon-delete__YHSIy {\n display: block;\n}\n.step2-module_question-step-two__panel-preview-middle__question-border-top__hrodO {\n border-top: 2px solid red;\n}\n.step2-module_question-step-two__panel-preview-middle__question-border-bottom__YEiln {\n border-bottom: 2px solid red;\n}\n.step2-module_question-step-two__panel-preview-bottom__GKkv2 {\n background-color: white;\n padding: 16px 8px;\n margin-top: 8px;\n}\n.step2-module_question-step-two__panel-preview-bottom__title__KiD9q {\n text-align: center;\n padding-bottom: 8px;\n}\n.step2-module_question-step-two__panel-preview-bottom__btns__VzVPE {\n display: flex;\n justify-content: center;\n flex-flow: row nowrap;\n margin-top: 16px;\n}\n.step2-module_question-step-two__panel-preview-bottom__btns-btn__f8m28 {\n margin: 0 8px;\n}\n.step2-module_question-step-two__panel-func__oTmv1 {\n background-color: white;\n padding: 24px 14px;\n height: auto;\n width: 20%;\n position: fixed;\n}\n.step2-module_question-step-two__panel-func__title__Qlx59 {\n padding: 2px 4px;\n background-color: black;\n color: white;\n border-radius: 2px;\n display: inline-block;\n}\n.step2-module_question-step-two__panel-func__item__lcayS {\n display: flex;\n flex-flow: row nowrap;\n justify-content: space-between;\n margin: 16px 0;\n}\n.step2-module_question-step-two__panel-func__item__lcayS span,\n.step2-module_question-step-two__panel-func__item__lcayS a {\n display: block;\n}\n.step2-module_question-step-two__panel-func__item-btn__YOh8s {\n width: 40% !important;\n}\n";
|
|
262
|
+
var styles$2 = {
|
|
263
|
+
"questionnaire-steps": "step2-module_questionnaire-steps__2fRCr",
|
|
264
|
+
"questionnaire-steps-content": "step2-module_questionnaire-steps-content__uzsSb",
|
|
265
|
+
"question-step-two__panel-question": "step2-module_question-step-two__panel-question__Oydc6",
|
|
266
|
+
"question-step-two__panel-question-card": "step2-module_question-step-two__panel-question-card__KXAYi",
|
|
267
|
+
"question-step-two__panel-question-card-item": "step2-module_question-step-two__panel-question-card-item__ZHOVW",
|
|
268
|
+
"question-step-two__panel-question-card-item__title": "step2-module_question-step-two__panel-question-card-item__title__lBYEW",
|
|
269
|
+
"question-step-two__panel-question-card-item__btns": "step2-module_question-step-two__panel-question-card-item__btns__HSN3o",
|
|
270
|
+
"question-step-two__panel-question-card-item__btns-btn": "step2-module_question-step-two__panel-question-card-item__btns-btn__Mg2vz",
|
|
271
|
+
"question-step-two__panel-preview": "step2-module_question-step-two__panel-preview__Cm3Hv",
|
|
272
|
+
"question-step-two__panel-preview-top": "step2-module_question-step-two__panel-preview-top__nd9Qh",
|
|
273
|
+
"question-step-two__panel-preview-top__desc": "step2-module_question-step-two__panel-preview-top__desc__X8iJG",
|
|
274
|
+
"question-step-two__panel-preview-middle__start": "step2-module_question-step-two__panel-preview-middle__start__TUt0d",
|
|
275
|
+
"question-step-two__panel-preview-middle__question": "step2-module_question-step-two__panel-preview-middle__question__ELZqX",
|
|
276
|
+
"question-step-two__panel-preview-middle__question-tip": "step2-module_question-step-two__panel-preview-middle__question-tip__6jWsd",
|
|
277
|
+
"question-step-two__panel-preview-middle__question-title": "step2-module_question-step-two__panel-preview-middle__question-title__l1gIU",
|
|
278
|
+
"question-step-two__panel-preview-middle__question-title-icon-delete": "step2-module_question-step-two__panel-preview-middle__question-title-icon-delete__YHSIy",
|
|
279
|
+
"question-step-two__panel-preview-middle__question-options": "step2-module_question-step-two__panel-preview-middle__question-options__MIHIk",
|
|
280
|
+
"question-step-two__panel-preview-middle__question-options-input": "step2-module_question-step-two__panel-preview-middle__question-options-input__LLOjS",
|
|
281
|
+
"question-step-two__panel-preview-middle__question-options-delete": "step2-module_question-step-two__panel-preview-middle__question-options-delete__4SiWC",
|
|
282
|
+
"question-step-two__panel-preview-middle__question-border-top": "step2-module_question-step-two__panel-preview-middle__question-border-top__hrodO",
|
|
283
|
+
"question-step-two__panel-preview-middle__question-border-bottom": "step2-module_question-step-two__panel-preview-middle__question-border-bottom__YEiln",
|
|
284
|
+
"question-step-two__panel-preview-bottom": "step2-module_question-step-two__panel-preview-bottom__GKkv2",
|
|
285
|
+
"question-step-two__panel-preview-bottom__title": "step2-module_question-step-two__panel-preview-bottom__title__KiD9q",
|
|
286
|
+
"question-step-two__panel-preview-bottom__btns": "step2-module_question-step-two__panel-preview-bottom__btns__VzVPE",
|
|
287
|
+
"question-step-two__panel-preview-bottom__btns-btn": "step2-module_question-step-two__panel-preview-bottom__btns-btn__f8m28",
|
|
288
|
+
"question-step-two__panel-func": "step2-module_question-step-two__panel-func__oTmv1",
|
|
289
|
+
"question-step-two__panel-func__title": "step2-module_question-step-two__panel-func__title__Qlx59",
|
|
290
|
+
"question-step-two__panel-func__item": "step2-module_question-step-two__panel-func__item__lcayS",
|
|
291
|
+
"question-step-two__panel-func__item-btn": "step2-module_question-step-two__panel-func__item-btn__YOh8s"
|
|
292
|
+
};
|
|
293
|
+
styleInject(css_248z$2);
|
|
294
|
+
LazyAntd.Tree;
|
|
295
|
+
LazyAntd.TreeSelect;
|
|
296
|
+
var Select$3 = LazyAntd.Select;
|
|
297
|
+
LazyAntd.Table;
|
|
298
|
+
LazyAntd.Dropdown;
|
|
299
|
+
LazyAntd.Pagination;
|
|
300
|
+
function QuestionItem(props) {
|
|
301
|
+
var _a;
|
|
302
|
+
var _b, _c;
|
|
303
|
+
var index = props.index,
|
|
304
|
+
question = props.question,
|
|
305
|
+
onChangeIndex = props.onChangeIndex,
|
|
306
|
+
onQuestionClick = props.onQuestionClick,
|
|
307
|
+
onQuestionItemDelete = props.onQuestionItemDelete,
|
|
308
|
+
onQuesionChange = props.onQuesionChange,
|
|
309
|
+
groupQuestions = props.groupQuestions;
|
|
310
|
+
var questionType = question.questionType,
|
|
311
|
+
_d = question.questionOptionList,
|
|
312
|
+
questionOptionList = _d === void 0 ? [] : _d;
|
|
313
|
+
var ref = useRef(null);
|
|
314
|
+
var _e = useState(''),
|
|
315
|
+
hoverTargetQuestionPlace = _e[0],
|
|
316
|
+
setHoverTargetQuestionPlace = _e[1];
|
|
317
|
+
var bind = (_b = question.logic) === null || _b === void 0 ? void 0 : _b.bind;
|
|
318
|
+
var handleQuestionDragOver = function handleQuestionDragOver(e) {
|
|
319
|
+
var _a = ref.current.getBoundingClientRect(),
|
|
320
|
+
y = _a.y,
|
|
321
|
+
height = _a.height;
|
|
322
|
+
var normalClientY = y + height / 2;
|
|
323
|
+
var clientY = e.clientY;
|
|
324
|
+
if (clientY) {
|
|
325
|
+
var hoverTargetQuestionPlace_1 = 'Bottom';
|
|
326
|
+
var newQuestionIndex = index + 1;
|
|
327
|
+
if (clientY < normalClientY) {
|
|
328
|
+
hoverTargetQuestionPlace_1 = 'Top';
|
|
329
|
+
newQuestionIndex = index;
|
|
330
|
+
}
|
|
331
|
+
setHoverTargetQuestionPlace(hoverTargetQuestionPlace_1);
|
|
332
|
+
onChangeIndex(newQuestionIndex);
|
|
333
|
+
}
|
|
334
|
+
};
|
|
335
|
+
var handleQuestionDragLeave = function handleQuestionDragLeave() {
|
|
336
|
+
setHoverTargetQuestionPlace('');
|
|
337
|
+
};
|
|
338
|
+
var renderQuestionInput = function renderQuestionInput() {
|
|
339
|
+
var typeLabel = QuestionTypeEnums.getLabel(questionType);
|
|
340
|
+
if (typeLabel === '单选题' || typeLabel === '多选题' || typeLabel === '下拉题') {
|
|
341
|
+
var icons_1 = {
|
|
342
|
+
'单选题': /*#__PURE__*/React__default.createElement(CheckCircleOutlined, null),
|
|
343
|
+
'多选题': /*#__PURE__*/React__default.createElement(BorderOutlined, null),
|
|
344
|
+
'下拉题': /*#__PURE__*/React__default.createElement(CaretDownOutlined, null)
|
|
345
|
+
};
|
|
346
|
+
return questionOptionList.map(function (option, optionIndex) {
|
|
347
|
+
return /*#__PURE__*/React__default.createElement(_Row, {
|
|
348
|
+
key: optionIndex,
|
|
349
|
+
className: styles$2["question-step-two__panel-preview-middle__question-options"]
|
|
350
|
+
}, /*#__PURE__*/React__default.createElement(_Col, {
|
|
351
|
+
span: 14
|
|
352
|
+
}, /*#__PURE__*/React__default.createElement(_Input, {
|
|
353
|
+
className: styles$2["question-step-two__panel-preview-middle__question-options-input"],
|
|
354
|
+
addonBefore: icons_1[typeLabel],
|
|
355
|
+
value: option.optionTitle,
|
|
356
|
+
onChange: function onChange(e) {
|
|
357
|
+
questionOptionList.splice(optionIndex, 1, __assign(__assign({}, option), {
|
|
358
|
+
optionTitle: e.target.value
|
|
359
|
+
}));
|
|
360
|
+
onQuesionChange(__assign(__assign({}, question), {
|
|
361
|
+
questionOptionList: __spreadArray([], questionOptionList, true)
|
|
362
|
+
}));
|
|
363
|
+
},
|
|
364
|
+
size: "small"
|
|
365
|
+
})), /*#__PURE__*/React__default.createElement(_Col, {
|
|
366
|
+
span: 7,
|
|
367
|
+
offset: 1,
|
|
368
|
+
style: {
|
|
369
|
+
display: 'flex'
|
|
370
|
+
}
|
|
371
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
372
|
+
style: {
|
|
373
|
+
width: 80
|
|
374
|
+
}
|
|
375
|
+
}, "\u5206\u503C\uFF1A"), /*#__PURE__*/React__default.createElement(_InputNumber, {
|
|
376
|
+
className: styles$2["question-step-two__panel-preview-middle__question-options-input"],
|
|
377
|
+
value: option.optionScore,
|
|
378
|
+
onChange: function onChange(score) {
|
|
379
|
+
questionOptionList.splice(optionIndex, 1, __assign(__assign({}, option), {
|
|
380
|
+
optionScore: score
|
|
381
|
+
}));
|
|
382
|
+
onQuesionChange(__assign(__assign({}, question), {
|
|
383
|
+
questionOptionList: __spreadArray([], questionOptionList, true)
|
|
384
|
+
}));
|
|
385
|
+
},
|
|
386
|
+
size: "small"
|
|
387
|
+
})), /*#__PURE__*/React__default.createElement(_Col, {
|
|
388
|
+
span: 1,
|
|
389
|
+
offset: 1
|
|
390
|
+
}, /*#__PURE__*/React__default.createElement(CloseCircleOutlined, {
|
|
391
|
+
onClick: function onClick(e) {
|
|
392
|
+
e.stopPropagation();
|
|
393
|
+
questionOptionList.splice(optionIndex, 1);
|
|
394
|
+
onQuesionChange(__assign(__assign({}, question), {
|
|
395
|
+
questionOptionList: __spreadArray([], questionOptionList, true)
|
|
396
|
+
}));
|
|
397
|
+
},
|
|
398
|
+
className: styles$2["question-step-two__panel-preview-middle__question-options-delete"]
|
|
399
|
+
})));
|
|
400
|
+
});
|
|
401
|
+
}
|
|
402
|
+
if (typeLabel === '填空题') {
|
|
403
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
404
|
+
className: styles$2["question-step-two__panel-preview-middle__question-completion"]
|
|
405
|
+
}, /*#__PURE__*/React__default.createElement(_Input, {
|
|
406
|
+
className: styles$2["question-step-two__panel-preview-middle__question-completion-input"],
|
|
407
|
+
size: "small",
|
|
408
|
+
style: {
|
|
409
|
+
marginTop: 4
|
|
410
|
+
}
|
|
411
|
+
}), questionOptionList.map(function (option, optionIndex) {
|
|
412
|
+
return /*#__PURE__*/React__default.createElement(_Row, {
|
|
413
|
+
key: optionIndex,
|
|
414
|
+
className: styles$2["question-step-two__panel-preview-middle__question-options"]
|
|
415
|
+
}, /*#__PURE__*/React__default.createElement(_Col, {
|
|
416
|
+
span: 6,
|
|
417
|
+
style: {
|
|
418
|
+
display: 'flex'
|
|
419
|
+
}
|
|
420
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
421
|
+
style: {
|
|
422
|
+
width: '100%'
|
|
423
|
+
}
|
|
424
|
+
}, "\u8BA1\u5206\u89C4\u5219\uFF1A"), /*#__PURE__*/React__default.createElement(Select$3, {
|
|
425
|
+
className: styles$2["question-step-two__panel-preview-middle__question-options-input"],
|
|
426
|
+
value: option.optionTitle,
|
|
427
|
+
onSelect: function onSelect(value) {
|
|
428
|
+
questionOptionList.splice(optionIndex, 1, __assign(__assign({}, option), {
|
|
429
|
+
optionTitle: value
|
|
430
|
+
}));
|
|
431
|
+
onQuesionChange(__assign(__assign({}, question), {
|
|
432
|
+
questionOptionList: __spreadArray([], questionOptionList, true)
|
|
433
|
+
}));
|
|
434
|
+
},
|
|
435
|
+
dropdownMatchSelectWidth: true,
|
|
436
|
+
size: "small"
|
|
437
|
+
}, /*#__PURE__*/React__default.createElement(Select$3.Option, {
|
|
438
|
+
value: "equal"
|
|
439
|
+
}, "\u76F8\u7B49"), /*#__PURE__*/React__default.createElement(Select$3.Option, {
|
|
440
|
+
value: "contain"
|
|
441
|
+
}, "\u5305\u542B"))), /*#__PURE__*/React__default.createElement(_Col, {
|
|
442
|
+
span: 7,
|
|
443
|
+
offset: 1,
|
|
444
|
+
style: {
|
|
445
|
+
display: 'flex'
|
|
446
|
+
}
|
|
447
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
448
|
+
style: {
|
|
449
|
+
width: '100%'
|
|
450
|
+
}
|
|
451
|
+
}, "\u6807\u51C6\u7B54\u6848\uFF1A"), /*#__PURE__*/React__default.createElement(_Input, {
|
|
452
|
+
className: styles$2["question-step-two__panel-preview-middle__question-options-input"],
|
|
453
|
+
value: option.fillTemplate,
|
|
454
|
+
onChange: function onChange(e) {
|
|
455
|
+
questionOptionList.splice(optionIndex, 1, __assign(__assign({}, option), {
|
|
456
|
+
fillTemplate: e.target.value
|
|
457
|
+
}));
|
|
458
|
+
onQuesionChange(__assign(__assign({}, question), {
|
|
459
|
+
questionOptionList: __spreadArray([], questionOptionList, true)
|
|
460
|
+
}));
|
|
461
|
+
},
|
|
462
|
+
size: "small"
|
|
463
|
+
})), /*#__PURE__*/React__default.createElement(_Col, {
|
|
464
|
+
span: 7,
|
|
465
|
+
offset: 1,
|
|
466
|
+
style: {
|
|
467
|
+
display: 'flex'
|
|
468
|
+
}
|
|
469
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
470
|
+
style: {
|
|
471
|
+
width: 80
|
|
472
|
+
}
|
|
473
|
+
}, "\u5206\u503C\uFF1A"), /*#__PURE__*/React__default.createElement(_InputNumber, {
|
|
474
|
+
className: styles$2["question-step-two__panel-preview-middle__question-options-input"],
|
|
475
|
+
value: option.optionScore,
|
|
476
|
+
onChange: function onChange(score) {
|
|
477
|
+
questionOptionList.splice(optionIndex, 1, __assign(__assign({}, option), {
|
|
478
|
+
optionScore: score
|
|
479
|
+
}));
|
|
480
|
+
onQuesionChange(__assign(__assign({}, question), {
|
|
481
|
+
questionOptionList: __spreadArray([], questionOptionList, true)
|
|
482
|
+
}));
|
|
483
|
+
},
|
|
484
|
+
size: "small"
|
|
485
|
+
})));
|
|
486
|
+
}));
|
|
487
|
+
}
|
|
488
|
+
if (typeLabel === '段落说明') {
|
|
489
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
490
|
+
className: styles$2["question-step-two__panel-preview-middle__question-options"]
|
|
491
|
+
});
|
|
492
|
+
}
|
|
493
|
+
if (typeLabel === '打分题') {
|
|
494
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
495
|
+
className: styles$2["question-step-two__panel-preview-middle__question-options"]
|
|
496
|
+
}, /*#__PURE__*/React__default.createElement(StarOutlined, null), /*#__PURE__*/React__default.createElement(StarOutlined, null), /*#__PURE__*/React__default.createElement(StarOutlined, null), /*#__PURE__*/React__default.createElement(StarOutlined, null), /*#__PURE__*/React__default.createElement(StarOutlined, null));
|
|
497
|
+
}
|
|
498
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null);
|
|
499
|
+
};
|
|
500
|
+
var renderBottomBtns = function renderBottomBtns() {
|
|
501
|
+
if (QuestionTypeEnums.getValues(['单选题', '多选题', '下拉题']).includes(question.questionType)) {
|
|
502
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
503
|
+
style: {
|
|
504
|
+
marginTop: 20
|
|
505
|
+
}
|
|
506
|
+
}, /*#__PURE__*/React__default.createElement(_Button, {
|
|
507
|
+
size: "small",
|
|
508
|
+
onClick: function onClick(e) {
|
|
509
|
+
onQuesionChange(__assign(__assign({}, question), {
|
|
510
|
+
questionOptionList: __spreadArray(__spreadArray([], questionOptionList, true), [{
|
|
511
|
+
optionTitle: '新增选项',
|
|
512
|
+
optionIndex: questionOptionList.reduce(function (a, b) {
|
|
513
|
+
return Math.max(a, b.optionIndex);
|
|
514
|
+
}, 1000) + 1,
|
|
515
|
+
optionScore: 0,
|
|
516
|
+
questionType: question.questionType
|
|
517
|
+
}], false)
|
|
518
|
+
}));
|
|
519
|
+
}
|
|
520
|
+
}, "\u6DFB\u52A0\u9009\u9879"));
|
|
521
|
+
}
|
|
522
|
+
};
|
|
523
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
524
|
+
style: hoverTargetQuestionPlace ? (_a = {}, _a["border".concat(hoverTargetQuestionPlace)] = '4px solid #ff0000', _a) : {},
|
|
525
|
+
ref: ref,
|
|
526
|
+
className: styles$2["question-step-two__panel-preview-middle__question"],
|
|
527
|
+
onDragOver: handleQuestionDragOver,
|
|
528
|
+
onDragLeave: handleQuestionDragLeave,
|
|
529
|
+
onClick: function onClick() {
|
|
530
|
+
onQuestionClick(__assign(__assign({}, question), {
|
|
531
|
+
questionIndex: index
|
|
532
|
+
}));
|
|
533
|
+
}
|
|
534
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
535
|
+
className: styles$2["question-step-two__panel-preview-middle__question-title"]
|
|
536
|
+
}, /*#__PURE__*/React__default.createElement("h4", null, index + 1, ".", labelsArrayMapping[QuestionTypeEnums.getLabel(question.questionType)].title), /*#__PURE__*/React__default.createElement(DeleteOutlined, {
|
|
537
|
+
onClick: function onClick(e) {
|
|
538
|
+
e.stopPropagation();
|
|
539
|
+
onQuestionItemDelete();
|
|
540
|
+
},
|
|
541
|
+
className: styles$2["question-step-two__panel-preview-middle__question-title-icon-delete"]
|
|
542
|
+
})), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(_Input, {
|
|
543
|
+
className: styles$2["question-step-two__panel-preview-middle__question-options-input"],
|
|
544
|
+
value: question.questionTitle,
|
|
545
|
+
size: "small",
|
|
546
|
+
placeholder: "\u8BF7\u8F93\u5165\u6807\u9898",
|
|
547
|
+
onChange: function onChange(e) {
|
|
548
|
+
onQuesionChange(__assign(__assign({}, question), {
|
|
549
|
+
questionTitle: e.target.value
|
|
550
|
+
}));
|
|
551
|
+
}
|
|
552
|
+
}), renderQuestionInput()), !!((_c = question.logic) === null || _c === void 0 ? void 0 : _c.selectOption.length) && groupQuestions.findIndex(function (_) {
|
|
553
|
+
return _.questionIndex === bind;
|
|
554
|
+
}) > -1 && /*#__PURE__*/React__default.createElement("div", {
|
|
555
|
+
className: styles$2["question-step-two__panel-preview-middle__question-tip"]
|
|
556
|
+
}, "\u4F9D\u8D56\u4E8E\u7B2C", groupQuestions.findIndex(function (_) {
|
|
557
|
+
var _a;
|
|
558
|
+
return _.questionIndex === ((_a = question.logic) === null || _a === void 0 ? void 0 : _a.bind);
|
|
559
|
+
}) + 1, "\u9898\u7684\u7B2C", question.logic.selectOption.map(function (value) {
|
|
560
|
+
return value + 1;
|
|
561
|
+
}).join('、'), "\u9009\u9879"), renderBottomBtns());
|
|
562
|
+
}
|
|
563
|
+
LazyAntd.Tree;
|
|
564
|
+
LazyAntd.TreeSelect;
|
|
565
|
+
var Select$2 = LazyAntd.Select;
|
|
566
|
+
LazyAntd.Table;
|
|
567
|
+
LazyAntd.Dropdown;
|
|
568
|
+
LazyAntd.Pagination;
|
|
569
|
+
function Step2Right(props) {
|
|
570
|
+
var _a, _b, _c;
|
|
571
|
+
var groupQuestions = props.groupQuestions,
|
|
572
|
+
activeQuestion = props.activeQuestion,
|
|
573
|
+
onQuesionChange = props.onQuesionChange;
|
|
574
|
+
props.activeGroup;
|
|
575
|
+
props.index;
|
|
576
|
+
var bind = (_a = activeQuestion.logic) === null || _a === void 0 ? void 0 : _a.bind;
|
|
577
|
+
var realIndex = groupQuestions.findIndex(function (_) {
|
|
578
|
+
return _.questionIndex === activeQuestion.questionIndex;
|
|
579
|
+
});
|
|
580
|
+
var selectQuestions = groupQuestions.filter(function (q, idx) {
|
|
581
|
+
return idx < realIndex;
|
|
582
|
+
});
|
|
583
|
+
var targetBind = groupQuestions.find(function (_) {
|
|
584
|
+
return _.questionIndex === bind;
|
|
585
|
+
});
|
|
586
|
+
console.log('aax', bind, targetBind);
|
|
587
|
+
var boxOptions = (targetBind === null || targetBind === void 0 ? void 0 : targetBind.questionOptionList) || [];
|
|
588
|
+
function _onChange(selectOption, bind) {
|
|
589
|
+
var _a;
|
|
590
|
+
if (bind === void 0) {
|
|
591
|
+
bind = (_a = activeQuestion.logic) === null || _a === void 0 ? void 0 : _a.bind;
|
|
592
|
+
}
|
|
593
|
+
onQuesionChange(__assign(__assign({}, activeQuestion), {
|
|
594
|
+
logic: {
|
|
595
|
+
selectOption: selectOption,
|
|
596
|
+
bind: bind
|
|
597
|
+
}
|
|
598
|
+
}));
|
|
599
|
+
}
|
|
600
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("span", null, "\u5F53\u524D\u9898\u76EE\uFF1A"), /*#__PURE__*/React__default.createElement("span", null, activeQuestion.questionTitle)), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(_Form.Item, {
|
|
601
|
+
label: "\u5173\u8054\u9898\u76EE\uFF1A"
|
|
602
|
+
}, /*#__PURE__*/React__default.createElement(Select$2, {
|
|
603
|
+
style: {
|
|
604
|
+
width: 300
|
|
605
|
+
},
|
|
606
|
+
dropdownMatchSelectWidth: 300,
|
|
607
|
+
allowClear: true,
|
|
608
|
+
placeholder: "\u8BF7\u9009\u62E9",
|
|
609
|
+
value: (_b = activeQuestion.logic) === null || _b === void 0 ? void 0 : _b.bind,
|
|
610
|
+
onChange: function onChange(value) {
|
|
611
|
+
_onChange([], value);
|
|
612
|
+
},
|
|
613
|
+
options: selectQuestions.map(function (_, index) {
|
|
614
|
+
return {
|
|
615
|
+
label: "".concat(index + 1, ".").concat(_.questionTitle),
|
|
616
|
+
value: _.questionIndex,
|
|
617
|
+
disabled: !QuestionTypeEnums.getValues(['多选题', '单选题', '下拉题']).includes(_.questionType)
|
|
618
|
+
};
|
|
619
|
+
})
|
|
620
|
+
})), targetBind && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", null, "\u5F53\u201C\u5173\u8054\u9898\u76EE\u201D\u9009\u62E9\u4E0B\u9762\u7684\u9009\u9879\uFF1A"), /*#__PURE__*/React__default.createElement(_Checkbox.Group, {
|
|
621
|
+
value: ((_c = activeQuestion.logic) === null || _c === void 0 ? void 0 : _c.selectOption) || [],
|
|
622
|
+
onChange: function onChange(value) {
|
|
623
|
+
return _onChange(value);
|
|
624
|
+
}
|
|
625
|
+
}, boxOptions.map(function (option, index) {
|
|
626
|
+
return /*#__PURE__*/React__default.createElement(Fragment, {
|
|
627
|
+
key: index
|
|
628
|
+
}, /*#__PURE__*/React__default.createElement(_Checkbox, {
|
|
629
|
+
key: index,
|
|
630
|
+
value: index
|
|
631
|
+
}, option.optionTitle), /*#__PURE__*/React__default.createElement("br", null));
|
|
632
|
+
})), /*#__PURE__*/React__default.createElement("div", null, "\u4E2D\u7684\u4EFB\u610F\u4E00\u4E2A\u65F6\uFF0C\u201C\u5F53\u524D\u9898\u76EE\u201D\u624D\u51FA\u73B0"))), /*#__PURE__*/React__default.createElement(_Form.Item, {
|
|
633
|
+
label: "\u662F\u5426\u5168\u5C4F\u663E\u793A"
|
|
634
|
+
}, /*#__PURE__*/React__default.createElement(_Checkbox, {
|
|
635
|
+
checked: activeQuestion.fullscreen,
|
|
636
|
+
onChange: function onChange(e) {
|
|
637
|
+
onQuesionChange(__assign(__assign({}, activeQuestion), {
|
|
638
|
+
fullscreen: e.target.checked
|
|
639
|
+
}));
|
|
640
|
+
}
|
|
641
|
+
})));
|
|
642
|
+
}
|
|
643
|
+
var btns = [{
|
|
644
|
+
id: 1,
|
|
645
|
+
title: '选择填空',
|
|
646
|
+
value: chooseArray
|
|
647
|
+
}, {
|
|
648
|
+
id: 2,
|
|
649
|
+
title: '评分题',
|
|
650
|
+
value: starArray
|
|
651
|
+
}, {
|
|
652
|
+
id: 3,
|
|
653
|
+
title: '文字说明',
|
|
654
|
+
value: descArray
|
|
655
|
+
}];
|
|
656
|
+
function Step2(props) {
|
|
657
|
+
var _a;
|
|
658
|
+
var data = props.data,
|
|
659
|
+
onPreview = props.onPreview,
|
|
660
|
+
onChangeStep = props.onChangeStep;
|
|
661
|
+
props.onEditorUpload;
|
|
662
|
+
var _b = useState(data.questionnaireTitle),
|
|
663
|
+
questionnaireTitle = _b[0],
|
|
664
|
+
setQuestionnaireTitle = _b[1];
|
|
665
|
+
var _c = useState(data.questionList || []),
|
|
666
|
+
questions = _c[0],
|
|
667
|
+
setQuestions = _c[1];
|
|
668
|
+
var _d = useState(data.description),
|
|
669
|
+
description = _d[0],
|
|
670
|
+
setDescription = _d[1];
|
|
671
|
+
var _e = useState(),
|
|
672
|
+
dragItemType = _e[0],
|
|
673
|
+
setDragItemType = _e[1];
|
|
674
|
+
var _f = useState(data.groupVOList || [{
|
|
675
|
+
groupIndex: 0,
|
|
676
|
+
groupDescription: '',
|
|
677
|
+
code: '',
|
|
678
|
+
groupTitle: '第一组',
|
|
679
|
+
questionIndexList: ((_a = data.questionList) === null || _a === void 0 ? void 0 : _a.map(function (_) {
|
|
680
|
+
return _.questionIndex;
|
|
681
|
+
})) || []
|
|
682
|
+
}]),
|
|
683
|
+
groups = _f[0],
|
|
684
|
+
setGroups = _f[1];
|
|
685
|
+
var _g = useState(0),
|
|
686
|
+
activeGroupIdx = _g[0],
|
|
687
|
+
setActiveGroupIdx = _g[1];
|
|
688
|
+
var _h = useState(-1),
|
|
689
|
+
activeQuestionIndexInGroup = _h[0],
|
|
690
|
+
setActiveQuestionIndexInGroup = _h[1];
|
|
691
|
+
var activeGroup = groups.find(function (_) {
|
|
692
|
+
return _.groupIndex === activeGroupIdx;
|
|
693
|
+
});
|
|
694
|
+
var activeQuestion = getTargetQuestionInGroup(questions, activeQuestionIndexInGroup, activeGroup);
|
|
695
|
+
var groupQuestions = getQuestionsInGroup(questions, activeGroup);
|
|
696
|
+
console.log('idx', activeQuestionIndexInGroup, activeQuestion);
|
|
697
|
+
var indexRef = useRef(0);
|
|
698
|
+
function generateQuestionByType(type) {
|
|
699
|
+
return initQuestionMap[type];
|
|
700
|
+
}
|
|
701
|
+
function handleBtnClick(type) {
|
|
702
|
+
return function () {
|
|
703
|
+
addQuesion(type, questions.length);
|
|
704
|
+
};
|
|
705
|
+
}
|
|
706
|
+
function handleChangeIndex(idx) {
|
|
707
|
+
indexRef.current = idx;
|
|
708
|
+
}
|
|
709
|
+
function addQuesion(t, idx) {
|
|
710
|
+
var maxIndex = questions.reduce(function (a, b) {
|
|
711
|
+
return Math.max(a, b.questionIndex);
|
|
712
|
+
}, 1000) + 1;
|
|
713
|
+
var newQuestions = JSON.parse(JSON.stringify(questions));
|
|
714
|
+
var newItem = generateQuestionByType(t);
|
|
715
|
+
newItem.questionIndex = maxIndex;
|
|
716
|
+
var targetGroup = groups.find(function (_) {
|
|
717
|
+
return _.groupIndex === activeGroupIdx;
|
|
718
|
+
});
|
|
719
|
+
if (targetGroup === null || targetGroup === void 0 ? void 0 : targetGroup.questionIndexList) {
|
|
720
|
+
targetGroup.questionIndexList.splice(idx, 0, maxIndex);
|
|
721
|
+
}
|
|
722
|
+
newQuestions.push(newItem);
|
|
723
|
+
setQuestions(newQuestions);
|
|
724
|
+
setGroups(__spreadArray([], groups, true));
|
|
725
|
+
}
|
|
726
|
+
function handleDragEnd() {
|
|
727
|
+
if (!dragItemType) return;
|
|
728
|
+
addQuesion(dragItemType, indexRef.current);
|
|
729
|
+
}
|
|
730
|
+
function modifyQuestion(item) {
|
|
731
|
+
var idx = questions.findIndex(function (_) {
|
|
732
|
+
return _.questionIndex === item.questionIndex;
|
|
733
|
+
});
|
|
734
|
+
questions[idx] = item;
|
|
735
|
+
setQuestions(__spreadArray([], questions, true));
|
|
736
|
+
}
|
|
737
|
+
function renderQuestions(q) {
|
|
738
|
+
return q.map(function (question, index) {
|
|
739
|
+
var lastQuestion = questions[questions.length - 1];
|
|
740
|
+
return /*#__PURE__*/React__default.createElement(QuestionItem, {
|
|
741
|
+
groupQuestions: groupQuestions,
|
|
742
|
+
key: index,
|
|
743
|
+
index: index,
|
|
744
|
+
question: question,
|
|
745
|
+
lastQuestion: lastQuestion,
|
|
746
|
+
onChangeIndex: handleChangeIndex,
|
|
747
|
+
onQuestionClick: function onQuestionClick() {
|
|
748
|
+
return setActiveQuestionIndexInGroup(index);
|
|
749
|
+
},
|
|
750
|
+
onQuesionChange: modifyQuestion,
|
|
751
|
+
onQuestionItemDelete: function onQuestionItemDelete() {
|
|
752
|
+
var _a, _b;
|
|
753
|
+
if (!activeGroup) return;
|
|
754
|
+
var logicBindIds = [];
|
|
755
|
+
questions.forEach(function (question) {
|
|
756
|
+
var _a;
|
|
757
|
+
typeof ((_a = question.logic) === null || _a === void 0 ? void 0 : _a.bind) === 'number' && logicBindIds.push(question.logic.bind);
|
|
758
|
+
});
|
|
759
|
+
if (logicBindIds.indexOf(question.questionIndex) > -1) {
|
|
760
|
+
_message.error('该题有逻辑关联,无法删除');
|
|
761
|
+
return;
|
|
762
|
+
}
|
|
763
|
+
var realIndex = questions.findIndex(function (_) {
|
|
764
|
+
return _.questionIndex === question.questionIndex;
|
|
765
|
+
});
|
|
766
|
+
questions.splice(realIndex, 1);
|
|
767
|
+
var indexOfGroup = (_a = activeGroup.questionIndexList) === null || _a === void 0 ? void 0 : _a.indexOf(question.questionIndex);
|
|
768
|
+
if (typeof indexOfGroup === 'number' && indexOfGroup > -1) {
|
|
769
|
+
(_b = activeGroup.questionIndexList) === null || _b === void 0 ? void 0 : _b.splice(indexOfGroup, 1);
|
|
770
|
+
groups.splice(activeGroupIdx, 1, __assign({}, activeGroup));
|
|
771
|
+
}
|
|
772
|
+
setQuestions(__spreadArray([], questions, true));
|
|
773
|
+
}
|
|
774
|
+
});
|
|
775
|
+
});
|
|
776
|
+
}
|
|
777
|
+
function renderBtns() {
|
|
778
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
779
|
+
className: styles$2["question-step-two__panel-question"]
|
|
780
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
781
|
+
className: styles$2["question-step-two__panel-question-card"]
|
|
782
|
+
}, btns.map(function (btn, index) {
|
|
783
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
784
|
+
key: index,
|
|
785
|
+
className: styles$2["question-step-two__panel-question-card-item"]
|
|
786
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
787
|
+
className: styles$2["question-step-two__panel-question-card-item__title"]
|
|
788
|
+
}, btn.title), /*#__PURE__*/React__default.createElement("div", {
|
|
789
|
+
className: styles$2["question-step-two__panel-question-card-item__btns"]
|
|
790
|
+
}, btn.value.map(function (item) {
|
|
791
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
792
|
+
key: item.title,
|
|
793
|
+
className: styles$2["question-step-two__panel-question-card-item__btns-btn"],
|
|
794
|
+
draggable: true,
|
|
795
|
+
onDragStart: function onDragStart() {
|
|
796
|
+
setDragItemType(item.title);
|
|
797
|
+
},
|
|
798
|
+
onDragEnd: handleDragEnd,
|
|
799
|
+
onClick: handleBtnClick(item.title)
|
|
800
|
+
}, /*#__PURE__*/React__default.createElement("img", {
|
|
801
|
+
src: item.iconImg,
|
|
802
|
+
alt: ""
|
|
803
|
+
}), /*#__PURE__*/React__default.createElement("div", null, item.title));
|
|
804
|
+
})));
|
|
805
|
+
})));
|
|
806
|
+
}
|
|
807
|
+
function renderLogicEdit() {
|
|
808
|
+
return activeQuestion && /*#__PURE__*/React__default.createElement("div", {
|
|
809
|
+
className: styles$2["question-step-two__panel-func"]
|
|
810
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
811
|
+
className: styles$2["question-step-two__panel-func__title"]
|
|
812
|
+
}, "\u9898\u76EE", activeQuestionIndexInGroup + 1, "\u8BBE\u7F6E"), activeGroup && activeQuestion && /*#__PURE__*/React__default.createElement(Step2Right, {
|
|
813
|
+
activeGroup: activeGroup,
|
|
814
|
+
onQuesionChange: modifyQuestion,
|
|
815
|
+
index: activeQuestionIndexInGroup,
|
|
816
|
+
groupQuestions: groupQuestions,
|
|
817
|
+
activeQuestion: activeQuestion
|
|
818
|
+
}));
|
|
819
|
+
}
|
|
820
|
+
function setCurrentGroup(key, value) {
|
|
821
|
+
if (activeGroup) {
|
|
822
|
+
activeGroup[key] = value;
|
|
823
|
+
groups.splice(activeGroupIdx, 1, __assign({}, activeGroup));
|
|
824
|
+
setGroups(__spreadArray([], groups, true));
|
|
825
|
+
}
|
|
826
|
+
}
|
|
827
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(_Row, {
|
|
828
|
+
className: styles$2["question-step-two__panel"]
|
|
829
|
+
}, /*#__PURE__*/React__default.createElement(_Col, {
|
|
830
|
+
span: 4
|
|
831
|
+
}, renderBtns()), /*#__PURE__*/React__default.createElement(_Col, {
|
|
832
|
+
span: 12,
|
|
833
|
+
offset: 1,
|
|
834
|
+
className: styles$2["question-step-two__panel-preview"]
|
|
835
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
836
|
+
className: styles$2["question-step-two__panel-preview-top"]
|
|
837
|
+
}, /*#__PURE__*/React__default.createElement(_Input, {
|
|
838
|
+
className: styles$2["question-step-two__panel-preview-top__title"],
|
|
839
|
+
value: questionnaireTitle,
|
|
840
|
+
placeholder: "\u8BF7\u8F93\u5165\u6807\u9898",
|
|
841
|
+
onChange: function onChange(e) {
|
|
842
|
+
setQuestionnaireTitle(e.target.value);
|
|
843
|
+
}
|
|
844
|
+
}), /*#__PURE__*/React__default.createElement(_Input.TextArea, {
|
|
845
|
+
className: styles$2["question-step-two__panel-preview-top__title"],
|
|
846
|
+
value: description,
|
|
847
|
+
style: {
|
|
848
|
+
marginTop: 12
|
|
849
|
+
},
|
|
850
|
+
placeholder: "\u8BF7\u8F93\u5165\u63CF\u8FF0",
|
|
851
|
+
onChange: function onChange(e) {
|
|
852
|
+
setDescription(e.target.value);
|
|
853
|
+
}
|
|
854
|
+
})), /*#__PURE__*/React__default.createElement(_Tabs, {
|
|
855
|
+
type: "editable-card",
|
|
856
|
+
activeKey: activeGroupIdx.toString(),
|
|
857
|
+
onChange: function onChange(e) {
|
|
858
|
+
return setActiveGroupIdx(+e);
|
|
859
|
+
},
|
|
860
|
+
onEdit: function onEdit(key, action) {
|
|
861
|
+
if (action === 'add') {
|
|
862
|
+
groups.push({
|
|
863
|
+
groupIndex: groups.length,
|
|
864
|
+
groupTitle: "\u7B2C".concat(groups.length + 1, "\u7EC4"),
|
|
865
|
+
questionIndexList: [],
|
|
866
|
+
groupDescription: '',
|
|
867
|
+
code: ''
|
|
868
|
+
});
|
|
869
|
+
} else {
|
|
870
|
+
groups.splice(+key, 1);
|
|
871
|
+
}
|
|
872
|
+
setGroups(__spreadArray([], groups, true));
|
|
873
|
+
}
|
|
874
|
+
}, groups.map(function (_, idx) {
|
|
875
|
+
var active = _.groupIndex === activeGroupIdx;
|
|
876
|
+
var q = getQuestionsInGroup(questions, _);
|
|
877
|
+
return /*#__PURE__*/React__default.createElement(_Tabs.TabPane, {
|
|
878
|
+
tab: _.groupTitle,
|
|
879
|
+
key: _.groupIndex
|
|
880
|
+
}, /*#__PURE__*/React__default.createElement(_Form.Item, {
|
|
881
|
+
label: "\u6807\u9898",
|
|
882
|
+
wrapperCol: {
|
|
883
|
+
span: 17
|
|
884
|
+
},
|
|
885
|
+
style: {
|
|
886
|
+
padding: '0 8px'
|
|
887
|
+
}
|
|
888
|
+
}, /*#__PURE__*/React__default.createElement(_Input, {
|
|
889
|
+
size: "small",
|
|
890
|
+
value: activeGroup === null || activeGroup === void 0 ? void 0 : activeGroup.groupTitle,
|
|
891
|
+
onChange: function onChange(e) {
|
|
892
|
+
setCurrentGroup('groupTitle', e.target.value);
|
|
893
|
+
}
|
|
894
|
+
})), /*#__PURE__*/React__default.createElement(_Form.Item, {
|
|
895
|
+
label: "\u63CF\u8FF0",
|
|
896
|
+
wrapperCol: {
|
|
897
|
+
span: 17
|
|
898
|
+
},
|
|
899
|
+
style: {
|
|
900
|
+
padding: '0 8px'
|
|
901
|
+
}
|
|
902
|
+
}, /*#__PURE__*/React__default.createElement(_Input, {
|
|
903
|
+
size: "small",
|
|
904
|
+
value: activeGroup === null || activeGroup === void 0 ? void 0 : activeGroup.groupDescription,
|
|
905
|
+
onChange: function onChange(e) {
|
|
906
|
+
setCurrentGroup('groupDescription', e.target.value);
|
|
907
|
+
}
|
|
908
|
+
})), /*#__PURE__*/React__default.createElement(_Form.Item, {
|
|
909
|
+
label: "\u89C4\u5219",
|
|
910
|
+
wrapperCol: {
|
|
911
|
+
span: 17
|
|
912
|
+
},
|
|
913
|
+
style: {
|
|
914
|
+
padding: '0 8px'
|
|
915
|
+
}
|
|
916
|
+
}, /*#__PURE__*/React__default.createElement(_Input.TextArea, {
|
|
917
|
+
size: "small",
|
|
918
|
+
placeholder: "\u4F8B\u5982\uFF1A".concat(JSON.stringify([["[9,13)", "轻度"], ["[13,~)", "中重度"]])),
|
|
919
|
+
value: activeGroup === null || activeGroup === void 0 ? void 0 : activeGroup.code,
|
|
920
|
+
onChange: function onChange(e) {
|
|
921
|
+
setCurrentGroup('code', e.target.value);
|
|
922
|
+
}
|
|
923
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
924
|
+
className: styles$2["question-step-two__panel-preview-middle"]
|
|
925
|
+
}, !q.length ? /*#__PURE__*/React__default.createElement("div", {
|
|
926
|
+
className: styles$2["question-step-two__panel-preview-middle__start"]
|
|
927
|
+
}, "\u70B9\u51FB\u9898\u578B \u6216\u8005 \u5C06\u9898\u578B\u62D6\u5165\u6B64\u533A\u57DF") : active && renderQuestions(q)));
|
|
928
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
929
|
+
className: styles$2["question-step-two__panel-preview-bottom"]
|
|
930
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
931
|
+
className: styles$2["question-step-two__panel-preview-bottom__btns"]
|
|
932
|
+
}, /*#__PURE__*/React__default.createElement(_Button, {
|
|
933
|
+
className: styles$2["question-step-two__panel-preview-bottom__btns-btn"],
|
|
934
|
+
onClick: function onClick() {
|
|
935
|
+
onChangeStep(0);
|
|
936
|
+
}
|
|
937
|
+
}, "\u4E0A\u4E00\u6B65"), /*#__PURE__*/React__default.createElement(_Button, {
|
|
938
|
+
type: "primary",
|
|
939
|
+
className: styles$2["question-step-two__panel-preview-bottom__btns-btn"],
|
|
940
|
+
onClick: function onClick() {
|
|
941
|
+
onPreview(__assign(__assign({}, data), {
|
|
942
|
+
groupVOList: groups,
|
|
943
|
+
questionnaireTitle: questionnaireTitle,
|
|
944
|
+
description: description,
|
|
945
|
+
questionList: questions
|
|
946
|
+
}));
|
|
947
|
+
}
|
|
948
|
+
}, "\u4E0B\u4E00\u6B65")))), /*#__PURE__*/React__default.createElement(_Col, {
|
|
949
|
+
span: 6,
|
|
950
|
+
offset: 1
|
|
951
|
+
}, !!questions.length && renderLogicEdit())));
|
|
952
|
+
}
|
|
953
|
+
var css_248z$1 = ".step3-module_questionnaire-steps__hnLCy {\n background-color: white;\n height: 70px;\n display: flex;\n align-items: center;\n padding: 0 15% !important;\n margin-bottom: 8px;\n}\n.step3-module_questionnaire-steps-content__gsy1y {\n padding: 16px;\n background-color: white;\n}\n.step3-module_question-step-three__panel__a5-8F {\n width: 100%;\n padding: 16px 8px;\n}\n.step3-module_question-step-three__panel-bottom__-9TeF {\n width: 100%;\n display: flex;\n justify-content: center;\n margin-top: 50px;\n}\n.step3-module_question-step-three__panel-radio__RVwTz {\n text-align: center;\n}\n.step3-module_question-step-three__panel-mobile__-2KHO {\n display: flex;\n margin-top: 16px;\n justify-content: center;\n}\n.step3-module_question-step-three__panel-mobile-preview__RP20Y {\n height: 640px;\n width: 360px;\n background-size: contain;\n background-image: url('/lm_imgs/qn/phone.jpg');\n background-repeat: no-repeat;\n background-position: center;\n}\n.step3-module_question-step-three__panel-mobile-preview_content__HP1rl {\n height: 100%;\n padding: 72px 44px 74px 45px;\n}\n.step3-module_question-step-three__panel-mobile-preview_content__HP1rl .ant-form {\n padding: 8px;\n overflow-y: scroll;\n height: 100%;\n}\n.step3-module_question-step-three__panel-mobile-preview_content__HP1rl .ant-form .step3-module_questions-title__z76Ew {\n text-align: center;\n}\n.step3-module_question-step-three__panel-mobile-preview_content__HP1rl .ant-form .step3-module_questions-desc__NkpDu {\n margin: 8px 0;\n}\n.step3-module_question-step-three__panel-mobile-preview_content__HP1rl .ant-form .ant-form-item {\n padding: 8px;\n border: 1px solid #d9d9d9;\n}\n.step3-module_question-step-three__panel-mobile-preview_content__HP1rl .ant-form .ant-form-item:last-child {\n width: 100%;\n border: none;\n}\n.step3-module_question-step-three__panel-mobile-preview_content__HP1rl .ant-form .ant-form-item:last-child button {\n width: 100%;\n}\n.step3-module_question-step-three__panel-compute__peaG8 {\n margin: 10px auto;\n background-image: url('/lm_imgs/qn/mackbook.png');\n background-size: contain;\n background-repeat: no-repeat;\n background-position: center;\n display: flex;\n justify-content: center;\n padding: 70px 0 100px 0;\n height: 600px;\n width: 1000px;\n}\n.step3-module_question-step-three__panel-compute__peaG8 .step3-module_questions-title__z76Ew {\n text-align: center;\n font-size: 20px;\n}\n.step3-module_question-step-three__panel-compute__peaG8 .step3-module_questions-desc__NkpDu {\n margin: 10px;\n}\n.step3-module_question-step-three__panel-compute__peaG8 .ant-form {\n padding: 8px;\n overflow-y: scroll;\n height: 100%;\n width: 60%;\n}\n.step3-module_question-step-three__panel-compute__peaG8 .ant-form .step3-module_questions-title__z76Ew {\n text-align: center;\n}\n.step3-module_question-step-three__panel-compute__peaG8 .ant-form .step3-module_questions-desc__NkpDu {\n margin: 8px 0;\n}\n.step3-module_question-step-three__panel-compute__peaG8 .ant-form .ant-form-item {\n padding: 8px;\n border: 1px solid #d9d9d9;\n}\n.step3-module_question-step-three__panel-compute__peaG8 .ant-form .ant-form-item:last-child {\n width: 100%;\n border: none;\n}\n.step3-module_question-step-three__panel-compute__peaG8 .ant-form .ant-form-item:last-child button {\n width: 100%;\n}\n.step3-module_question-step-three__panel-tablet__bztKK {\n margin: 10px auto;\n background-image: url('/lm_imgs/qn/tablet.png');\n background-size: contain;\n background-repeat: no-repeat;\n background-position: center;\n display: flex;\n justify-content: center;\n padding: 70px 0 100px 0;\n height: 500px;\n width: 800px;\n}\n.step3-module_question-step-three__panel-tablet__bztKK .step3-module_questions-title__z76Ew {\n text-align: center;\n font-size: 20px;\n}\n.step3-module_question-step-three__panel-tablet__bztKK .step3-module_questions-desc__NkpDu {\n margin: 10px;\n}\n.step3-module_question-step-three__panel-tablet__bztKK .ant-form {\n padding: 8px;\n overflow-y: scroll;\n height: 100%;\n width: 60%;\n}\n.step3-module_question-step-three__panel-tablet__bztKK .ant-form .step3-module_questions-title__z76Ew {\n text-align: center;\n}\n.step3-module_question-step-three__panel-tablet__bztKK .ant-form .step3-module_questions-desc__NkpDu {\n margin: 8px 0;\n}\n.step3-module_question-step-three__panel-tablet__bztKK .ant-form .ant-form-item {\n padding: 8px;\n border: 1px solid #d9d9d9;\n}\n.step3-module_question-step-three__panel-tablet__bztKK .ant-form .ant-form-item:last-child {\n width: 100%;\n border: none;\n}\n.step3-module_question-step-three__panel-tablet__bztKK .ant-form .ant-form-item:last-child button {\n width: 100%;\n}\n";
|
|
954
|
+
var styles$1 = {
|
|
955
|
+
"questionnaire-steps": "step3-module_questionnaire-steps__hnLCy",
|
|
956
|
+
"questionnaire-steps-content": "step3-module_questionnaire-steps-content__gsy1y",
|
|
957
|
+
"question-step-three__panel": "step3-module_question-step-three__panel__a5-8F",
|
|
958
|
+
"question-step-three__panel-bottom": "step3-module_question-step-three__panel-bottom__-9TeF",
|
|
959
|
+
"question-step-three__panel-radio": "step3-module_question-step-three__panel-radio__RVwTz",
|
|
960
|
+
"question-step-three__panel-mobile": "step3-module_question-step-three__panel-mobile__-2KHO",
|
|
961
|
+
"question-step-three__panel-mobile-preview": "step3-module_question-step-three__panel-mobile-preview__RP20Y",
|
|
962
|
+
"question-step-three__panel-mobile-preview_content": "step3-module_question-step-three__panel-mobile-preview_content__HP1rl",
|
|
963
|
+
"questions-title": "step3-module_questions-title__z76Ew",
|
|
964
|
+
"questions-desc": "step3-module_questions-desc__NkpDu",
|
|
965
|
+
"question-step-three__panel-compute": "step3-module_question-step-three__panel-compute__peaG8",
|
|
966
|
+
"question-step-three__panel-tablet": "step3-module_question-step-three__panel-tablet__bztKK"
|
|
967
|
+
};
|
|
968
|
+
styleInject(css_248z$1);
|
|
969
|
+
LazyAntd.Tree;
|
|
970
|
+
LazyAntd.TreeSelect;
|
|
971
|
+
var Select$1 = LazyAntd.Select;
|
|
972
|
+
LazyAntd.Table;
|
|
973
|
+
LazyAntd.Dropdown;
|
|
974
|
+
LazyAntd.Pagination;
|
|
975
|
+
var Step3 = function Step3(props) {
|
|
976
|
+
var _a = useState('mobile'),
|
|
977
|
+
device = _a[0],
|
|
978
|
+
setDevice = _a[1];
|
|
979
|
+
var _b = useState([]),
|
|
980
|
+
globalLogic = _b[0],
|
|
981
|
+
setGlobalLogic = _b[1];
|
|
982
|
+
var data = props.data,
|
|
983
|
+
onChangeStep = props.onChangeStep;
|
|
984
|
+
console.log('data', data);
|
|
985
|
+
var _c = data.questionList,
|
|
986
|
+
questionList = _c === void 0 ? [] : _c;
|
|
987
|
+
data.questionnaireTitle;
|
|
988
|
+
data.description;
|
|
989
|
+
var _d = data.groupVOList,
|
|
990
|
+
groupVOList = _d === void 0 ? [] : _d;
|
|
991
|
+
var form = _Form.useForm()[0];
|
|
992
|
+
function handleSave() {
|
|
993
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
994
|
+
var method;
|
|
995
|
+
return __generator(this, function (_a) {
|
|
996
|
+
switch (_a.label) {
|
|
997
|
+
case 0:
|
|
998
|
+
method = 'post';
|
|
999
|
+
if (typeof data.id === 'number') {
|
|
1000
|
+
method = 'put';
|
|
1001
|
+
}
|
|
1002
|
+
return [4, SMchc_Questionnaire[method](data)];
|
|
1003
|
+
case 1:
|
|
1004
|
+
_a.sent();
|
|
1005
|
+
_message.success('保存问卷成功');
|
|
1006
|
+
onChangeStep(0);
|
|
1007
|
+
return [2];
|
|
1008
|
+
}
|
|
1009
|
+
});
|
|
1010
|
+
});
|
|
1011
|
+
}
|
|
1012
|
+
useEffect(function () {
|
|
1013
|
+
var newGlobalLogic = __spreadArray([], globalLogic, true);
|
|
1014
|
+
questionList.map(function (question, index) {
|
|
1015
|
+
var logic = question.logic;
|
|
1016
|
+
if (logic) {
|
|
1017
|
+
newGlobalLogic.push({
|
|
1018
|
+
bindIndex: logic.bind,
|
|
1019
|
+
index: index
|
|
1020
|
+
});
|
|
1021
|
+
}
|
|
1022
|
+
});
|
|
1023
|
+
setGlobalLogic(newGlobalLogic);
|
|
1024
|
+
}, []);
|
|
1025
|
+
var handleValuesChange = function handleValuesChange(values, allValues) {
|
|
1026
|
+
var changedKey = Object.keys(values)[0];
|
|
1027
|
+
globalLogic.map(function (_a) {
|
|
1028
|
+
var _b;
|
|
1029
|
+
var bindIndex = _a.bindIndex,
|
|
1030
|
+
index = _a.index;
|
|
1031
|
+
if (changedKey == bindIndex) {
|
|
1032
|
+
form.setFieldsValue((_b = {}, _b[index] = undefined, _b));
|
|
1033
|
+
}
|
|
1034
|
+
});
|
|
1035
|
+
};
|
|
1036
|
+
var renderFormItem = function renderFormItem(question, index) {
|
|
1037
|
+
var logic = question.logic,
|
|
1038
|
+
_a = question.questionOptionList,
|
|
1039
|
+
questionOptionList = _a === void 0 ? [] : _a,
|
|
1040
|
+
questionTitle = question.questionTitle,
|
|
1041
|
+
questionType = question.questionType;
|
|
1042
|
+
var itemStyle = {};
|
|
1043
|
+
var Component = /*#__PURE__*/React__default.createElement(Fragment, null);
|
|
1044
|
+
var bindIndex = logic === null || logic === void 0 ? void 0 : logic.bind;
|
|
1045
|
+
var bindIndexSelectOption = (logic === null || logic === void 0 ? void 0 : logic.selectOption) || [];
|
|
1046
|
+
var formItemValue = form.getFieldValue(bindIndex);
|
|
1047
|
+
if (logic) {
|
|
1048
|
+
itemStyle = {
|
|
1049
|
+
display: 'none'
|
|
1050
|
+
};
|
|
1051
|
+
if (Array.isArray(formItemValue)) {
|
|
1052
|
+
formItemValue.map(function (itemOption) {
|
|
1053
|
+
if ((bindIndexSelectOption === null || bindIndexSelectOption === void 0 ? void 0 : bindIndexSelectOption.indexOf(itemOption)) > -1) {
|
|
1054
|
+
itemStyle = {};
|
|
1055
|
+
}
|
|
1056
|
+
});
|
|
1057
|
+
} else {
|
|
1058
|
+
if ((bindIndexSelectOption === null || bindIndexSelectOption === void 0 ? void 0 : bindIndexSelectOption.indexOf(formItemValue)) > -1) {
|
|
1059
|
+
itemStyle = {};
|
|
1060
|
+
}
|
|
1061
|
+
}
|
|
1062
|
+
}
|
|
1063
|
+
switch (QuestionTypeEnums.getLabel(questionType)) {
|
|
1064
|
+
case '单选题':
|
|
1065
|
+
Component = /*#__PURE__*/React__default.createElement(_Radio.Group, null, questionOptionList.map(function (option, key) {
|
|
1066
|
+
return /*#__PURE__*/React__default.createElement(_Radio, {
|
|
1067
|
+
style: {
|
|
1068
|
+
display: 'block'
|
|
1069
|
+
},
|
|
1070
|
+
key: key,
|
|
1071
|
+
value: key
|
|
1072
|
+
}, option.optionTitle);
|
|
1073
|
+
}));
|
|
1074
|
+
break;
|
|
1075
|
+
case '多选题':
|
|
1076
|
+
Component = /*#__PURE__*/React__default.createElement(_Checkbox.Group, null, questionOptionList.map(function (option, key) {
|
|
1077
|
+
return /*#__PURE__*/React__default.createElement(_Checkbox, {
|
|
1078
|
+
style: {
|
|
1079
|
+
display: 'block',
|
|
1080
|
+
margin: 0
|
|
1081
|
+
},
|
|
1082
|
+
key: key,
|
|
1083
|
+
value: key
|
|
1084
|
+
}, option.optionTitle);
|
|
1085
|
+
}));
|
|
1086
|
+
break;
|
|
1087
|
+
case '下拉题':
|
|
1088
|
+
Component = /*#__PURE__*/React__default.createElement(Select$1, null, questionOptionList.map(function (option, key) {
|
|
1089
|
+
return /*#__PURE__*/React__default.createElement(Select$1.Option, {
|
|
1090
|
+
key: key,
|
|
1091
|
+
value: key
|
|
1092
|
+
}, option.optionTitle);
|
|
1093
|
+
}));
|
|
1094
|
+
break;
|
|
1095
|
+
case '打分题':
|
|
1096
|
+
Component = /*#__PURE__*/React__default.createElement(_Rate, null);
|
|
1097
|
+
break;
|
|
1098
|
+
case '段落说明':
|
|
1099
|
+
break;
|
|
1100
|
+
default:
|
|
1101
|
+
Component = /*#__PURE__*/React__default.createElement(_Input, null);
|
|
1102
|
+
break;
|
|
1103
|
+
}
|
|
1104
|
+
return /*#__PURE__*/React__default.createElement(_Form.Item, {
|
|
1105
|
+
style: itemStyle,
|
|
1106
|
+
name: index,
|
|
1107
|
+
label: "".concat(index + 1, ".").concat(questionTitle)
|
|
1108
|
+
}, Component);
|
|
1109
|
+
};
|
|
1110
|
+
var renderMobileShow = function renderMobileShow() {
|
|
1111
|
+
return /*#__PURE__*/React__default.createElement(_Form, {
|
|
1112
|
+
autoComplete: "off",
|
|
1113
|
+
form: form,
|
|
1114
|
+
layout: "vertical",
|
|
1115
|
+
onValuesChange: handleValuesChange
|
|
1116
|
+
}, groupVOList.map(function (g) {
|
|
1117
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
1118
|
+
className: styles$1["questions-title"]
|
|
1119
|
+
}, g.groupTitle), /*#__PURE__*/React__default.createElement("div", {
|
|
1120
|
+
className: styles$1["questions-desc"],
|
|
1121
|
+
dangerouslySetInnerHTML: {
|
|
1122
|
+
__html: g.groupDescription
|
|
1123
|
+
}
|
|
1124
|
+
}), getQuestionsInGroup(questionList, g).map(function (question, index) {
|
|
1125
|
+
return /*#__PURE__*/React__default.createElement(Fragment, {
|
|
1126
|
+
key: index
|
|
1127
|
+
}, renderFormItem(question, index));
|
|
1128
|
+
}));
|
|
1129
|
+
}));
|
|
1130
|
+
};
|
|
1131
|
+
var renderComputeShow = function renderComputeShow() {
|
|
1132
|
+
return /*#__PURE__*/React__default.createElement(_Form, {
|
|
1133
|
+
autoComplete: "off",
|
|
1134
|
+
form: form,
|
|
1135
|
+
layout: "vertical",
|
|
1136
|
+
onValuesChange: handleValuesChange
|
|
1137
|
+
}, groupVOList.map(function (g) {
|
|
1138
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
1139
|
+
className: styles$1["questions-title"]
|
|
1140
|
+
}, g.groupTitle), /*#__PURE__*/React__default.createElement("div", {
|
|
1141
|
+
className: styles$1["questions-desc"],
|
|
1142
|
+
dangerouslySetInnerHTML: {
|
|
1143
|
+
__html: g.groupTitle
|
|
1144
|
+
}
|
|
1145
|
+
}), getQuestionsInGroup(questionList, g).map(function (question, index) {
|
|
1146
|
+
return /*#__PURE__*/React__default.createElement(Fragment, {
|
|
1147
|
+
key: index
|
|
1148
|
+
}, renderFormItem(question, index));
|
|
1149
|
+
}));
|
|
1150
|
+
}));
|
|
1151
|
+
};
|
|
1152
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1153
|
+
className: styles$1["question-step-three__panel"]
|
|
1154
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1155
|
+
className: styles$1["question-step-three__panel-radio"]
|
|
1156
|
+
}, /*#__PURE__*/React__default.createElement(_Radio.Group, {
|
|
1157
|
+
onChange: function onChange(e) {
|
|
1158
|
+
return setDevice(e.target.value);
|
|
1159
|
+
},
|
|
1160
|
+
value: device
|
|
1161
|
+
}, /*#__PURE__*/React__default.createElement(_Radio.Button, {
|
|
1162
|
+
value: "mobile"
|
|
1163
|
+
}, /*#__PURE__*/React__default.createElement(MobileOutlined, {
|
|
1164
|
+
style: {
|
|
1165
|
+
marginRight: 5
|
|
1166
|
+
}
|
|
1167
|
+
}), "\u624B\u673A"), /*#__PURE__*/React__default.createElement(_Radio.Button, {
|
|
1168
|
+
value: "compute"
|
|
1169
|
+
}, /*#__PURE__*/React__default.createElement(DesktopOutlined, {
|
|
1170
|
+
style: {
|
|
1171
|
+
marginRight: 5
|
|
1172
|
+
}
|
|
1173
|
+
}), "\u7535\u8111"), /*#__PURE__*/React__default.createElement(_Radio.Button, {
|
|
1174
|
+
value: "tablet"
|
|
1175
|
+
}, /*#__PURE__*/React__default.createElement(TabletOutlined, {
|
|
1176
|
+
style: {
|
|
1177
|
+
marginRight: 5
|
|
1178
|
+
},
|
|
1179
|
+
rotate: 270
|
|
1180
|
+
}), "\u5E8A\u5934\u5C4F"))), device === 'mobile' && /*#__PURE__*/React__default.createElement("div", {
|
|
1181
|
+
className: styles$1["question-step-three__panel-mobile"]
|
|
1182
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1183
|
+
className: styles$1["question-step-three__panel-mobile-preview"]
|
|
1184
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1185
|
+
className: styles$1["question-step-three__panel-mobile-preview_content"]
|
|
1186
|
+
}, renderMobileShow()))), device === 'tablet' && /*#__PURE__*/React__default.createElement("div", {
|
|
1187
|
+
className: styles$1["question-step-three__panel-tablet"]
|
|
1188
|
+
}, renderComputeShow()), device === 'compute' && /*#__PURE__*/React__default.createElement("div", {
|
|
1189
|
+
className: styles$1["question-step-three__panel-compute"]
|
|
1190
|
+
}, renderComputeShow()), /*#__PURE__*/React__default.createElement("div", {
|
|
1191
|
+
className: styles$1["question-step-three__panel-bottom"]
|
|
1192
|
+
}, /*#__PURE__*/React__default.createElement(_Button, {
|
|
1193
|
+
style: {
|
|
1194
|
+
marginRight: 8
|
|
1195
|
+
},
|
|
1196
|
+
onClick: function onClick() {
|
|
1197
|
+
onChangeStep(1);
|
|
1198
|
+
}
|
|
1199
|
+
}, "\u4E0A\u4E00\u6B65"), /*#__PURE__*/React__default.createElement(_Button, {
|
|
1200
|
+
type: "primary",
|
|
1201
|
+
style: {
|
|
1202
|
+
marginRight: 8
|
|
1203
|
+
},
|
|
1204
|
+
onClick: handleSave
|
|
1205
|
+
}, "\u63D0\u4EA4")));
|
|
1206
|
+
};
|
|
1207
|
+
var fakeData = {
|
|
1208
|
+
id: 2,
|
|
1209
|
+
questionnaireTitle: "测试问卷2------",
|
|
1210
|
+
questionList: [],
|
|
1211
|
+
groupVOList: []
|
|
1212
|
+
};
|
|
1213
|
+
LazyAntd.Tree;
|
|
1214
|
+
LazyAntd.TreeSelect;
|
|
1215
|
+
var Select = LazyAntd.Select,
|
|
1216
|
+
Table = LazyAntd.Table;
|
|
1217
|
+
LazyAntd.Dropdown;
|
|
1218
|
+
LazyAntd.Pagination;
|
|
1219
|
+
function download(content, filename) {
|
|
1220
|
+
if (filename === void 0) {
|
|
1221
|
+
filename = '问卷答题情况.xlsx';
|
|
1222
|
+
}
|
|
1223
|
+
var eleLink = document.createElement('a');
|
|
1224
|
+
eleLink.download = filename;
|
|
1225
|
+
eleLink.style.display = 'none';
|
|
1226
|
+
var blob = typeof content === 'string' ? new Blob([content]) : content;
|
|
1227
|
+
console.log(_typeof(content), blob);
|
|
1228
|
+
eleLink.href = URL.createObjectURL(blob);
|
|
1229
|
+
document.body.appendChild(eleLink);
|
|
1230
|
+
eleLink.click();
|
|
1231
|
+
document.body.removeChild(eleLink);
|
|
1232
|
+
}
|
|
1233
|
+
var d = fakeData;
|
|
1234
|
+
var L = function L(props) {
|
|
1235
|
+
var _a = props.value,
|
|
1236
|
+
value = _a === void 0 ? [] : _a,
|
|
1237
|
+
_onChange2 = props.onChange,
|
|
1238
|
+
questions = props.questions;
|
|
1239
|
+
return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(_Button, {
|
|
1240
|
+
block: true,
|
|
1241
|
+
onClick: function onClick(e) {
|
|
1242
|
+
return _onChange2 === null || _onChange2 === void 0 ? void 0 : _onChange2(__spreadArray(__spreadArray([], value, true), [{}], false));
|
|
1243
|
+
}
|
|
1244
|
+
}, "\u65B0\u589E"), value === null || value === void 0 ? void 0 : value.map(function (_, idx) {
|
|
1245
|
+
var _a, _b, _c;
|
|
1246
|
+
var target = questions.find(function (q) {
|
|
1247
|
+
return q.id === _.questionId;
|
|
1248
|
+
});
|
|
1249
|
+
return /*#__PURE__*/React__default.createElement(_Row, {
|
|
1250
|
+
key: idx,
|
|
1251
|
+
style: {
|
|
1252
|
+
marginTop: 6
|
|
1253
|
+
},
|
|
1254
|
+
gutter: 8
|
|
1255
|
+
}, /*#__PURE__*/React__default.createElement(_Col, {
|
|
1256
|
+
span: 6
|
|
1257
|
+
}, /*#__PURE__*/React__default.createElement(Select, {
|
|
1258
|
+
value: _.questionId,
|
|
1259
|
+
options: questions === null || questions === void 0 ? void 0 : questions.map(function (q) {
|
|
1260
|
+
return {
|
|
1261
|
+
label: q.questionTitle,
|
|
1262
|
+
value: q.id,
|
|
1263
|
+
disabled: value.some(function (v) {
|
|
1264
|
+
return v.questionId === q.id;
|
|
1265
|
+
})
|
|
1266
|
+
};
|
|
1267
|
+
}),
|
|
1268
|
+
onChange: function onChange(id) {
|
|
1269
|
+
var selectTarget = questions.find(function (_) {
|
|
1270
|
+
return _.id === id;
|
|
1271
|
+
});
|
|
1272
|
+
value.splice(idx, 1, __assign(__assign({}, _), {
|
|
1273
|
+
questionId: id,
|
|
1274
|
+
questionType: selectTarget === null || selectTarget === void 0 ? void 0 : selectTarget.questionType,
|
|
1275
|
+
optionIndex: ''
|
|
1276
|
+
}));
|
|
1277
|
+
_onChange2 === null || _onChange2 === void 0 ? void 0 : _onChange2(__spreadArray([], value, true));
|
|
1278
|
+
}
|
|
1279
|
+
})), /*#__PURE__*/React__default.createElement(_Col, {
|
|
1280
|
+
span: 16
|
|
1281
|
+
}, /*#__PURE__*/React__default.createElement(Select, {
|
|
1282
|
+
value: (_b = (_a = _.optionIndex) === null || _a === void 0 ? void 0 : _a.split(',')) === null || _b === void 0 ? void 0 : _b.filter(function (_) {
|
|
1283
|
+
return !!_;
|
|
1284
|
+
}),
|
|
1285
|
+
mode: "multiple",
|
|
1286
|
+
options: (_c = target === null || target === void 0 ? void 0 : target.questionOptionList) === null || _c === void 0 ? void 0 : _c.map(function (q) {
|
|
1287
|
+
var _a;
|
|
1288
|
+
return {
|
|
1289
|
+
label: q.optionTitle,
|
|
1290
|
+
value: (_a = q.optionIndex) === null || _a === void 0 ? void 0 : _a.toString()
|
|
1291
|
+
};
|
|
1292
|
+
}),
|
|
1293
|
+
onChange: function onChange(id) {
|
|
1294
|
+
value.splice(idx, 1, __assign(__assign({}, _), {
|
|
1295
|
+
optionIndex: id === null || id === void 0 ? void 0 : id.toString()
|
|
1296
|
+
}));
|
|
1297
|
+
_onChange2 === null || _onChange2 === void 0 ? void 0 : _onChange2(__spreadArray([], value, true));
|
|
1298
|
+
}
|
|
1299
|
+
})), /*#__PURE__*/React__default.createElement(_Col, {
|
|
1300
|
+
span: 2
|
|
1301
|
+
}, /*#__PURE__*/React__default.createElement(_Button, {
|
|
1302
|
+
block: true,
|
|
1303
|
+
style: {
|
|
1304
|
+
marginLeft: 0
|
|
1305
|
+
},
|
|
1306
|
+
danger: true,
|
|
1307
|
+
onClick: function onClick(e) {
|
|
1308
|
+
value.splice(idx, 1);
|
|
1309
|
+
_onChange2 === null || _onChange2 === void 0 ? void 0 : _onChange2(__spreadArray([], value, true));
|
|
1310
|
+
}
|
|
1311
|
+
}, "\u5220\u9664")));
|
|
1312
|
+
}));
|
|
1313
|
+
};
|
|
1314
|
+
var Step4 = function Step4(_a) {
|
|
1315
|
+
var _b;
|
|
1316
|
+
var onChangeStep = _a.onChangeStep,
|
|
1317
|
+
_c = _a.data,
|
|
1318
|
+
data = _c === void 0 ? d : _c;
|
|
1319
|
+
var form = _Form.useForm()[0];
|
|
1320
|
+
var _d = useState([]),
|
|
1321
|
+
list = _d[0],
|
|
1322
|
+
setList = _d[1];
|
|
1323
|
+
function getReqData() {
|
|
1324
|
+
return __assign({
|
|
1325
|
+
questionnaireId: data.id
|
|
1326
|
+
}, form.getFieldsValue());
|
|
1327
|
+
}
|
|
1328
|
+
return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", {
|
|
1329
|
+
style: {
|
|
1330
|
+
display: 'flex',
|
|
1331
|
+
justifyContent: 'space-between',
|
|
1332
|
+
alignItems: 'center',
|
|
1333
|
+
padding: '0 12px',
|
|
1334
|
+
marginBottom: 12
|
|
1335
|
+
}
|
|
1336
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
1337
|
+
style: {
|
|
1338
|
+
fontSize: 20,
|
|
1339
|
+
fontWeight: 'bold'
|
|
1340
|
+
}
|
|
1341
|
+
}, data.questionnaireTitle), /*#__PURE__*/React__default.createElement(_Space, null, /*#__PURE__*/React__default.createElement(_Button, {
|
|
1342
|
+
type: "primary",
|
|
1343
|
+
onClick: function onClick() {
|
|
1344
|
+
return SMchc_Questionnaire.fk_downloadResult(getReqData()).then(download);
|
|
1345
|
+
}
|
|
1346
|
+
}, "\u5BFC\u51FA"), /*#__PURE__*/React__default.createElement(_Button, {
|
|
1347
|
+
type: "primary",
|
|
1348
|
+
onClick: function onClick() {
|
|
1349
|
+
return onChangeStep(0);
|
|
1350
|
+
}
|
|
1351
|
+
}, "\u8FD4\u56DE"))), /*#__PURE__*/React__default.createElement(SimpleForm, {
|
|
1352
|
+
onValuesChange: function onValuesChange(v) {
|
|
1353
|
+
return console.log('xxd', v);
|
|
1354
|
+
},
|
|
1355
|
+
form: form,
|
|
1356
|
+
blocks: [{
|
|
1357
|
+
title: '搜索条件',
|
|
1358
|
+
rows: [{
|
|
1359
|
+
itemsInRow: [{
|
|
1360
|
+
type: 'Input',
|
|
1361
|
+
outerOptions: {
|
|
1362
|
+
name: 'outpatientNo',
|
|
1363
|
+
label: '就诊卡号'
|
|
1364
|
+
}
|
|
1365
|
+
}, {
|
|
1366
|
+
type: 'RangePicker',
|
|
1367
|
+
outerOptions: {
|
|
1368
|
+
name: 'fillDate',
|
|
1369
|
+
label: '提交日期'
|
|
1370
|
+
},
|
|
1371
|
+
innerOptions: {
|
|
1372
|
+
placeholder: ['请选择', '请选择']
|
|
1373
|
+
}
|
|
1374
|
+
}, {
|
|
1375
|
+
type: 'InputNumber',
|
|
1376
|
+
outerOptions: {
|
|
1377
|
+
name: 'beginTotalScore',
|
|
1378
|
+
label: '最小分数'
|
|
1379
|
+
},
|
|
1380
|
+
innerOptions: {}
|
|
1381
|
+
}, {
|
|
1382
|
+
type: 'InputNumber',
|
|
1383
|
+
outerOptions: {
|
|
1384
|
+
name: 'endTotalScore',
|
|
1385
|
+
label: '最大分数'
|
|
1386
|
+
},
|
|
1387
|
+
innerOptions: {}
|
|
1388
|
+
}],
|
|
1389
|
+
layoutType: 6
|
|
1390
|
+
}, {
|
|
1391
|
+
itemsInRow: [{
|
|
1392
|
+
type: 'Custom',
|
|
1393
|
+
layoutType: 24,
|
|
1394
|
+
innerOptions: {
|
|
1395
|
+
CustomedComponent: L,
|
|
1396
|
+
questions: data.questionList
|
|
1397
|
+
},
|
|
1398
|
+
outerOptions: {
|
|
1399
|
+
name: 'questionOptionList',
|
|
1400
|
+
label: '题目'
|
|
1401
|
+
}
|
|
1402
|
+
}]
|
|
1403
|
+
}, {
|
|
1404
|
+
itemsInRow: [{
|
|
1405
|
+
customNode: /*#__PURE__*/React__default.createElement(_Button, {
|
|
1406
|
+
type: "primary",
|
|
1407
|
+
block: true,
|
|
1408
|
+
style: {
|
|
1409
|
+
marginLeft: 0
|
|
1410
|
+
},
|
|
1411
|
+
onClick: function onClick(e) {
|
|
1412
|
+
SMchc_Questionnaire.fk_getResult(getReqData()).then(setList);
|
|
1413
|
+
}
|
|
1414
|
+
}, "\u641C\u7D22")
|
|
1415
|
+
}],
|
|
1416
|
+
layoutType: 24
|
|
1417
|
+
}]
|
|
1418
|
+
}]
|
|
1419
|
+
}), /*#__PURE__*/React__default.createElement(Table, {
|
|
1420
|
+
sticky: true,
|
|
1421
|
+
scroll: {
|
|
1422
|
+
x: 1500
|
|
1423
|
+
},
|
|
1424
|
+
bordered: true,
|
|
1425
|
+
dataSource: list,
|
|
1426
|
+
style: {
|
|
1427
|
+
marginTop: 24
|
|
1428
|
+
},
|
|
1429
|
+
columns: __spreadArray(__spreadArray([{
|
|
1430
|
+
dataIndex: 'outpatientNo',
|
|
1431
|
+
title: '就诊卡号',
|
|
1432
|
+
ellipsis: true,
|
|
1433
|
+
fixed: true,
|
|
1434
|
+
width: 160
|
|
1435
|
+
}, {
|
|
1436
|
+
title: '姓名',
|
|
1437
|
+
width: 160,
|
|
1438
|
+
render: function render(a, b) {
|
|
1439
|
+
return b.name;
|
|
1440
|
+
}
|
|
1441
|
+
}, {
|
|
1442
|
+
title: '年龄',
|
|
1443
|
+
width: 160,
|
|
1444
|
+
render: function render(a, b) {
|
|
1445
|
+
return b.age;
|
|
1446
|
+
}
|
|
1447
|
+
}, {
|
|
1448
|
+
title: '孕周',
|
|
1449
|
+
width: 160,
|
|
1450
|
+
render: function render(a, b) {
|
|
1451
|
+
return b.expandField1;
|
|
1452
|
+
}
|
|
1453
|
+
}, {
|
|
1454
|
+
title: '预产期',
|
|
1455
|
+
width: 160,
|
|
1456
|
+
render: function render(a, b) {
|
|
1457
|
+
return b.expandField2;
|
|
1458
|
+
}
|
|
1459
|
+
}, {
|
|
1460
|
+
title: '手机号',
|
|
1461
|
+
width: 160,
|
|
1462
|
+
render: function render(a, b) {
|
|
1463
|
+
return b.telephone;
|
|
1464
|
+
}
|
|
1465
|
+
}, {
|
|
1466
|
+
title: '居住地址',
|
|
1467
|
+
width: 160,
|
|
1468
|
+
render: function render(a, b) {
|
|
1469
|
+
return b.residenceAddress;
|
|
1470
|
+
}
|
|
1471
|
+
}, {
|
|
1472
|
+
title: '提交日期',
|
|
1473
|
+
width: 160,
|
|
1474
|
+
render: function render(a, b) {
|
|
1475
|
+
return b.fillDate;
|
|
1476
|
+
}
|
|
1477
|
+
}], ((_b = data.groupVOList) === null || _b === void 0 ? void 0 : _b.map(function (g) {
|
|
1478
|
+
var _a;
|
|
1479
|
+
var questionList = (_a = data.questionList) === null || _a === void 0 ? void 0 : _a.filter(function (q) {
|
|
1480
|
+
var _a;
|
|
1481
|
+
return (_a = g.questionIndexList) === null || _a === void 0 ? void 0 : _a.includes(q.questionIndex);
|
|
1482
|
+
});
|
|
1483
|
+
return {
|
|
1484
|
+
title: g.groupTitle,
|
|
1485
|
+
children: questionListMapColumn(questionList)
|
|
1486
|
+
};
|
|
1487
|
+
})) || [], true), [{
|
|
1488
|
+
title: '总分',
|
|
1489
|
+
width: 160,
|
|
1490
|
+
render: function render(a, b) {
|
|
1491
|
+
return b.totalScore;
|
|
1492
|
+
}
|
|
1493
|
+
}], false)
|
|
1494
|
+
}));
|
|
1495
|
+
};
|
|
1496
|
+
function questionListMapColumn(list) {
|
|
1497
|
+
if (list === void 0) {
|
|
1498
|
+
list = [];
|
|
1499
|
+
}
|
|
1500
|
+
return list.map(function (q) {
|
|
1501
|
+
return {
|
|
1502
|
+
title: q.questionTitle,
|
|
1503
|
+
align: 'center',
|
|
1504
|
+
width: 140,
|
|
1505
|
+
ellipsis: true,
|
|
1506
|
+
render: function render(a, b) {
|
|
1507
|
+
var _a, _b, _c, _d;
|
|
1508
|
+
var target = b.writeDetailList.find(function (_) {
|
|
1509
|
+
return _.questionId === q.id;
|
|
1510
|
+
});
|
|
1511
|
+
var optionIdxArr = ((_b = (_a = target === null || target === void 0 ? void 0 : target.optionIndex) === null || _a === void 0 ? void 0 : _a.split(',')) === null || _b === void 0 ? void 0 : _b.filter(function (_) {
|
|
1512
|
+
return !!_;
|
|
1513
|
+
})) || [];
|
|
1514
|
+
var displayStr = (_c = q.questionOptionList) === null || _c === void 0 ? void 0 : _c.filter(function (_) {
|
|
1515
|
+
var _a;
|
|
1516
|
+
return optionIdxArr.includes((_a = _.optionIndex) === null || _a === void 0 ? void 0 : _a.toString());
|
|
1517
|
+
});
|
|
1518
|
+
return /*#__PURE__*/React__default.createElement("div", null, ((_d = displayStr === null || displayStr === void 0 ? void 0 : displayStr.map(function (_) {
|
|
1519
|
+
return _.optionTitle;
|
|
1520
|
+
})) === null || _d === void 0 ? void 0 : _d.join('、')) || (target === null || target === void 0 ? void 0 : target.questionResult));
|
|
1521
|
+
}
|
|
1522
|
+
};
|
|
1523
|
+
}) || [];
|
|
1524
|
+
}
|
|
1525
|
+
var css_248z = ".index-module_questionnaire-steps__o68A9 {\n background-color: white;\n height: 70px;\n display: flex;\n align-items: center;\n padding: 0 15% !important;\n margin-bottom: 8px;\n}\n.index-module_questionnaire-steps-content__rcPcJ {\n padding: 16px;\n background-color: white;\n}\n";
|
|
1526
|
+
var styles = {
|
|
1527
|
+
"questionnaire-steps": "index-module_questionnaire-steps__o68A9",
|
|
1528
|
+
"questionnaire-steps-content": "index-module_questionnaire-steps-content__rcPcJ"
|
|
1529
|
+
};
|
|
1530
|
+
styleInject(css_248z);
|
|
1531
|
+
var Questionnaire = function Questionnaire(props) {
|
|
1532
|
+
var onEditorUpload = props.onEditorUpload;
|
|
1533
|
+
var _a = useState(0),
|
|
1534
|
+
current = _a[0],
|
|
1535
|
+
setCurrent = _a[1];
|
|
1536
|
+
var _b = useState(),
|
|
1537
|
+
data = _b[0],
|
|
1538
|
+
setData = _b[1];
|
|
1539
|
+
var _c = useState([]),
|
|
1540
|
+
templateList = _c[0],
|
|
1541
|
+
setTemplateList = _c[1];
|
|
1542
|
+
function fetchTemplateList() {
|
|
1543
|
+
SMchc_Questionnaire.fk_list().then(setTemplateList);
|
|
1544
|
+
}
|
|
1545
|
+
function onDeleteTemplate(data) {
|
|
1546
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1547
|
+
return __generator(this, function (_a) {
|
|
1548
|
+
switch (_a.label) {
|
|
1549
|
+
case 0:
|
|
1550
|
+
return [4, SMchc_Questionnaire.del(data.id)];
|
|
1551
|
+
case 1:
|
|
1552
|
+
_a.sent();
|
|
1553
|
+
_message.success('删除问卷成功');
|
|
1554
|
+
fetchTemplateList();
|
|
1555
|
+
return [2];
|
|
1556
|
+
}
|
|
1557
|
+
});
|
|
1558
|
+
});
|
|
1559
|
+
}
|
|
1560
|
+
useEffect(function () {
|
|
1561
|
+
current || fetchTemplateList();
|
|
1562
|
+
}, [current]);
|
|
1563
|
+
var handleChangeStep = function handleChangeStep(target) {
|
|
1564
|
+
setCurrent(target);
|
|
1565
|
+
};
|
|
1566
|
+
var handlePreview = function handlePreview(data) {
|
|
1567
|
+
setData(data);
|
|
1568
|
+
handleChangeStep(2);
|
|
1569
|
+
};
|
|
1570
|
+
var handleInitQuestions = function handleInitQuestions(data_1) {
|
|
1571
|
+
var args_1 = [];
|
|
1572
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
1573
|
+
args_1[_i - 1] = arguments[_i];
|
|
1574
|
+
}
|
|
1575
|
+
return __awaiter(void 0, __spreadArray([data_1], args_1, true), void 0, function (data, isCopy, step) {
|
|
1576
|
+
var _data;
|
|
1577
|
+
var _a;
|
|
1578
|
+
if (isCopy === void 0) {
|
|
1579
|
+
isCopy = false;
|
|
1580
|
+
}
|
|
1581
|
+
if (step === void 0) {
|
|
1582
|
+
step = 1;
|
|
1583
|
+
}
|
|
1584
|
+
return __generator(this, function (_b) {
|
|
1585
|
+
switch (_b.label) {
|
|
1586
|
+
case 0:
|
|
1587
|
+
if (!(typeof data.id === 'number')) return [3, 2];
|
|
1588
|
+
return [4, SMchc_Questionnaire.fk_byId(data.id)];
|
|
1589
|
+
case 1:
|
|
1590
|
+
_data = _b.sent();
|
|
1591
|
+
if (isCopy && _data) {
|
|
1592
|
+
delete _data.id;
|
|
1593
|
+
_data.questionList = (_a = _data.questionList) === null || _a === void 0 ? void 0 : _a.map(function (q) {
|
|
1594
|
+
var _a;
|
|
1595
|
+
delete q.id;
|
|
1596
|
+
q.questionOptionList = (_a = q.questionOptionList) === null || _a === void 0 ? void 0 : _a.map(function (o) {
|
|
1597
|
+
delete o.id;
|
|
1598
|
+
return o;
|
|
1599
|
+
});
|
|
1600
|
+
return q;
|
|
1601
|
+
});
|
|
1602
|
+
}
|
|
1603
|
+
return [3, 3];
|
|
1604
|
+
case 2:
|
|
1605
|
+
_data = data;
|
|
1606
|
+
_b.label = 3;
|
|
1607
|
+
case 3:
|
|
1608
|
+
console.log('qqq', {
|
|
1609
|
+
_data: _data,
|
|
1610
|
+
data: data,
|
|
1611
|
+
isCopy: isCopy
|
|
1612
|
+
});
|
|
1613
|
+
setData(_data);
|
|
1614
|
+
handleChangeStep(step);
|
|
1615
|
+
return [2];
|
|
1616
|
+
}
|
|
1617
|
+
});
|
|
1618
|
+
});
|
|
1619
|
+
};
|
|
1620
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1621
|
+
className: styles["questionnaire"]
|
|
1622
|
+
}, /*#__PURE__*/React__default.createElement(_Steps, {
|
|
1623
|
+
current: current,
|
|
1624
|
+
className: styles["questionnaire-steps"]
|
|
1625
|
+
}, /*#__PURE__*/React__default.createElement(_Steps.Step, {
|
|
1626
|
+
title: "\u9009\u62E9\u95EE\u53771"
|
|
1627
|
+
}), /*#__PURE__*/React__default.createElement(_Steps.Step, {
|
|
1628
|
+
title: "\u7F16\u8F91\u95EE\u5377"
|
|
1629
|
+
}), /*#__PURE__*/React__default.createElement(_Steps.Step, {
|
|
1630
|
+
title: "\u9884\u89C8\u95EE\u5377"
|
|
1631
|
+
}), /*#__PURE__*/React__default.createElement(_Steps.Step, {
|
|
1632
|
+
title: "\u7EDF\u8BA1\u95EE\u5377"
|
|
1633
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
1634
|
+
className: styles["questionnaire-steps-content"]
|
|
1635
|
+
}, current === 0 && /*#__PURE__*/React__default.createElement(Step1, {
|
|
1636
|
+
handleInitQuestions: handleInitQuestions,
|
|
1637
|
+
templateList: templateList,
|
|
1638
|
+
onDeleteTemplate: onDeleteTemplate
|
|
1639
|
+
}), current === 1 && data && /*#__PURE__*/React__default.createElement(Step2, {
|
|
1640
|
+
onChangeStep: handleChangeStep,
|
|
1641
|
+
onPreview: handlePreview,
|
|
1642
|
+
data: data,
|
|
1643
|
+
onEditorUpload: onEditorUpload
|
|
1644
|
+
}), current === 2 && data && /*#__PURE__*/React__default.createElement(Step3, {
|
|
1645
|
+
onChangeStep: handleChangeStep,
|
|
1646
|
+
data: data
|
|
1647
|
+
}), current === 3 && data && /*#__PURE__*/React__default.createElement(Step4, {
|
|
1648
|
+
onChangeStep: handleChangeStep,
|
|
1649
|
+
data: data
|
|
1650
|
+
})));
|
|
1651
|
+
};
|
|
1652
|
+
function questionnaire2() {
|
|
1653
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1654
|
+
style: {
|
|
1655
|
+
overflow: 'auto',
|
|
1656
|
+
height: '100%'
|
|
1657
|
+
}
|
|
1658
|
+
}, /*#__PURE__*/React__default.createElement(Questionnaire, null));
|
|
1659
|
+
}
|
|
1660
|
+
export { questionnaire2 as default };
|
|
1661
|
+
//# sourceMappingURL=.root32.js.map
|