模板下載分類頁面

This commit is contained in:
fl 2025-06-23 18:19:39 +08:00
parent d42c728470
commit af655dbbc7
3 changed files with 38 additions and 11 deletions

View File

@ -188,22 +188,31 @@ export default {
this.$confirm('请选择下载的模板类型?', '温馨提示', {
distinguishCancelAndClose: true,
confirmButtonText: '表格下载',
cancelButtonText: '普通下载',
confirmButtonText: '商务标下载',
cancelButtonText: '技术标下载',
})
.then(() => {
.then(() => {
//
this.downloadNew(
'/stateGrid/downloadStateGridTemp',
{
id: row.id,
isJsb: 0,
},
`国网模板_${row.name}.doc`,
`商务标_${row.name}.doc`,
)
})
.catch((action) => {
//
this.downloadNew(
'/stateGrid/downloadStateGridTemp',
{
id: row.id,
isJsb: 1,
},
`技术标_${row.name}.doc`,
)
})
},

View File

@ -188,8 +188,8 @@ export default {
this.$confirm('请选择下载的模板类型?', '温馨提示', {
distinguishCancelAndClose: true,
confirmButtonText: '表格下载',
cancelButtonText: '普通下载',
confirmButtonText: '商务标下载',
cancelButtonText: '技术标下载',
})
.then(() => {
//
@ -198,12 +198,21 @@ export default {
'/stateGrid/downloadStateGridTemp',
{
id: row.id,
isJsb: 0,
},
`国网模板_${row.name}.doc`,
`商务标_${row.name}.doc`,
)
})
.catch((action) => {
//
this.downloadNew(
'/stateGrid/downloadStateGridTemp',
{
id: row.id,
isJsb: 1,
},
`技术标_${row.name}.doc`,
)
})
},

View File

@ -188,22 +188,31 @@ export default {
this.$confirm('请选择下载的模板类型?', '温馨提示', {
distinguishCancelAndClose: true,
confirmButtonText: '表格下载',
cancelButtonText: '普通下载',
confirmButtonText: '商务标下载',
cancelButtonText: '技术标下载',
})
.then(() => {
.then(() => {
//
this.downloadNew(
'/stateGrid/downloadStateGridTemp',
{
id: row.id,
isJsb: 0,
},
`国网模板_${row.name}.doc`,
`商务标_${row.name}.doc`,
)
})
.catch((action) => {
//
this.downloadNew(
'/stateGrid/downloadStateGridTemp',
{
id: row.id,
isJsb: 1,
},
`技术标_${row.name}.doc`,
)
})
},