hayun-vite 0.15.1 → 0.15.3
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/package.json +1 -1
- package/src/Form/Form.js +18 -18
package/package.json
CHANGED
package/src/Form/Form.js
CHANGED
@@ -161,34 +161,32 @@ export default class Form {
|
|
161
161
|
|
162
162
|
// let keys = Object.keys(data)
|
163
163
|
// if (keys.includes("header")) {
|
164
|
-
|
165
|
-
console.log(JSON.stringify(this.data.header) !== JSON.stringify(data.header));
|
166
|
-
|
167
|
-
// console.log(this.data.header, data.header);
|
168
|
-
|
169
|
-
JSON.stringify(this.data.header) !== JSON.stringify(data.header) &&
|
164
|
+
if (JSON.stringify(this.data.header) !== JSON.stringify(data.header) && data.header) {
|
170
165
|
this.header?.update(data.header)
|
171
|
-
|
166
|
+
this.data.header = data.header
|
167
|
+
}
|
172
168
|
// }
|
173
169
|
// if (keys.includes("patient")) {
|
174
|
-
JSON.stringify(this.data.patient) !== JSON.stringify(data.patient) &&
|
170
|
+
if (JSON.stringify(this.data.patient) !== JSON.stringify(data.patient) && data.patient) {
|
175
171
|
this.patient?.update(data.patient)
|
176
|
-
|
172
|
+
this.data.patient = data.patient
|
173
|
+
}
|
177
174
|
// }
|
178
175
|
// if (keys.includes("history")) {
|
179
|
-
JSON.stringify(this.data.history) !== JSON.stringify(data.history) &&
|
176
|
+
if (JSON.stringify(this.data.history) !== JSON.stringify(data.history) && data.history) {
|
180
177
|
this.history?.update(session?.history)
|
181
|
-
|
178
|
+
this.data.history = session.history
|
179
|
+
}
|
182
180
|
// }
|
183
181
|
// if (keys.includes("audiogram")) {
|
184
|
-
if (JSON.stringify(this.data.audiogram) !== JSON.stringify(data.audiogram)) {
|
182
|
+
if (JSON.stringify(this.data.audiogram) !== JSON.stringify(data.audiogram) && data.audiogram) {
|
185
183
|
this.RAudiogram?.update({ data: session.audiogram?.R, side: 'R' })
|
186
184
|
this.LAudiogram?.update({ data: session.audiogram?.L, side: 'L' })
|
187
185
|
}
|
188
186
|
this.data.audiogram = session.audiogram
|
189
187
|
// }
|
190
188
|
// if (keys.includes("speech")) {
|
191
|
-
if (JSON.stringify(this.data.speech) !== JSON.stringify(data.speech)) {
|
189
|
+
if (JSON.stringify(this.data.speech) !== JSON.stringify(data.speech) && data.speech) {
|
192
190
|
this.RSpeech?.update(session.speech?.R)
|
193
191
|
this.LSpeech?.update(session.speech?.L)
|
194
192
|
}
|
@@ -202,21 +200,23 @@ export default class Form {
|
|
202
200
|
this.data.tympanogram = session.tympanogram;
|
203
201
|
// }
|
204
202
|
// if (keys.includes("reflex")) {
|
205
|
-
if (JSON.stringify(this.data.reflex) !== JSON.stringify(data.reflex)) {
|
203
|
+
if (JSON.stringify(this.data.reflex) !== JSON.stringify(data.reflex) && data.reflex) {
|
206
204
|
this.RReflex?.update(session.reflex?.R)
|
207
205
|
this.LReflex?.update(session.reflex?.L)
|
208
206
|
}
|
209
207
|
this.data.reflex = session.reflex;
|
210
208
|
// }
|
211
209
|
// if (keys.includes("report")) {
|
212
|
-
JSON.stringify(this.data.report) !== JSON.stringify(data.report) &&
|
210
|
+
if (JSON.stringify(this.data.report) !== JSON.stringify(data.report) && data.report) {
|
213
211
|
this.report?.update(session.report)
|
214
|
-
|
212
|
+
this.data.report = session.report
|
213
|
+
}
|
215
214
|
// }
|
216
215
|
// if (keys.includes("footer")) {
|
217
|
-
JSON.stringify(this.data.footer) !== JSON.stringify(data.footer) &&
|
216
|
+
if (JSON.stringify(this.data.footer) !== JSON.stringify(data.footer) && data.footer) {
|
218
217
|
this.footer?.update(data?.footer)
|
219
|
-
|
218
|
+
this.data.footer = data.footer
|
219
|
+
}
|
220
220
|
}
|
221
221
|
|
222
222
|
// خطوط نقطه چین مارجین فرم
|