From 157b2c18b8f62eb1bef0c4cc2c84bcae83a23a06 Mon Sep 17 00:00:00 2001 From: zhangjiming Date: Sat, 22 Feb 2025 16:22:13 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=89=E6=8B=A9=E5=B7=A5=E8=89=BA=E5=BC=B9?= =?UTF-8?q?=E6=A1=86=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/stores/setting.ts | 12 ++ src/views/graphite/components/CraftList.vue | 247 ++++++++++++---------------- 2 files changed, 120 insertions(+), 139 deletions(-) diff --git a/src/stores/setting.ts b/src/stores/setting.ts index 4c2aa52..32dc3ca 100644 --- a/src/stores/setting.ts +++ b/src/stores/setting.ts @@ -3,10 +3,19 @@ import type { ConfigItem, ConfigSubItem, Container } from "@/services/sysConfig/ import { defineStore } from "pinia"; import { computed, ref } from "vue"; import * as R from "ramda"; +import type { Craft, Ore } from "@/services/ore/oreManage"; export type ContainerWithLiquid = Container & { solution: Liquid }; export const useSettingStore = defineStore("setting", () => { + const oreList = ref(); + const setOreList = (ore: Ore[]) => { + oreList.value = ore; + }; + + const allCrafts = computed(() => { + return R.pipe(R.pluck("craftsList"), R.flatten)(oreList.value || []) as Ore["craftsList"]; + }); const configs = ref(); const setConfigs = (usr: ConfigItem[]) => { configs.value = usr; @@ -90,6 +99,9 @@ export const useSettingStore = defineStore("setting", () => { }); return { + oreList, + setOreList, + allCrafts, heatAreaConfig, areaOptions, actionAreaConfig, diff --git a/src/views/graphite/components/CraftList.vue b/src/views/graphite/components/CraftList.vue index d6f6c62..8dd677a 100644 --- a/src/views/graphite/components/CraftList.vue +++ b/src/views/graphite/components/CraftList.vue @@ -1,146 +1,115 @@ \ No newline at end of file +.craft { + background: #ffffff; + + .craft_title { + height: 1.875rem; + margin-left: 1.25rem; + margin-top: 1.875rem; + color: #40474e; + font-weight: 500; + font-size: 1.25rem; + display: flex; + + .ore_select { + margin-top: -0.5rem; + margin-left: 0.5rem; + } + } +} + +.craft_column_name { + height: 1.875rem; + margin-left: 1.5rem; + margin-top: 0.625rem; + font-size: 1.5rem; + color: #868686; +} + +.craft_item { + .craft_li { + display: flex; + align-items: center; + width: 23.75rem; + height: 3.125rem; + padding-left: 1.875rem; + font-size: 1.25rem; + color: rgba(0, 0, 0, 0.85); + } +} +