系统配置
This commit is contained in:
parent
57ff474ce0
commit
907147a79e
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<n-form label-width="85px" :model="formData" ref="formRef">
|
<n-form label-width="100px" :model="formData" ref="formRef">
|
||||||
<n-form-item
|
<n-form-item
|
||||||
v-for="(item, index) in configItemList.filter((item) => item.type != 'hidden')"
|
v-for="(item, index) in configItemList.filter((item) => item.type != 'hidden')"
|
||||||
:key="index"
|
:key="index"
|
||||||
@ -148,6 +148,7 @@
|
|||||||
const formData = reactive({});
|
const formData = reactive({});
|
||||||
const configItemList = ref([]);
|
const configItemList = ref([]);
|
||||||
const emit = defineEmits(['success']);
|
const emit = defineEmits(['success']);
|
||||||
|
console.log(props.activeName);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 执行提交表单
|
* 执行提交表单
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<PageWrapper>
|
<PageWrapper>
|
||||||
<n-card shadow="never" size="small" class="proCard tabsCard">
|
<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
|
<n-tab-pane
|
||||||
:name="item.configName"
|
:name="item.configName"
|
||||||
:tab="item.configName"
|
:tab="item.configName"
|
||||||
@ -41,7 +41,6 @@
|
|||||||
if (sub.type == 'checkbox' || sub.type == 'selects') {
|
if (sub.type == 'checkbox' || sub.type == 'selects') {
|
||||||
const values = sub.value.split(',');
|
const values = sub.value.split(',');
|
||||||
sub.value = values;
|
sub.value = values;
|
||||||
console.log(values);
|
|
||||||
}
|
}
|
||||||
if (sub.type == 'select' || sub.type == 'selects') {
|
if (sub.type == 'select' || sub.type == 'selects') {
|
||||||
const arrs = Object.entries(sub.param).map(([key, value]) => ({
|
const arrs = Object.entries(sub.param).map(([key, value]) => ({
|
||||||
@ -49,7 +48,6 @@
|
|||||||
value: key,
|
value: key,
|
||||||
}));
|
}));
|
||||||
sub.param = arrs;
|
sub.param = arrs;
|
||||||
console.log(arrs);
|
|
||||||
}
|
}
|
||||||
if (sub.type == 'images') {
|
if (sub.type == 'images') {
|
||||||
sub.filePath = [];
|
sub.filePath = [];
|
||||||
|
Loading…
Reference in New Issue
Block a user