添加流转接口 设计流转表

This commit is contained in:
pixel
2020-11-12 18:21:03 +08:00
parent 86afc0ddf4
commit 4863b2c5be
10 changed files with 85 additions and 18 deletions

View File

@@ -10,13 +10,14 @@ export default {
}
},
methods: {
filterDict(value,type){
const rowLabel = this[type+"Options"]&&this[type+"Options"].filter(item=>item.value == value)
return rowLabel&&rowLabel[0]&&rowLabel[0].label
filterDict(value, type) {
const rowLabel = this[type + "Options"] && this[type + "Options"].filter(item => item.value == value)
return rowLabel && rowLabel[0] && rowLabel[0].label
},
async getDict(type){
async getDict(type) {
const dicts = await getDict(type)
this[type+"Options"] = dicts
this[type + "Options"] = dicts
return dicts
},
handleSizeChange(val) {
this.pageSize = val
@@ -28,7 +29,7 @@ export default {
},
async getTableData(page = this.page, pageSize = this.pageSize) {
const table = await this.listApi({ page, pageSize, ...this.searchInfo })
if(table.code == 0){
if (table.code == 0) {
this.tableData = table.data.list
this.total = table.data.total
this.page = table.data.page