refactor: 使用mybatis-plus重构接口回传设置

This commit is contained in:
2024-10-15 15:54:40 +08:00
parent 4835266b92
commit 0af6c82df2
9 changed files with 290 additions and 9 deletions

View File

@@ -71,7 +71,7 @@
<el-col :span="24">
<el-form-item label="回传区域">
<el-select
v-model="form.product_area"
v-model="form.product_areas"
clearable
multiple
size="mini"
@@ -91,7 +91,7 @@
<el-row>
<el-col :span="24">
<el-form-item label="业务说明">
<el-input type="textarea" :rows="2" v-model="form.business_comment" style="width: 550px;" />
<el-input v-model="form.business_comment" type="textarea" :rows="2" style="width: 550px;" />
</el-form-item>
</el-col>
</el-row>
@@ -105,10 +105,10 @@
<el-table ref="table" v-loading="crud.loading" :data="crud.data" size="mini" style="width: 100%;" @selection-change="crud.selectionChangeHandler">
<el-table-column type="selection" width="55" />
<el-table-column prop="interface_type" label="回传类型" :formatter="formatType" :min-width="flexWidth('interface_type',crud.data,'回传类型')" />
<el-table-column prop="interface_name" label="接口名称" :min-width="flexWidth('interface_name',crud.data,'接口名称')"/>
<el-table-column prop="is_back" label="是否回传" :formatter="formatBack" :min-width="flexWidth('is_back',crud.data,'是否回传')"/>
<el-table-column prop="remark" label="接口描述" :min-width="flexWidth('remark',crud.data,'接口描述')"/>
<el-table-column prop="business_comment" label="业务说明" :min-width="flexWidth('business_comment',crud.data,'业务说明')"/>
<el-table-column prop="interface_name" label="接口名称" :min-width="flexWidth('interface_name',crud.data,'接口名称')" />
<el-table-column prop="is_back" label="是否回传" :formatter="formatBack" :min-width="flexWidth('is_back',crud.data,'是否回传')" />
<el-table-column prop="remark" label="接口描述" :min-width="flexWidth('remark',crud.data,'接口描述')" />
<el-table-column prop="business_comment" label="业务说明" :min-width="flexWidth('business_comment',crud.data,'业务说明')" />
<el-table-column v-permission="[]" label="操作" width="120px" align="center" fixed="right">
<template slot-scope="scope">
<udOperation
@@ -139,7 +139,8 @@ const defaultForm = {
remark: null,
is_back: null,
business_comment: null,
product_area: null
product_area: null,
product_areas: null
}
export default {
name: 'Interfaceback',
@@ -176,7 +177,7 @@ export default {
is_back: [
{ required: true, message: '是否回传不能为空', trigger: 'blur' }
]
} }
}}
},
methods: {
// 钩子在获取表格数据之前执行false 则代表不获取数据