resume.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. <!--
  2. * @Description: create
  3. * @Version: 1.0
  4. * @Autor: XuTongZhang
  5. * @Date: 2020-07-30 10:32:00
  6. * @LastEditors: XuTongZhang
  7. * @LastEditTime: 2020-08-17 09:50:29
  8. -->
  9. <template>
  10. <div>
  11. <el-dialog
  12. :visible.sync="dialogFormVisible"
  13. :width="'1400px'"
  14. :before-close="close"
  15. :close-on-click-modal="false"
  16. >
  17. <div class="flex">
  18. <div class="left">
  19. <div class="top">
  20. <div class="title">{{info.delivererName}}的面试视频:</div>
  21. <div class="video">
  22. <video
  23. width="100%"
  24. controls
  25. :src="info.answerVideoList && info.answerVideoList.length ? $img + info.answerVideoList[active].answerVideoPath : ''"
  26. ></video>
  27. </div>
  28. <div class="list" v-if="info.answerVideoList && info.answerVideoList.length">
  29. <div
  30. v-for="(item, index) in info.answerVideoList"
  31. :key="item.id"
  32. class="active"
  33. @click="active = index"
  34. :class="active === index ? 'is-active' : ''"
  35. >第{{index + 1}}段</div>
  36. </div>
  37. <div v-else class="prompt">暂无视频</div>
  38. </div>
  39. <div class="center">
  40. <div class="title">简历备注:</div>
  41. <el-input type="textarea" :rows="4" resize="none" placeholder="请输入内容" v-model="remark"></el-input>
  42. </div>
  43. <div class="footer">
  44. <el-button type="primary" @click="submit">提交备注</el-button>
  45. <el-button type="danger" @click="through(2)">标记为未通过</el-button>
  46. <el-button type="success" @click="through(1)">标记为通过</el-button>
  47. </div>
  48. </div>
  49. <div class="right" v-if="info.filePath">
  50. <iframe width="100%" height="100%" :src="$img + info.filePath"></iframe>
  51. </div>
  52. </div>
  53. </el-dialog>
  54. </div>
  55. </template>
  56. <script>
  57. export default {
  58. data () {
  59. return {
  60. remark: '',
  61. active: 0
  62. }
  63. },
  64. props: {
  65. dialogFormVisible: {
  66. type: Boolean,
  67. default: false
  68. },
  69. close: {
  70. type: Function,
  71. default: () => {}
  72. },
  73. info: {
  74. type: Object,
  75. default: () => {}
  76. },
  77. searchForm: {
  78. type: Object,
  79. default: () => {}
  80. },
  81. queryData: {
  82. type: Function,
  83. default: () => {}
  84. }
  85. },
  86. methods: {
  87. through (val) {
  88. let resumeInfoStatusList = this.info.isPass ? [this.info.id].map((item) => ({ id: item, interviewResult: val })) : [this.info.id].map((item) => ({ id: item, isPass: val }))
  89. let url = this.info.isPass ? '/resumeInfo/changeInterviewResult' : '/resumeInfo/changeReadType'
  90. this.$api
  91. .post(url, {
  92. reqdata: {
  93. resumeInfoStatusList
  94. }
  95. })
  96. .then((res) => {
  97. this.$message({
  98. type: 'success',
  99. message: '修改成功!'
  100. })
  101. this.close()
  102. this.queryData(this.searchForm)
  103. })
  104. },
  105. submit () {
  106. this.$api
  107. .post('/resumeInfo/addRemakes', {
  108. reqdata: {
  109. id: this.info.id,
  110. remark: this.remark
  111. }
  112. })
  113. .then((res) => {
  114. // this.close()
  115. // this.queryData(this.searchForm)
  116. this.$message({
  117. type: 'success',
  118. message: '修改成功!'
  119. })
  120. })
  121. }
  122. },
  123. watch: {
  124. info () {
  125. this.remark = this.info.remark
  126. }
  127. }
  128. }
  129. </script>
  130. <style lang="scss" scoped>
  131. .flex {
  132. display: flex;
  133. justify-content: space-between;
  134. .left {
  135. flex: 1;
  136. margin-right: 20px;
  137. .top {
  138. .title {
  139. font-size: 28px;
  140. margin-bottom: 10px;
  141. }
  142. .list {
  143. margin-top: 10px;
  144. font-size: 14px;
  145. display: flex;
  146. color: rgb(42, 117, 216);
  147. > div {
  148. cursor: pointer;
  149. margin: 10px;
  150. }
  151. .is-active {
  152. color: #000;
  153. font-size: 16px;
  154. margin-top: 7px;
  155. }
  156. }
  157. }
  158. .center {
  159. margin-top: 10px;
  160. .title {
  161. font-size: 22px;
  162. margin-bottom: 10px;
  163. }
  164. }
  165. .footer {
  166. margin-top: 30px;
  167. display: flex;
  168. justify-content: center;
  169. }
  170. }
  171. .right {
  172. overflow: scroll;
  173. width: 770px;
  174. iframe {
  175. border: none;
  176. html {
  177. width: 100%;
  178. }
  179. }
  180. }
  181. }
  182. .prompt {
  183. text-align: center;
  184. height: 30px;
  185. line-height: 40px;
  186. font-size: 20px;
  187. color: #888;
  188. }
  189. </style>