Merge branch 'main' of http://123.132.248.154:10000/HC_YFZX/CaiYuanYiTiHua
commit
0627a833a2
|
|
@ -31,6 +31,9 @@
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</BasicForm>
|
</BasicForm>
|
||||||
|
<template v-for="(item, useIndex) in createOrModifyList[index]" :key="useIndex">
|
||||||
|
<CreateOrModifyComponent :data="item" />
|
||||||
|
</template>
|
||||||
</a-tab-pane>
|
</a-tab-pane>
|
||||||
</a-tabs>
|
</a-tabs>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -112,6 +115,11 @@
|
||||||
</template>
|
</template>
|
||||||
</a-table>
|
</a-table>
|
||||||
<!-- todo 创建/修改 人/时间 -->
|
<!-- todo 创建/修改 人/时间 -->
|
||||||
|
<template v-if="!(tabsColumns.length > 1)">
|
||||||
|
<template v-for="(item, index) in createOrModifyList" :key="index">
|
||||||
|
<CreateOrModifyComponent :data="item" />
|
||||||
|
</template>
|
||||||
|
</template>
|
||||||
</BasicModal>
|
</BasicModal>
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
|
|
@ -130,6 +138,7 @@
|
||||||
import { CardGourp } from '@/components/FormViewer/index.ts';
|
import { CardGourp } from '@/components/FormViewer/index.ts';
|
||||||
import { subTableStore } from '@/store/modules/subTable';
|
import { subTableStore } from '@/store/modules/subTable';
|
||||||
import { changeCardStructure, cardNestStructure } from '@/views/demo/onlineform/util.ts';
|
import { changeCardStructure, cardNestStructure } from '@/views/demo/onlineform/util.ts';
|
||||||
|
import CreateOrModifyComponent from '@/views/demo/onlineform/formCall/CreateOrModifyComponent/index.vue';
|
||||||
|
|
||||||
const subTableDataStore = subTableStore();
|
const subTableDataStore = subTableStore();
|
||||||
|
|
||||||
|
|
@ -209,6 +218,10 @@
|
||||||
const arr: FormSchema[] = [];
|
const arr: FormSchema[] = [];
|
||||||
data.tab.forEach((item) => {
|
data.tab.forEach((item) => {
|
||||||
if (item.field == 'Tabs') {
|
if (item.field == 'Tabs') {
|
||||||
|
let arrayLength = item.componentProps.options.length
|
||||||
|
for(let i = 0; i < arrayLength; i++){
|
||||||
|
createOrModifyList.value.push([])
|
||||||
|
}
|
||||||
item.componentProps.options.forEach((val, index) => {
|
item.componentProps.options.forEach((val, index) => {
|
||||||
val.children.forEach((opt) => {
|
val.children.forEach((opt) => {
|
||||||
if (opt.rules !== undefined) {
|
if (opt.rules !== undefined) {
|
||||||
|
|
@ -234,7 +247,7 @@
|
||||||
buttonLayout.value.push(opt);
|
buttonLayout.value.push(opt);
|
||||||
}
|
}
|
||||||
if (['createuser', 'createtime', 'modifyuser', 'modifytime'].includes(opt.type)) {
|
if (['createuser', 'createtime', 'modifyuser', 'modifytime'].includes(opt.type)) {
|
||||||
createOrModifyList.value.push(opt);
|
createOrModifyList.value[index].push(opt);
|
||||||
}
|
}
|
||||||
subTableColumns.value = [
|
subTableColumns.value = [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue