Commit 22935f31d6216283a2b8db9f5f829076a7734ea0
1 parent
048b90a9
v1.9 admin 投訴工單詳情 英文bug
Showing
5 changed files
with
30 additions
and
71 deletions
src/components/complaint/aComplaintDetailAppraise.vue
| 1 | 1 | <template> |
| 2 | 2 | <div class="appraise-container"> |
| 3 | 3 | <el-table :data="appraises" border style="width: 100%"> |
| 4 | - <el-table-column prop="createUserName" :label="$t('complaintDetailAppraise.user')" align="center"></el-table-column> | |
| 4 | + <el-table-column prop="createUserName" :label="$t('complaintDetailAppraise.userName')" align="center"></el-table-column> | |
| 5 | 5 | <el-table-column prop="context" :label="$t('complaintDetailAppraise.content')" align="center"></el-table-column> |
| 6 | 6 | <el-table-column prop="score" :label="$t('complaintDetailAppraise.score')" align="center"></el-table-column> |
| 7 | 7 | <el-table-column prop="state" :label="$t('complaintDetailAppraise.status')" align="center"> |
| ... | ... | @@ -10,7 +10,7 @@ |
| 10 | 10 | </template> |
| 11 | 11 | </el-table-column> |
| 12 | 12 | <el-table-column prop="createTime" :label="$t('complaintDetailAppraise.time')" align="center"></el-table-column> |
| 13 | - <el-table-column prop="replyUserName" :label="$t('complaintDetailAppraise.replier')" align="center"></el-table-column> | |
| 13 | + <el-table-column prop="replyUserName" :label="$t('complaintDetailAppraise.replyUser')" align="center"></el-table-column> | |
| 14 | 14 | <el-table-column prop="replyContext" :label="$t('complaintDetailAppraise.replyContent')" align="center"></el-table-column> |
| 15 | 15 | </el-table> |
| 16 | 16 | </div> | ... | ... |
src/components/complaint/aComplaintDetailType.vue
| 1 | 1 | <template> |
| 2 | 2 | <div class="type-container"> |
| 3 | 3 | <el-table :data="complaintTypes" border style="width: 100%"> |
| 4 | - <el-table-column prop="typeName" :label="$t('complaintDetailType.name')" align="center"></el-table-column> | |
| 4 | + <el-table-column prop="typeName" :label="$t('complaintDetailType.typeName')" align="center"></el-table-column> | |
| 5 | 5 | <el-table-column prop="notifyWay" :label="$t('complaintDetailType.notifyWay')" align="center"> |
| 6 | 6 | <template slot-scope="scope"> |
| 7 | 7 | {{ scope.row.notifyWay === 'SMS' ? $t('complaintDetailType.sms') : $t('complaintDetailType.wechat') }} |
| 8 | 8 | </template> |
| 9 | 9 | </el-table-column> |
| 10 | - <el-table-column prop="appraiseReply" :label="$t('complaintDetailType.replyType')" align="center"> | |
| 10 | + <el-table-column prop="appraiseReply" :label="$t('complaintDetailType.appraiseReply')" align="center"> | |
| 11 | 11 | <template slot-scope="scope"> |
| 12 | 12 | {{ scope.row.appraiseReply === 'Y' ? $t('complaintDetailType.autoReply') : $t('complaintDetailType.manualReply') }} |
| 13 | 13 | </template> | ... | ... |
src/components/oa/ComplaintDetailAppraise.vue
| 1 | 1 | <template> |
| 2 | 2 | <div class="complaint-detail-appraise"> |
| 3 | - <el-table | |
| 4 | - :data="appraises" | |
| 5 | - border | |
| 6 | - style="width: 100%" | |
| 7 | - v-loading="loading" | |
| 8 | - > | |
| 9 | - <el-table-column | |
| 10 | - prop="createUserName" | |
| 11 | - :label="$t('complaintDetailAppraise.userName')" | |
| 12 | - align="center" | |
| 13 | - /> | |
| 14 | - <el-table-column | |
| 15 | - prop="context" | |
| 16 | - :label="$t('complaintDetailAppraise.content')" | |
| 17 | - align="center" | |
| 18 | - /> | |
| 19 | - <el-table-column | |
| 20 | - prop="score" | |
| 21 | - :label="$t('complaintDetailAppraise.score')" | |
| 22 | - align="center" | |
| 23 | - /> | |
| 24 | - <el-table-column | |
| 25 | - prop="state" | |
| 26 | - :label="$t('complaintDetailAppraise.status')" | |
| 27 | - align="center" | |
| 28 | - > | |
| 3 | + <el-table :data="appraises" border style="width: 100%" v-loading="loading"> | |
| 4 | + <el-table-column prop="createUserName" :label="$t('complaintDetailAppraise.userName')" align="center" /> | |
| 5 | + <el-table-column prop="context" :label="$t('complaintDetailAppraise.content')" align="center" /> | |
| 6 | + <el-table-column prop="score" :label="$t('complaintDetailAppraise.score')" align="center" /> | |
| 7 | + <el-table-column prop="state" :label="$t('complaintDetailAppraise.status')" align="center"> | |
| 29 | 8 | <template slot-scope="scope"> |
| 30 | - <span>{{ scope.row.state === 'W' ? $t('complaintDetailAppraise.waitReply') : $t('complaintDetailAppraise.replied') }}</span> | |
| 9 | + <span>{{ scope.row.state === 'W' ? $t('complaintDetailAppraise.waitReply') : | |
| 10 | + $t('complaintDetailAppraise.replied') }}</span> | |
| 31 | 11 | </template> |
| 32 | 12 | </el-table-column> |
| 33 | - <el-table-column | |
| 34 | - prop="createTime" | |
| 35 | - :label="$t('complaintDetailAppraise.time')" | |
| 36 | - align="center" | |
| 37 | - /> | |
| 38 | - <el-table-column | |
| 39 | - prop="replyUserName" | |
| 40 | - :label="$t('complaintDetailAppraise.replyUser')" | |
| 41 | - align="center" | |
| 42 | - /> | |
| 43 | - <el-table-column | |
| 44 | - prop="replyContext" | |
| 45 | - :label="$t('complaintDetailAppraise.replyContent')" | |
| 46 | - align="center" | |
| 47 | - /> | |
| 48 | - <el-table-column | |
| 49 | - :label="$t('common.operation')" | |
| 50 | - align="center" | |
| 51 | - > | |
| 13 | + <el-table-column prop="createTime" :label="$t('complaintDetailAppraise.time')" align="center" /> | |
| 14 | + <el-table-column prop="replyUserName" :label="$t('complaintDetailAppraise.replyUser')" align="center" /> | |
| 15 | + <el-table-column prop="replyContext" :label="$t('complaintDetailAppraise.replyContent')" align="center" /> | |
| 16 | + <el-table-column :label="$t('common.operation')" align="center"> | |
| 52 | 17 | <template slot-scope="scope"> |
| 53 | - <el-button | |
| 54 | - v-if="scope.row.state === 'W'" | |
| 55 | - type="text" | |
| 56 | - size="small" | |
| 57 | - @click="openReplyModal(scope.row)" | |
| 58 | - > | |
| 18 | + <el-button v-if="scope.row.state === 'W'" type="text" size="small" @click="openReplyModal(scope.row)"> | |
| 59 | 19 | {{ $t('complaintDetailAppraise.reply') }} |
| 60 | 20 | </el-button> |
| 61 | 21 | </template> |
| 62 | 22 | </el-table-column> |
| 63 | 23 | </el-table> |
| 64 | 24 | |
| 65 | - <reply-complaint-appraise | |
| 66 | - ref="replyComplaintAppraise" | |
| 67 | - @success="handleSuccess" | |
| 68 | - /> | |
| 25 | + <reply-complaint-appraise ref="replyComplaintAppraise" @success="handleSuccess" /> | |
| 69 | 26 | </div> |
| 70 | 27 | </template> |
| 71 | 28 | ... | ... |
src/views/complaint/adminComplaintDetailList.vue
| 1 | 1 | <template> |
| 2 | - <div class="complaint-detail-container"> | |
| 2 | + <div class="complaint-detail-container padding"> | |
| 3 | 3 | <el-card class="box-card"> |
| 4 | 4 | <div slot="header" class=" flex justify-between"> |
| 5 | 5 | <span>{{ $t('complaintDetail.title') }}</span> |
| ... | ... | @@ -11,25 +11,25 @@ |
| 11 | 11 | <el-row :gutter="20" class="info-section text-left"> |
| 12 | 12 | <el-col :span="6"> |
| 13 | 13 | <div class="info-item"> |
| 14 | - <label>{{ $t('complaintDetail.orderId') }}:</label> | |
| 14 | + <label>{{ $t('adminComplaint.table.complaintId') }}:</label> | |
| 15 | 15 | <span>{{ complaintDetail.complaintId }}</span> |
| 16 | 16 | </div> |
| 17 | 17 | </el-col> |
| 18 | 18 | <el-col :span="6"> |
| 19 | 19 | <div class="info-item"> |
| 20 | - <label>{{ $t('complaintDetail.type') }}:</label> | |
| 20 | + <label>{{ $t('adminComplaint.table.type') }}:</label> | |
| 21 | 21 | <span>{{ complaintDetail.typeName }}</span> |
| 22 | 22 | </div> |
| 23 | 23 | </el-col> |
| 24 | 24 | <el-col :span="6"> |
| 25 | 25 | <div class="info-item"> |
| 26 | - <label>{{ $t('complaintDetail.room') }}:</label> | |
| 26 | + <label>{{ $t('adminComplaint.table.room') }}:</label> | |
| 27 | 27 | <span>{{ complaintDetail.roomName }}</span> |
| 28 | 28 | </div> |
| 29 | 29 | </el-col> |
| 30 | 30 | <el-col :span="6"> |
| 31 | 31 | <div class="info-item"> |
| 32 | - <label>{{ $t('complaintDetail.contact') }}:</label> | |
| 32 | + <label>{{ $t('adminComplaint.table.contact') }}:</label> | |
| 33 | 33 | <span>{{ complaintDetail.complaintName }}</span> |
| 34 | 34 | </div> |
| 35 | 35 | </el-col> |
| ... | ... | @@ -39,19 +39,19 @@ |
| 39 | 39 | <el-row :gutter="20" class="info-section text-left"> |
| 40 | 40 | <el-col :span="6"> |
| 41 | 41 | <div class="info-item"> |
| 42 | - <label>{{ $t('complaintDetail.phone') }}:</label> | |
| 42 | + <label>{{ $t('adminComplaint.table.contactTel') }}:</label> | |
| 43 | 43 | <span>{{ complaintDetail.tel }}</span> |
| 44 | 44 | </div> |
| 45 | 45 | </el-col> |
| 46 | 46 | <el-col :span="6"> |
| 47 | 47 | <div class="info-item"> |
| 48 | - <label>{{ $t('complaintDetail.status') }}:</label> | |
| 48 | + <label>{{ $t('adminComplaint.table.status') }}:</label> | |
| 49 | 49 | <span>{{ complaintDetail.stateName }}</span> |
| 50 | 50 | </div> |
| 51 | 51 | </el-col> |
| 52 | 52 | <el-col :span="12"> |
| 53 | 53 | <div class="info-item"> |
| 54 | - <label>{{ $t('complaintDetail.createTime') }}:</label> | |
| 54 | + <label>{{ $t('adminComplaint.table.createTime') }}:</label> | |
| 55 | 55 | <span>{{ complaintDetail.createTime }}</span> |
| 56 | 56 | </div> |
| 57 | 57 | </el-col> |
| ... | ... | @@ -60,7 +60,7 @@ |
| 60 | 60 | <el-row :gutter="20" class="info-section text-left"> |
| 61 | 61 | <el-col :span="24"> |
| 62 | 62 | <div class="info-item"> |
| 63 | - <label>{{ $t('complaintDetail.content') }}:</label> | |
| 63 | + <label>{{ $t('adminComplaint.table.content') }}:</label> | |
| 64 | 64 | <span>{{ complaintDetail.context }}</span> |
| 65 | 65 | </div> |
| 66 | 66 | </el-col> | ... | ... |
src/views/complaint/adminComplaintLang.js
| ... | ... | @@ -27,7 +27,8 @@ export const messages = { |
| 27 | 27 | contactTel: 'Contact Tel', |
| 28 | 28 | status: 'Status', |
| 29 | 29 | handler: 'Handler', |
| 30 | - createTime: 'Create Time' | |
| 30 | + createTime: 'Create Time', | |
| 31 | + content: 'Content' | |
| 31 | 32 | }, |
| 32 | 33 | fetchError: 'Failed to fetch complaint list' |
| 33 | 34 | } |
| ... | ... | @@ -60,7 +61,8 @@ export const messages = { |
| 60 | 61 | contactTel: '联系电话', |
| 61 | 62 | status: '状态', |
| 62 | 63 | handler: '处理人', |
| 63 | - createTime: '创建时间' | |
| 64 | + createTime: '创建时间', | |
| 65 | + content: '内容' | |
| 64 | 66 | }, |
| 65 | 67 | fetchError: '获取投诉列表失败' |
| 66 | 68 | } | ... | ... |