Skip to content

Commit 4b6b9e4

Browse files
committed
ダウンロードUIを調整
1 parent 89bad46 commit 4b6b9e4

File tree

1 file changed

+22
-8
lines changed

1 file changed

+22
-8
lines changed

pages/center/_centerId/patient/_patientId.vue

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,15 @@
5656
</div>
5757
</div>
5858
<div>
59-
<span class="download" @click="showModal = true">
60-
患者データをダウンロード
61-
</span>
59+
<ActionButton
60+
theme="outline"
61+
size="S"
62+
:is-inline="true"
63+
@click="showModal = true"
64+
>
65+
<DownloadIcon class="downloadIcon" />
66+
ダウンロード
67+
</ActionButton>
6268
</div>
6369
</div>
6470
<div class="patientGraphLayout">
@@ -67,11 +73,15 @@
6773
<SymptomsHistory class="symptomsHistory" :statuses="patient.statuses" />
6874
<ModalBase :show="showModal" @close="closeModal">
6975
<h2>患者データをダウンロード</h2>
76+
<p>
77+
患者の記録データをCSV形式に変換しファイルをzip形式に圧縮します。ダウンロードファイルのパスワード設定をしてください。
78+
</p>
7079
<div class="inputContainer">
7180
<InputField
7281
v-model="zipPassword"
7382
type="password"
74-
label="パスワードを設定してください"
83+
label="パスワード"
84+
placeholder="8文字以上"
7585
:rule-length="8"
7686
required
7787
class="passwordField"
@@ -80,6 +90,7 @@
8090
v-model="zipPasswordReEnter"
8191
type="password"
8292
label="パスワードの再入力"
93+
placeholder="8文字以上"
8394
:rule-length="8"
8495
required
8596
class="passwordField"
@@ -91,7 +102,7 @@
91102
:is-submittable="isDownloadable"
92103
@click="downloadZip"
93104
>
94-
ZIPをダウンロード
105+
ダウンロードを開始する
95106
</ActionButton>
96107
</ModalBase>
97108
</div>
@@ -112,6 +123,7 @@ import ModalBase from '@/components/ModalBase.vue'
112123
import EditIcon from '@/static/icon-edit.svg'
113124
import SaveIcon from '@/static/icon-save.svg'
114125
import CloseIcon from '@/static/icon-close.svg'
126+
import DownloadIcon from '@/static/icon-download.svg'
115127
import { patientsStore } from '@/store'
116128
117129
@Component({
@@ -124,6 +136,7 @@ import { patientsStore } from '@/store'
124136
EditIcon,
125137
SaveIcon,
126138
CloseIcon,
139+
DownloadIcon,
127140
},
128141
})
129142
export default class PatientId extends Vue {
@@ -320,13 +333,14 @@ export default class PatientId extends Vue {
320333
.symptomsHistory {
321334
padding: 32px;
322335
}
323-
.download {
324-
cursor: pointer;
325-
}
326336
.inputContainer {
327337
margin: 30px 0;
328338
}
329339
.passwordField {
330340
margin-bottom: 30px;
331341
}
342+
.downloadIcon {
343+
fill: none !important;
344+
vertical-align: text-bottom;
345+
}
332346
</style>

0 commit comments

Comments
 (0)