|
|
@ -306,7 +306,22 @@ export default { |
|
|
|
}, |
|
|
|
onSwitchChange1(row) { |
|
|
|
console.log(row, '------flag'); |
|
|
|
row.status = !row.status; |
|
|
|
row.status = row.status == 0 ? 1 : 0; |
|
|
|
this.$http('POST', '/api/admin/depart_mutil_option', { |
|
|
|
depart_index_ids:row.id, |
|
|
|
status:row.status |
|
|
|
}).then(response => { |
|
|
|
if (response.code == 0) { |
|
|
|
this.$message.success(response.msg); |
|
|
|
}else{ |
|
|
|
this.$message.error(response.msg); |
|
|
|
} |
|
|
|
this.getInitData() |
|
|
|
}).catch(error => { |
|
|
|
console.error(error, 'error') |
|
|
|
this.$message.error('操作失败'); |
|
|
|
}) |
|
|
|
|
|
|
|
this.$set(this.doctorList, row) |
|
|
|
}, |
|
|
|
batchOperate(status) { |
|
|
|