- Reorganize project structure with new electron and shared directories - Add comprehensive i18n support with Chinese, English, and Japanese locales - Update build configurations and TypeScript paths for new structure - Add various UI components including chat interface and task management - Include Windows release binaries and localization files - Update dependencies and fix import paths throughout the codebase
2 lines
4.4 KiB
JavaScript
2 lines
4.4 KiB
JavaScript
import{a8 as $,a9 as k,aa as B,ab as S,e as u,f as p,j as t,F as v,z as E,k as g,v as l,A,D as m,E as y,t as h,m as C,n as b,h as c,ac as N,w as i,H as _,o as L,g as z,s as V,_ as M,ad as D}from"./index-Vy2R4VLt.js";import{_ as F}from"./index.vue_vue_type_script_setup_true_lang-DFmKtA1a.js";const R=[{id:1,name:"账号",icon:$,color:"#525866",activeColor:"#2B7FFF",componentName:"AccountSetting"},{id:2,name:"渠道管理",icon:k,color:"#525866",activeColor:"#2B7FFF",componentName:"ChannelSetting"},{id:3,name:"房型管理",icon:B,color:"#525866",activeColor:"#2B7FFF",componentName:"RoomTypeSetting"},{id:4,name:"通用设置",icon:S,color:"#525866",activeColor:"#2B7FFF",componentName:"Version"}],T={class:"w-[136px] h-full box-border border-r-[1px] border-r-[#E5E8EE] py-[12px] px-[8px] flex flex-col gap-[4px] select-none"},j=["onClick"],P={class:"box-border px-[8px] text-[14px] font-medium text-[#525866]"},H=u({__name:"index",emits:["change"],setup(d,{emit:r}){const e=C(1),a=r,n=async o=>{e.value=o.id,a("change",o)};return(o,x)=>(l(),p("div",T,[x[0]||(x[0]=t("div",{class:"text-[12px] text-[#99A0AE] p-[4px]"},"系统设置",-1)),(l(!0),p(v,null,E(g(R),s=>(l(),p("div",{class:A(["box-border flex items-center py-[10px] px-[12px] rounded-[6px] cursor-pointer",s.id===e.value?"bg-[#EFF6FF]":""]),key:s.id,onClick:w=>n(s)},[(l(),m(y(s.icon),{color:s.id===e.value?s.activeColor:s.color,class:"w-[20px] h-[20px]"},null,8,["color"])),t("span",P,h(s.name),1)],10,j))),128))]))}}),I={class:"flex-1 h-full p-[20px] select-none"},q={class:"w-full flex items-center py-[20px] box-border border-b-[1px] border-dashed border-b-[#E5E8EE]"},G={class:"border-[1px] border-[#E5E8EE] rounded-[6px] px-[6px] py-[4px] flex items-center ml-[24px]"},f=u({__name:"index",setup(d){return(r,e)=>{const a=b("el-button");return l(),p("div",I,[c(F,{title:"账号设置",desc:"请关联PMS和渠道房型名称,可使用智能对标"}),e[4]||(e[4]=t("div",{class:"w-full flex items-center mt-[20px] py-[20px] box-border border-b-[1px] border-dashed border-b-[#E5E8EE]"},[t("div",{class:"label w-[64px] text-[16px] font-medium text-[#171717] mr-[24px]"},"账号"),t("div",{class:"value text-[14px] font-medium text-[#171717]"},"1234567890")],-1)),t("div",q,[e[2]||(e[2]=t("div",{class:"label w-[64px] text-[16px] font-medium text-[#171717] mr-[24px]"},"登录密码",-1)),e[3]||(e[3]=t("div",{class:"value text-[14px] text-[#99A0AE]"},"保障投资者登录操作时使用,上次登录时间:2022-11-09 16:24:30",-1)),t("div",G,[c(g(N),{class:"w-[16px] h-[16px]",color:"#1FC16B"}),e[0]||(e[0]=t("span",{class:"text-[12px] text-[#525866] ml-[2px]"},"已设置",-1))]),c(a,{type:"text",class:"ml-auto"},{default:i(()=>[...e[1]||(e[1]=[_("修改密码",-1)])]),_:1})])])}}}),J={class:"flex-1 h-full p-[20px] select-none"},K={class:"w-full flex items-center mt-[20px] py-[20px] box-border border-b-[1px] border-dashed border-b-[#E5E8EE]"},O={class:"w-full flex items-center mt-[20px] py-[20px] box-border border-b-[1px] border-dashed border-b-[#E5E8EE]"},Q={class:"value flex gap-2"},U=u({__name:"index",setup(d){const r=[{code:"zh",label:"中文"},{code:"en",label:"English"},{code:"ja",label:"日本語"}],e=C("zh");L(()=>{e.value=z()});const a=async n=>{n!==e.value&&(await V(n),e.value=n)};return(n,o)=>{const x=b("el-button");return l(),p("div",J,[c(F,{title:"账号设置",desc:"请关联PMS和渠道房型名称,可使用智能对标"}),t("div",K,[o[1]||(o[1]=t("div",{class:"label w-[64px] text-[16px] font-medium text-[#171717] mr-[24px]"},"当前版本",-1)),o[2]||(o[2]=t("div",{class:"value text-[16px] font-medium text-[#171717]"},"1.0.0",-1)),c(x,{type:"text",class:"ml-auto"},{default:i(()=>[...o[0]||(o[0]=[_("检查更新",-1)])]),_:1})]),t("div",O,[o[3]||(o[3]=t("div",{class:"label w-[64px] text-[16px] font-medium text-[#171717] mr-[24px]"},"语言设置",-1)),t("div",Q,[(l(),p(v,null,E(r,s=>c(x,{key:s.code,type:e.value===s.code?"primary":"text",onClick:w=>a(s.code),class:"px-4"},{default:i(()=>[_(h(s.label),1)]),_:2},1032,["type","onClick"])),64))])])])}}}),W={};function X(d,r){return null}const Y=M(W,[["render",X]]),Z={class:"bg-white box-border w-full h-full flex"},oe=u({__name:"index",setup(d){const r=D(f),e={AccountSetting:f,RoomTypeSetting:Y,Version:U},a=({componentName:n})=>r.value=e[n];return(n,o)=>{const x=b("layout");return l(),m(x,null,{default:i(()=>[t("div",Z,[c(H,{onChange:a}),(l(),m(y(r.value)))])]),_:1})}}});export{oe as default};
|