Commit 6a18d0b1 authored by zhang's avatar zhang

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

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