|
@@ -50,8 +50,22 @@ export default {
|
|
this.$set(this, `total`, res.total);
|
|
this.$set(this, `total`, res.total);
|
|
},
|
|
},
|
|
// 删除
|
|
// 删除
|
|
- async deleteRow(id) {
|
|
|
|
- const res = await this.credit({ id: id, orcredit: '3' });
|
|
|
|
|
|
+ async deleteRow(id) {this.$prompt('请输拒绝信息', '提示', {
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
+ })
|
|
|
|
+ .then(({ value }) => {
|
|
|
|
+ this.jujue(value,id);
|
|
|
|
+ })
|
|
|
|
+ .catch(() => {
|
|
|
|
+ this.$message({
|
|
|
|
+ type: 'info',
|
|
|
|
+ message: '取消输入',
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ async jujue(value,id) {
|
|
|
|
+ const res = await this.credit({id:id,jindiaomessage:value,orcredit:'3'});
|
|
this.$checkRes(res, '拒绝成功', '拒绝失败');
|
|
this.$checkRes(res, '拒绝成功', '拒绝失败');
|
|
this.followList();
|
|
this.followList();
|
|
},
|
|
},
|