This commit is contained in:
Swift
2024-02-25 13:16:28 +03:30
parent 0867b7ab89
commit f5592f3d3b
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -55,7 +55,7 @@
</div> </div>
<hr class="mt-3" /> <hr class="mt-3" />
<div v-if="hasPermission('apply')"> <div v-if="hasPermission('apply')">
<div class="d-flex mt-3" style="align-items: center"> <div v-if="complaint?.user" class="d-flex mt-3" style="align-items: center">
<h5 style="text-wrap: nowrap; margin-left: 10px;">نام و نام خانوادگی: </h5> <h5 style="text-wrap: nowrap; margin-left: 10px;">نام و نام خانوادگی: </h5>
<p>{{ complaint?.user?.first_name + " " + complaint?.user?.last_name }}</p> <p>{{ complaint?.user?.first_name + " " + complaint?.user?.last_name }}</p>
</div> </div>
@@ -108,6 +108,7 @@ export default {
this.complete = res.data.complete this.complete = res.data.complete
this.desc = res.data.desc this.desc = res.data.desc
}) })
}, },
methods: { methods: {
+1 -1
View File
@@ -97,7 +97,7 @@ export default {
this.$axios.get('/api/admin/complaint').then(res=>{ this.$axios.get('/api/admin/complaint').then(res=>{
this.complaint = res.data this.complaint = res.data
console.log(res.data)
}).catch(err=>{ }).catch(err=>{
console.log(err) console.log(err)