Browse Source

修改量表初始化没有校验当前诊疗id对象是否为空,导致报错无法提交

newMaster
1747191978@qq.com 4 months ago
parent
commit
e595c9b316
  1. 4
      acupuncture-前台/src/layout/components/Sidebar/Logo.vue
  2. 6
      acupuncture-前台/src/views/medicalFile/components/anxiety/HAMD.vue
  3. 6
      acupuncture-前台/src/views/medicalFile/components/anxiety/SAS.vue
  4. 7
      acupuncture-前台/src/views/medicalFile/components/posture/PHQ-9.vue
  5. 7
      acupuncture-前台/src/views/medicalFile/components/posture/PSQI.vue
  6. 6
      acupuncture-前台/src/views/medicalFile/components/posture/epworth.vue

4
acupuncture-前台/src/layout/components/Sidebar/Logo.vue

@ -52,8 +52,8 @@ export default {
justify-content: center;
align-items: center;
img {
width: 32px;
height: 32px;
width: 40px;
height: 40px;
}
&.collapse {

6
acupuncture-前台/src/views/medicalFile/components/anxiety/HAMD.vue

@ -315,11 +315,17 @@ export default {
created() {
this.treatmentId = this.$route.query.treatmentId; // id
let scaleData = localStorage.getItem("scaleData"); //
// scaleData
this.scaleData = scaleData
? JSON.parse(scaleData)
: {
[this.treatmentId]: {},
};
// scaleData[this.treatmentId]
if (!this.scaleData[this.treatmentId]) {
this.scaleData[this.treatmentId] = {};
}
this.form = this.scaleData[this.treatmentId][this.scaleCode] || {}; // form
},
methods: {

6
acupuncture-前台/src/views/medicalFile/components/anxiety/SAS.vue

@ -264,11 +264,17 @@ export default {
created() {
this.treatmentId = this.$route.query.treatmentId; // id
let scaleData = localStorage.getItem("scaleData"); //
// scaleData
this.scaleData = scaleData
? JSON.parse(scaleData)
: {
[this.treatmentId]: {},
};
// scaleData[this.treatmentId]
if (!this.scaleData[this.treatmentId]) {
this.scaleData[this.treatmentId] = {};
}
this.form = this.scaleData[this.treatmentId][this.scaleCode] || {}; // form
},
methods: {

7
acupuncture-前台/src/views/medicalFile/components/posture/PHQ-9.vue

@ -141,14 +141,19 @@ export default {
};
},
created() {
console.log("this.scaleCode", this.scaleCode);
this.treatmentId = this.$route.query.treatmentId; // id
let scaleData = localStorage.getItem("scaleData"); //
// scaleData
this.scaleData = scaleData
? JSON.parse(scaleData)
: {
[this.treatmentId]: {},
};
// scaleData[this.treatmentId]
if (!this.scaleData[this.treatmentId]) {
this.scaleData[this.treatmentId] = {};
}
this.form = this.scaleData[this.treatmentId][this.scaleCode] || {}; // form
},
methods: {

7
acupuncture-前台/src/views/medicalFile/components/posture/PSQI.vue

@ -110,14 +110,19 @@ export default {
};
},
created() {
console.log("this.scaleCode", this.scaleCode);
this.treatmentId = this.$route.query.treatmentId; // id
let scaleData = localStorage.getItem("scaleData"); //
// scaleData
this.scaleData = scaleData
? JSON.parse(scaleData)
: {
[this.treatmentId]: {},
};
// scaleData[this.treatmentId]
if (!this.scaleData[this.treatmentId]) {
this.scaleData[this.treatmentId] = {};
}
this.form = this.scaleData[this.treatmentId][this.scaleCode] || {}; // form
},
methods: {

6
acupuncture-前台/src/views/medicalFile/components/posture/epworth.vue

@ -132,11 +132,17 @@ export default {
created() {
this.treatmentId = this.$route.query.treatmentId; // id
let scaleData = localStorage.getItem("scaleData"); //
// scaleData
this.scaleData = scaleData
? JSON.parse(scaleData)
: {
[this.treatmentId]: {},
};
// scaleData[this.treatmentId]
if (!this.scaleData[this.treatmentId]) {
this.scaleData[this.treatmentId] = {};
}
this.form = this.scaleData[this.treatmentId][this.scaleCode] || {}; // form
},
methods: {

Loading…
Cancel
Save