Commit a8fd56d1 authored by zhengke's avatar zhengke

修改

parent 91c18bad
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
<div class="drawerTop"> <div class="drawerTop">
<div style="display:flex;align-items:center;"> <div style="display:flex;align-items:center;">
<q-avatar size="md" style="background:#d4dfff;color:#2961FE;font-weight:bold;"> <q-avatar size="md" style="background:#d4dfff;color:#2961FE;font-weight:bold;">
{{classObj.ClassName.substring(0,1)}} <template v-if="classObj.ClassName">{{classObj.ClassName.substring(0,1)}}</template>
</q-avatar> </q-avatar>
<div class="className"> <div class="className">
<div class="classFirst">{{classObj.ClassName}}</div> <div class="classFirst">{{classObj.ClassName}}</div>
...@@ -140,9 +140,16 @@ ...@@ -140,9 +140,16 @@
}, },
created() { created() {
},
watch: {
setingObj: {
handler(newValue) {
this.queryClassInfo();
},
immediate: true
}
}, },
mounted() { mounted() {
console.log("res", this.setingObj)
this.queryClassInfo(); this.queryClassInfo();
}, },
methods: { methods: {
...@@ -150,11 +157,9 @@ ...@@ -150,11 +157,9 @@
getClassInfo({ getClassInfo({
ClassId: this.setingObj.ClassId ClassId: this.setingObj.ClassId
}).then(res => { }).then(res => {
console.log("res", res);
if (res.Code == 1) { if (res.Code == 1) {
this.classObj=res.Data; this.classObj=res.Data;
} }
}) })
}, },
closeShenheForm() { closeShenheForm() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment