From 26b67ee34c405c0524d8a7baaaa9b1c521993d6b Mon Sep 17 00:00:00 2001
From: qianxj <qianxj15@sina.com>
Date: 星期二, 14 三月 2023 14:47:44 +0800
Subject: [PATCH] update patarchive

---
 ruoyi-ui/src/views/smartor/patarchive/index.vue        |    5 ++++-
 ruoyi-ui/src/smartor/dataobject/dw_patarchive_list.vue |   17 ++++++++++++++---
 2 files changed, 18 insertions(+), 4 deletions(-)

diff --git a/ruoyi-ui/src/smartor/dataobject/dw_patarchive_list.vue b/ruoyi-ui/src/smartor/dataobject/dw_patarchive_list.vue
index 5430200..5997b14 100644
--- a/ruoyi-ui/src/smartor/dataobject/dw_patarchive_list.vue
+++ b/ruoyi-ui/src/smartor/dataobject/dw_patarchive_list.vue
@@ -1,6 +1,6 @@
 <template>
-    <el-table v-loading="loading"  :data="patarchiveList" @ >
-      <el-table-column type="selection" width="55" align="center" />
+    <el-table v-loading="loading"  :data="patarchiveList" @row-click="rowChanged">
+      <!--el-table-column type="selection" width="55" align="center" /-->
       <el-table-column label=" 鑷ID " align="center" prop="patid"/>
       <el-table-column label=" 濮撳悕 " align="center" prop="name" />
       <el-table-column label=" 鎬у埆 " align="center" prop="sex">
@@ -43,6 +43,7 @@
     dicts: ['sys_user_sex', 'sys_patientfrom'],
     data() {
         return {
+        parent:null,
         // 閬僵灞�
         loading: true,
         // 閫変腑鏁扮粍
@@ -87,9 +88,13 @@
         };
     },
     created() {
-        this.getList();
+      this.getList();
     },
     methods: {
+        initial(parent)
+        {
+          this.parent = parent
+        },
         getList() {
             this.loading = true;
             listPatarchive(this.queryParams).then(response => {
@@ -106,6 +111,12 @@
             //alert("selections:"+this.ids[0])
             //this.$parent.selectionChanged(this.ids[0])
         }, 
+        rowChanged(row){
+          //alert(row.patid)
+          //console.log(row)
+          //this.parent.selectionChanged(row.patid)
+          //this.$parent.selectionChanged(row.patid)
+        }
     }
 }
 </script>
\ No newline at end of file
diff --git a/ruoyi-ui/src/views/smartor/patarchive/index.vue b/ruoyi-ui/src/views/smartor/patarchive/index.vue
index edca0a4..e539781 100644
--- a/ruoyi-ui/src/views/smartor/patarchive/index.vue
+++ b/ruoyi-ui/src/views/smartor/patarchive/index.vue
@@ -1,6 +1,6 @@
 <template>
     <div class="app-container">
-        <div is="dw_list" style="height:240pt"/>
+        <div is="dw_list" style="height:240pt" ref="dwlist"/>
         <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>
@@ -26,9 +26,12 @@
     }, 
     created() {
          //dw_list.getList(); 
+        //alert(this.$refs.dwlist);
+        //this.$refs.dwlist.initial(this)
     },
     selectionChanged(patid)
     {
+        alert(patid)
         console.log("selection:"+patid)
     }
 }

--
Gitblit v1.9.3