From cc6eb96956d030702edc2120372a381a4f68b0ae Mon Sep 17 00:00:00 2001
From: 董国庆 <364620639@qq.com>
Date: 星期三, 04 三月 2026 16:15:05 +0800
Subject: [PATCH] 修改文档问题3-4
---
laboratory/src/views/dataManagement/schemeManagement/list.vue | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/laboratory/src/views/dataManagement/schemeManagement/list.vue b/laboratory/src/views/dataManagement/schemeManagement/list.vue
index 303250d..69a1720 100644
--- a/laboratory/src/views/dataManagement/schemeManagement/list.vue
+++ b/laboratory/src/views/dataManagement/schemeManagement/list.vue
@@ -189,7 +189,7 @@
return statusMap[status] || "未知";
}
const statusMap = {
- '-2': "warning",
+ '': "warning",
'-1': "info",
'1': "warning",
'2': "warning",
@@ -237,7 +237,7 @@
},
handleTypeChange(type) {
this.currentType = type;
- this.form.status = type === 'draft' ? (this.roleType == 3 ? '-1' : '-2') : '';
+ this.form.status = type === 'draft' ? (this.userRole == '3' ? '-1' : '-2') : '';
this.form.pageNum = 1;
this.getTableData();
},
@@ -245,8 +245,9 @@
try {
// 当处于草稿箱模式时,强制将状态设置为-1
if (this.currentType === 'draft') {
- this.form.status = this.roleType == 3 ? '-1' : '-2';
+ this.form.status = this.userRole == '3' ? '-1' : '-2';
}
+ console.log('111111111111111111111',this.form,'currentType',this.currentType)
const { data } = await getList(this.form);
this.tableData = data.records || [];
this.total = data.total || 0;
@@ -334,4 +335,4 @@
border: 1px solid #049c9a;
}
}
-</style>
\ No newline at end of file
+</style>
--
Gitblit v1.7.1