delete.vue 678 B

12345678910111213141516171819202122232425262728293031
  1. <template>
  2. <div style="display:inline;margin:0 16px">
  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. props:['data'],
  13. methods:{
  14. deleteRow () {
  15. this.$api.requested({
  16. "classname": "webmanage.saletool.notice.notice",
  17. "method": "delete",
  18. "content": {
  19. "sat_noticeid":this.data.sat_noticeid
  20. }
  21. }).then(res=>{
  22. this.tool.showMessage(res,()=>{
  23. this.$emit('onSuccess')
  24. })
  25. })
  26. },
  27. }
  28. }
  29. </script>