From 5fecae690ac00238d5c84aa0c05b41a4d5d4d79d Mon Sep 17 00:00:00 2001
From: rain <1679827795@qq.com>
Date: Thu, 22 May 2025 15:31:53 +0800
Subject: [PATCH] 删除所有已完结信息
---
src/views/tickets/ticket.vue | 18 ++++++++----------
1 files changed, 8 insertions(+), 10 deletions(-)
diff --git a/src/views/tickets/ticket.vue b/src/views/tickets/ticket.vue
index e3b0b52..d2a0003 100644
--- a/src/views/tickets/ticket.vue
+++ b/src/views/tickets/ticket.vue
@@ -276,7 +276,7 @@
</el-table>
<!-- 事件处理详情 -->
- <div v-if="[3, 4, 5].includes(currentDetail.status)" class="form-section">
+ <div v-if="[3, 4].includes(currentDetail.status)" class="form-section">
<div class="section-title">
<!-- 处理中状态显示必填星号 -->
<template v-if="currentDetail.status === 3">
@@ -409,10 +409,6 @@
<!-- <el-button v-if="hasProcessedAndOverBtnPermission()" type="primary" :loading="finalizeLoading"
@click="finalizeTicket">完结工单</el-button> -->
<el-button @click="detailVisible = false">取消</el-button>
- </template>
- <template v-else-if="currentDetail.status === 5">
- <!-- 已完结 -->
- <el-button @click="detailVisible = false">关闭</el-button>
</template>
</div>
</div>
@@ -696,7 +692,7 @@
handler: [{ required: true, message: '请选择处理人', trigger: 'change' }],
}, // 新增:派发表单验证规则
stepInfos: [], // 新增:存储步骤信息
- fixedStatuses: ['2', '0', '3', '4', '5'], // 固定的五个状态
+ fixedStatuses: ['2', '0', '3', '4'], // 固定的五个状态
userNameToIdMap: {}, // 新增用户名到ID的映射
workType: 0, // 新增:当前工单work_type
selections: [], // 添加选中行数据数组
@@ -937,17 +933,19 @@
// “我发起的工单”tab用默认流程,其它tab用接口返回的stepInfos
if (this.activeTab === 'myTickets') {
if (this.workType === 1) {
- return ['3', '4', '5']
+ return ['3', '4']
}
return this.fixedStatuses
}
+
+
// 其它tab直接用接口返回的stepInfos
return this.stepInfos.map(step => String(step.status))
},
showIsReviewText () {
return row => {
- if (['4', '5'].includes(String(row.status))) return row.isReview === 1 ? '是' : '否'
+ if (['4'].includes(String(row.status))) return row.isReview === 1 ? '是' : '否'
return '/'
}
@@ -1502,7 +1500,7 @@
create_time: step.create_time,
}))
} else {
- const statusArr = this.workType === 1 ? ['3', '4', '5'] : this.fixedStatuses
+ const statusArr = this.workType === 1 ? ['3', '4'] : this.fixedStatuses
this.stepInfos = statusArr.map(status => {
const step = steps.find(s => String(s.status) === String(status))
return {
@@ -1516,7 +1514,7 @@
this.currentDetail.status = row.status
} catch (error) {
if (this.activeTab === 'myTickets') {
- const statusArr = this.workType === 1 ? ['3', '4', '5'] : this.fixedStatuses
+ const statusArr = this.workType === 1 ? ['3', '4'] : this.fixedStatuses
this.stepInfos = statusArr.map(status => ({
status,
name: status === row.status ? row.handler || '未分配' : '未处理',
--
Gitblit v1.9.3