Commit 3a8f8ef9 by cwq0219

表格组件-修改

1 parent 871db7b4
......@@ -130,11 +130,11 @@ export default {
mounted() {
this.searchParams = this.searchForm
this.getList()
this.refreshTable()
},
methods: {
getList() {
refreshTable() {
const params = {
...this.page,
...this.searchParams
......@@ -150,12 +150,12 @@ export default {
// 页码
handleSizeChange(value) {
this.page.pageCount = value
this.getList()
this.refreshTable()
},
handleCurrentChange(value) {
this.page.pageSize = value
this.getList()
this.refreshTable()
}
}
}
......
......@@ -191,7 +191,7 @@ export default {
/* 接口请求-start */
getList() {
this.$refs.table.getList()
this.$refs.table.refreshTable()
},
delObjMutiAttr(obj, keys) {
......
......@@ -278,7 +278,7 @@ export default {
getList() {
this.getParams()
this.$refs.table.getList()
this.$refs.table.refreshTable()
},
exportOrder() {
const params = this.getParams()
......
......@@ -171,7 +171,7 @@ export default {
getList() {
this.getParams()
this.$refs.table.getList()
this.$refs.table.refreshTable()
},
exportFile() {
......
......@@ -74,7 +74,7 @@ export default {
methods: {
getList() {
this.$refs.table.getList()
this.$refs.table.refreshTable()
}
}
}
......
......@@ -119,7 +119,7 @@ export default {
getList() {
Object.assign(this.searchForm, util.formatTime(this.reportTime))
this.$refs.table.getList()
this.$refs.table.refreshTable()
},
handleExport() {
......
......@@ -42,7 +42,7 @@
<el-input v-model="searchForm.merchantName" placeholder="请输入生产厂家" @clear="getList" clearable></el-input>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" @click="handleSearch">查询</el-button>
<el-button type="primary" icon="el-icon-search" @click="getList">查询</el-button>
</el-form-item>
</el-form>
<d2-table-header title="子系统列表"><auth-button category="Button" :data="editFormReset"></auth-button></d2-table-header>
......@@ -192,7 +192,7 @@ export default {
// },
getList() {
this.$refs.table.getList()
this.$refs.table.refreshTable()
},
editSubSystem(value) {
......@@ -218,9 +218,9 @@ export default {
},
/* 接口请求-end */
// 搜索
handleSearch() {
this.getList()
},
// handleSearch() {
// this.getList()
// },
handleEditClose() {
this.editVisible = !this.editVisible
......
......@@ -204,7 +204,7 @@ export default {
},
getList() {
this.$refs.table.getList()
this.$refs.table.refreshTable()
},
getPie(label = '') {
const params = {
......@@ -217,11 +217,7 @@ export default {
})
},
exportFile() {
const params = {
...this.$refs.table.page,
...this.searchForm
}
exportApi(params).then(res => {
exportApi(this.searchForm).then(res => {
this.$open(res.url)
notice.okTips()
}).catch(() => {
......
......@@ -133,7 +133,7 @@ export default {
},
getList() {
this.$refs.table.getList()
this.$refs.table.refreshTable()
},
editTraffic(value) {
......
......@@ -93,7 +93,7 @@ export default {
methods: {
getList() {
Object.assign(this.searchForm, util.formatTime(this.loginTime))
this.$refs.table.getList()
this.$refs.table.refreshTable()
}
}
}
......
......@@ -71,7 +71,7 @@ export default {
...mapActions('d2admin/base', ['set']),
getList() {
this.$refs.table.getList()
this.$refs.table.refreshTable()
},
async handleEdit(row) {
this.editData = row && await RoleDetail({ roleId: row.roleId })
......
......@@ -227,7 +227,7 @@ export default {
/* 接口请求-start */
getUserList() {
Object.assign(this.searchForm, util.formatTime(this.searchTimes))
this.$refs.table.getList()
this.$refs.table.refreshTable()
},
filterTag(value, row) {
return row.status === value
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!