From dd97e71285d9210c4655a0ead49c1064742d8ee7 Mon Sep 17 00:00:00 2001
From: 李喆(开发组) <lzhe@yxqiche.com>
Date: 星期四, 27 三月 2025 14:50:47 +0800
Subject: [PATCH] 1
---
src/views/mdc/MYTree.vue | 16 ++++++++++++----
src/views/mdc/station-live.vue | 11 ++++++-----
2 files changed, 18 insertions(+), 9 deletions(-)
diff --git a/src/views/mdc/MYTree.vue b/src/views/mdc/MYTree.vue
index 07ebe12..24993bc 100644
--- a/src/views/mdc/MYTree.vue
+++ b/src/views/mdc/MYTree.vue
@@ -1,7 +1,7 @@
<!--
* @Date: 2024-04-18 19:53:35
- * @LastEditors: gaoshp
- * @LastEditTime: 2024-11-08 19:14:11
+ * @LastEditors: 鏉庡枂(寮�鍙戠粍) lzhe@yxqiche.com
+ * @LastEditTime: 2025-03-27 14:47:57
* @FilePath: /cps-web/src/views/mdc/MYTree.vue
-->
<template>
@@ -40,6 +40,10 @@
default: () => {
return {}
}
+ },
+ isSelectId: { //榛樿閫変腑
+ type: String,
+ default: ""
}
},
data() {
@@ -50,7 +54,7 @@
tableData: [],
pmsPng,
firstWorkKey: '',
- currentNodeKey: [],
+ currentNodeKey: '',
defalutProps: {
label: 'title',
children: 'children',
@@ -129,7 +133,11 @@
})
},
setCurrentKey(data) {
- this.currentNodeKey = data.find(v => v.isWorkstation && v.title.indexOf(this.word) > -1).id
+ if(this.isSelectId) {
+ this.currentNodeKey = this.isSelectId;
+ }else {
+ this.currentNodeKey = data.find(v => v.isWorkstation && v.title.indexOf(this.word) > -1).id;
+ }
},
formatData(data, current) {
let newData = []
diff --git a/src/views/mdc/station-live.vue b/src/views/mdc/station-live.vue
index b4bda24..5852bba 100644
--- a/src/views/mdc/station-live.vue
+++ b/src/views/mdc/station-live.vue
@@ -1,8 +1,8 @@
<!--
* @Author: lzhe lzhe@example.com
* @Date: 2024-03-26 10:28:33
- * @LastEditors: lzhe lzhe@example.com
- * @LastEditTime: 2024-11-12 18:33:14
+ * @LastEditors: 鏉庡枂(寮�鍙戠粍) lzhe@yxqiche.com
+ * @LastEditTime: 2025-03-27 14:50:26
* @FilePath: /smart-web/src/views/master/person/main/index.vue
* @Description: 杩欐槸榛樿璁剧疆,璇疯缃甡customMade`, 鎵撳紑koroFileHeader鏌ョ湅閰嶇疆 杩涜璁剧疆: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
@@ -10,7 +10,7 @@
<div class="aposcope-main">
<div class="aposcope-left">
<!-- <div class="left-title">鏌ヨ鏉′欢</div> -->
- <MYTree v-model="treeChecked" @loaded="query"></MYTree>
+ <MYTree v-model="treeChecked" @loaded="query" :isSelectId="$route.query.code"></MYTree>
</div>
<div class="aposcope-right">
<div class="content-machine-box" style="min-height: 450px;">
@@ -49,7 +49,7 @@
style="margin-top: 6px;padding-left: 6px;padding-right: 6px;width: 450;position:absolute;right:0;"
@size-change="alarmSizeChange"
@current-change="alarmCurrentChange"
- :current-page="currentPage4"
+ :current-page="alarmsearchData.current"
:page-size="15"
layout="total, prev, pager, next"
:total="alarmtotal">
@@ -176,6 +176,7 @@
name: "state-feedback",
data(){
return {
+ currentPage4: 1,
getwcsRData: [],
tableData1: [],
tableData2: [],
@@ -340,7 +341,7 @@
},
watch: {
treeChecked() {
- this.query()
+ this.query();
}
},
mounted(){
--
Gitblit v1.9.3