添加模块
This commit is contained in:
parent
001b584e77
commit
421d82c686
|
@ -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) => {
|
||||||
|
|
Loading…
Reference in New Issue