|
@@ -31,33 +31,16 @@ export default {
|
|
data: () => ({
|
|
data: () => ({
|
|
topTitle: '其他用户',
|
|
topTitle: '其他用户',
|
|
display: 'block',
|
|
display: 'block',
|
|
- debtTable: [
|
|
|
|
- {
|
|
|
|
- name: '其他用户',
|
|
|
|
- phone: '123456789',
|
|
|
|
- type: '0',
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- name: '其他用户',
|
|
|
|
- phone: '123456789',
|
|
|
|
- type: '1',
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- name: '其他用户',
|
|
|
|
- phone: '123456789',
|
|
|
|
- type: '2',
|
|
|
|
- },
|
|
|
|
- ],
|
|
|
|
|
|
+ debtTable: [],
|
|
}),
|
|
}),
|
|
created() {
|
|
created() {
|
|
this.searchInfo();
|
|
this.searchInfo();
|
|
},
|
|
},
|
|
computed: {},
|
|
computed: {},
|
|
methods: {
|
|
methods: {
|
|
- ...otheruser(['query']),
|
|
|
|
|
|
+ ...otheruser(['query', 'delete']),
|
|
async searchInfo({ skip = 0, limit = 10, ...info } = {}) {
|
|
async searchInfo({ skip = 0, limit = 10, ...info } = {}) {
|
|
const res = await this.query({ skip, limit, ...info });
|
|
const res = await this.query({ skip, limit, ...info });
|
|
- console.log(res);
|
|
|
|
this.$set(this, `debtTable`, res.data);
|
|
this.$set(this, `debtTable`, res.data);
|
|
},
|
|
},
|
|
// 添加
|
|
// 添加
|
|
@@ -65,8 +48,10 @@ export default {
|
|
this.$router.push({ path: '/otheruser/detail' });
|
|
this.$router.push({ path: '/otheruser/detail' });
|
|
},
|
|
},
|
|
// 删除
|
|
// 删除
|
|
- deleteRow(id) {
|
|
|
|
- console.log(id);
|
|
|
|
|
|
+ async deleteRow(id) {
|
|
|
|
+ const res = await this.delete(id);
|
|
|
|
+ this.$checkRes(res, '删除成功', '删除失败');
|
|
|
|
+ this.searchInfo();
|
|
},
|
|
},
|
|
},
|
|
},
|
|
};
|
|
};
|