增加下载操作

This commit is contained in:
BianLzhaoMin 2025-04-30 10:09:25 +08:00
parent 28415fe9e9
commit 46eab42ac1
6 changed files with 22 additions and 2 deletions

View File

@ -1110,6 +1110,7 @@ export default {
font-size: 14px;
font-weight: 600;
margin: 10px 0;
text-align: left !important;
}
.title-box {
padding: 8px 0;

View File

@ -175,7 +175,15 @@ export default {
this.dialogConfig.outerVisible = true
},
//
onHandleDownload(row) {},
onHandleDownload(row) {
this.downloadNew(
'/stateGrid/downloadEpcTemp',
{
id: row.id,
},
`国网模板_${row.name}.doc`,
)
},
// EPC
async getEpcTemplateList() {

View File

@ -1697,6 +1697,7 @@ export default {
font-size: 14px;
font-weight: 600;
margin: 10px 0;
text-align: left !important;
}
.title-box {
padding: 8px 0;

View File

@ -1110,6 +1110,7 @@ export default {
font-size: 14px;
font-weight: 600;
margin: 10px 0;
text-align: left !important;
}
.title-box {
padding: 8px 0;

View File

@ -175,7 +175,15 @@ export default {
this.dialogConfig.outerVisible = true
},
//
onHandleDownload(row) {},
onHandleDownload(row) {
this.downloadNew(
'/stateGrid/downloadSouthTemp',
{
id: row.id,
},
`国网模板_${row.name}.doc`,
)
},
// NW
async getNwTemplateList() {

View File

@ -458,6 +458,7 @@ export default {
if (newVal && Object.keys(newVal).length > 0) {
const newValueObj = JSON.parse(JSON.stringify(newVal))
Object.assign(this.addAndEditForm, { ...newValueObj })
this.getSubKeyPersonList(newValueObj.subId)
this.addAndEditForm.startAndEndTime = [newValueObj.startTime, newValueObj.endTime]
this.addTableList = []
this.addTableList = newValueObj.tbCompanyPerfRelList