diff --git a/src/components/Engineering/HistoricalFault.vue b/src/components/Engineering/HistoricalFault.vue index 5cabcd3..3312a76 100644 --- a/src/components/Engineering/HistoricalFault.vue +++ b/src/components/Engineering/HistoricalFault.vue @@ -91,6 +91,8 @@ data: function() { return { condition: "", + platCode: "", + userNo: "", HistoryTableData: [], //历史数据表格数据 Page: 1, //分页默认显示页 DataLength: 0, //分页上显示的数据总条数 @@ -138,7 +140,7 @@ { platformName: "全部", platformCode: "", - dropSiteList: [] + dropSiteList: "" } ], //平台的数据源 Site: "", //平台 @@ -170,7 +172,8 @@ st: this.TimeValue[0], et: this.TimeValue[1], pageNo: this.Page, - pageSize: this.Size + pageSize: this.Size, + userNo: this.userNo }) .then(response => { this.loading = false; @@ -234,6 +237,8 @@ } }, mounted: function() { + this.userNo = window.localStorage.getItem("USERNO"); + this.loadAllProject(); } }; diff --git a/src/components/Engineering/HistoricalFault.vue b/src/components/Engineering/HistoricalFault.vue index 5cabcd3..3312a76 100644 --- a/src/components/Engineering/HistoricalFault.vue +++ b/src/components/Engineering/HistoricalFault.vue @@ -91,6 +91,8 @@ data: function() { return { condition: "", + platCode: "", + userNo: "", HistoryTableData: [], //历史数据表格数据 Page: 1, //分页默认显示页 DataLength: 0, //分页上显示的数据总条数 @@ -138,7 +140,7 @@ { platformName: "全部", platformCode: "", - dropSiteList: [] + dropSiteList: "" } ], //平台的数据源 Site: "", //平台 @@ -170,7 +172,8 @@ st: this.TimeValue[0], et: this.TimeValue[1], pageNo: this.Page, - pageSize: this.Size + pageSize: this.Size, + userNo: this.userNo }) .then(response => { this.loading = false; @@ -234,6 +237,8 @@ } }, mounted: function() { + this.userNo = window.localStorage.getItem("USERNO"); + this.loadAllProject(); } }; diff --git a/src/components/Engineering/Nowfault.vue b/src/components/Engineering/Nowfault.vue index 402eaaa..bf4aba9 100644 --- a/src/components/Engineering/Nowfault.vue +++ b/src/components/Engineering/Nowfault.vue @@ -89,12 +89,14 @@ Size: 10, //分页上显示的每页的条数 loading: false, Project: "", //平台 + userNo: "", + platCode: "", // searchnum: 1, ProjectOptions: [ { platformName: "全部", platformCode: "", - dropSiteList: [] + dropSiteList: "" } ], Site: "", //平台 @@ -120,9 +122,10 @@ }, // 获取平台的站点 loadProjectUser(CODE) { + this.platCode = CODE; this.SiteOptions = [ { - siteName: "全部", + siteName: "请先选择项目", siteNo: "" } ]; @@ -174,9 +177,11 @@ this.loading = true; this.$http .post(this.nozzle.faultInfoGetTempInfo, { - condition: this.Site, + siteNo: this.Site, pageNo: this.Page, - pageSize: this.Size + pageSize: this.Size, + platCode: this.platCode, + userNo: this.userNo }) .then(response => { this.loading = false; @@ -194,6 +199,7 @@ } }, mounted: function() { + this.userNo = window.localStorage.getItem("USERNO"); this.loadAllProject(); this.loadDataGridData(); }