|
|
@@ -1,5 +1,4 @@
|
|
|
<template>
|
|
|
-
|
|
|
<div class="cy_main_card">
|
|
|
<div class="cy_display_flex_y">
|
|
|
<div>
|
|
|
@@ -18,8 +17,7 @@
|
|
|
|
|
|
|
|
|
<el-button type="primary"
|
|
|
- :loading="load"
|
|
|
- @click="queryQualityControlData">查询质控数据
|
|
|
+ @click="querySearch">查询质控数据
|
|
|
</el-button>
|
|
|
|
|
|
<el-button @click="queryScale">
|
|
|
@@ -74,9 +72,6 @@ import useVxeTable from "@/utils/cy-use/useVxeTable";
|
|
|
|
|
|
const intervalPatients = ref([])
|
|
|
const timeType = ref('intervalPatients')
|
|
|
-
|
|
|
-const load = ref(false)
|
|
|
-
|
|
|
const percentage = ref(0)
|
|
|
const numberToArray = ref([])
|
|
|
const tabsModel = ref('质控数量')
|
|
|
@@ -85,24 +80,24 @@ const ruleReturnData = ref({
|
|
|
patient: []
|
|
|
})
|
|
|
|
|
|
-const {CyVxeTable} = useVxeTable({
|
|
|
- localPaging: true
|
|
|
-});
|
|
|
-
|
|
|
const siftData = ref({})
|
|
|
|
|
|
const queryQualityControlData = async () => {
|
|
|
let {startTime, endTime} = getDateRangeFormatDate(intervalPatients.value)
|
|
|
- load.value = true
|
|
|
percentage.value = 0
|
|
|
siftData.value = {}
|
|
|
let res = await linkQualityControl(startTime, endTime, sid, timeType.value)
|
|
|
ruleReturnData.value = res
|
|
|
proportion.value = res.proportion
|
|
|
numberToArrayFunc()
|
|
|
- load.value = false
|
|
|
}
|
|
|
|
|
|
+const {CyVxeTable, querySearch} = useVxeTable({
|
|
|
+ localPaging: true,
|
|
|
+ keyField: '',
|
|
|
+ remoteSearch: queryQualityControlData
|
|
|
+});
|
|
|
+
|
|
|
const numberToArrayFunc = () => {
|
|
|
numberToArray.value = []
|
|
|
for (let key in ruleReturnData.value.count) {
|
|
|
@@ -148,7 +143,6 @@ onMounted(() => {
|
|
|
percentage.value = makePercentage(data.current, data.total)
|
|
|
})
|
|
|
})
|
|
|
-
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss">
|