1
李喆(开发组)
2025-03-27 dd97e71285d9210c4655a0ead49c1064742d8ee7
1
已修改2个文件
27 ■■■■■ 文件已修改
src/views/mdc/MYTree.vue 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/mdc/station-live.vue 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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 = []
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(){