Commit 6a18d0b1 authored by zhang's avatar zhang

feat: 标准文本标准名称跳转网址,防止连续点击

parent fe53ba58
......@@ -60,10 +60,15 @@
type="primary"
icon="el-icon-search"
size="mini"
:disabled="buttonDisibled"
@click="handleQuery"
>查询</el-button
>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">
<el-button
icon="el-icon-refresh"
size="mini"
@click="resetQuery"
:disabled="buttonDisibled">
重置</el-button
>
</el-form-item>
......@@ -224,7 +229,8 @@ export default {
dialogEditId: null
},
classFicationList: [],
standardFicationList: []
standardFicationList: [],
buttonDisibled:false
}
},
......@@ -250,6 +256,7 @@ export default {
},
methods: {
resetQuery() {
this.buttonDisibled = true
this.queryParams = {
pageNum: this.queryParams.pageNum,
pageSize: this.queryParams.pageSize,
......@@ -257,6 +264,17 @@ export default {
orderByColumn: this.queryParams.orderByColumn
}
this.loadData()
setTimeout(() => {
this.buttonDisibled = false
}, 2000)
},
handleQuery(){
this.buttonDisibled = true
this.loadData()
setTimeout(() => {
this.buttonDisibled = false
}, 2000)
},
sort_change(column, prop, order) {
this.queryParams.pageNum = 1 // 排序后返回第一页
......@@ -268,7 +286,7 @@ export default {
},
downPdf(row, name) {
if (name == 'name') {
window.open(process.env.VUE_APP_IMAGE_API + row.file)
window.open("https:\\"+row.file);
} else if (name == 'keypointname') {
window.open(process.env.VUE_APP_IMAGE_API + row.keypointFile)
}
......
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