Compare commits
No commits in common. "2c18ca6420df2518fee38a7f6c8214669bea7f9f" and "e6de82b9d8241bc1a649766fb30c76517d95a743" have entirely different histories.
2c18ca6420
...
e6de82b9d8
12
README.md
12
README.md
@ -44,14 +44,6 @@ pnpm run prod
|
||||
pnpm run build-prod
|
||||
```
|
||||
|
||||
# 发版
|
||||
### 部署项目
|
||||
|
||||
## 正式
|
||||
|
||||
<https://www.fiee.com/myhome>
|
||||
Jenkins front-fiee-website
|
||||
|
||||
## 测试
|
||||
|
||||
Jenkins front-fiee-website
|
||||
<http://fiee-web.test.fontree.cn:8081/product-introduction>
|
||||
```bash
|
||||
|
||||
@ -97,8 +97,8 @@ const selectedLanguage = ref(
|
||||
);
|
||||
|
||||
const languageOptions = computed(() => [
|
||||
{ label: t("language.en"), value: "en", key: "en" },
|
||||
{ label: t("language.ja"), value: "ja", key: "ja" },
|
||||
{ label: t("language.en"), value: "en", key: "en" },
|
||||
{ label: t("language.zh"), value: "zh", key: "zh" },
|
||||
{ label: t("language.zhTW"), value: "zh-TW", key: "zh-TW" },
|
||||
]);
|
||||
|
||||
@ -94,8 +94,8 @@ const selectedLanguage = ref(
|
||||
);
|
||||
|
||||
const languageOptions = computed(() => [
|
||||
{ label: t("language.en"), value: "en", key: "en" },
|
||||
{ label: t("language.ja"), value: "ja", key: "ja" },
|
||||
{ label: t("language.en"), value: "en", key: "en" },
|
||||
{ label: t("language.zh"), value: "zh", key: "zh" },
|
||||
{ label: t("language.zhTW"), value: "zh-TW", key: "zh-TW" },
|
||||
]);
|
||||
|
||||
@ -107,8 +107,8 @@ const selectedLanguage = ref(
|
||||
localStorage.getItem("language") || locale.value || "en"
|
||||
);
|
||||
const languageOptions = computed(() => [
|
||||
{ label: t("language.en"), value: "en", key: "en" },
|
||||
{ label: t("language.ja"), value: "ja", key: "ja" },
|
||||
{ label: t("language.en"), value: "en", key: "en" },
|
||||
{ label: t("language.zh"), value: "zh", key: "zh" },
|
||||
{ label: t("language.zhTW"), value: "zh-TW", key: "zh-TW" },
|
||||
]);
|
||||
|
||||
@ -103,8 +103,8 @@ const selectedLanguage = ref(
|
||||
localStorage.getItem("language") || locale.value || "en"
|
||||
);
|
||||
const languageOptions = computed(() => [
|
||||
{ label: t("language.en"), value: "en", key: "en" },
|
||||
{ label: t("language.ja"), value: "ja", key: "ja" },
|
||||
{ label: t("language.en"), value: "en", key: "en" },
|
||||
{ label: t("language.zh"), value: "zh", key: "zh" },
|
||||
{ label: t("language.zhTW"), value: "zh-TW", key: "zh-TW" },
|
||||
]);
|
||||
|
||||
@ -49,25 +49,16 @@
|
||||
<script setup lang="jsx">
|
||||
import { NDataTable } from "naive-ui";
|
||||
import { committeeManagement } from "@/api/auth";
|
||||
import { ref, watch } from "vue";
|
||||
import { ref } from "vue";
|
||||
import { useI18n } from "vue-i18n";
|
||||
const { t, locale } = useI18n();
|
||||
const { t } = useI18n();
|
||||
|
||||
const committeeData = ref([]);
|
||||
const getData = async (params) => {
|
||||
const res = await committeeManagement(params);
|
||||
const getData = async () => {
|
||||
const res = await committeeManagement({});
|
||||
committeeData.value = res.data?.item || [];
|
||||
};
|
||||
watch(locale, (newLocale, oldLocale) => {
|
||||
console.log("语言已切换:", newLocale);
|
||||
const map = {
|
||||
en: "enUS",
|
||||
ja: "jaJP",
|
||||
zh: "zhCN",
|
||||
"zh-TW": "zhTW",
|
||||
};
|
||||
getData({ langType: map[newLocale] });
|
||||
}, { immediate: true });
|
||||
getData();
|
||||
|
||||
const columns = [
|
||||
{
|
||||
|
||||
@ -49,25 +49,16 @@
|
||||
<script setup lang="jsx">
|
||||
import { NDataTable } from "naive-ui";
|
||||
import { committeeManagement } from "@/api/auth";
|
||||
import { ref, watch } from "vue";
|
||||
import { ref } from "vue";
|
||||
import { useI18n } from "vue-i18n";
|
||||
const { t, locale } = useI18n();
|
||||
const { t } = useI18n();
|
||||
|
||||
const committeeData = ref([]);
|
||||
const getData = async (params) => {
|
||||
const res = await committeeManagement(params);
|
||||
const getData = async () => {
|
||||
const res = await committeeManagement({});
|
||||
committeeData.value = res.data?.item || [];
|
||||
};
|
||||
watch(locale, (newLocale, oldLocale) => {
|
||||
console.log("语言已切换:", newLocale);
|
||||
const map = {
|
||||
en: "enUS",
|
||||
ja: "jaJP",
|
||||
zh: "zhCN",
|
||||
"zh-TW": "zhTW",
|
||||
};
|
||||
getData({ langType: map[newLocale] });
|
||||
}, { immediate: true });
|
||||
getData();
|
||||
|
||||
const columns = [
|
||||
{
|
||||
|
||||
@ -49,25 +49,16 @@
|
||||
<script setup lang="jsx">
|
||||
import { NDataTable } from "naive-ui";
|
||||
import { committeeManagement } from "@/api/auth";
|
||||
import { ref, watch } from "vue";
|
||||
import { ref } from "vue";
|
||||
import { useI18n } from "vue-i18n";
|
||||
const { t, locale } = useI18n();
|
||||
const { t } = useI18n();
|
||||
|
||||
const committeeData = ref([]);
|
||||
const getData = async (params) => {
|
||||
const res = await committeeManagement(params);
|
||||
const getData = async () => {
|
||||
const res = await committeeManagement({});
|
||||
committeeData.value = res.data?.item || [];
|
||||
};
|
||||
watch(locale, (newLocale, oldLocale) => {
|
||||
console.log("语言已切换:", newLocale);
|
||||
const map = {
|
||||
en: "enUS",
|
||||
ja: "jaJP",
|
||||
zh: "zhCN",
|
||||
"zh-TW": "zhTW",
|
||||
};
|
||||
getData({ langType: map[newLocale] });
|
||||
}, { immediate: true });
|
||||
getData();
|
||||
|
||||
const columns = [
|
||||
{
|
||||
|
||||
@ -49,25 +49,16 @@
|
||||
<script setup lang="jsx">
|
||||
import { NDataTable } from "naive-ui";
|
||||
import { committeeManagement } from "@/api/auth";
|
||||
import { ref, watch } from "vue";
|
||||
import { ref } from "vue";
|
||||
import { useI18n } from "vue-i18n";
|
||||
const { t, locale } = useI18n();
|
||||
const { t } = useI18n();
|
||||
|
||||
const committeeData = ref([]);
|
||||
const getData = async (params) => {
|
||||
const res = await committeeManagement(params);
|
||||
const getData = async () => {
|
||||
const res = await committeeManagement({});
|
||||
committeeData.value = res.data?.item || [];
|
||||
};
|
||||
watch(locale, (newLocale, oldLocale) => {
|
||||
console.log("语言已切换:", newLocale);
|
||||
const map = {
|
||||
en: "enUS",
|
||||
ja: "jaJP",
|
||||
zh: "zhCN",
|
||||
"zh-TW": "zhTW",
|
||||
};
|
||||
getData({ langType: map[newLocale] });
|
||||
}, { immediate: true });
|
||||
getData();
|
||||
|
||||
const columns = [
|
||||
{
|
||||
|
||||
@ -34,25 +34,16 @@
|
||||
|
||||
<script setup>
|
||||
import { boardManagement } from "@/api/auth";
|
||||
import { ref, watch } from "vue";
|
||||
import { ref } from "vue";
|
||||
import { useI18n } from "vue-i18n";
|
||||
const { t, locale } = useI18n();
|
||||
const { t } = useI18n();
|
||||
|
||||
const data = ref([]);
|
||||
const getData = async (params) => {
|
||||
const res = await boardManagement(params);
|
||||
const getData = async () => {
|
||||
const res = await boardManagement({});
|
||||
data.value = res?.data?.item || [];
|
||||
};
|
||||
watch(locale, (newLocale, oldLocale) => {
|
||||
console.log("语言已切换:", newLocale);
|
||||
const map = {
|
||||
en: "enUS",
|
||||
ja: "jaJP",
|
||||
zh: "zhCN",
|
||||
"zh-TW": "zhTW",
|
||||
};
|
||||
getData({ langType: map[newLocale] });
|
||||
}, { immediate: true });
|
||||
getData();
|
||||
|
||||
const otherDirectors = [
|
||||
{
|
||||
|
||||
@ -34,25 +34,16 @@
|
||||
|
||||
<script setup>
|
||||
import { boardManagement } from "@/api/auth";
|
||||
import { ref, watch } from "vue";
|
||||
import { ref } from "vue";
|
||||
import { useI18n } from "vue-i18n";
|
||||
const { t, locale } = useI18n();
|
||||
const { t } = useI18n();
|
||||
|
||||
const data = ref([]);
|
||||
const getData = async (params) => {
|
||||
const res = await boardManagement(params);
|
||||
const getData = async () => {
|
||||
const res = await boardManagement({});
|
||||
data.value = res?.data?.item || [];
|
||||
};
|
||||
watch(locale, (newLocale, oldLocale) => {
|
||||
console.log("语言已切换:", newLocale);
|
||||
const map = {
|
||||
en: "enUS",
|
||||
ja: "jaJP",
|
||||
zh: "zhCN",
|
||||
"zh-TW": "zhTW",
|
||||
};
|
||||
getData({ langType: map[newLocale] });
|
||||
}, { immediate: true });
|
||||
getData();
|
||||
|
||||
const otherDirectors = [
|
||||
{
|
||||
|
||||
@ -34,25 +34,16 @@
|
||||
|
||||
<script setup>
|
||||
import { boardManagement } from "@/api/auth";
|
||||
import { ref, watch } from "vue";
|
||||
import { ref } from "vue";
|
||||
import { useI18n } from "vue-i18n";
|
||||
const { t, locale } = useI18n();
|
||||
const { t } = useI18n();
|
||||
|
||||
const data = ref([]);
|
||||
const getData = async (params) => {
|
||||
const res = await boardManagement(params);
|
||||
const getData = async () => {
|
||||
const res = await boardManagement({});
|
||||
data.value = res?.data?.item || [];
|
||||
};
|
||||
watch(locale, (newLocale, oldLocale) => {
|
||||
console.log("语言已切换:", newLocale);
|
||||
const map = {
|
||||
en: "enUS",
|
||||
ja: "jaJP",
|
||||
zh: "zhCN",
|
||||
"zh-TW": "zhTW",
|
||||
};
|
||||
getData({ langType: map[newLocale] });
|
||||
}, { immediate: true });
|
||||
getData();
|
||||
const otherDirectors = [
|
||||
{
|
||||
name: "Hu Bin",
|
||||
|
||||
@ -34,25 +34,16 @@
|
||||
|
||||
<script setup>
|
||||
import { boardManagement } from "@/api/auth";
|
||||
import { ref, watch } from "vue";
|
||||
import { ref } from "vue";
|
||||
import { useI18n } from "vue-i18n";
|
||||
const { t, locale } = useI18n();
|
||||
const { t } = useI18n();
|
||||
|
||||
const data = ref([]);
|
||||
const getData = async (params) => {
|
||||
const res = await boardManagement(params);
|
||||
const getData = async () => {
|
||||
const res = await boardManagement({});
|
||||
data.value = res?.data?.item || [];
|
||||
};
|
||||
watch(locale, (newLocale, oldLocale) => {
|
||||
console.log("语言已切换:", newLocale);
|
||||
const map = {
|
||||
en: "enUS",
|
||||
ja: "jaJP",
|
||||
zh: "zhCN",
|
||||
"zh-TW": "zhTW",
|
||||
};
|
||||
getData({ langType: map[newLocale] });
|
||||
}, { immediate: true });
|
||||
getData();
|
||||
const otherDirectors = [
|
||||
{
|
||||
name: "Hu Bin",
|
||||
|
||||
@ -125,20 +125,13 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="jsx">
|
||||
import { reactive, ref, watch } from "vue";
|
||||
import { reactive, ref } from "vue";
|
||||
import { useI18n } from "vue-i18n";
|
||||
import { NSelect, NDataTable, NPagination, NButton, NIcon } from "naive-ui";
|
||||
import fileLink from "@/assets/image/content/icon-link.png";
|
||||
import { annualReport } from "@/api/auth";
|
||||
import dayjs from 'dayjs'
|
||||
|
||||
const { t, locale } = useI18n();
|
||||
const map = {
|
||||
en: "enUS",
|
||||
ja: "jaJP",
|
||||
zh: "zhCN",
|
||||
"zh-TW": "zhTW",
|
||||
};
|
||||
const state = reactive({
|
||||
currentPage: 1,
|
||||
pageSize: 10,
|
||||
@ -162,15 +155,11 @@ const getListData = async () => {
|
||||
const res = await annualReport({
|
||||
page: state.currentPage,
|
||||
pageSize: state.pageSize,
|
||||
langType: map[locale.value],
|
||||
});
|
||||
state.total = res.data.total;
|
||||
annualReportsData.value = res?.data?.Item || [];
|
||||
};
|
||||
getListData();
|
||||
watch(locale, (newLocale, oldLocale) => {
|
||||
getListData();
|
||||
});
|
||||
const columns = [
|
||||
{
|
||||
// title: "File Name",
|
||||
@ -220,6 +209,7 @@ const columns = [
|
||||
},
|
||||
];
|
||||
|
||||
const { t } = useI18n();
|
||||
// 年度报告数据
|
||||
const annualReports = ref([
|
||||
{
|
||||
|
||||
@ -125,20 +125,13 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="jsx">
|
||||
import { reactive, ref, watch } from "vue";
|
||||
import { reactive, ref } from "vue";
|
||||
import { useI18n } from "vue-i18n";
|
||||
import { NSelect, NDataTable, NPagination, NButton, NIcon } from "naive-ui";
|
||||
import fileLink from "@/assets/image/content/icon-link.png";
|
||||
import { annualReport } from "@/api/auth";
|
||||
import dayjs from 'dayjs'
|
||||
|
||||
const { t, locale } = useI18n();
|
||||
const map = {
|
||||
en: "enUS",
|
||||
ja: "jaJP",
|
||||
zh: "zhCN",
|
||||
"zh-TW": "zhTW",
|
||||
};
|
||||
const state = reactive({
|
||||
currentPage: 1,
|
||||
pageSize: 10,
|
||||
@ -162,16 +155,11 @@ const getListData = async () => {
|
||||
const res = await annualReport({
|
||||
page: state.currentPage,
|
||||
pageSize: state.pageSize,
|
||||
langType: map[locale.value],
|
||||
});
|
||||
state.total = res.data.total;
|
||||
annualReportsData.value = res?.data?.Item || [];
|
||||
};
|
||||
getListData();
|
||||
watch(locale, (newLocale, oldLocale) => {
|
||||
getListData();
|
||||
});
|
||||
|
||||
const columns = [
|
||||
{
|
||||
// title: "File Name",
|
||||
@ -221,6 +209,7 @@ const columns = [
|
||||
},
|
||||
];
|
||||
|
||||
const { t } = useI18n();
|
||||
// 年度报告数据
|
||||
const annualReports = ref([
|
||||
{
|
||||
|
||||
@ -127,20 +127,13 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="jsx">
|
||||
import { reactive, ref, watch } from "vue";
|
||||
import { reactive, ref } from "vue";
|
||||
import { useI18n } from "vue-i18n";
|
||||
import { NSelect, NDataTable, NPagination, NButton, NIcon } from "naive-ui";
|
||||
import fileLink from "@/assets/image/content/icon-link.png";
|
||||
import { annualReport } from "@/api/auth";
|
||||
import dayjs from 'dayjs'
|
||||
|
||||
const { t, locale } = useI18n();
|
||||
const map = {
|
||||
en: "enUS",
|
||||
ja: "jaJP",
|
||||
zh: "zhCN",
|
||||
"zh-TW": "zhTW",
|
||||
};
|
||||
const state = reactive({
|
||||
currentPage: 1,
|
||||
pageSize: 10,
|
||||
@ -163,16 +156,11 @@ const getListData = async () => {
|
||||
const res = await annualReport({
|
||||
page: state.currentPage,
|
||||
pageSize: state.pageSize,
|
||||
langType: map[locale.value],
|
||||
});
|
||||
state.total = res.data.total;
|
||||
annualReportsData.value = res?.data?.Item || [];
|
||||
};
|
||||
getListData();
|
||||
watch(locale, (newLocale, oldLocale) => {
|
||||
getListData();
|
||||
});
|
||||
|
||||
const columns = [
|
||||
{
|
||||
// title: "File Name",
|
||||
@ -225,6 +213,7 @@ const columns = [
|
||||
},
|
||||
];
|
||||
|
||||
const { t } = useI18n();
|
||||
// 年度报告数据
|
||||
const annualReports = ref([
|
||||
{
|
||||
|
||||
@ -125,20 +125,13 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="jsx">
|
||||
import { reactive, ref, watch } from "vue";
|
||||
import { reactive, ref } from "vue";
|
||||
import { useI18n } from "vue-i18n";
|
||||
import { NSelect, NDataTable, NPagination, NButton, NIcon } from "naive-ui";
|
||||
import fileLink from "@/assets/image/content/icon-link.png";
|
||||
import { annualReport } from "@/api/auth";
|
||||
import dayjs from 'dayjs'
|
||||
|
||||
const { t, locale } = useI18n();
|
||||
const map = {
|
||||
en: "enUS",
|
||||
ja: "jaJP",
|
||||
zh: "zhCN",
|
||||
"zh-TW": "zhTW",
|
||||
};
|
||||
const state = reactive({
|
||||
currentPage: 1,
|
||||
pageSize: 10,
|
||||
@ -162,16 +155,11 @@ const getListData = async () => {
|
||||
const res = await annualReport({
|
||||
page: state.currentPage,
|
||||
pageSize: state.pageSize,
|
||||
langType: map[locale.value],
|
||||
});
|
||||
state.total = res.data.total;
|
||||
annualReportsData.value = res?.data?.Item || [];
|
||||
};
|
||||
getListData();
|
||||
watch(locale, (newLocale, oldLocale) => {
|
||||
getListData();
|
||||
});
|
||||
|
||||
const columns = [
|
||||
{
|
||||
// title: "File Name",
|
||||
@ -221,6 +209,7 @@ const columns = [
|
||||
},
|
||||
];
|
||||
|
||||
const { t } = useI18n();
|
||||
// 年度报告数据
|
||||
const annualReports = ref([
|
||||
{
|
||||
|
||||
@ -162,13 +162,7 @@ import { useI18n } from "vue-i18n";
|
||||
// import quarterlyPdf2025Q2 from "@/assets/file/quarterly/10Q 2025-Q2.pdf";
|
||||
// import quarterlyPdf2025Q3N from "@/assets/file/quarterly/10Q 2025-Q1-No1.pdf";
|
||||
import axios from "axios";
|
||||
const { t, locale } = useI18n();
|
||||
const map = {
|
||||
en: "enUS",
|
||||
ja: "jaJP",
|
||||
zh: "zhCN",
|
||||
"zh-TW": "zhTW",
|
||||
};
|
||||
const { t } = useI18n();
|
||||
const searchQuery = ref("");
|
||||
|
||||
const state = reactive({
|
||||
@ -177,7 +171,7 @@ const state = reactive({
|
||||
total: 0,
|
||||
gotoPage: 1,
|
||||
listConfig: {
|
||||
url: `${import.meta.env.VITE_API_BASE_URL}/api/fiee/reports/quarterly/display`,
|
||||
url: "http://erpapi.test.fontree.cn:8081/api/fiee/reports/quarterly/display",
|
||||
// url: "https://erpapi.fiee.com/api/fiee/reports/quarterly/display",
|
||||
params: {
|
||||
filtrate: {
|
||||
@ -221,7 +215,6 @@ const getListData = async () => {
|
||||
...state.listConfig.params,
|
||||
page: state.currentPage,
|
||||
pageSize: state.pageSize,
|
||||
langType: map[locale.value],
|
||||
};
|
||||
const res = await axios.post(state.listConfig.url, params);
|
||||
console.log(res);
|
||||
@ -237,9 +230,6 @@ const getListData = async () => {
|
||||
state.total = res.data.data.total || 0;
|
||||
}
|
||||
};
|
||||
watch(locale, (newLocale, oldLocale) => {
|
||||
getListData();
|
||||
});
|
||||
|
||||
// 总页数
|
||||
const totalPages = computed(() => {
|
||||
|
||||
@ -162,13 +162,7 @@ import { useI18n } from "vue-i18n";
|
||||
// import quarterlyPdf2025Q2 from "@/assets/file/quarterly/10Q 2025-Q2.pdf";
|
||||
// import quarterlyPdf2025Q3N from "@/assets/file/quarterly/10Q 2025-Q1-No1.pdf";
|
||||
import axios from "axios";
|
||||
const { t, locale } = useI18n();
|
||||
const map = {
|
||||
en: "enUS",
|
||||
ja: "jaJP",
|
||||
zh: "zhCN",
|
||||
"zh-TW": "zhTW",
|
||||
};
|
||||
const { t } = useI18n();
|
||||
const searchQuery = ref("");
|
||||
|
||||
const state = reactive({
|
||||
@ -177,7 +171,7 @@ const state = reactive({
|
||||
total: 0,
|
||||
gotoPage: 1,
|
||||
listConfig: {
|
||||
url: `${import.meta.env.VITE_API_BASE_URL}/api/fiee/reports/quarterly/display`,
|
||||
url: "http://erpapi.test.fontree.cn:8081/api/fiee/reports/quarterly/display",
|
||||
// url: "https://erpapi.fiee.com/api/fiee/reports/quarterly/display",
|
||||
params: {
|
||||
filtrate: {
|
||||
@ -221,7 +215,6 @@ const getListData = async () => {
|
||||
...state.listConfig.params,
|
||||
page: state.currentPage,
|
||||
pageSize: state.pageSize,
|
||||
langType: map[locale.value],
|
||||
};
|
||||
const res = await axios.post(state.listConfig.url, params);
|
||||
console.log(res);
|
||||
@ -237,9 +230,6 @@ const getListData = async () => {
|
||||
state.total = res.data.data.total || 0;
|
||||
}
|
||||
};
|
||||
watch(locale, (newLocale, oldLocale) => {
|
||||
getListData();
|
||||
});
|
||||
|
||||
// 总页数
|
||||
const totalPages = computed(() => {
|
||||
|
||||
@ -146,13 +146,7 @@ import { useI18n } from "vue-i18n";
|
||||
// import quarterlyPdf2025Q2 from "@/assets/file/quarterly/10Q 2025-Q2.pdf";
|
||||
// import quarterlyPdf2025Q3N from "@/assets/file/quarterly/10Q 2025-Q1-No1.pdf";
|
||||
import axios from "axios";
|
||||
const { t, locale } = useI18n();
|
||||
const map = {
|
||||
en: "enUS",
|
||||
ja: "jaJP",
|
||||
zh: "zhCN",
|
||||
"zh-TW": "zhTW",
|
||||
};
|
||||
const { t } = useI18n();
|
||||
const searchQuery = ref("");
|
||||
|
||||
const state = reactive({
|
||||
@ -161,7 +155,7 @@ const state = reactive({
|
||||
total: 0,
|
||||
gotoPage: 1,
|
||||
listConfig: {
|
||||
url: `${import.meta.env.VITE_API_BASE_URL}/api/fiee/reports/quarterly/display`,
|
||||
url: "http://erpapi.test.fontree.cn:8081/api/fiee/reports/quarterly/display",
|
||||
// url: "https://erpapi.fiee.com/api/fiee/reports/quarterly/display",
|
||||
params: {
|
||||
filtrate: {
|
||||
@ -205,7 +199,6 @@ const getListData = async () => {
|
||||
...state.listConfig.params,
|
||||
page: state.currentPage,
|
||||
pageSize: state.pageSize,
|
||||
langType: map[locale.value],
|
||||
};
|
||||
const res = await axios.post(state.listConfig.url, params);
|
||||
console.log(res);
|
||||
@ -221,9 +214,6 @@ const getListData = async () => {
|
||||
state.total = res.data.data.total || 0;
|
||||
}
|
||||
};
|
||||
watch(locale, (newLocale, oldLocale) => {
|
||||
getListData();
|
||||
});
|
||||
|
||||
// 总页数
|
||||
const totalPages = computed(() => {
|
||||
|
||||
@ -160,13 +160,7 @@ import { useI18n } from "vue-i18n";
|
||||
// import quarterlyPdf2025Q2 from "@/assets/file/quarterly/10Q 2025-Q2.pdf";
|
||||
// import quarterlyPdf2025Q3N from "@/assets/file/quarterly/10Q 2025-Q1-No1.pdf";
|
||||
import axios from "axios";
|
||||
const { t, locale } = useI18n();
|
||||
const map = {
|
||||
en: "enUS",
|
||||
ja: "jaJP",
|
||||
zh: "zhCN",
|
||||
"zh-TW": "zhTW",
|
||||
};
|
||||
const { t } = useI18n();
|
||||
const searchQuery = ref("");
|
||||
|
||||
const state = reactive({
|
||||
@ -175,7 +169,7 @@ const state = reactive({
|
||||
total: 0,
|
||||
gotoPage: 1,
|
||||
listConfig: {
|
||||
url: `${import.meta.env.VITE_API_BASE_URL}/api/fiee/reports/quarterly/display`,
|
||||
url: "http://erpapi.test.fontree.cn:8081/api/fiee/reports/quarterly/display",
|
||||
// url: "https://erpapi.fiee.com/api/fiee/reports/quarterly/display",
|
||||
params: {
|
||||
filtrate: {
|
||||
@ -219,7 +213,6 @@ const getListData = async () => {
|
||||
...state.listConfig.params,
|
||||
page: state.currentPage,
|
||||
pageSize: state.pageSize,
|
||||
langType: map[locale.value],
|
||||
};
|
||||
const res = await axios.post(state.listConfig.url, params);
|
||||
console.log(res);
|
||||
@ -235,9 +228,6 @@ const getListData = async () => {
|
||||
state.total = res.data.data.total || 0;
|
||||
}
|
||||
};
|
||||
watch(locale, (newLocale, oldLocale) => {
|
||||
getListData();
|
||||
});
|
||||
|
||||
// 总页数
|
||||
const totalPages = computed(() => {
|
||||
|
||||
@ -103,25 +103,16 @@
|
||||
import { useI18n } from "vue-i18n";
|
||||
import { computed } from "vue";
|
||||
import { departmentManagement } from "@/api/auth";
|
||||
import { ref, watch } from "vue";
|
||||
|
||||
const { t, locale } = useI18n();
|
||||
import { ref } from "vue";
|
||||
|
||||
const data = ref([]);
|
||||
const getData = async (params) => {
|
||||
const res = await departmentManagement(params);
|
||||
const getData = async () => {
|
||||
const res = await departmentManagement({});
|
||||
data.value = res?.data?.item || [];
|
||||
};
|
||||
watch(locale, (newLocale, oldLocale) => {
|
||||
console.log("语言已切换:", newLocale);
|
||||
const map = {
|
||||
en: "enUS",
|
||||
ja: "jaJP",
|
||||
zh: "zhCN",
|
||||
"zh-TW": "zhTW",
|
||||
};
|
||||
getData({ langType: map[newLocale] });
|
||||
}, { immediate: true });
|
||||
getData();
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
const leadershipTeam = computed(() => [
|
||||
{
|
||||
|
||||
@ -104,25 +104,16 @@
|
||||
import { useI18n } from "vue-i18n";
|
||||
import { computed } from "vue";
|
||||
import { departmentManagement } from "@/api/auth";
|
||||
import { ref, watch } from "vue";
|
||||
|
||||
const { t, locale } = useI18n();
|
||||
import { ref } from "vue";
|
||||
|
||||
const data = ref([]);
|
||||
const getData = async (params) => {
|
||||
const res = await departmentManagement(params);
|
||||
const getData = async () => {
|
||||
const res = await departmentManagement({});
|
||||
data.value = res?.data?.item || [];
|
||||
};
|
||||
watch(locale, (newLocale, oldLocale) => {
|
||||
console.log("语言已切换:", newLocale);
|
||||
const map = {
|
||||
en: "enUS",
|
||||
ja: "jaJP",
|
||||
zh: "zhCN",
|
||||
"zh-TW": "zhTW",
|
||||
};
|
||||
getData({ langType: map[newLocale] });
|
||||
}, { immediate: true });
|
||||
getData();
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
const leadershipTeam = computed(() => [
|
||||
{
|
||||
|
||||
@ -102,25 +102,16 @@
|
||||
import { useI18n } from "vue-i18n";
|
||||
import { computed } from "vue";
|
||||
import { departmentManagement } from "@/api/auth";
|
||||
import { ref, watch } from "vue";
|
||||
|
||||
const { t, locale } = useI18n();
|
||||
import { ref } from "vue";
|
||||
|
||||
const data = ref([]);
|
||||
const getData = async (params) => {
|
||||
const res = await departmentManagement(params);
|
||||
const getData = async () => {
|
||||
const res = await departmentManagement({});
|
||||
data.value = res?.data?.item || [];
|
||||
};
|
||||
watch(locale, (newLocale, oldLocale) => {
|
||||
console.log("语言已切换:", newLocale);
|
||||
const map = {
|
||||
en: "enUS",
|
||||
ja: "jaJP",
|
||||
zh: "zhCN",
|
||||
"zh-TW": "zhTW",
|
||||
};
|
||||
getData({ langType: map[newLocale] });
|
||||
}, { immediate: true });
|
||||
getData();
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
const leadershipTeam = computed(() => [
|
||||
{
|
||||
|
||||
@ -102,25 +102,16 @@
|
||||
import { useI18n } from "vue-i18n";
|
||||
import { computed } from "vue";
|
||||
import { departmentManagement } from "@/api/auth";
|
||||
import { ref, watch } from "vue";
|
||||
|
||||
const { t, locale } = useI18n();
|
||||
import { ref } from "vue";
|
||||
|
||||
const data = ref([]);
|
||||
const getData = async (params) => {
|
||||
const res = await departmentManagement(params);
|
||||
const getData = async () => {
|
||||
const res = await departmentManagement({});
|
||||
data.value = res?.data?.item || [];
|
||||
};
|
||||
watch(locale, (newLocale, oldLocale) => {
|
||||
console.log("语言已切换:", newLocale);
|
||||
const map = {
|
||||
en: "enUS",
|
||||
ja: "jaJP",
|
||||
zh: "zhCN",
|
||||
"zh-TW": "zhTW",
|
||||
};
|
||||
getData({ langType: map[newLocale] });
|
||||
}, { immediate: true });
|
||||
getData();
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
const leadershipTeam = computed(() => [
|
||||
{
|
||||
|
||||
@ -580,13 +580,6 @@ const newList = ref([
|
||||
// },
|
||||
]);
|
||||
|
||||
const map = {
|
||||
en: "enUS",
|
||||
ja: "jaJP",
|
||||
zh: "zhCN",
|
||||
"zh-TW": "zhTW",
|
||||
};
|
||||
|
||||
// 获取新闻发布(展示在首页的)
|
||||
const getPressReleasesDisplay = () => {
|
||||
let url = `${import.meta.env.VITE_API_BASE_URL}/fiee/pressreleases/display`;
|
||||
@ -594,7 +587,6 @@ const getPressReleasesDisplay = () => {
|
||||
page: 1,
|
||||
pageSize: 10,
|
||||
display: 2, // 1: 不展示在首页 2: 展示在首页
|
||||
langType: map[locale.value],
|
||||
};
|
||||
// console.log(params)
|
||||
axios.post(url, params).then((res) => {
|
||||
@ -614,7 +606,7 @@ const getPressReleasesDisplay = () => {
|
||||
});
|
||||
};
|
||||
|
||||
const { t: $t, locale } = useI18n();
|
||||
const { t: $t } = useI18n();
|
||||
const contentRef = ref(null);
|
||||
const isInView = ref(false);
|
||||
let observer = null;
|
||||
@ -649,11 +641,6 @@ onMounted(() => {
|
||||
});
|
||||
});
|
||||
|
||||
// 监听语言切换
|
||||
watch(locale, (newLocale) => {
|
||||
getPressReleasesDisplay();
|
||||
});
|
||||
|
||||
const titleRefs = ref([]);
|
||||
|
||||
const setTitleRef = (el, idx) => {
|
||||
@ -693,7 +680,7 @@ const handleLink = (item) => {
|
||||
router.push({
|
||||
path: "/news",
|
||||
query: {
|
||||
id: item.uuid,
|
||||
id: item.id,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
@ -580,13 +580,6 @@ const newList = ref([
|
||||
// },
|
||||
]);
|
||||
|
||||
const map = {
|
||||
en: "enUS",
|
||||
ja: "jaJP",
|
||||
zh: "zhCN",
|
||||
"zh-TW": "zhTW",
|
||||
};
|
||||
|
||||
// 获取新闻发布(展示在首页的)
|
||||
const getPressReleasesDisplay = () => {
|
||||
let url = `${import.meta.env.VITE_API_BASE_URL}/fiee/pressreleases/display`;
|
||||
@ -594,7 +587,6 @@ const getPressReleasesDisplay = () => {
|
||||
page: 1,
|
||||
pageSize: 10,
|
||||
display: 2, // 1: 不展示在首页 2: 展示在首页
|
||||
langType: map[locale.value],
|
||||
};
|
||||
// console.log(params)
|
||||
axios.post(url, params).then((res) => {
|
||||
@ -614,7 +606,7 @@ const getPressReleasesDisplay = () => {
|
||||
});
|
||||
};
|
||||
|
||||
const { t: $t, locale } = useI18n();
|
||||
const { t: $t } = useI18n();
|
||||
const contentRef = ref(null);
|
||||
const isInView = ref(false);
|
||||
let observer = null;
|
||||
@ -649,11 +641,6 @@ onMounted(() => {
|
||||
});
|
||||
});
|
||||
|
||||
// 监听语言切换
|
||||
watch(locale, (newLocale) => {
|
||||
getPressReleasesDisplay();
|
||||
});
|
||||
|
||||
const titleRefs = ref([]);
|
||||
|
||||
const setTitleRef = (el, idx) => {
|
||||
@ -693,7 +680,7 @@ const handleLink = (item) => {
|
||||
router.push({
|
||||
path: "/news",
|
||||
query: {
|
||||
id: item.uuid,
|
||||
id: item.id,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
@ -369,13 +369,6 @@ const newList = ref([
|
||||
// },
|
||||
]);
|
||||
|
||||
const map = {
|
||||
en: "enUS",
|
||||
ja: "jaJP",
|
||||
zh: "zhCN",
|
||||
"zh-TW": "zhTW",
|
||||
};
|
||||
|
||||
// 获取新闻发布(展示在首页的)
|
||||
const getPressReleasesDisplay = () => {
|
||||
let url = `${import.meta.env.VITE_API_BASE_URL}/fiee/pressreleases/display`;
|
||||
@ -383,7 +376,6 @@ const getPressReleasesDisplay = () => {
|
||||
page: 1,
|
||||
pageSize: 10,
|
||||
display: 2, // 1: 不展示在首页 2: 展示在首页
|
||||
langType: map[locale.value],
|
||||
};
|
||||
// console.log(params)
|
||||
axios.post(url, params).then((res) => {
|
||||
@ -403,7 +395,7 @@ const getPressReleasesDisplay = () => {
|
||||
});
|
||||
};
|
||||
|
||||
const { t: $t, locale } = useI18n();
|
||||
const { t: $t } = useI18n();
|
||||
const contentRef = ref(null);
|
||||
const isInView = ref(false);
|
||||
let observer = null;
|
||||
@ -438,11 +430,6 @@ onMounted(() => {
|
||||
});
|
||||
});
|
||||
|
||||
// 监听语言切换
|
||||
watch(locale, (newLocale) => {
|
||||
getPressReleasesDisplay();
|
||||
});
|
||||
|
||||
const titleRefs = ref([]);
|
||||
|
||||
const setTitleRef = (el, idx) => {
|
||||
@ -482,7 +469,7 @@ const handleLink = (item) => {
|
||||
router.push({
|
||||
path: "/news",
|
||||
query: {
|
||||
id: item.uuid,
|
||||
id: item.id,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
@ -540,12 +540,6 @@ const newList = ref([
|
||||
// },
|
||||
]);
|
||||
|
||||
const map = {
|
||||
en: "enUS",
|
||||
ja: "jaJP",
|
||||
zh: "zhCN",
|
||||
"zh-TW": "zhTW",
|
||||
};
|
||||
// 获取新闻发布(展示在首页的)
|
||||
const getPressReleasesDisplay = () => {
|
||||
let url = `${import.meta.env.VITE_API_BASE_URL}/fiee/pressreleases/display`;
|
||||
@ -553,7 +547,6 @@ const getPressReleasesDisplay = () => {
|
||||
page: 1,
|
||||
pageSize: 10,
|
||||
display: 2, // 1: 不展示在首页 2: 展示在首页
|
||||
langType: map[locale.value],
|
||||
};
|
||||
// console.log(params)
|
||||
axios.post(url, params).then((res) => {
|
||||
@ -573,7 +566,7 @@ const getPressReleasesDisplay = () => {
|
||||
});
|
||||
};
|
||||
|
||||
const { t: $t, locale } = useI18n();
|
||||
const { t: $t } = useI18n();
|
||||
const contentRef = ref(null);
|
||||
const isInView = ref(false);
|
||||
let observer = null;
|
||||
@ -608,11 +601,6 @@ onMounted(() => {
|
||||
});
|
||||
});
|
||||
|
||||
// 监听语言切换
|
||||
watch(locale, (newLocale) => {
|
||||
getPressReleasesDisplay();
|
||||
});
|
||||
|
||||
const titleRefs = ref([]);
|
||||
|
||||
const setTitleRef = (el, idx) => {
|
||||
@ -652,7 +640,7 @@ const handleLink = (item) => {
|
||||
router.push({
|
||||
path: "/news",
|
||||
query: {
|
||||
id: item.uuid,
|
||||
id: item.id,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div class="relative">
|
||||
<div
|
||||
class="w-[100vw] min-h-[100vh] bg-[#ffffff] z-[1] top-0 left-0 bottom-0 right-0 absolute"
|
||||
class="w-[100vw] bg-[#ffffff] z-[1] top-0 left-0 bottom-0 right-0 absolute"
|
||||
></div>
|
||||
<div
|
||||
class="page-container overflow-hidden z-10 relative"
|
||||
@ -19,21 +19,15 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { reactive, onMounted, watch } from "vue";
|
||||
import { reactive, onMounted } from "vue";
|
||||
import { NSelect, NInput, NButton } from "naive-ui";
|
||||
|
||||
import { useI18n } from "vue-i18n";
|
||||
const { t, locale } = useI18n();
|
||||
const { t } = useI18n();
|
||||
import { useRoute } from "vue-router";
|
||||
const route = useRoute();
|
||||
import axios from "axios";
|
||||
|
||||
const map = {
|
||||
en: "enUS",
|
||||
ja: "jaJP",
|
||||
zh: "zhCN",
|
||||
"zh-TW": "zhTW",
|
||||
};
|
||||
const state = reactive({
|
||||
id: "", // 新闻id
|
||||
});
|
||||
@ -46,9 +40,9 @@ onMounted(() => {
|
||||
|
||||
//获取新闻信息
|
||||
const getPressReleasesInfo = () => {
|
||||
let url = `${import.meta.env.VITE_API_BASE_URL}/fiee/pressreleases?uuid=${
|
||||
let url = `${import.meta.env.VITE_API_BASE_URL}/fiee/pressreleases?id=${
|
||||
state.id
|
||||
}&langType=${map[locale.value]}`;
|
||||
}`;
|
||||
axios.get(url).then((res) => {
|
||||
// console.log(res)
|
||||
if (res.status === 200) {
|
||||
@ -59,10 +53,6 @@ const getPressReleasesInfo = () => {
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
watch(locale, (newLocale, oldLocale) => {
|
||||
getPressReleasesInfo();
|
||||
});
|
||||
</script>
|
||||
<style scoped lang="scss">
|
||||
.page-container {
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div class="relative">
|
||||
<div
|
||||
class="w-[100vw] min-h-[100vh] bg-[#ffffff] z-[1] top-0 left-0 bottom-0 right-0 absolute"
|
||||
class="w-[100vw] bg-[#ffffff] z-[1] top-0 left-0 bottom-0 right-0 absolute"
|
||||
></div>
|
||||
<div
|
||||
class="page-container overflow-hidden z-10 relative"
|
||||
@ -19,11 +19,11 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { reactive, onMounted, watch } from "vue";
|
||||
import { reactive, onMounted } from "vue";
|
||||
import { NSelect, NInput, NButton } from "naive-ui";
|
||||
|
||||
import { useI18n } from "vue-i18n";
|
||||
const { t, locale } = useI18n();
|
||||
const { t } = useI18n();
|
||||
import { useRoute } from "vue-router";
|
||||
const route = useRoute();
|
||||
import axios from "axios";
|
||||
@ -38,18 +38,11 @@ onMounted(() => {
|
||||
getPressReleasesInfo();
|
||||
});
|
||||
|
||||
const map = {
|
||||
en: "enUS",
|
||||
ja: "jaJP",
|
||||
zh: "zhCN",
|
||||
"zh-TW": "zhTW",
|
||||
};
|
||||
|
||||
//获取新闻信息
|
||||
const getPressReleasesInfo = () => {
|
||||
let url = `${import.meta.env.VITE_API_BASE_URL}/fiee/pressreleases?uuid=${
|
||||
let url = `${import.meta.env.VITE_API_BASE_URL}/fiee/pressreleases?id=${
|
||||
state.id
|
||||
}&langType=${map[locale.value]}`;
|
||||
}`;
|
||||
axios.get(url).then((res) => {
|
||||
// console.log(res)
|
||||
if (res.status === 200) {
|
||||
@ -60,11 +53,6 @@ const getPressReleasesInfo = () => {
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
// 监听语言切换
|
||||
watch(locale, (newLocale, oldLocale) => {
|
||||
getPressReleasesInfo();
|
||||
});
|
||||
</script>
|
||||
<style scoped lang="scss">
|
||||
.page-container {
|
||||
|
||||
@ -5,11 +5,11 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { reactive, onMounted, watch } from "vue";
|
||||
import { reactive, onMounted } from "vue";
|
||||
import { NSelect, NInput, NButton } from "naive-ui";
|
||||
|
||||
import { useI18n } from "vue-i18n";
|
||||
const { t, locale } = useI18n();
|
||||
const { t } = useI18n();
|
||||
import { useRoute } from "vue-router";
|
||||
const route = useRoute();
|
||||
import axios from 'axios'
|
||||
@ -24,18 +24,9 @@ onMounted(() => {
|
||||
getPressReleasesInfo();
|
||||
});
|
||||
|
||||
const map = {
|
||||
en: "enUS",
|
||||
ja: "jaJP",
|
||||
zh: "zhCN",
|
||||
"zh-TW": "zhTW",
|
||||
};
|
||||
|
||||
//获取新闻信息
|
||||
const getPressReleasesInfo = () => {
|
||||
let url = `${import.meta.env.VITE_API_BASE_URL}/fiee/pressreleases?uuid=${
|
||||
state.id
|
||||
}&langType=${map[locale.value]}`;
|
||||
let url = 'https://erpapi.fiee.com/api/fiee/pressreleases?id=' + state.id
|
||||
axios.get(url).then((res) => {
|
||||
// console.log(res)
|
||||
if (res.status === 200) {
|
||||
@ -46,11 +37,6 @@ const getPressReleasesInfo = () => {
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 监听语言切换
|
||||
watch(locale, (newLocale, oldLocale) => {
|
||||
getPressReleasesInfo();
|
||||
});
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
|
||||
@ -5,11 +5,11 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { reactive, onMounted, watch } from "vue";
|
||||
import { reactive, onMounted } from "vue";
|
||||
import { NSelect, NInput, NButton } from "naive-ui";
|
||||
|
||||
import { useI18n } from "vue-i18n";
|
||||
const { t, locale } = useI18n();
|
||||
const { t } = useI18n();
|
||||
import { useRoute } from "vue-router";
|
||||
const route = useRoute();
|
||||
import axios from 'axios'
|
||||
@ -24,20 +24,9 @@ onMounted(() => {
|
||||
getPressReleasesInfo();
|
||||
});
|
||||
|
||||
const map = {
|
||||
en: "enUS",
|
||||
ja: "jaJP",
|
||||
zh: "zhCN",
|
||||
"zh-TW": "zhTW",
|
||||
};
|
||||
|
||||
|
||||
|
||||
//获取新闻信息
|
||||
const getPressReleasesInfo = () => {
|
||||
let url = `${import.meta.env.VITE_API_BASE_URL}/fiee/pressreleases?uuid=${
|
||||
state.id
|
||||
}&langType=${map[locale.value]}`;
|
||||
let url = 'https://erpapi.fiee.com/api/fiee/pressreleases?id=' + state.id
|
||||
axios.get(url).then((res) => {
|
||||
// console.log(res)
|
||||
if (res.status === 200) {
|
||||
@ -48,11 +37,6 @@ const getPressReleasesInfo = () => {
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 监听语言切换
|
||||
watch(locale, (newLocale, oldLocale) => {
|
||||
getPressReleasesInfo();
|
||||
});
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
|
||||
@ -209,7 +209,7 @@ import axios from "axios";
|
||||
|
||||
import { useRouter } from "vue-router";
|
||||
const router = useRouter();
|
||||
const { t, locale } = useI18n();
|
||||
const { t } = useI18n();
|
||||
|
||||
const state = reactive({
|
||||
selectedValue: "all_years", //选中值
|
||||
@ -275,13 +275,6 @@ watch(
|
||||
{ deep: true }
|
||||
);
|
||||
|
||||
const map = {
|
||||
en: "enUS",
|
||||
ja: "jaJP",
|
||||
zh: "zhCN",
|
||||
"zh-TW": "zhTW",
|
||||
};
|
||||
|
||||
// 获取新闻列表
|
||||
const getPressReleasesDisplay = () => {
|
||||
state.loading = true;
|
||||
@ -295,7 +288,6 @@ const getPressReleasesDisplay = () => {
|
||||
? null
|
||||
: new Date(state.selectedValue).getTime()
|
||||
: null,
|
||||
langType: map[locale.value],
|
||||
};
|
||||
axios
|
||||
.post(url, params)
|
||||
@ -303,7 +295,7 @@ const getPressReleasesDisplay = () => {
|
||||
if (res.status === 200) {
|
||||
if (res.data.status === 0) {
|
||||
res.data.data?.data?.forEach((item) => {
|
||||
item.date = new Date(item.date).toLocaleDateString("en-US", {
|
||||
item.date = new Date(item.createdAt).toLocaleDateString("en-US", {
|
||||
month: "short",
|
||||
day: "numeric",
|
||||
year: "numeric",
|
||||
@ -319,9 +311,6 @@ const getPressReleasesDisplay = () => {
|
||||
});
|
||||
};
|
||||
|
||||
watch(locale, (newLocale, oldLocale) => {
|
||||
getPressReleasesDisplay();
|
||||
});
|
||||
// 添加 watcher 来实现自动筛选
|
||||
watch(
|
||||
() => [state.selectedValue, state.inputValue],
|
||||
@ -356,7 +345,7 @@ const handleNewClick = (item) => {
|
||||
router.push({
|
||||
path: "/news",
|
||||
query: {
|
||||
id: item.uuid,
|
||||
id: item.id,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
@ -209,7 +209,7 @@ import axios from "axios";
|
||||
|
||||
import { useRouter } from "vue-router";
|
||||
const router = useRouter();
|
||||
const { t, locale } = useI18n();
|
||||
const { t } = useI18n();
|
||||
|
||||
const state = reactive({
|
||||
selectedValue: "all_years", //选中值
|
||||
@ -275,13 +275,6 @@ watch(
|
||||
{ deep: true }
|
||||
);
|
||||
|
||||
const map = {
|
||||
en: "enUS",
|
||||
ja: "jaJP",
|
||||
zh: "zhCN",
|
||||
"zh-TW": "zhTW",
|
||||
};
|
||||
|
||||
// 获取新闻列表
|
||||
const getPressReleasesDisplay = () => {
|
||||
state.loading = true;
|
||||
@ -295,7 +288,6 @@ const getPressReleasesDisplay = () => {
|
||||
? null
|
||||
: new Date(state.selectedValue).getTime()
|
||||
: null,
|
||||
langType: map[locale.value],
|
||||
};
|
||||
axios
|
||||
.post(url, params)
|
||||
@ -303,7 +295,7 @@ const getPressReleasesDisplay = () => {
|
||||
if (res.status === 200) {
|
||||
if (res.data.status === 0) {
|
||||
res.data.data?.data?.forEach((item) => {
|
||||
item.date = new Date(item.date).toLocaleDateString("en-US", {
|
||||
item.date = new Date(item.createdAt).toLocaleDateString("en-US", {
|
||||
month: "short",
|
||||
day: "numeric",
|
||||
year: "numeric",
|
||||
@ -319,10 +311,6 @@ const getPressReleasesDisplay = () => {
|
||||
});
|
||||
};
|
||||
|
||||
watch(locale, (newLocale, oldLocale) => {
|
||||
getPressReleasesDisplay();
|
||||
});
|
||||
|
||||
// 添加 watcher 来实现自动筛选
|
||||
watch(
|
||||
() => [state.selectedValue, state.inputValue],
|
||||
@ -357,7 +345,7 @@ const handleNewClick = (item) => {
|
||||
router.push({
|
||||
path: "/news",
|
||||
query: {
|
||||
id: item.uuid,
|
||||
id: item.id,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
@ -216,7 +216,7 @@ import axios from "axios";
|
||||
|
||||
import { useRouter } from "vue-router";
|
||||
const router = useRouter();
|
||||
const { t, locale } = useI18n();
|
||||
const { t } = useI18n();
|
||||
|
||||
const state = reactive({
|
||||
selectedValue: "all_years", //选中值
|
||||
@ -303,13 +303,6 @@ watch(
|
||||
{ deep: true }
|
||||
);
|
||||
|
||||
const map = {
|
||||
en: "enUS",
|
||||
ja: "jaJP",
|
||||
zh: "zhCN",
|
||||
"zh-TW": "zhTW",
|
||||
};
|
||||
|
||||
// 获取新闻列表
|
||||
const getPressReleasesDisplay = () => {
|
||||
state.loading = true;
|
||||
@ -323,7 +316,6 @@ const getPressReleasesDisplay = () => {
|
||||
? null
|
||||
: new Date(state.selectedValue).getTime()
|
||||
: null,
|
||||
langType: map[locale.value],
|
||||
};
|
||||
axios
|
||||
.post(url, params)
|
||||
@ -331,7 +323,7 @@ const getPressReleasesDisplay = () => {
|
||||
if (res.status === 200) {
|
||||
if (res.data.status === 0) {
|
||||
res.data.data?.data?.forEach((item) => {
|
||||
item.date = new Date(item.date).toLocaleDateString("en-US", {
|
||||
item.date = new Date(item.createdAt).toLocaleDateString("en-US", {
|
||||
month: "short",
|
||||
day: "numeric",
|
||||
year: "numeric",
|
||||
@ -347,10 +339,6 @@ const getPressReleasesDisplay = () => {
|
||||
});
|
||||
};
|
||||
|
||||
watch(locale, (newLocale, oldLocale) => {
|
||||
getPressReleasesDisplay();
|
||||
});
|
||||
|
||||
// 添加 watcher 来实现自动筛选
|
||||
watch(
|
||||
() => [state.selectedValue, state.inputValue],
|
||||
@ -385,7 +373,7 @@ const handleNewClick = (item) => {
|
||||
router.push({
|
||||
path: "/news",
|
||||
query: {
|
||||
id: item.uuid,
|
||||
id: item.id,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
@ -209,7 +209,7 @@ import axios from "axios";
|
||||
|
||||
import { useRouter } from "vue-router";
|
||||
const router = useRouter();
|
||||
const { t, locale } = useI18n();
|
||||
const { t } = useI18n();
|
||||
|
||||
const state = reactive({
|
||||
selectedValue: "all_years", //选中值
|
||||
@ -275,13 +275,6 @@ watch(
|
||||
{ deep: true }
|
||||
);
|
||||
|
||||
const map = {
|
||||
en: "enUS",
|
||||
ja: "jaJP",
|
||||
zh: "zhCN",
|
||||
"zh-TW": "zhTW",
|
||||
};
|
||||
|
||||
// 获取新闻列表
|
||||
const getPressReleasesDisplay = () => {
|
||||
state.loading = true;
|
||||
@ -295,7 +288,6 @@ const getPressReleasesDisplay = () => {
|
||||
? null
|
||||
: new Date(state.selectedValue).getTime()
|
||||
: null,
|
||||
langType: map[locale.value],
|
||||
};
|
||||
axios
|
||||
.post(url, params)
|
||||
@ -303,7 +295,7 @@ const getPressReleasesDisplay = () => {
|
||||
if (res.status === 200) {
|
||||
if (res.data.status === 0) {
|
||||
res.data.data?.data?.forEach((item) => {
|
||||
item.date = new Date(item.date).toLocaleDateString("en-US", {
|
||||
item.date = new Date(item.createdAt).toLocaleDateString("en-US", {
|
||||
month: "short",
|
||||
day: "numeric",
|
||||
year: "numeric",
|
||||
@ -319,10 +311,6 @@ const getPressReleasesDisplay = () => {
|
||||
});
|
||||
};
|
||||
|
||||
watch(locale, (newLocale, oldLocale) => {
|
||||
getPressReleasesDisplay();
|
||||
});
|
||||
|
||||
// 添加 watcher 来实现自动筛选
|
||||
watch(
|
||||
() => [state.selectedValue, state.inputValue],
|
||||
@ -357,7 +345,7 @@ const handleNewClick = (item) => {
|
||||
router.push({
|
||||
path: "/news",
|
||||
query: {
|
||||
id: item.uuid,
|
||||
id: item.id,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user