This commit is contained in:
Silent YANG 2024-06-09 19:26:38 +08:00
parent a52f65cc5d
commit 7f531813f1
5 changed files with 8 additions and 5 deletions

View file

@ -2,7 +2,6 @@
<html lang="zh-cmn"> <html lang="zh-cmn">
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<link rel="shortcut icon" type="image/x-icon" href="https://unpkg.byted-static.com/latest/byted/arco-config/assets/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>K5Web</title> <title>K5Web</title>
<style> <style>

View file

@ -153,6 +153,7 @@ export default {
'menu.cps.mdc': 'MDC Contact', 'menu.cps.mdc': 'MDC Contact',
'cps.contact': 'Name', 'cps.contact': 'Name',
'cps.mdcid': 'MDC ID', 'cps.mdcid': 'MDC ID',
'idea.diy': 'LOSEHU DIY',
...localeSettings, ...localeSettings,
...localeMessageBox, ...localeMessageBox,
...localeLogin, ...localeLogin,

View file

@ -153,6 +153,7 @@ export default {
'menu.cps.mdc': 'MDC 联系人', 'menu.cps.mdc': 'MDC 联系人',
'cps.contact': '联系人', 'cps.contact': '联系人',
'cps.mdcid': 'MDC ID', 'cps.mdcid': 'MDC ID',
'idea.diy': '自定义萝卜固件',
...localeSettings, ...localeSettings,
...localeMessageBox, ...localeMessageBox,
...localeLogin, ...localeLogin,

View file

@ -37,7 +37,7 @@ const IDEA: AppRouteRecordRaw = {
name: 'ideaLosehu', name: 'ideaLosehu',
component: () => import('@/views/idea/losehu/index.vue'), component: () => import('@/views/idea/losehu/index.vue'),
meta: { meta: {
locale: '自定义萝卜固件', locale: 'idea.diy',
requiresAuth: true, requiresAuth: true,
roles: ['*'], roles: ['*'],
}, },

View file

@ -1,9 +1,9 @@
<template> <template>
<div class="container"> <div class="container">
<Breadcrumb :items="[$t('menu.workshop'), '自定义萝卜固件']" /> <Breadcrumb :items="[$t('menu.workshop'), $t('idea.diy')]" />
<a-row :gutter="20" align="stretch"> <a-row :gutter="20" align="stretch">
<a-col :span="24"> <a-col :span="24">
<a-card class="general-card" title="自定义萝卜固件" :loading="loading"> <a-card class="general-card" :title="$t('idea.diy')" :loading="loading">
<t-space direction="vertical"> <t-space direction="vertical">
<a-radio-group v-for="item in state.showSort" v-model="state.flag[item]" type="button"> <a-radio-group v-for="item in state.showSort" v-model="state.flag[item]" type="button">
<a-radio v-for="subItem in state.disMatrix[item]" :value="subItem[0]" <a-radio v-for="subItem in state.disMatrix[item]" :value="subItem[0]"
@ -38,13 +38,15 @@ const state: {
flag: any, flag: any,
disMatrix: any, disMatrix: any,
disName: any, disName: any,
disEng: any,
showSort: any showSort: any
} = reactive({ } = reactive({
versions: [], versions: [],
flag: [], flag: [],
disMatrix: [], disMatrix: [],
disName: [], disName: [],
showSort: [] showSort: [],
disEng: []
}) })
watch(() => [...state.flag], () => { updateMatrix() }) watch(() => [...state.flag], () => { updateMatrix() })