From 1bd342d32c373ba765a21087d6325012fe163d42 Mon Sep 17 00:00:00 2001
From: qianxj <qianxj15@sina.com>
Date: 星期二, 14 三月 2023 17:00:05 +0800
Subject: [PATCH] update1

---
 ruoyi-ui/src/views/smartor/patarchive/index.vue |   40 +++++++++++++++++++++++++++-------------
 1 files changed, 27 insertions(+), 13 deletions(-)

diff --git a/ruoyi-ui/src/views/smartor/patarchive/index.vue b/ruoyi-ui/src/views/smartor/patarchive/index.vue
index e539781..f5140bc 100644
--- a/ruoyi-ui/src/views/smartor/patarchive/index.vue
+++ b/ruoyi-ui/src/views/smartor/patarchive/index.vue
@@ -1,9 +1,9 @@
 <template>
     <div class="app-container">
-        <div is="dw_list" style="height:240pt" ref="dwlist"/>
+        <div is="dw_list" style="height:240pt" ref="dw_list"/>
         <el-tabs v-model="activeName" >
-            <el-tab-pane label="鍩烘湰淇℃伅" name="first"><div is="dw_base"/></el-tab-pane>
-            <el-tab-pane label="闂ㄨ瘖璁板綍" name="second"><div is="dw_patouthosp"/></el-tab-pane>
+            <el-tab-pane label="鍩烘湰淇℃伅" name="first"><div is="dw_base" ref="dw_base"/></el-tab-pane>
+            <el-tab-pane label="闂ㄨ瘖璁板綍" name="second"><div is="dw_patouthosp" ref="dw_patouthosp"/></el-tab-pane>
             <el-tab-pane label="浣忛櫌璁板綍" name="third"><div is="dw_4"/></el-tab-pane>
             <el-tab-pane label="浣撴璁板綍" name="fourth"><div is="dw_5"/></el-tab-pane>
         </el-tabs>
@@ -13,7 +13,8 @@
 export default {
     data() {
       return {
-        activeName: 'first'
+        activeName: 'first',
+        patid:null
       };
     },
     components:
@@ -23,16 +24,29 @@
         dw_patouthosp: ()=>import("@/smartor/dataobject/dw_patouthosp_list.vue"),
         dw_4: ()=>import("@/smartor/dataobject/dw_patarchive_list.vue"),
         dw_5: ()=>import("@/smartor/dataobject/dw_patarchive_list.vue"),
-    }, 
-    created() {
-         //dw_list.getList(); 
-        //alert(this.$refs.dwlist);
-        //this.$refs.dwlist.initial(this)
     },
-    selectionChanged(patid)
-    {
-        alert(patid)
-        console.log("selection:"+patid)
+    created() {
+            //dw_list.getList(); 
+            //alert(this.$refs.dwlist);
+            //this.$refs.dwlist.initial(this)
+        },
+    watch: {
+        'patid': {
+            handler(newName, oldName) {
+                //this.selectionChanged(newName)
+                //console.log('patid changed')
+                this.$refs.dw_base.Retrieve(this.patid)
+            },
+            //immediate: true,
+            // deep: true
+        }
+    },
+   methods:{
+        /*selectionChanged(patid)
+        {
+            alert(patid)
+            console.log("selection:"+patid)
+        }*/
     }
 }
 </script>

--
Gitblit v1.9.3