fix: base 字典页面刷新的bug

This commit is contained in:
caoqianming 2024-06-11 11:16:42 +08:00
parent d2aba7d384
commit 69b7d92105
1 changed files with 3 additions and 3 deletions

View File

@ -38,7 +38,7 @@
<el-main class="nopadding">
<scTable ref="table" :apiObj="listApi" row-key="id" :params="listApiParams" @selection-change="selectionChange" stripe :paginationLayout="'prev, pager, next'">
<!-- <el-table-column type="selection" width="50"></el-table-column> -->
<el-table-column label="序号" type="index"></el-table-column>
<el-table-column label="序号" type="index" width="50"></el-table-column>
<el-table-column label="名称" prop="name" width="360"></el-table-column>
<el-table-column label="标识" prop="code"></el-table-column>
<el-table-column label="排序" prop="sort"></el-table-column>
@ -257,7 +257,7 @@
this.isSaveing = false;
if(res.name){
this.visibleDicType = false;
this.getDic();
this.getDicType();
this.$message.success("操作成功")
}else{
this.$alert(res.message, "提示", {type: 'error'})
@ -364,7 +364,7 @@
}else{
that.$message.success("操作成功");
that.visibleDicItem = false;
that.getDicType();
that.$refs.table.refresh()
}
}
})