添加流转接口 设计流转表
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user