|
@@ -36,8 +36,8 @@ async function getStage() {
|
|
|
maxStage.value = response.data.message;
|
|
|
haveStage.value = true;
|
|
|
|
|
|
- // 層級小於五層才顯示新增按鈕
|
|
|
- if (response.data.message < 5) {
|
|
|
+ // 層級小於四層才顯示新增按鈕
|
|
|
+ if (response.data.message < 4) {
|
|
|
showStageBtn.value = true;
|
|
|
} else {
|
|
|
showStageBtn.value = false;
|
|
@@ -129,21 +129,11 @@ const regionsList = reactive([
|
|
|
{ region: "台灣", code: "tw" },
|
|
|
{ region: "馬來西亞", code: "my" },
|
|
|
{ region: "美國", code: "us" },
|
|
|
- { region: "加拿大", code: "ca" },
|
|
|
- { region: "英國", code: "gb" },
|
|
|
{ region: "中國", code: "cn" },
|
|
|
{ region: "日本", code: "jp" },
|
|
|
{ region: "韓國", code: "kr" },
|
|
|
- { region: "德國", code: "de" },
|
|
|
{ region: "法國", code: "fr" },
|
|
|
- { region: "義大利", code: "it" },
|
|
|
- { region: "西班牙", code: "es" },
|
|
|
- { region: "澳大利亞", code: "au" },
|
|
|
{ region: "印度", code: "in" },
|
|
|
- { region: "巴西", code: "br" },
|
|
|
- { region: "俄羅斯", code: "ru" },
|
|
|
- { region: "南非", code: "za" },
|
|
|
- { region: "新加坡", code: "sg" },
|
|
|
]);
|
|
|
|
|
|
// 語言
|
|
@@ -151,32 +141,10 @@ const languageList = [
|
|
|
{ language: "繁體中文", code: "zh-TW" },
|
|
|
{ language: "英文", code: "en" },
|
|
|
{ language: "簡體中文", code: "zh" },
|
|
|
- { language: "西班牙語", code: "es" },
|
|
|
{ language: "法語", code: "fr" },
|
|
|
- { language: "德語", code: "de" },
|
|
|
- { language: "意大利語", code: "it" },
|
|
|
- { language: "葡萄牙語", code: "pt" },
|
|
|
- { language: "俄語", code: "ru" },
|
|
|
{ language: "日語", code: "ja" },
|
|
|
{ language: "韓語", code: "ko" },
|
|
|
- { language: "阿拉伯語", code: "ar" },
|
|
|
{ language: "印地語", code: "hi" },
|
|
|
- { language: "泰語", code: "th" },
|
|
|
- { language: "越南語", code: "vi" },
|
|
|
- { language: "土耳其語", code: "tr" },
|
|
|
- { language: "希臘語", code: "el" },
|
|
|
- { language: "希伯來語", code: "he" },
|
|
|
- { language: "波蘭語", code: "pl" },
|
|
|
- { language: "荷蘭語", code: "nl" },
|
|
|
- { language: "瑞典語", code: "sv" },
|
|
|
- { language: "丹麥語", code: "da" },
|
|
|
- { language: "挪威語", code: "no" },
|
|
|
- { language: "芬蘭語", code: "fi" },
|
|
|
- { language: "捷克語", code: "cs" },
|
|
|
- { language: "匈牙利語", code: "hu" },
|
|
|
- { language: "斯洛伐克語", code: "sk" },
|
|
|
- { language: "斯洛文尼亞語", code: "sl" },
|
|
|
- { language: "克羅埃西亞語", code: "hr" },
|
|
|
];
|
|
|
|
|
|
let stateList = reactive([]);
|
|
@@ -224,7 +192,11 @@ const headers = [
|
|
|
|
|
|
// 計算下拉選單層級數
|
|
|
const filteredStage = computed(() => {
|
|
|
- return Array.from({ length: maxStage.value }, (_, i) => (i + 1).toString());
|
|
|
+ let arr = Array.from({ length: maxStage.value }, (_, i) =>
|
|
|
+ (i + 1).toString()
|
|
|
+ );
|
|
|
+ arr = arr.filter((stage) => stage !== "1"); // 移除第一層
|
|
|
+ return arr;
|
|
|
});
|
|
|
|
|
|
// 插入資料
|