增加文档自定义排序

This commit is contained in:
龙运模
2024-07-30 15:45:25 +08:00
parent 67f098aa07
commit 06638fe04c
4 changed files with 67 additions and 20 deletions
@@ -6,11 +6,25 @@
<div class="searchItem searchBtn">
<el-button :size="size" type="primary" @click="save">保存配置</el-button>
<!-- <scExport :size="size" @exportData="exportData" @updateShow="exportChangeShow" :show="exportShow" type="8"></scExport>-->
</div>
</div>
<scTable ref="table" :apiObj="list.apiObj" :column="list.column" stripe :size="size" highlightCurrentRow>
<scTable ref="table" :apiObj="list.apiObj" :column="list.column" stripe :size="size" highlightCurrentRow :hideDo="true" :hidePagination="true">
<sc-table-column label="序号" align="center" type="index"></sc-table-column>
<el-table-column width="200" label="机房名称" prop="name"></el-table-column>
<el-table-column width="200" label="机房代码" prop="code"></el-table-column>
<el-table-column width="200" label="机房城市" prop="city"></el-table-column>
<el-table-column label="操作" fixed="right" align="center" width="160">
<template #default="scope">
<el-dropdown>
<el-button class="noBorderBtn" icon="el-icon-more" :size="size"></el-button>
<template #dropdown>
<el-dropdown-menu>
<el-dropdown-item @click="table_del(scope.row, 'delete')" icon="sc-icon-Delete">删除配置</el-dropdown-item>
</el-dropdown-menu>
</template>
</el-dropdown>
</template>
</el-table-column>
</scTable>
</el-main>
</el-container>
@@ -28,8 +42,9 @@ export default {
},
params: {},
searchList:[
{name:'机房名称',type:'text',code:'name', placeholder:"请输入机房名称",show:true},
{name:'机房代码',type:'text',code:'code', placeholder:"请输入机房代码",show:true},
{name:'机房城市',type:'text',code:'city', placeholder:"请输入机房城市",show: true},
{name:'机房城市',type:'text',code:'city', placeholder:"请输入机房城市",show:true},
],
}
},
@@ -37,11 +52,18 @@ export default {
},
methods:{
getSelectData(){
// let {data,params} = item;
getSelectData(item){
let {params} = item;
this.params = params;
},
save(){
console.log(this.params,700)
async save() {
const res = await this.$API.setup.room.add.post(this.params);
if(res.code == 200){
this.$refs.table.refresh();
}
},
table_del(row){
console.log(row)
}
}
}