From 811fb2fd8fc81107903637cfbe03de9da9d50ede Mon Sep 17 00:00:00 2001
From: gaoshp <291585735@qq.com>
Date: 星期三, 11 九月 2024 19:29:16 +0800
Subject: [PATCH] update
---
src/views/console/workstation/index.vue | 37 ++++++++++++++++++++++++++++++++-----
src/views/console/workstation/Dialog.vue | 2 ++
2 files changed, 34 insertions(+), 5 deletions(-)
diff --git a/src/views/console/workstation/Dialog.vue b/src/views/console/workstation/Dialog.vue
index 9f415a7..ea60a89 100644
--- a/src/views/console/workstation/Dialog.vue
+++ b/src/views/console/workstation/Dialog.vue
@@ -293,6 +293,7 @@
methods: {
//鏄剧ず
open(mode = 'add', params) {
+ this.isSaveing = false;
this.mode = mode;
this.visible = true;
console.log('---------', params)
@@ -308,6 +309,7 @@
})
} else {
this.form.id = ''
+ this.form.workbenchVOList = res?.data?.workstationList || []
Object.keys(this.form).forEach(key => {
this.form[key] = ''
})
diff --git a/src/views/console/workstation/index.vue b/src/views/console/workstation/index.vue
index c4eddba..5da01ae 100644
--- a/src/views/console/workstation/index.vue
+++ b/src/views/console/workstation/index.vue
@@ -44,7 +44,7 @@
<div style="display: flex">
<scTable highlight-current-row @dataChange="dataChange" @row-click="rowClick"
ref="table" :params="params" :apiObj="apiObj"
- @selection-change="selectionChange" stripe>
+ @selection-change="selectionChange" stripe v-show="showTable">
<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>
@@ -71,8 +71,14 @@
</template>
</el-table-column>
</scTable>
- <div style="margin-left: 14px" v-if="Object.keys(previewData).length > 0">
+ <div style="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;">
+ <el-icon-arrow-left v-show="showTable" />
+ <el-icon-arrow-right v-show="!showTable" />
+ </el-icon>
<p class="preview-title">宸ヤ綅淇℃伅</p>
<div class="preview-content">
<div class="img">
@@ -129,15 +135,19 @@
<el-header>
<h2>閲囬泦淇℃伅</h2>
<el-button v-show="list.length > 0"
- @click="editFlag = !editFlag" style="margin-left: auto;"
- text type="primary" size="small">閰嶇疆宸ヤ綅閲囬泦</el-button>
+ @click="() => { editFlag = !editFlag; }"
+ style="margin-left: auto;" text type="primary"
+ size="small">閰嶇疆宸ヤ綅閲囬泦</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-header>
<el-main>
- <el-table :data="list" height="200px">
+ <el-table :data="list" height="200px"
+ @selection-change="handleSelectionChange">
+ <el-table-column type="selection" width="55"
+ v-if="editFlag" />
<el-table-column label="閲囬泦鍙橀噺鍚嶇О" prop="name"
width="120" />
<el-table-column label="宸ヤ綅鍙橀噺鍚嶇О" prop="dataItem"
@@ -389,6 +399,7 @@
},
data() {
return {
+ showTable: true,
machinePng,
showGrouploading: false,
options: [],
@@ -493,6 +504,22 @@
this.queryList()
},
methods: {
+ handleSelectionChange(val) {
+ console.log(val)
+ val.forEach(v => {
+ v.bigScreen = true
+ v.realTimeData = true
+ v.processParameter = true
+ })
+ this.list.forEach(v => {
+ if (val.filter(item => v.id === item.id).length == 0) {
+ console.log(v)
+ v.bigScreen = false
+ v.realTimeData = false
+ v.processParameter = false
+ }
+ })
+ },
editDMP() {
this.$HTTP.get(`/api/blade-system/param/detail?paramKey=system.dmp.url`).then(res => {
if (res.success) {
--
Gitblit v1.9.3