yxh
yxh
2023-03-24 8b50c0466a9453472871da617abc647c39b903dc
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>