qianxj
2023-03-14 26b67ee34c405c0524d8a7baaaa9b1c521993d6b
update patarchive
已修改2个文件
22 ■■■■ 文件已修改
ruoyi-ui/src/smartor/dataobject/dw_patarchive_list.vue 17 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/views/smartor/patarchive/index.vue 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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>
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)
    }
}