unlock.vue 688 B

12345678910111213141516171819202122232425262728293031323334
  1. <template>
  2. <div>
  3. <el-popconfirm
  4. title="确定解锁该客户吗?"
  5. @confirm="onUnLock()">
  6. <el-button style="width:100%" slot="reference" block size="small" >解锁</el-button>
  7. </el-popconfirm>
  8. </div>
  9. </template>
  10. <script>
  11. export default {
  12. name: "unlock",
  13. props:["id"],
  14. methods:{
  15. async onUnLock(){
  16. const res = await this.$api.requested({
  17. "id": 20221012164002,
  18. "content": {
  19. "sa_customersids": [this.id],
  20. "datastatus": 0//(0:正常;1:作废;2:锁定)
  21. },
  22. })
  23. this.tool.showMessage(res,() => {
  24. this.$emit("onshow")
  25. })
  26. }
  27. }
  28. }
  29. </script>
  30. <style scoped>
  31. </style>