重置功能

lijinlong
吕天方 1 year ago
parent 609e16e815
commit 6d98491ec1

@ -125,6 +125,21 @@
<div class="select-btn" @click="filtrate"></div>
<div class="select-btn reset" @click="reset"></div>
<div class="select-btn select-btn1">导入</div>
<!-- <el-upload
class="upload-demo"
action="1"
ref="uploadOver"
:http-request="exportFile"
:on-success="handleSuccess"
:multiple="false"
:show-file-list="false"
:limit="1"
:file-list="fileList"
>
<div class="export export1">
导入
</div>
</el-upload> -->
</div>
<!-- </div> -->
</div>
@ -331,7 +346,10 @@ export default {
this.getTable(obj);
},
reset(){
Object.keys(this.form).forEach(key=>this.form[key]='')
Object.keys(this.form).forEach(key=>this.form[key]='');
this.pages.pageNum = 1;
this.pages.pageSize = 10;
this.getTable(this.pages);
},
async open(item) {
this.dialogVisible = true;
@ -474,6 +492,32 @@ export default {
}
return "";
},
// handleSuccess() {},
// //
// exportFile(e) {
// let downloadLoadingInstance = Loading.service({
// text: "",
// spinner: "el-icon-loading",
// background: "rgba(0, 0, 0, 0.7)",
// });
// let a = new FormData();
// a.append("file", e.file);
// exportEnterprise(a)
// .then((res) => {
// downloadLoadingInstance.close();
// this.queryParms.year = "";
// this.searchBefore = {
// pageSize: 10,
// pageNum: 1,
// };
// this.getList();
// this.$refs.uploadOver.clearFiles();
// })
// .catch(() => {
// downloadLoadingInstance.close();
// this.$model.msgError("");
// });
// },
commentData(item){
if(item instanceof Array) {
item.map((item)=>{
@ -678,6 +722,7 @@ export default {
}
.btns {
display: flex;
align-items: center;
}
.select-btn {
margin: 20px 0 0 0;
@ -702,6 +747,22 @@ export default {
background: #28b384;
margin-left: 20px;
}
.export {
display: flex;
align-items: center;
justify-content: center;
width: 80px;
height: 33px;
// padding: 6px 19px;
border-radius: 2px;
background-color: #28b384;
margin:20px 0 0 20px;
cursor: pointer;
color: #ffffff;
font-size: 14px;
font-family: "Alibaba PuHuiTi";
font-weight: 400;
}
}
.tables {
background-color: #eaf2fd;

Loading…
Cancel
Save