qianxj
2023-03-14 1bd342d32c373ba765a21087d6325012fe163d42
update1
已修改3个文件
46 ■■■■■ 文件已修改
ruoyi-ui/src/smartor/dataobject/dw_patarchive_base.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/smartor/dataobject/dw_patarchive_list.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/views/smartor/patarchive/index.vue 40 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/smartor/dataobject/dw_patarchive_base.vue
@@ -123,7 +123,7 @@
        };
    },
    created() {
        this.getData(1);
        this.Retrieve(1);
    },
    methods: {
          // 表单重置
@@ -153,7 +153,7 @@
        };
        this.resetForm("form");
      },
      getData(patid)
      Retrieve(patid)
      {
        getPatarchive(patid).then(response => {
          this.form = response.data;
ruoyi-ui/src/smartor/dataobject/dw_patarchive_list.vue
@@ -114,8 +114,8 @@
        rowChanged(row){
          //alert(row.patid)
          //console.log(row)
          //this.parent.selectionChanged(row.patid)
          //this.$parent.selectionChanged(row.patid)
          this.$parent.patid = row.patid
        }
    }
}
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>