|
@ -444,33 +444,31 @@ export default { |
|
|
pageNo:this.pageNo, |
|
|
pageNo:this.pageNo, |
|
|
pageSize: this.pageSize |
|
|
pageSize: this.pageSize |
|
|
} |
|
|
} |
|
|
const { data, code, msg } = await requestGet(url,params); |
|
|
const { data, code, msg } = await requestGet(url, params); |
|
|
if (code === 0) { |
|
|
if (code === 0) { |
|
|
console.log("列表请求成功!!!!!!!!!!!!!!"); |
|
|
console.log("列表请求成功!!!!!!!!!!!!!!"); |
|
|
this.total = data.total || 0; |
|
|
this.total = data.total || 0; |
|
|
this.tableData = data.list |
|
|
this.tableData = data.list; |
|
|
this.tableData.forEach(item=>{ |
|
|
|
|
|
this.options.forEach(item1=>{ |
|
|
this.tableData.forEach(item => { |
|
|
console.log(item1,"item1.children.value"); |
|
|
this.options.forEach(item1 => { |
|
|
console.log(item1.children,"item1.children.value"); |
|
|
console.log(item1, "item1"); |
|
|
console.log(item1.children.value,"item1.children.value"); |
|
|
console.log(item1.children, "item1.children"); |
|
|
|
|
|
if (Array.isArray(item1.children)) { |
|
|
item1.children.forEach(item2=>{ |
|
|
item1.children.forEach(item2 => { |
|
|
if (item2.value==item.type) { |
|
|
if (item2.value.toString() == item.type) { |
|
|
item.typeName=item2.label |
|
|
item.typeName = item2.label; |
|
|
}else{ |
|
|
|
|
|
item.typeName="其他" |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
) |
|
|
}); |
|
|
}) |
|
|
|
|
|
console.log(this.tableData,"this.tableDatadsfdsf"); |
|
|
|
|
|
|
|
|
|
|
|
} else { |
|
|
} else { |
|
|
} |
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
console.log(this.tableData, "this.tableData"); |
|
|
|
|
|
} else { |
|
|
|
|
|
// 错误处理逻辑 |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
//模板 |
|
|
//模板 |
|
|
async uploadHttpRequest(file) { |
|
|
async uploadHttpRequest(file) { |
|
|