Sfoglia il codice sorgente

fix(complaint): 修复新增回复按钮在关闭或取消状态下显示问题

yz 3 settimane fa
parent
commit
8ad8a436c3
2 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 3 0
      src/views/complaint/complaintMixin.js
  2. 1 0
      src/views/complaint/index.vue

+ 3 - 0
src/views/complaint/complaintMixin.js

@@ -114,6 +114,8 @@ export default {
       currentComplaintNo: '',
       /** @type {number} */
       currentComplaintReplyStatus: 0,
+      /** @type {number} */
+      currentComplaintStatus: 0,
       // 新增回复相关数据
       addReplyVisible: false,
       replyForm: {
@@ -494,6 +496,7 @@ export default {
       this.currentComplaintId = row.id
       this.currentComplaintNo = row.complaintNo
       this.currentComplaintReplyStatus = row.replyStatus
+      this.currentComplaintStatus = row.status
       this.replyListVisible = true
       this.replyPage.current = 1
       await this.loadReplyList()

+ 1 - 0
src/views/complaint/index.vue

@@ -259,6 +259,7 @@
           type="primary"
           size="small"
           icon="el-icon-plus"
+          v-if="currentComplaintStatus !== COMPLAINT_STATUS.CLOSED && currentComplaintStatus !== COMPLAINT_STATUS.CANCELLED"
           @click="handleAddReply"
         >
           新增回复