From 3ca90ccca60e10436bca4ba99c95ce81c14d3895 Mon Sep 17 00:00:00 2001
From: lzhe <lzhe@example.com>
Date: 星期日, 29 九月 2024 17:51:19 +0800
Subject: [PATCH] 1

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

diff --git a/src/views/console/workstation/index.vue b/src/views/console/workstation/index.vue
index 5da01ae..1464e20 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">
@@ -71,8 +75,10 @@
 											</template>
 										</el-table-column>
 									</scTable>
-									<div style="margin-left: 14px;flex: 1 1 auto;"
-										v-if="Object.keys(previewData).length > 0">
+									<div :style="{
+										'max-width': showTable ? '50%' : '100%', 'margin-left': '14px',
+										flex: '1 1 auto'
+									}" v-if="Object.keys(previewData).length > 0">
 										<div class="header">
 											<el-icon @click="showTable = !showTable"
 												style="font-size: 20px;cursor: pointer;margin-top: 10px;">
@@ -135,9 +141,9 @@
 														<el-header>
 															<h2>閲囬泦淇℃伅</h2>
 															<el-button v-show="list.length > 0"
-																@click="() => { editFlag = !editFlag; }"
+																@click="() => { editFlag = !editFlag; showTable = !editFlag }"
 																style="margin-left: auto;" text type="primary"
-																size="small">閰嶇疆宸ヤ綅閲囬泦</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"
@@ -716,6 +722,7 @@
 		saveInfo() {
 			this.$HTTP.post('/api/blade-cps/workstation-wcs/save', this.workbenchVOList).then(res => {
 				this.editFlag = false
+				this.showTable = true
 			})
 		},
 	}

--
Gitblit v1.9.3