Commit 375bc8f7 by 胡悦

添加重置搜索

1 parent 154d1679
...@@ -230,6 +230,7 @@ export default { ...@@ -230,6 +230,7 @@ export default {
this.searchForm = { this.searchForm = {
name name
} }
this.$refs.dictDataTable.refreshTable()
}, },
beforeSearchFn() { beforeSearchFn() {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
......
...@@ -196,6 +196,7 @@ export default { ...@@ -196,6 +196,7 @@ export default {
refresh() { refresh() {
this.searchForm = {} this.searchForm = {}
this.searchDataForm = {} this.searchDataForm = {}
this.$refs.dictManage.refreshTable()
}, },
beforeSearchFn() { beforeSearchFn() {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
......
...@@ -263,6 +263,7 @@ export default { ...@@ -263,6 +263,7 @@ export default {
// 重置搜索条件 // 重置搜索条件
refresh() { refresh() {
this.searchForm = {} this.searchForm = {}
this.search()
}, },
emptyData(params) { emptyData(params) {
let arr = params let arr = params
......
...@@ -213,6 +213,7 @@ export default { ...@@ -213,6 +213,7 @@ export default {
// 重置搜索条件 // 重置搜索条件
refresh() { refresh() {
this.searchForm = {} this.searchForm = {}
this.search()
}, },
emptyData(params) { emptyData(params) {
let arr = params let arr = params
......
...@@ -217,6 +217,7 @@ export default { ...@@ -217,6 +217,7 @@ export default {
// 重置搜索条件 // 重置搜索条件
refresh() { refresh() {
this.searchForm = {} this.searchForm = {}
this.$refs.roleTable.refreshTable()
}, },
// 确定 // 确定
handleConfirm() { handleConfirm() {
......
...@@ -168,32 +168,25 @@ export default { ...@@ -168,32 +168,25 @@ export default {
{ {
label: '用户ID', label: '用户ID',
prop: 'id', prop: 'id',
width: 60
}, { }, {
label: '登录名称', label: '登录名称',
prop: 'account', prop: 'account',
width: 100
}, { }, {
label: '用户名称', label: '用户名称',
prop: 'username', prop: 'username',
width: 100
}, { }, {
label: '部门', label: '部门',
prop: 'departmentName', prop: 'departmentName',
width: 100
}, { }, {
label: '手机号', label: '手机号',
prop: 'phoneNumber', prop: 'phoneNumber',
width: 100
}, { }, {
label: '状态', label: '状态',
prop: 'enableStatus', prop: 'enableStatus',
addHtml: 'status', addHtml: 'status',
width: 60
}, { }, {
label: '创建时间', label: '创建时间',
prop: 'createdDate', prop: 'createdDate',
width: 150
} }
], ],
tableOption: { tableOption: {
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
:formModel="searchForm" :formModel="searchForm"
:formList="worklogFormList" :formList="worklogFormList"
> >
<slot name="form-slot"> <span slot="form-slot">
<el-button <el-button
type="primary" type="primary"
:size="btn_size" :size="btn_size"
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
icon="el-icon-refresh" icon="el-icon-refresh"
@click="refresh" @click="refresh"
>重置</el-button> >重置</el-button>
</slot> </span>
</search-form> </search-form>
<div class="table-btn"> <div class="table-btn">
<el-button <el-button
...@@ -105,6 +105,7 @@ export default { ...@@ -105,6 +105,7 @@ export default {
refresh() { refresh() {
this.searchForm = {} this.searchForm = {}
this.searchDataForm = {} this.searchDataForm = {}
this.$refs.worklogTable.refreshTable()
}, },
beforeSearchFn() { beforeSearchFn() {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!