Merge branch 'master' of http://47.115.223.229:8888/yangjun/dbsd_kczx
This commit is contained in:
commit
2109ebec48
26272
pnpm-lock.yaml
26272
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
|
@ -90,6 +90,11 @@
|
||||||
<a-table :columns="getTableZzColumns(item.zyJxdgPzxxList)" :dataSource="item.list" :pagination="false">
|
<a-table :columns="getTableZzColumns(item.zyJxdgPzxxList)" :dataSource="item.list" :pagination="false">
|
||||||
</a-table>
|
</a-table>
|
||||||
</a-col>
|
</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>
|
<a-col v-else> </a-col>
|
||||||
|
|
||||||
|
|
|
@ -151,6 +151,25 @@
|
||||||
</template>
|
</template>
|
||||||
</a-table>
|
</a-table>
|
||||||
</a-col>
|
</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>
|
<a-col v-else> </a-col>
|
||||||
|
|
||||||
|
@ -249,6 +268,11 @@
|
||||||
<a-table :columns="getTableZzColumns(item.zyJxdgPzxxList)" :dataSource="item.list" :pagination="false">
|
<a-table :columns="getTableZzColumns(item.zyJxdgPzxxList)" :dataSource="item.list" :pagination="false">
|
||||||
</a-table>
|
</a-table>
|
||||||
</a-col>
|
</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>
|
<a-col v-else> </a-col>
|
||||||
|
|
||||||
|
@ -315,6 +339,9 @@ function handleGlxm(item) {
|
||||||
//判断当前项是否等于关联项
|
//判断当前项是否等于关联项
|
||||||
var item3 = item2.zyJxdgPzxxList;
|
var item3 = item2.zyJxdgPzxxList;
|
||||||
if (item3 != null && item3.length > 0) {
|
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 });
|
item2.list.push({ [item3[0].id]: title });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -323,6 +350,7 @@ function handleGlxm(item) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
function handleFabu(sffb){
|
function handleFabu(sffb){
|
||||||
|
|
||||||
defHttp.post({ url: '/zyJxdgTeacherMain/zyJxdgTeacherMain/edit', params: { sffb,id:jxdgInfo.value.id} }).then((res) => {
|
defHttp.post({ url: '/zyJxdgTeacherMain/zyJxdgTeacherMain/edit', params: { sffb,id:jxdgInfo.value.id} }).then((res) => {
|
||||||
|
|
|
@ -143,6 +143,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>
|
||||||
|
|
||||||
|
@ -431,6 +445,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) {
|
||||||
//判断第一回将原来的清空重新赋值
|
//判断第一回将原来的清空重新赋值
|
||||||
|
@ -440,6 +455,10 @@ 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 });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -448,6 +467,7 @@ 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'">
|
<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">
|
<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