|
@@ -79,7 +79,8 @@
|
|
|
@sort-change="handleSort"
|
|
|
:default-sort = dataSort
|
|
|
:max-height="tableHeight"
|
|
|
- @selection-change="handleSelectionChange">
|
|
|
+ @selection-change="handleSelectionChange"
|
|
|
+ v-loading="tableLoading">
|
|
|
<el-table-column
|
|
|
type="selection"
|
|
|
width="40"
|
|
@@ -211,7 +212,8 @@
|
|
|
key="auditTable"
|
|
|
@sort-change="handleSort"
|
|
|
:default-sort = dataSorts
|
|
|
- @selection-change="handleSelectionChange">
|
|
|
+ @selection-change="handleSelectionChange"
|
|
|
+ v-loading="tableLoading">
|
|
|
<el-table-column
|
|
|
type="selection"
|
|
|
width="40"
|
|
@@ -444,6 +446,7 @@ export default {
|
|
|
dataSort: {},
|
|
|
dataSorts: {},
|
|
|
exportUrl: '', // 下载模板链接
|
|
|
+ tableLoading: false
|
|
|
}
|
|
|
},
|
|
|
//计算属性 类似于data概念
|
|
@@ -468,6 +471,7 @@ export default {
|
|
|
},
|
|
|
// 查询列表
|
|
|
getList(page){
|
|
|
+ this.tableLoading = true
|
|
|
if(page){
|
|
|
if(this.tabsIndex===0){
|
|
|
this.pageNumber = page
|
|
@@ -519,13 +523,14 @@ export default {
|
|
|
}
|
|
|
getLogin(MethodName, data)
|
|
|
.then((res) => {
|
|
|
+ this.tableLoading = false
|
|
|
if(res.status===1){
|
|
|
this.tableData = res.person_list
|
|
|
this.total_count = res.total_count
|
|
|
}
|
|
|
})
|
|
|
.catch(() => {
|
|
|
- this.loading = false
|
|
|
+ this.tableLoading = false
|
|
|
});
|
|
|
},
|
|
|
// 创建机构或者编辑信息
|
|
@@ -692,6 +697,18 @@ export default {
|
|
|
}
|
|
|
]
|
|
|
this.breadcrumbList.push(obj)
|
|
|
+ let _this = this
|
|
|
+ setTimeout(() => {
|
|
|
+ let input = document.querySelector('input');
|
|
|
+ input.addEventListener('keyup', function(event) {
|
|
|
+ // 判断是否按下回车键
|
|
|
+ if (event.keyCode === 13) {
|
|
|
+ // 回车键被按下,执行你想要的操作
|
|
|
+ _this.getList(1)
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }, 500);
|
|
|
+
|
|
|
}
|
|
|
})
|
|
|
.catch(() => {
|
|
@@ -716,7 +733,6 @@ export default {
|
|
|
},
|
|
|
//生命周期 - 挂载完成(可以访问DOM元素)
|
|
|
mounted() {
|
|
|
-
|
|
|
},
|
|
|
//生命周期-创建之前
|
|
|
beforeCreated() { },
|