修改bug
This commit is contained in:
parent
f0da014566
commit
f9f5c59a9f
26846
pnpm-lock.yaml
26846
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
|
@ -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 });
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue