|
@@ -295,7 +295,9 @@ export default {
|
|
|
},
|
|
|
//每页多少条
|
|
|
handleSizeChange(val) {
|
|
|
- console.log(`每页 ${val} 条`);
|
|
|
+ this.pageSize = val;
|
|
|
+ this.searchTarget();
|
|
|
+ // console.log(`每页 ${val} 条`);
|
|
|
//将首页重置为1时---且总条数变化
|
|
|
//设置为当前总条数
|
|
|
},
|
|
@@ -339,7 +341,7 @@ export default {
|
|
|
item.children = arr.filter((e) => {
|
|
|
return item.orgNo === e.parentOrgNo;
|
|
|
});
|
|
|
- return this.userInfo.orgNo==item.orgNo
|
|
|
+ return this.userInfo.orgNo == item.orgNo;
|
|
|
// return !item.parentOrgNo;
|
|
|
});
|
|
|
return data;
|
|
@@ -395,7 +397,7 @@ export default {
|
|
|
this.planStatus = "";
|
|
|
this.searchTarget();
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
formatterTime(val) {
|
|
|
let date = new Date(val);
|
|
|
let year = date.getFullYear();
|
|
@@ -449,12 +451,11 @@ export default {
|
|
|
},
|
|
|
//根据现有情况进行搜索
|
|
|
searchList() {
|
|
|
-
|
|
|
let time = "";
|
|
|
if (this.planTime != "") {
|
|
|
time = this.formatterTime(this.planTime);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
let gp = "";
|
|
|
if (this.group != "") {
|
|
|
gp = this.group[this.group.length - 1];
|
|
@@ -466,7 +467,11 @@ export default {
|
|
|
console.log(this.planName);
|
|
|
console.log(gp);
|
|
|
|
|
|
- let url = `/plan/findListByPage?pageSize=${this.pageSize}&pageNum=${this.pageNum}${gp==''?`&orgNo=${this.userInfo.orgNo}`:`&orgNo=${gp}`}${time==''?'':`&createDate=${time}`}${this.planStatus==''?'':`&planStatus=${this.planStatus}`}${this.planName==''?'':`&planName=${this.planName}`}`;
|
|
|
+ let url = `/plan/findListByPage?pageSize=${this.pageSize}&pageNum=${this.pageNum}${
|
|
|
+ gp == "" ? `&orgNo=${this.userInfo.orgNo}` : `&orgNo=${gp}`
|
|
|
+ }${time == "" ? "" : `&createDate=${time}`}${
|
|
|
+ this.planStatus == "" ? "" : `&planStatus=${this.planStatus}`
|
|
|
+ }${this.planName == "" ? "" : `&planName=${this.planName}`}`;
|
|
|
this.$http.get(url, {}, (res) => {
|
|
|
console.log(res);
|
|
|
if (res && res.code == 200) {
|