Commit e6645c10 authored by 盖献康's avatar 盖献康

bug(67922) - 下载按钮状态不正确

parent 785b4dfa
...@@ -48,9 +48,9 @@ ...@@ -48,9 +48,9 @@
<el-button <el-button
plain plain
size="mini" size="mini"
class="el-button--warning--solid" class="buying-credit el-button--warning--solid"
type="warning" type="warning"
@click="downloadPdf(scope.row)" @click="downloadPdf(scope.row, 'buying-credit')"
> >
<svg-icon icon-class="liebiao_icon_xiajia" /> <svg-icon icon-class="liebiao_icon_xiajia" />
下载 下载
...@@ -110,9 +110,9 @@ ...@@ -110,9 +110,9 @@
<el-button <el-button
plain plain
size="mini" size="mini"
class="el-button--warning--solid" class="downloadPdf el-button--warning--solid"
type="warning" type="warning"
@click="downloadPdf(scope.row)" @click="downloadPdf(scope.row, downloadPdf)"
> >
<svg-icon icon-class="liebiao_icon_xiajia" /> <svg-icon icon-class="liebiao_icon_xiajia" />
下载 下载
...@@ -238,9 +238,12 @@ export default { ...@@ -238,9 +238,12 @@ export default {
this.openContractDocument = true this.openContractDocument = true
this.contractDocumentUrl = this.baseUrl + row.contract this.contractDocumentUrl = this.baseUrl + row.contract
}, },
downloadPdf(row) { downloadPdf(row, ButtonId) {
this.$download.resource(row.contract) this.$download.resource(row.contract)
this.$modal.msgSuccess('正在下载中,请稍等…') this.$modal.msgSuccess('正在下载中,请稍等…')
Array.prototype.forEach.call(document.getElementsByClassName(ButtonId),
element => element.blur()
)
}, },
/** 通过授权历史获取到期日期 */ /** 通过授权历史获取到期日期 */
addDays(date, str) { addDays(date, str) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment