|
|
@@ -116,6 +116,7 @@
|
|
|
import TablePage from "../../components/TablePage";
|
|
|
import Detail from "./components/InfoListItemDetail";
|
|
|
import { env_url } from "../../config/env";
|
|
|
+// import func from 'vue-editor-bridge';
|
|
|
export default {
|
|
|
props: {
|
|
|
isManufacturer: {
|
|
|
@@ -212,30 +213,6 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
},
|
|
|
- watch: {
|
|
|
- downLoadFlag:function (newValue) {
|
|
|
- if(newValue) {
|
|
|
- setTimeout (() => {
|
|
|
- let data = {
|
|
|
- informationName: this.searchName,
|
|
|
- asc: this.timeSortVal == "dec" ? false : true,
|
|
|
- report: "",
|
|
|
- download: "",
|
|
|
- Page: this.currentPage,
|
|
|
- Rows: this.pageSize,
|
|
|
- agentId: this.userId,
|
|
|
- };
|
|
|
- if (this.reportSortVal) {
|
|
|
- data.report = this.reportSortVal === "already" ? true : false;
|
|
|
- }
|
|
|
- if (this.downloadSortVal) {
|
|
|
- data.download = this.downloadSortVal === "already" ? true : false;
|
|
|
- }
|
|
|
- this.getDataListPage(data);
|
|
|
- }, 1000)
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
methods: {
|
|
|
// 获取某一页面的数据,展示在表格
|
|
|
changePage: function (page) {
|
|
|
@@ -416,21 +393,49 @@ export default {
|
|
|
day = day + "";
|
|
|
}
|
|
|
this.localDate = year + month + day;
|
|
|
+ },
|
|
|
+ pageRefreshList:function(){
|
|
|
+ this.getNowDate();
|
|
|
+ const req = {
|
|
|
+ asc: this.timeSortVal === "dec" ? false : true,
|
|
|
+ agentId: this.userId,
|
|
|
+ Page: this.currentPage,
|
|
|
+ Rows: this.pageSize,
|
|
|
+ };
|
|
|
+ this.getDataListPage(req);
|
|
|
}
|
|
|
},
|
|
|
- mounted() {
|
|
|
- },
|
|
|
- activated() {
|
|
|
- this.userId = localStorage.getItem("userId");
|
|
|
- this.getNowDate();
|
|
|
- const req = {
|
|
|
- asc: false,
|
|
|
- agentId: this.userId,
|
|
|
+ watch: {
|
|
|
+ // 如果路由发生变化,再次执行该方法
|
|
|
+ "$route": "pageRefreshList",
|
|
|
+ downLoadFlag:function (newValue) {
|
|
|
+ if(newValue) {
|
|
|
+ setTimeout (() => {
|
|
|
+ let data = {
|
|
|
+ informationName: this.searchName,
|
|
|
+ asc: this.timeSortVal == "dec" ? false : true,
|
|
|
+ report: "",
|
|
|
+ download: "",
|
|
|
Page: this.currentPage,
|
|
|
Rows: this.pageSize,
|
|
|
+ agentId: this.userId,
|
|
|
};
|
|
|
- this.getDataListPage(req);
|
|
|
- }
|
|
|
+ if (this.reportSortVal) {
|
|
|
+ data.report = this.reportSortVal === "already" ? true : false;
|
|
|
+ }
|
|
|
+ if (this.downloadSortVal) {
|
|
|
+ data.download = this.downloadSortVal === "already" ? true : false;
|
|
|
+ }
|
|
|
+ this.getDataListPage(data);
|
|
|
+ }, 1000)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ mounted() {
|
|
|
+ this.userId = localStorage.getItem("userId");
|
|
|
+ this.pageRefreshList();
|
|
|
+ },
|
|
|
+
|
|
|
};
|
|
|
</script>
|
|
|
|