From 069ef85293bb4baa74dd9251e8b3fd8cc4355410 Mon Sep 17 00:00:00 2001
From: 董国庆 <364620639@qq.com>
Date: 星期四, 15 五月 2025 15:21:10 +0800
Subject: [PATCH] 实验方案管理详情和中止

---
 laboratory/src/views/dataManagement/dispatching/list.vue |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/laboratory/src/views/dataManagement/dispatching/list.vue b/laboratory/src/views/dataManagement/dispatching/list.vue
index 11c614f..34edc48 100644
--- a/laboratory/src/views/dataManagement/dispatching/list.vue
+++ b/laboratory/src/views/dataManagement/dispatching/list.vue
@@ -43,22 +43,22 @@
           <div class="flex a-center">
             <div
               class="title"
-              :class="{ active: currentType === 'list' }"
+              :class="{ active: currentType == 'list' }"
               @click="handleTypeChange('list')"
             >
               实验与调度列表
             </div>
             <div
-              v-if="userRole === '3'"
+              v-if="userRole == '3'"
               class="drafts"
-              :class="{ active: currentType === 'draft' }"
+              :class="{ active: currentType == 'draft' }"
               @click="handleTypeChange('draft')"
             >
               草稿箱
             </div>
           </div>
           <el-button 
-            v-if="userRole === '3'"
+            v-if="userRole == '3'"
             @click="handleAddPlan" 
             class="el-icon-plus" 
             type="primary"
@@ -112,7 +112,7 @@
             <template v-if="userRole == '3'">
               <el-button type="text" @click="handleDetail(scope.row)">详情</el-button>
               <el-button 
-                v-if="scope.row.status === 1" 
+                v-if="scope.row.status == 1" 
                 type="text" 
                 @click="handleDelete(scope.row)"
               >删除</el-button>
@@ -122,7 +122,7 @@
             <template v-if="userRole == '4' || userRole == '5'">
               <el-button type="text" @click="handleDetail(scope.row)">详情</el-button>
               <el-button
-                v-if="scope.row.status === 1"
+                v-if="scope.row.status == 1"
                 type="text"
                 @click="handleConfirm(scope.row)"
               >确认</el-button>
@@ -259,14 +259,14 @@
     },
     handleTypeChange(type) {
       this.currentType = type;
-      this.form.status = type === 'draft' ? '-1' : '';
+      this.form.status = type == 'draft' ? '-1' : '';
       this.form.pageNum = 1;
       this.getTableData();
     },
     getTableData() {
       const params = {
         ...this.form,
-        status: this.currentType === 'draft' ? '-1' : this.form.status
+        status: this.currentType == 'draft' ? '-1' : this.form.status
       };
       getDispatchList(params).then(res => {
         console.log('111111111111',res)

--
Gitblit v1.7.1