修改bug

This commit is contained in:
yangjun 2024-08-23 20:59:34 +08:00
parent f0da014566
commit f9f5c59a9f
3 changed files with 14325 additions and 12545 deletions

File diff suppressed because it is too large Load Diff

View File

@ -141,6 +141,20 @@
</template> </template>
</a-table> </a-table>
</a-col> </a-col>
<!-- 自增表格两列关联 11 -->
<a-col v-else-if="item.type === '11'" :span="24">
<div><a-button type="primary" @click="handleZzbg(item)" class="increase">新增</a-button> </div>
<a-table :columns="getTableZzColumns(item.zyJxdgPzxxList)" :dataSource="item.list" :pagination="false">
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'action'">
<a-button type="danger" @click="handleZzbgDel(item.list, record.sort)">删除</a-button>
</template>
<template v-else>
<a-input placeholder="请输入内容" v-model:value="record[column.key]" @blur="handleTwoGlxm(item)" style="width: 100%"></a-input>
</template>
</template>
</a-table>
</a-col>
<a-col v-else> </a-col> <a-col v-else> </a-col>
@ -429,6 +443,7 @@ export default defineComponent({
var item2 = alllist[j]; // var item2 = alllist[j]; //
item2.list = item2.list || []; item2.list = item2.list || [];
if (item2.guanlian == sort) { if (item2.guanlian == sort) {
console.log('🧚222222222222', item2);
// //
if (i == 0) { if (i == 0) {
// //
@ -438,7 +453,12 @@ export default defineComponent({
var item3 = item2.zyJxdgPzxxList; var item3 = item2.zyJxdgPzxxList;
console.log('👶', item3); console.log('👶', item3);
if (item3 != null && item3.length > 0) { if (item3 != null && item3.length > 0) {
item2.list.push({ [item3[0].id]: title }); console.log('✊item2.type--->', item2.type);
if (item2.type == '11') {
item2.list.push({ [item3[0].id]: '', [item3[1].id]: title });
} else {
item2.list.push({ [item3[0].id]: title });
}
} }
} }
} }

View File

@ -65,7 +65,7 @@
自增表格 9 a 自增表格 9 a
自增表格两列关联 10 a 自增表格两列关联 10 a
--> -->
<a-col v-if="item.type==='4' || item.type==='5' || item.type==='9'|| item.type==='10'"> <a-col v-if="item.type==='4' || item.type==='5' || item.type==='9'|| item.type==='10'|| item.type==='11'">
<a-row> <a-row>
<a-col :span="24" style="margin:15px 0 0px 0px;"> <a-col :span="24" style="margin:15px 0 0px 0px;">
<a-button type="primary" @click="handleTwoType(item)" class="margin10" preIcon="ant-design:plus-outlined">新增字段</a-button> <a-button type="primary" @click="handleTwoType(item)" class="margin10" preIcon="ant-design:plus-outlined">新增字段</a-button>