fix:协议管理导出修改
This commit is contained in:
parent
ff93691d19
commit
1a30d552ad
|
|
@ -576,6 +576,7 @@ export default {
|
||||||
// 多选框选中数据
|
// 多选框选中数据
|
||||||
handleSelectionChange(selection) {
|
handleSelectionChange(selection) {
|
||||||
this.ids = selection.map(item => item.agreementId)
|
this.ids = selection.map(item => item.agreementId)
|
||||||
|
console.log(this.ids)
|
||||||
this.single = selection.length != 1
|
this.single = selection.length != 1
|
||||||
this.multiple = !selection.length
|
this.multiple = !selection.length
|
||||||
},
|
},
|
||||||
|
|
@ -662,13 +663,17 @@ export default {
|
||||||
},
|
},
|
||||||
/** 导出按钮操作 */
|
/** 导出按钮操作 */
|
||||||
handleExport() {
|
handleExport() {
|
||||||
this.download(
|
if (this.ids.length) {
|
||||||
'material/agreementInfo/export',
|
this.download(
|
||||||
{
|
'material/agreementInfo/export',
|
||||||
...this.queryParams,
|
{
|
||||||
},
|
dataCondition: this.ids,
|
||||||
`协议_${new Date().getTime()}.xlsx`
|
},
|
||||||
)
|
`协议_${new Date().getTime()}.xlsx`
|
||||||
|
)
|
||||||
|
} else {
|
||||||
|
this.$modal.msgWarning('请选择要导出的数据')
|
||||||
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -44,8 +44,8 @@ module.exports = {
|
||||||
|
|
||||||
// target: `http://10.40.92.8:8080`, //超
|
// target: `http://10.40.92.8:8080`, //超
|
||||||
// target: `http://10.40.92.81:8080`, //韩
|
// target: `http://10.40.92.81:8080`, //韩
|
||||||
target: `http://10.40.92.74:8080`,//旭/
|
// target: `http://10.40.92.74:8080`,//旭/
|
||||||
// target: `http://10.40.92.153:8080`, //帅
|
target: `http://10.40.92.153:8080`, //帅
|
||||||
// target: `http://10.40.92.14:8080`, //福
|
// target: `http://10.40.92.14:8080`, //福
|
||||||
|
|
||||||
//******** 注意事项 ********* */
|
//******** 注意事项 ********* */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue