From c9f25cb34eda7547837708c294d6e69e632f29af Mon Sep 17 00:00:00 2001 From: RuoYi <yzz_ivy@163.com> Date: 星期三, 21 十月 2020 11:30:37 +0800 Subject: [PATCH] 调整sql默认时间 --- ruoyi-ui/src/views/system/post/index.vue | 29 +++++++++-------------------- 1 files changed, 9 insertions(+), 20 deletions(-) diff --git a/ruoyi-ui/src/views/system/post/index.vue b/ruoyi-ui/src/views/system/post/index.vue index a3d9f4f..93dc8c2 100644 --- a/ruoyi-ui/src/views/system/post/index.vue +++ b/ruoyi-ui/src/views/system/post/index.vue @@ -74,14 +74,7 @@ v-hasPermi="['system:post:export']" >导出</el-button> </el-col> - <div class="top-right-btn"> - <el-tooltip class="item" effect="dark" content="刷新" placement="top"> - <el-button size="mini" circle icon="el-icon-refresh" @click="handleQuery" /> - </el-tooltip> - <el-tooltip class="item" effect="dark" :content="showSearch ? '隐藏搜索' : '显示搜索'" placement="top"> - <el-button size="mini" circle icon="el-icon-search" @click="showSearch=!showSearch" /> - </el-tooltip> - </div> + <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> </el-row> <el-table v-loading="loading" :data="postList" @selection-change="handleSelectionChange"> @@ -283,19 +276,15 @@ if (valid) { if (this.form.postId != undefined) { updatePost(this.form).then(response => { - if (response.code === 200) { - this.msgSuccess("修改成功"); - this.open = false; - this.getList(); - } + this.msgSuccess("修改成功"); + this.open = false; + this.getList(); }); } else { addPost(this.form).then(response => { - if (response.code === 200) { - this.msgSuccess("新增成功"); - this.open = false; - this.getList(); - } + this.msgSuccess("新增成功"); + this.open = false; + this.getList(); }); } } @@ -313,7 +302,7 @@ }).then(() => { this.getList(); this.msgSuccess("删除成功"); - }).catch(function() {}); + }) }, /** 导出按钮操作 */ handleExport() { @@ -326,7 +315,7 @@ return exportPost(queryParams); }).then(response => { this.download(response.msg); - }).catch(function() {}); + }) } } }; -- Gitblit v1.9.2