This commit is contained in:
2026-03-12 17:10:35 +08:00
parent 0f861019b2
commit 2b2344beb3
5 changed files with 44 additions and 342 deletions
@@ -38,6 +38,7 @@ layout("/layouts/platform.html"){
<el-card shadow="never">
<table-tool>
<el-button type="primary" @click="onAdd" size="small" icon="el-icon-plus">新增</el-button>
<el-button type="primary" @click="onUpdate" size="small" icon="el-icon-plus">更新</el-button>
</table-tool>
<el-table :data="tableData" @sort-change="pageOrder" style="width: 100%">
<el-table-column type="index" width="50px" label="序号" :index="indexMethod"></el-table-column>
@@ -146,6 +147,9 @@ layout("/layouts/platform.html"){
}
},
methods: {
onUpdate(){
this.$axios.post(loc()+"/onUpdate")
},
onAdd() {
this.formData = {}
this.dialogVisible = true