|
@@ -16,9 +16,17 @@
|
16
|
16
|
<el-container>
|
17
|
17
|
<div style="width:150px">
|
18
|
18
|
<div class="tableTitle">患者列表</div>
|
19
|
|
- <el-table :data="tableData" border style="width: 100%;" height="500">
|
20
|
|
- <el-table-column prop="date" label="日期" width="70"></el-table-column>
|
21
|
|
- <el-table-column prop="name" label="姓名" width="80"></el-table-column>
|
|
19
|
+ <el-table :data="patientsData" border style="width: 100%;" height="500">
|
|
20
|
+ <el-table-column prop="name" label="透析号" width="80">
|
|
21
|
+ <template slot-scope="scope">
|
|
22
|
+ {{scope.row.dialysis_no}}
|
|
23
|
+ </template>
|
|
24
|
+ </el-table-column>
|
|
25
|
+ <el-table-column prop="date" label="透析号" width="70">
|
|
26
|
+ <template slot-scope="scope">
|
|
27
|
+ {{scope.row.name }}
|
|
28
|
+ </template>
|
|
29
|
+ </el-table-column>
|
22
|
30
|
</el-table>
|
23
|
31
|
</div>
|
24
|
32
|
<div class="containerRight" style="flex:1;overflow: hidden">
|
|
@@ -97,7 +105,8 @@ import echarts from "echarts";
|
97
|
105
|
import BreadCrumb from "@/xt_pages/components/bread-crumb";
|
98
|
106
|
import LineChart from "../qcd/components/LineChart";
|
99
|
107
|
import { uParseTime } from "@/utils/tools";
|
100
|
|
-export default {
|
|
108
|
+import { getCurrentOrgPatients } from "@/api/common/common"
|
|
109
|
+export default {
|
101
|
110
|
components: {
|
102
|
111
|
LineChart,
|
103
|
112
|
BreadCrumb
|
|
@@ -108,6 +117,7 @@ export default {
|
108
|
117
|
{ path: false, name: "科室质控" },
|
109
|
118
|
{ path: false, name: "患者达标详情" }
|
110
|
119
|
],
|
|
120
|
+ patientsData:[],
|
111
|
121
|
tableData: [
|
112
|
122
|
{
|
113
|
123
|
date: "2016",
|
|
@@ -279,6 +289,20 @@ export default {
|
279
|
289
|
getTime(time) {
|
280
|
290
|
return uParseTime(time, "{y}-{m}-{d}");
|
281
|
291
|
},
|
|
292
|
+ getCurrentOrgPatients(){
|
|
293
|
+ getCurrentOrgPatients().then(response=>{
|
|
294
|
+ if(response.data.state == 1){
|
|
295
|
+ var patients = response.data.data.patients
|
|
296
|
+ console.log("patients",patients)
|
|
297
|
+ this.patientsData = patients
|
|
298
|
+ }
|
|
299
|
+ })
|
|
300
|
+ },
|
|
301
|
+ },
|
|
302
|
+
|
|
303
|
+ created(){
|
|
304
|
+ //获取该机构下的所有患者
|
|
305
|
+ this.getCurrentOrgPatients()
|
282
|
306
|
}
|
283
|
307
|
};
|
284
|
308
|
</script>
|