系统配置

This commit is contained in:
陈红丽 2024-12-17 09:51:55 +08:00
parent 57ff474ce0
commit 907147a79e
2 changed files with 3 additions and 4 deletions

View File

@ -1,6 +1,6 @@
<template>
<div>
<n-form label-width="85px" :model="formData" ref="formRef">
<n-form label-width="100px" :model="formData" ref="formRef">
<n-form-item
v-for="(item, index) in configItemList.filter((item) => item.type != 'hidden')"
:key="index"
@ -148,6 +148,7 @@
const formData = reactive({});
const configItemList = ref([]);
const emit = defineEmits(['success']);
console.log(props.activeName);
/**
* 执行提交表单

View File

@ -1,7 +1,7 @@
<template>
<PageWrapper>
<n-card shadow="never" size="small" class="proCard tabsCard">
<n-tabs v-model="activeName" v-if="tabData.length > 0">
<n-tabs v-model:value="activeName" v-if="tabData.length > 0" type="line">
<n-tab-pane
:name="item.configName"
:tab="item.configName"
@ -41,7 +41,6 @@
if (sub.type == 'checkbox' || sub.type == 'selects') {
const values = sub.value.split(',');
sub.value = values;
console.log(values);
}
if (sub.type == 'select' || sub.type == 'selects') {
const arrs = Object.entries(sub.param).map(([key, value]) => ({
@ -49,7 +48,6 @@
value: key,
}));
sub.param = arrs;
console.log(arrs);
}
if (sub.type == 'images') {
sub.filePath = [];