|
|
@@ -16,7 +16,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
- <el-table :data="cptOverviews"
|
|
|
+ <el-table :data="overviews"
|
|
|
:height="props.height"
|
|
|
@row-click="handleClickOverview"
|
|
|
ref="elTableRef"
|
|
|
@@ -75,7 +75,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup name='PatientList' lang="ts">
|
|
|
-import {computed, onMounted, ref} from "vue";
|
|
|
+import {onMounted, ref} from "vue";
|
|
|
import {getOverView, getPatientInfo} from "@/api/inpatient/patient";
|
|
|
import {allWardsVisible} from "@/utils/permission";
|
|
|
import XcCheckbox from "@/components/xiao-chan/checkbox/XcCheckbox";
|
|
|
@@ -105,15 +105,12 @@ const currentWard = ref()
|
|
|
const overviews = ref([])
|
|
|
|
|
|
const fetchOverviews = () => {
|
|
|
+ yzMitt.emit('onWardChange', currentWard.value)
|
|
|
getOverView(currentWard.value).then((res) => {
|
|
|
overviews.value = res as any
|
|
|
})
|
|
|
}
|
|
|
|
|
|
-const cptOverviews = computed(() => {
|
|
|
- return overviews.value
|
|
|
-})
|
|
|
-
|
|
|
const elTableRef = ref(null)
|
|
|
const handleClickOverview = (row) => {
|
|
|
clickOnThePatient(row.inpatientNo)
|
|
|
@@ -157,12 +154,14 @@ const submitToTheThirdLevelDoctor = () => {
|
|
|
}
|
|
|
|
|
|
onMounted(() => {
|
|
|
-
|
|
|
yzMitt.on('upperDoctorSetting', (data) => {
|
|
|
thirdLevelDoctorSetting.value.dialog = true
|
|
|
thirdLevelDoctorSetting.value.data = data
|
|
|
})
|
|
|
|
|
|
+ yzMitt.on('getCurrentWard', () => {
|
|
|
+ return currentWard.value
|
|
|
+ })
|
|
|
|
|
|
getAllWards().then((res) => {
|
|
|
if (res.length > 0) {
|