From acac65122fbac5295e4b7c8eed468e9b9181e366 Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期二, 21 四月 2026 15:24:40 +0800
Subject: [PATCH] 测试完成
---
src/views/Satisfaction/sfstatistics/components/components/SeedetailsDialog.vue | 66 +++++++++++++++++----------------
1 files changed, 34 insertions(+), 32 deletions(-)
diff --git a/src/views/Satisfaction/sfstatistics/components/components/SeedetailsDialog.vue b/src/views/Satisfaction/sfstatistics/components/components/SeedetailsDialog.vue
index ce29cd3..71a40f7 100644
--- a/src/views/Satisfaction/sfstatistics/components/components/SeedetailsDialog.vue
+++ b/src/views/Satisfaction/sfstatistics/components/components/SeedetailsDialog.vue
@@ -221,15 +221,12 @@
<!-- 鍒嗛〉 -->
<div class="pagination" v-if="patienttotal > 0">
- <el-pagination
- background
- layout="total, sizes, prev, pager, next, jumper"
- :current-page="patientqueryParams.pn"
- :page-size="patientqueryParams.ps"
- :page-sizes="[10, 20, 30]"
+ <pagination
+ v-show="patienttotal > 0"
:total="patienttotal"
- @size-change="handleSizeChange"
- @current-change="handlePageChange"
+ :page.sync="patientqueryParams.pn"
+ :limit.sync="patientqueryParams.ps"
+ @pagination="loadData"
/>
</div>
</div>
@@ -241,17 +238,17 @@
import { selectTimelyRate } from "@/api/system/user";
export default {
- name: 'SeedetailsDialog',
- dicts: ['sys_yujing', 'sys_suggest'],
+ name: "SeedetailsDialog",
+ dicts: ["sys_yujing", "sys_suggest"],
props: {
rowData: {
type: Object,
- default: () => ({})
+ default: () => ({}),
},
queryParams: {
type: Object,
- default: () => ({})
- }
+ default: () => ({}),
+ },
},
data() {
return {
@@ -259,8 +256,8 @@
patientqueryParams: {
pn: 1,
ps: 10,
- name: '',
- leavediagname: ''
+ name: "",
+ leavediagname: "",
},
// 鍔犺浇鐘舵��
@@ -270,7 +267,7 @@
logsheetlist: [],
// 鎬绘潯鏁�
- patienttotal: 0
+ patienttotal: 0,
};
},
@@ -285,17 +282,22 @@
try {
const params = {
...this.patientqueryParams,
- deptcode: this.rowData.deptcode || '',
- starttime: this.queryParams.dateRange?.[0] ? this.parseTime(this.queryParams.dateRange[0]) : '',
- endtime: this.queryParams.dateRange?.[1] ? this.parseTime(this.queryParams.dateRange[1]) : ''
+ deptcode: this.rowData.deptcode || "",
+ starttime: this.queryParams.dateRange?.[0]
+ ? this.parseTime(this.queryParams.dateRange[0])
+ : "",
+ endtime: this.queryParams.dateRange?.[1]
+ ? this.parseTime(this.queryParams.dateRange[1])
+ : "",
};
+ console.log(params, "params");
const response = await selectTimelyRate(params);
this.logsheetlist = response.data?.detail || [];
this.patienttotal = response.data?.total || 0;
} catch (error) {
- console.error('鑾峰彇鏈強鏃堕殢璁胯鎯呭け璐�:', error);
- this.$message.error('鑾峰彇鏁版嵁澶辫触');
+ console.error("鑾峰彇鏈強鏃堕殢璁胯鎯呭け璐�:", error);
+ this.$message.error("鑾峰彇鏁版嵁澶辫触");
} finally {
this.loading = false;
}
@@ -312,16 +314,16 @@
this.patientqueryParams = {
pn: 1,
ps: 10,
- name: '',
- leavediagname: ''
+ name: "",
+ leavediagname: "",
};
this.loadData();
},
// 澶勭悊鍒嗛〉澶у皬鍙樺寲
handleSizeChange(size) {
- this.patientqueryParams.ps = size;
- this.patientqueryParams.pn = 1;
+ console.log(this.patientqueryParams);
+
this.loadData();
},
@@ -333,19 +335,19 @@
// 鏍煎紡鍖栨椂闂�
formatTime(time) {
- if (!time) return '-';
+ if (!time) return "-";
return time;
},
// 瑙f瀽鏃堕棿
parseTime(time) {
- if (!time) return '';
+ if (!time) return "";
return time;
},
// 鏌ョ湅璇︽儏
handleViewDetail(row) {
- this.$emit('close');
+ this.$emit("close");
let type = "";
if (row.preachformson && row.preachformson.includes("3")) {
@@ -359,12 +361,12 @@
taskid: row.taskid,
patid: row.patid,
id: row.id,
- Voicetype: type
- }
+ Voicetype: type,
+ },
});
}, 300);
- }
- }
+ },
+ },
};
</script>
--
Gitblit v1.9.3