|
|
@@ -81,12 +81,6 @@ export default {
|
|
|
type: Boolean,
|
|
|
default: false,
|
|
|
},
|
|
|
- tableList: {
|
|
|
- type: Array,
|
|
|
- default: () => {
|
|
|
- return []
|
|
|
- }
|
|
|
- }
|
|
|
},
|
|
|
components: {
|
|
|
Table,
|
|
|
@@ -212,7 +206,6 @@ export default {
|
|
|
data: data,
|
|
|
})
|
|
|
.then((res) => {
|
|
|
- console.log(res);
|
|
|
let nowSum = this.sum;
|
|
|
if (res.data && res.data.code === 200) {
|
|
|
// created时,获取自定义添加datalist下拉框的值
|
|
|
@@ -244,10 +237,10 @@ export default {
|
|
|
console.log(this.allDlr, 222);
|
|
|
this.sum = this.allDlr.length;
|
|
|
// 添加以后跳到最后一页
|
|
|
- this.currentPage = this.totalPage;
|
|
|
let startData = (this.currentPage - 1) * this.pageSize;
|
|
|
let endData = this.currentPage * this.pageSize;
|
|
|
this.tableData = this.allDlr.slice(startData, endData);
|
|
|
+ console.log(this.tableData, '11')
|
|
|
// 自定义添加 提示
|
|
|
let include = this.dlrList.indexOf(this.addByCustomize);
|
|
|
if (include < 0 && addBySelfFlag) {
|
|
|
@@ -288,12 +281,11 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
created() {
|
|
|
+ // 获取datalist里所有的值
|
|
|
this.getDlrData({}, true);
|
|
|
- this.tableList.forEach((item) => {
|
|
|
- this.allDlr.push(item);
|
|
|
- })
|
|
|
- this.tableData = this.allDlr.slice(0, this.pageSize);
|
|
|
- this.sum = this.tableList.length;
|
|
|
+ let groupId = this.$route.query && this.$route.query.id;
|
|
|
+ let req = { groupId };
|
|
|
+ this.getDlrData(req);
|
|
|
this.getAreaList();
|
|
|
},
|
|
|
};
|