|
|
@@ -81,7 +81,9 @@ export default {
|
|
|
if (this.inputValue !== "请输入要搜索的资料名") {
|
|
|
data = {
|
|
|
informationName: this.inputValue,
|
|
|
- asc: this.asc
|
|
|
+ asc: this.asc,
|
|
|
+ page: this.currentPage,
|
|
|
+ rows: this.pageSize,
|
|
|
};
|
|
|
}
|
|
|
this.getFirmsUploadList(data);
|
|
|
@@ -101,7 +103,7 @@ export default {
|
|
|
let req = {
|
|
|
page: this.currentPage,
|
|
|
rows: this.pageSize,
|
|
|
- asc: this.asc
|
|
|
+ asc: this.asc,
|
|
|
};
|
|
|
this.getFirmsUploadList(req);
|
|
|
},
|
|
|
@@ -124,7 +126,7 @@ export default {
|
|
|
let req = {
|
|
|
page: this.currentPage,
|
|
|
rows: this.pageSize,
|
|
|
- asc: this.asc
|
|
|
+ asc: this.asc,
|
|
|
};
|
|
|
this.getFirmsUploadList(req);
|
|
|
},
|
|
|
@@ -137,21 +139,30 @@ export default {
|
|
|
},
|
|
|
delet: function (i) {
|
|
|
let id = this.tableData[i].id;
|
|
|
- this.deleteInformationInfo(id).then(() => {
|
|
|
- this.currentPage = Math.ceil((this.sum - 1) / this.pageSize);
|
|
|
- let req = {
|
|
|
+ this.deleteInformationInfo(id)
|
|
|
+ .then(() => {
|
|
|
+ this.currentPage = Math.ceil((this.sum - 1) / this.pageSize);
|
|
|
+ let req = {
|
|
|
+ page: this.currentPage,
|
|
|
+ rows: this.pageSize,
|
|
|
+ asc: this.asc,
|
|
|
+ };
|
|
|
+ this.getFirmsUploadList(req);
|
|
|
+ })
|
|
|
+ .catch((err) => {
|
|
|
+ console.log(err);
|
|
|
+ });
|
|
|
+ },
|
|
|
+ detail: function (i) {
|
|
|
+ this.$router.push({
|
|
|
+ query: {
|
|
|
+ tag: "detail",
|
|
|
+ id: i,
|
|
|
page: this.currentPage,
|
|
|
rows: this.pageSize,
|
|
|
- asc: this.asc
|
|
|
- };
|
|
|
- this.getFirmsUploadList(req);
|
|
|
- }).catch((err) => {
|
|
|
- console.log(err)
|
|
|
+ },
|
|
|
});
|
|
|
},
|
|
|
- detail: function (i) {
|
|
|
- this.$router.push({ query: { tag: "detail", id: i, page: this.currentPage, rows: this.pageSize } });
|
|
|
- },
|
|
|
// 上传记录列表接口
|
|
|
getFirmsUploadList: function (data = {}) {
|
|
|
this.$http({
|
|
|
@@ -195,7 +206,7 @@ export default {
|
|
|
alert("删除成功");
|
|
|
resolve();
|
|
|
} else {
|
|
|
- alert('删除失败,请重试')
|
|
|
+ alert("删除失败,请重试");
|
|
|
console.log(res.message);
|
|
|
rejecct();
|
|
|
}
|
|
|
@@ -211,7 +222,7 @@ export default {
|
|
|
let res = {
|
|
|
page: 1,
|
|
|
rows: this.pageSize,
|
|
|
- asc: this.asc
|
|
|
+ asc: this.asc,
|
|
|
};
|
|
|
this.getFirmsUploadList(res);
|
|
|
},
|