Compare commits
No commits in common. "001b584e771953627928d7e258022a95dab2df5b" and "f9e79f4f23c5f6d3cdf20b21fe14e342b9076572" have entirely different histories.
001b584e77
...
f9e79f4f23
26232
pnpm-lock.yaml
26232
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
|
@ -141,20 +141,6 @@
|
||||||
</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>
|
||||||
|
|
||||||
|
@ -443,7 +429,6 @@ 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) {
|
||||||
//判断第一回将原来的清空重新赋值
|
//判断第一回将原来的清空重新赋值
|
||||||
|
@ -453,10 +438,6 @@ 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) {
|
||||||
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 });
|
item2.list.push({ [item3[0].id]: title });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -465,7 +446,6 @@ export default defineComponent({
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
//两列关联项目计算方法
|
//两列关联项目计算方法
|
||||||
function handleTwoGlxm(item) {
|
function handleTwoGlxm(item) {
|
||||||
var sfsglxm = item.sfsglxm;
|
var sfsglxm = item.sfsglxm;
|
||||||
|
|
|
@ -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'|| item.type==='11'">
|
<a-col v-if="item.type==='4' || item.type==='5' || item.type==='9'|| item.type==='10'">
|
||||||
<a-row>
|
<a-row>
|
||||||
<a-col :span="24">
|
<a-col :span="24">
|
||||||
<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