修改bug

This commit is contained in:
zhaotianfeng 2024-09-25 11:53:41 +08:00
parent 8cc44016d7
commit 6833b81a2b
2 changed files with 19 additions and 7 deletions

View File

@ -125,12 +125,12 @@
@click="handleUpdate(scope.row)"
>修改</el-button>
<el-button
size="mini"
type="text"
@click="handleDelete(scope.row)"
>删除
</el-button>
<!-- <el-button-->
<!-- size="mini"-->
<!-- type="text"-->
<!-- @click="handleDelete(scope.row)"-->
<!-- >删除-->
<!-- </el-button>-->
<el-button
size="mini"
type="text"

View File

@ -115,7 +115,12 @@
</div>
<el-dialog :title="title" :close-on-click-modal="false" :visible.sync="open" width="28%" append-to-body>
<el-dialog
@close="close()"
:title="title"
:close-on-click-modal="false"
:visible.sync="open" width="28%"
append-to-body>
<el-form ref="form" :model="deviceInfo" label-width="80px" :rules="rules">
<el-form :model="deviceInfo" ref="deviceForm" label-width="120px" :rules="rules">
<el-form-item label="banner名称" prop="bannerName">
@ -168,6 +173,7 @@
</el-form-item>
<el-form-item>
<el-button type="primary" @click="submitForm('deviceForm')">提交</el-button>
<el-button @click="open=false">取消</el-button>
</el-form-item>
</el-form>
</el-form>
@ -250,6 +256,12 @@ export default {
this.getList()
},
methods: {
//
close(){
//
this.$refs['deviceForm'].resetFields();
},
getList(){
getBannerListApi(this.queryParams).then(res=>{
this.tableData = res.data.records;