From 22d4441a8c669185c13d2b6856c51ad550c50ae2 Mon Sep 17 00:00:00 2001 From: yangfeng <wanwan926_4@163.com> Date: 星期五, 14 七月 2023 18:26:47 +0800 Subject: [PATCH] 编辑下拉框&网络请求封装优化 --- src/views/custom/followupRecords/index.vue | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/src/views/custom/followupRecords/index.vue b/src/views/custom/followupRecords/index.vue index 3111fba..04dd78c 100644 --- a/src/views/custom/followupRecords/index.vue +++ b/src/views/custom/followupRecords/index.vue @@ -21,6 +21,8 @@ <script> import AddFollowupRecordsDialog from "@/views/custom/followupRecords/AddFollowupRecordsDialog" +import { getFollowRecordList } from "@/api/custom/followupRecords.js" + export default { name: "FollowupRecords", props: {}, @@ -62,6 +64,7 @@ }, created() { this.setTable() + this.getData() }, methods: { setTable() { @@ -97,6 +100,16 @@ this.searchOptions.push({ value: (i + 1).toString(), label: label }) } }, + // 璇锋眰鏁版嵁 + async getData() { + await getFollowRecordList() + .then((res) => { + console.log("鎴愬姛" + res) + }) + .catch((err) => { + console.log(err) + }) + }, // 鏂板缓 addBtnClick() { this.editConfig.visible = true -- Gitblit v1.8.0