|
@@ -127,9 +127,9 @@
|
|
|
},
|
|
|
filterDatas(){
|
|
|
this.currentPage = 1;
|
|
|
- this.getDataList();
|
|
|
+ this.getDataList(1);
|
|
|
},
|
|
|
- getDataList() {
|
|
|
+ getDataList(flag) {
|
|
|
const param = this.getFilterItems();
|
|
|
const param1 = {
|
|
|
"current": this.currentPage,
|
|
@@ -143,7 +143,11 @@
|
|
|
if (res.data.code == '0') {
|
|
|
const data = res.data.data;
|
|
|
this.list = data.records;
|
|
|
- this.cacheData[param.current] = data.records;
|
|
|
+ if(!flag){//搜索时不缓存
|
|
|
+ this.cacheData[params.current] = data.records;
|
|
|
+ }else{
|
|
|
+ this.cacheData = {}
|
|
|
+ }
|
|
|
this.total = data.total;
|
|
|
}
|
|
|
}).catch((error) => {
|
|
@@ -228,7 +232,6 @@
|
|
|
e.preventDefault();
|
|
|
let formData = new FormData();
|
|
|
formData.append('uploadfile', fileInfo);
|
|
|
- console.log(123,fileInfo,formData);
|
|
|
const header = {
|
|
|
headers:{
|
|
|
'Content-Type': 'multipart/form-data'
|
|
@@ -242,6 +245,7 @@
|
|
|
});
|
|
|
}else{
|
|
|
this.$message({
|
|
|
+ dangerouslyUseHTMLString: true,
|
|
|
message:res.data.msg,
|
|
|
type:'warning'
|
|
|
});
|