Commit 8e9af031 authored by dupengyu's avatar dupengyu

提交

parent 401752ab
import request from '@/utils/request'
// 获取路由
export const getRouters = () => {
return request({
url: '/api/user/getRouters',
method: 'get'
})
}
\ No newline at end of file
...@@ -86,7 +86,6 @@ ...@@ -86,7 +86,6 @@
<el-dropdown-item :command="{ name: 'a', data: scope.row }" <el-dropdown-item :command="{ name: 'a', data: scope.row }"
>执行一次</el-dropdown-item >执行一次</el-dropdown-item
> >
<el-dropdown-item>查询日志</el-dropdown-item>
<el-dropdown-item :command="{ name: 'c', data: scope.row }" <el-dropdown-item :command="{ name: 'c', data: scope.row }"
>注册节点</el-dropdown-item >注册节点</el-dropdown-item
> >
...@@ -109,7 +108,6 @@ ...@@ -109,7 +108,6 @@
<el-dropdown-item :command="{ name: 'g', data: scope.row }" <el-dropdown-item :command="{ name: 'g', data: scope.row }"
>删除</el-dropdown-item >删除</el-dropdown-item
> >
<el-dropdown-item>复制</el-dropdown-item>
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
</template> </template>
......
<template> <template>
<div> <div>
<div class="list"> <div style="margin-bottom: 12px">
<el-button type="primary" @click="refresh">刷新</el-button>
</div>
<div class="list" v-loading="loading">
<el-table <el-table
:data="tableData" :data="tableData"
style="width: 100%" style="width: 100%"
...@@ -34,16 +37,23 @@ export default { ...@@ -34,16 +37,23 @@ export default {
size: 10, size: 10,
}, },
total: 10, total: 10,
loading: false,
}; };
}, },
mounted() { mounted() {
this.handleAutoList(); this.handleAutoList();
}, },
methods: { methods: {
refresh() {
this.params.current = 1;
this.handleAutoList();
},
async handleAutoList() { async handleAutoList() {
this.loading = true;
let res = await autoList(this.params); let res = await autoList(this.params);
this.tableData = res.records; this.tableData = res.records;
this.total = res.total; this.total = res.total;
this.loading = false;
}, },
handlePageChange(pageData) { handlePageChange(pageData) {
this.params.size = pageData.size; this.params.size = pageData.size;
......
...@@ -253,6 +253,7 @@ export default { ...@@ -253,6 +253,7 @@ export default {
let res = await setParam(data); let res = await setParam(data);
if (res.code == 200) { if (res.code == 200) {
successAlert("保存成功"); successAlert("保存成功");
this.openSetting = false;
} }
}, },
async handleSelectParam(row) { async handleSelectParam(row) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment