|
@@ -605,16 +605,12 @@ export default {
|
|
|
this.approveForm.comments = "";
|
|
|
},
|
|
|
},
|
|
|
- created() {
|
|
|
- //获取地址栏参数
|
|
|
- this.idx = this.getUrlKey("id");
|
|
|
- console.log(this.idx);
|
|
|
- },
|
|
|
mounted() {
|
|
|
this.handleInit({
|
|
|
...this.table_search,
|
|
|
page: this.page,
|
|
|
pageSize: this.rows,
|
|
|
+ id : this.getUrlKey("id")//获取地址栏参数
|
|
|
});
|
|
|
// 职位
|
|
|
this.duty = JSON.parse(sessionStorage.userInfo).duty;
|
|
@@ -656,20 +652,20 @@ export default {
|
|
|
},
|
|
|
data: data,
|
|
|
}).then(({ data: { count, data } }) => {
|
|
|
- if (this.idx) {
|
|
|
- var data1;
|
|
|
- for (var i = 0; i < data.length; i++) {
|
|
|
- if (data[i].id != this.idx) {
|
|
|
- } else {
|
|
|
- data1 = data[i];
|
|
|
- data.length = 0;
|
|
|
- data.push(data1);
|
|
|
- this.table_loading = false;
|
|
|
- this.total = count;
|
|
|
- this.table_list = data || [];
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+ // if (this.idx) {
|
|
|
+ // var data1;
|
|
|
+ // for (var i = 0; i < data.length; i++) {
|
|
|
+ // if (data[i].id != this.idx) {
|
|
|
+ // } else {
|
|
|
+ // data1 = data[i];
|
|
|
+ // data.length = 0;
|
|
|
+ // data.push(data1);
|
|
|
+ // this.table_loading = false;
|
|
|
+ // this.total = count;
|
|
|
+ // this.table_list = data || [];
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }
|
|
|
this.table_loading = false;
|
|
|
this.total = count;
|
|
|
this.table_list = data || [];
|