From 1988d77f4df3c01a9137303e0c959b3442c14377 Mon Sep 17 00:00:00 2001
From: lzhe <lzhe@example.com>
Date: 星期一, 30 九月 2024 22:10:30 +0800
Subject: [PATCH] 1

---
 src/views/console/workstation/index.vue |   26 +++++++++++++++++---------
 1 files changed, 17 insertions(+), 9 deletions(-)

diff --git a/src/views/console/workstation/index.vue b/src/views/console/workstation/index.vue
index 0f68a77..964c685 100644
--- a/src/views/console/workstation/index.vue
+++ b/src/views/console/workstation/index.vue
@@ -48,7 +48,11 @@
 										<el-table-column type="selection" width="50"></el-table-column>
 										<el-table-column label="宸ヤ綅缂栧彿" prop="code" width="120"></el-table-column>
 										<el-table-column label="宸ヤ綅鍚嶇О" prop="name" width="120"></el-table-column>
-										<el-table-column label="宸ヤ綅绫诲瀷" prop="type" width="120"></el-table-column>
+										<el-table-column label="宸ヤ綅绫诲瀷" prop="type" width="120">
+											<template #default="scope">
+												<span>{{ scope.row.type == '0' ? '鏈哄櫒' : '浜哄伐' }}</span>
+											</template>
+										</el-table-column>
 										<el-table-column label="宸ヤ綅鏃ュ巻" prop="calendarName" width="120"></el-table-column>
 										<el-table-column label="鎿嶄綔" fixed="right" align="right" width="160">
 											<template #default="scope">
@@ -124,12 +128,12 @@
 																<el-col :span="8">
 																	{{ basic.machineBrand }}
 																</el-col>
-																<el-col :span="4">
+																<!-- <el-col :span="4">
 																	椹卞姩鍚嶇О
 																</el-col>
 																<el-col :span="8">
 																	{{ basic.typeName }}
-																</el-col>
+																</el-col> -->
 															</el-row>
 														</el-main>
 													</el-container>
@@ -139,11 +143,12 @@
 															<el-button v-show="list.length > 0"
 																@click="() => { editFlag = !editFlag; showTable = !editFlag }"
 																style="margin-left: auto;" text type="primary"
-																size="small">{{ editFlag ? '鍙栨秷' : '閰嶇疆宸ヤ綅閲囬泦' }}</el-button>
+																size="small">{{ editFlag ? '鍙栨秷' : '閰嶇疆宸ヤ綅閲囬泦'
+																}}</el-button>
 															<el-button v-show="editFlag" @click="saveInfo" text
 																type="primary" size="small">淇濆瓨</el-button>
-															<el-button text type="primary" size="small"
-																@click="editDMP">淇敼DMP閰嶇疆</el-button>
+															<!-- <el-button text type="primary" size="small"
+																@click="editDMP">淇敼DMP閰嶇疆</el-button> -->
 														</el-header>
 														<el-main>
 															<el-table :data="list" height="200px"
@@ -568,15 +573,18 @@
 					let data = this.formatData(res.data)
 					this.group = data
 					this.showGrouploading = false
+					console.log('>>>>>>>>>>>>>>>>>>>>>')
 					// this.$nextTick(() => {
 					if (!flag) {
+						debugger
 						let parent = res.data.filter(item => item.parentId == 0)[0]
 						this.treeCheckedNode = parent
 						this.treeCheckKey = parent.id
 					} else {
-						let parent = res.data.filter(item => item.id == this.treeCheckedNode.id)[0]
-						this.treeCheckedNode = parent
-						this.treeCheckKey = parent.id
+						debugger
+						let parent = res.data.filter(item => item.parentId == 0)[0]
+						parent && (this.treeCheckedNode = parent)
+						parent && (this.treeCheckKey = parent.id)
 					}
 					// })
 

--
Gitblit v1.9.3