interviewDia.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <script setup>
  2. import { ref } from "vue";
  3. import { ElMessage } from "element-plus";
  4. import { ficcManageInterface, customInterence } from "@/api/api.js";
  5. const props = defineProps({
  6. isShowDia: {
  7. type: Boolean,
  8. require: true,
  9. },
  10. item: {
  11. type: Object,
  12. require: true,
  13. },
  14. activeName: {
  15. type: Number,
  16. },
  17. });
  18. const emit = defineEmits(["success", "close"]);
  19. /* 处理申请 */
  20. async function dealApply() {
  21. let res;
  22. try {
  23. if (props.activeName > 1) {
  24. res = await customInterence.trialStatus({
  25. Id: props.item.Id,
  26. });
  27. } else {
  28. res = await ficcManageInterface.applyRecordDeal({
  29. ApplyRecordId: props.item.ApplyRecordId,
  30. UserId: props.item.UserId,
  31. });
  32. }
  33. if (res.Ret === 200) {
  34. ElMessage.success("标记处理完成");
  35. cancelHandle();
  36. emit("success");
  37. }
  38. } catch (err) {
  39. console.dir(err);
  40. }
  41. }
  42. function cancelHandle() {
  43. emit("close");
  44. }
  45. </script>
  46. <template>
  47. <el-dialog
  48. draggable
  49. :model-value="isShowDia"
  50. :close-on-click-modal="false"
  51. :modal-append-to-body="false"
  52. :show-close="false"
  53. @close="cancelHandle"
  54. class="interview_dialog"
  55. center
  56. width="450px"
  57. >
  58. <template #header>
  59. <div style="position: relative">
  60. <span style="font-size: 16px">标记处理</span>
  61. <i
  62. class="el-icon-close"
  63. style="
  64. font-size: 24px;
  65. cursor: pointer;
  66. position: absolute;
  67. right: 20px;
  68. top: 50%;
  69. transform: translateY(-50%);
  70. "
  71. @click="cancelHandle"
  72. ></i>
  73. </div>
  74. </template>
  75. <!-- 申请弹窗 -->
  76. <div class="dialog_cont">
  77. <!-- 处理申请 -->
  78. <span>是否确认已处理该用户申请?</span>
  79. </div>
  80. <div style="display: flex; justify-content: center; margin: 40px 0">
  81. <template>
  82. <el-button
  83. type="primary"
  84. style="width: 80px; marginright: 24px"
  85. @click="dealApply"
  86. >确定</el-button
  87. >
  88. <el-button
  89. type="primary"
  90. plain
  91. style="width: 80px"
  92. @click="cancelHandle"
  93. >取消</el-button
  94. >
  95. </template>
  96. </div>
  97. </el-dialog>
  98. </template>
  99. <style scoped lang="scss">
  100. .interview-dialog {
  101. .dialog_cont {
  102. padding: 0 10px;
  103. .node_name {
  104. font-size: 15px;
  105. margin-bottom: 20px;
  106. }
  107. .node_ipt {
  108. display: block;
  109. width: 100%;
  110. margin: 20px 0;
  111. }
  112. }
  113. .el-dialog__body {
  114. flex-direction: column;
  115. }
  116. }
  117. </style>