From 7615cd178bddab96443504029285d65ea1e7d447 Mon Sep 17 00:00:00 2001 From: pyt <626651354@qq.com> Date: 星期五, 16 五月 2025 09:22:21 +0800 Subject: [PATCH] Merge branch 'main' of http://120.76.84.145:10101/gitblit/r/H5/leshan-laboratory --- 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