diff --git a/src/dict/secTestData.js b/src/dict/secTestData.js deleted file mode 100644 index 90440b5..0000000 --- a/src/dict/secTestData.js +++ /dev/null @@ -1,15 +0,0 @@ -export const fileList = [ - { - filingDate: '2016-05-29', - form: '10-K', - description: 'Report of foreign issuer rules 13a-16 and 15d-16 of the Securities Exchange Act', - link: 'https://www.sec.gov/Archives/edgar/data/1000000/0001000000-19-000001.txt', - dataFiles:[ - { - description: 'Report of foreign', - link: 'https://www.sec.gov/Archives/edgar/data/1000000/0001000000-19-000001.txt', - } - ] - }, - -] \ No newline at end of file diff --git a/src/views/financialinformation/secfilings/size1440/index.vue b/src/views/financialinformation/secfilings/size1440/index.vue index 2144535..e1333b2 100644 --- a/src/views/financialinformation/secfilings/size1440/index.vue +++ b/src/views/financialinformation/secfilings/size1440/index.vue @@ -1,168 +1,309 @@ diff --git a/src/views/financialinformation/secfilings/size1920/index.vue b/src/views/financialinformation/secfilings/size1920/index.vue index 27268e7..f8c9fe8 100644 --- a/src/views/financialinformation/secfilings/size1920/index.vue +++ b/src/views/financialinformation/secfilings/size1920/index.vue @@ -37,7 +37,7 @@ :pagination="false" :bordered="false" :size="'medium'" - :row-key="(row) => row.filingDate" + :row-key="(row) => row.index" /> @@ -75,7 +75,7 @@ import { reactive, computed, h, onMounted } from "vue"; import { NSelect, NDataTable, NPagination, NButton, NIcon } from "naive-ui"; import { useI18n } from "vue-i18n"; import { useRouter } from "vue-router"; -import { fileList } from "@/dict/secTestData.js"; +import { fileList } from "@/dict/secFiles.js"; const { t } = useI18n(); const router = useRouter(); import iconLink from "@/assets/image/icon/icon-link.png"; @@ -125,7 +125,7 @@ onMounted(() => { "Dec", ]; - state.secFilingsData = fileList.map((item) => { + state.secFilingsData = fileList.map((item, index) => { // 从 filingDate 中提取年份,支持两种格式: // 1. "Feb 04, 2019" 格式(英文) // 2. "2025-10-24" 格式(ISO格式)转换为英文格式 @@ -151,6 +151,7 @@ onMounted(() => { } return { + index: index, ...item, formattedDate: formattedDate, // 更新为统一的英文格式 year: year, @@ -162,12 +163,13 @@ const columns = [ { title: "Filing Date", key: "formattedDate", - sorter: true, + sorter: "default", width: 150, }, { title: "Form", key: "form", + sorter: "default", width: 120, render: (row) => { return h( @@ -202,6 +204,7 @@ const columns = [ { title: "Description", key: "description", + sorter: "default", ellipsis: { tooltip: true, }, @@ -223,7 +226,7 @@ const columns = [ h( "a", { - href: row.link, + href: row.fileLink, style: { color: "#0078d7", textDecoration: "none", @@ -316,7 +319,6 @@ const handlePageSizeChange = (size) => { .sec-filings-container { max-width: 1200px; margin: 0 auto; - background: white; padding: 40px; } diff --git a/src/views/financialinformation/secfilings/size375/index.vue b/src/views/financialinformation/secfilings/size375/index.vue index ac13099..df43a8d 100644 --- a/src/views/financialinformation/secfilings/size375/index.vue +++ b/src/views/financialinformation/secfilings/size375/index.vue @@ -1,286 +1,414 @@ diff --git a/src/views/financialinformation/secfilings/size768/index.vue b/src/views/financialinformation/secfilings/size768/index.vue index 30ccb20..d00afec 100644 --- a/src/views/financialinformation/secfilings/size768/index.vue +++ b/src/views/financialinformation/secfilings/size768/index.vue @@ -1,168 +1,309 @@ diff --git a/src/views/financialinformation/secfilingsdetail/size1440/index.vue b/src/views/financialinformation/secfilingsdetail/size1440/index.vue index 2144535..858ccd5 100644 --- a/src/views/financialinformation/secfilingsdetail/size1440/index.vue +++ b/src/views/financialinformation/secfilingsdetail/size1440/index.vue @@ -1,168 +1,110 @@ diff --git a/src/views/financialinformation/secfilingsdetail/size1920/index.vue b/src/views/financialinformation/secfilingsdetail/size1920/index.vue index 06a15b4..aa6f581 100644 --- a/src/views/financialinformation/secfilingsdetail/size1920/index.vue +++ b/src/views/financialinformation/secfilingsdetail/size1920/index.vue @@ -74,7 +74,7 @@ diff --git a/src/views/financialinformation/secfilingsdetail/size768/index.vue b/src/views/financialinformation/secfilingsdetail/size768/index.vue index 30ccb20..4f45df6 100644 --- a/src/views/financialinformation/secfilingsdetail/size768/index.vue +++ b/src/views/financialinformation/secfilingsdetail/size768/index.vue @@ -1,168 +1,110 @@