Commit aad70331 by 前端

功能代码提交

1 parent 91cc56bd
...@@ -819,7 +819,6 @@ export const downloadReportManage_reportType = [ ...@@ -819,7 +819,6 @@ export const downloadReportManage_reportType = [
// 下载报表 业务类型 // 下载报表 业务类型
export const downloadReportManage_businessType = [ export const downloadReportManage_businessType = [
{ confId: "all", confValue: "'全部'" },
{ confId: "jingpin", confValue: "精品升级" }, { confId: "jingpin", confValue: "精品升级" },
{ confId: "quanyi", confValue: "权益" }, { confId: "quanyi", confValue: "权益" },
{ confId: "yanbao", confValue: "延保" } { confId: "yanbao", confValue: "延保" }
......
...@@ -36,9 +36,13 @@ ...@@ -36,9 +36,13 @@
:table-params="tableParams" :table-params="tableParams"
:before-search-fn="beforeSearchFn"> :before-search-fn="beforeSearchFn">
<div slot="auth-button" <div slot="auth-button"
slot-scope="scope"> slot-scope="scope"
v-if="scope.scope.status != -1">
<auth-button :data="scope.scope" /> <auth-button :data="scope.scope" />
</div> </div>
<div v-else>
<span class="list-span">正在生成中</span>
</div>
</d2-table> </d2-table>
</div> </div>
</d2-container> </d2-container>
...@@ -46,7 +50,7 @@ ...@@ -46,7 +50,7 @@
</template> </template>
<script> <script>
import { Util, deepClone } from '@/common/util' import { Util, deepClone, downLoadFile } from '@/common/util'
import { downloadReportManage_reportType, downloadReportManage_businessType } from '@/common/constants.js' import { downloadReportManage_reportType, downloadReportManage_businessType } from '@/common/constants.js'
import { queryAllExcel, reportExport_download, rebuild } from '@api/downloadReportManage' import { queryAllExcel, reportExport_download, rebuild } from '@api/downloadReportManage'
export default { export default {
...@@ -185,21 +189,21 @@ export default { ...@@ -185,21 +189,21 @@ export default {
//下载 //下载
handleDownload(row) { handleDownload(row) {
reportExport_download({ fileName: row.fileName }).then((result) => { reportExport_download({ key: row.key }).then((result) => {
console.log(result, 'result') console.log(result, 'result')
result && downLoadFile(result) result && downLoadFile(result.list[0].url)
}) })
}, },
// 重新生成 // 重新生成
handleReWithdrawal(row) { handleGenerate(row) {
this.$confirm('系统将自动按照对应的报表及统计时间重新生成,生成过程中不可下载,请耐心等待。是否确认重新生成?', '提示', { this.$confirm('系统将自动按照对应的报表及统计时间重新生成,生成过程中不可下载,请耐心等待。是否确认重新生成?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning', type: 'warning',
closeOnClickModal: false closeOnClickModal: false
}).then(() => { }).then(() => {
rebuild({ orderCode: row.withdrawOrderCode }).then(res => { rebuild({ key: row.key }).then(res => {
this.notice.okTips() this.notice.okTips()
this.$refs.recordTable.refreshTable() this.$refs.recordTable.refreshTable()
}) })
...@@ -225,4 +229,10 @@ export default { ...@@ -225,4 +229,10 @@ export default {
box-sizing: border-box; box-sizing: border-box;
margin-right: 10px; margin-right: 10px;
} }
.list-span {
font-family: PingFangSC-Regular;
font-weight: 400;
font-size: 14px;
color: #999999;
}
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!