Fix
This commit is contained in:
@@ -13,35 +13,40 @@
|
||||
</CCardHeader>
|
||||
|
||||
<CCardBody>
|
||||
<el-table :data="filteredByType" style="width: 100%">
|
||||
<el-table :data="complaint" style="width: 100%">
|
||||
<el-table-column type="index" label="#"> </el-table-column>
|
||||
|
||||
<el-table-column prop="caption" label="کد ملی" width="">
|
||||
<el-table-column prop="fullName" label="نام" width="">
|
||||
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column label="کد ملی" width="">
|
||||
<template slot-scope="scope">
|
||||
<span class="singleLineTxt" :title="scope.row.national"> {{ scope.row.national }} </span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column prop="caption" label="متن" width="">
|
||||
<el-table-column label="متن" width="">
|
||||
<template slot-scope="scope">
|
||||
<span class="singleLineTxt" :title="scope.row.caption"> {{ scope.row.caption }} </span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column prop="caption" label="تاریخ ایجاد" width="">
|
||||
<el-table-column label="تاریخ ایجاد" width="">
|
||||
<template slot-scope="scope">
|
||||
<span> {{ $jDate(scope.row.created_at) }} </span>
|
||||
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
|
||||
<el-table-column prop="caption" label="شماره تماس" width="">
|
||||
<el-table-column label="شماره تماس" width="">
|
||||
<template slot-scope="scope">
|
||||
<span class="singleLineTxt" :title="scope.row.phoneNumber"> {{ scope.row.phoneNumber }} </span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column prop="caption" label="ایمیل" width="">
|
||||
<el-table-column label="ایمیل" width="">
|
||||
<template slot-scope="scope">
|
||||
<span class="singleLineTxt" :title="scope.row.email"> {{ scope.row.email }} </span>
|
||||
</template>
|
||||
@@ -53,7 +58,7 @@
|
||||
:key="scope.row._id + type"
|
||||
color="success"
|
||||
variant="outline"
|
||||
:to="{ name: 'admin-complaint-details', params: { item: scope.row._id } }"
|
||||
:to="{ name: 'admin-complaint-item', params: { item: scope.row._id } }"
|
||||
>
|
||||
<i class="fal fa-eye"></i>
|
||||
</CButton>
|
||||
@@ -70,21 +75,38 @@ export default {
|
||||
name: 'AdminComplaintsList',
|
||||
layout: 'admin',
|
||||
async asyncData({ $axios, error }) {
|
||||
|
||||
|
||||
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
||||
complaint:null
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
computed: {
|
||||
|
||||
},
|
||||
mounted(){
|
||||
|
||||
this.$axios.get('/api/admin/complaint').then(res=>{
|
||||
this.complaint = res.data
|
||||
console.log(res.data)
|
||||
|
||||
}).catch(err=>{
|
||||
console.log(err)
|
||||
})
|
||||
|
||||
|
||||
},
|
||||
methods: {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user