fileDel.vue 716 B

12345678910111213141516171819202122232425262728293031323334
  1. <template>
  2. <div class="inline-16">
  3. <el-popconfirm
  4. title="确定删除此附件资料吗?"
  5. @confirm="deleteRow()">
  6. <el-button slot="reference" size="small" type="text">删 除</el-button>
  7. </el-popconfirm>
  8. </div>
  9. </template>
  10. <script>
  11. export default {
  12. name: "fileDel",
  13. props:['data'],
  14. methods:{
  15. async deleteRow(){
  16. console.log(this.data.linksid)
  17. const res = await this.$api.requested({
  18. "classname": "system.attachment.Attachment",
  19. "method": "deleteFileLink",
  20. "content": {
  21. "linksids": [this.data.linksid]
  22. }
  23. })
  24. console.log(res)
  25. this.$emit('deleteSuccess')
  26. }
  27. }
  28. }
  29. </script>
  30. <style scoped>
  31. </style>