From 6ef89b00cce212f98ffe6ac339642e25e507d88a Mon Sep 17 00:00:00 2001
From: gaoshp <291585735@qq.com>
Date: 星期三, 11 九月 2024 19:38:26 +0800
Subject: [PATCH] update
---
src/views/console/workstation/index.vue | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/src/views/console/workstation/index.vue b/src/views/console/workstation/index.vue
index 5da01ae..0f68a77 100644
--- a/src/views/console/workstation/index.vue
+++ b/src/views/console/workstation/index.vue
@@ -71,8 +71,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 +137,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 +718,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