This commit is contained in:
kbing1981 2024-08-23 22:20:09 +08:00
commit 2109ebec48
5 changed files with 14359 additions and 12546 deletions

File diff suppressed because it is too large Load Diff

View File

@ -90,6 +90,11 @@
<a-table :columns="getTableZzColumns(item.zyJxdgPzxxList)" :dataSource="item.list" :pagination="false">
</a-table>
</a-col>
<!-- 自增表格两列关联 11 -->
<a-col v-else-if="item.type === '11'" :span="24">
<a-table :columns="getTableZzColumns(item.zyJxdgPzxxList)" :dataSource="item.list" :pagination="false">
</a-table>
</a-col>
<a-col v-else> </a-col>

View File

@ -151,6 +151,25 @@
</template>
</a-table>
</a-col>
<!-- 自增表格两列关联 10 -->
<a-col v-else-if="item.type === '11'" :span="24">
<div><a-button type="primary" @click="handleZzbg(item)" class="increase" preIcon="ant-design:plus-outlined">新增</a-button> </div>
<a-table :columns="getTableZzColumns(item.zyJxdgPzxxList)" :dataSource="item.list" :pagination="false">
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'action'">
<button type="danger" @click="handleZzbgDel(item.list, record.sort)" class="ant-btn">删除</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>
@ -249,6 +268,11 @@
<a-table :columns="getTableZzColumns(item.zyJxdgPzxxList)" :dataSource="item.list" :pagination="false">
</a-table>
</a-col>
<!-- 自增表格两列关联 11 -->
<a-col v-else-if="item.type === '11'" :span="24">
<a-table :columns="getTableZzColumns(item.zyJxdgPzxxList)" :dataSource="item.list" :pagination="false">
</a-table>
</a-col>
<a-col v-else> </a-col>
@ -315,6 +339,9 @@ function handleGlxm(item) {
//
var item3 = item2.zyJxdgPzxxList;
if (item3 != null && item3.length > 0) {
if (item2.type == '11') {
item2.list.push({ [item3[0].id]: '', [item3[1].id]: title });
} else {
item2.list.push({ [item3[0].id]: title });
}
}
@ -322,6 +349,7 @@ function handleGlxm(item) {
}
}
}
}
}
function handleFabu(sffb){

View File

@ -143,6 +143,20 @@
</template>
</a-table>
</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>
@ -431,6 +445,7 @@ export default defineComponent({
var item2 = alllist[j]; //
item2.list = item2.list || [];
if (item2.guanlian == sort) {
console.log('🧚222222222222', item2);
//
if (i == 0) {
//
@ -440,6 +455,10 @@ export default defineComponent({
var item3 = item2.zyJxdgPzxxList;
console.log('👶', item3);
if (item3 != null && item3.length > 0) {
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 });
}
}
@ -448,6 +467,7 @@ export default defineComponent({
}
}
}
}
//
function handleTwoGlxm(item) {
var sfsglxm = item.sfsglxm;

View File

@ -65,7 +65,7 @@
自增表格 9 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-col :span="24">
<a-button type="primary" @click="handleTwoType(item)" class="margin10" preIcon="ant-design:plus-outlined">新增字段</a-button>