contractOver.vue 586 B

12345678910111213141516171819202122232425262728
  1. <template>
  2. <div class="inline-16">
  3. <el-popconfirm title="确定终止当前合同吗?" @confirm="deleteRow()">
  4. <el-button slot="reference" size="mini">终 止</el-button>
  5. </el-popconfirm>
  6. </div>
  7. </template>
  8. <script>
  9. export default {
  10. props: ['id'],
  11. methods: {
  12. async deleteRow () {
  13. let res = await this.$api.requested({
  14. "id": "20221212102802",
  15. "version": 1,
  16. "content": {
  17. "sa_contractid": this.id
  18. }
  19. })
  20. this.tool.showMessage(res, () => {
  21. this.$emit('onSuccess')
  22. })
  23. },
  24. }
  25. }
  26. </script>