labourServices-lookUp.vue 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. <template>
  2. <div>
  3. <el-breadcrumb separator=">">
  4. <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
  5. <el-breadcrumb-item>
  6. <a href="#">企业HR</a>
  7. </el-breadcrumb-item>
  8. <el-breadcrumb-item>
  9. <a href="/labourServices">简历详情</a>
  10. </el-breadcrumb-item>
  11. </el-breadcrumb>
  12. <el-divider></el-divider>
  13. <div class="user-panel">
  14. <el-container>
  15. <el-aside width="150px">
  16. <el-image
  17. style="width: 80px; height: 80px"
  18. src="https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg"
  19. fit="fit">
  20. </el-image>
  21. </el-aside>
  22. <el-main>
  23. <div class="title">
  24. 湖北荆鹏软件集团有限公司
  25. </div>
  26. <div class="desc">
  27. <span class="typeSpan">{{formModel.typeN}}</span>
  28. <span class="creteTimeSpan">{{formModel.createTime}}</span>
  29. </div>
  30. <el-divider></el-divider>
  31. <div class="detail" v-html="formModel.content">
  32. </div>
  33. </el-main>
  34. </el-container>
  35. </div>
  36. <div style="background-color:#EFEFEF;padding:5px;">
  37. <el-button @click="closeDialog">关闭</el-button>
  38. </div>
  39. </div>
  40. </template>
  41. <script>
  42. import labourServicesApi from "@/api/base/labourServices";
  43. export default {
  44. name: "labourServicesLookUp",
  45. props: ["businessKey", "title"],
  46. data() {
  47. return {
  48. id:"",
  49. formModel: {},
  50. showDialog: true,
  51. loading: false,
  52. submitting: false,
  53. showModal: false,
  54. modalTitle: "",
  55. }
  56. },
  57. methods:{
  58. closeDialog() {
  59. //删除当前页面
  60. this.$store.dispatch('tagsView/delView', {
  61. path: '/base/labourServices/lookUp',
  62. name: 'labourServicesLookUp'
  63. })
  64. .then(({ visitedViews }) => {
  65. this.$router.push({
  66. path: "/base/labourServices/list"
  67. })
  68. });
  69. this.$store.state.tagsView.visitedViews.splice(this.$store.state.tagsView.visitedViews.findIndex(item => item.path === this.$route.path), 1)
  70. },
  71. },
  72. mounted: function () {
  73. var self = this;
  74. self.id = this.$route.query.businessKey;
  75. (function () {
  76. return labourServicesApi.edit(self.id);
  77. })()
  78. .then((response) => {
  79. var jsonData = response.data;
  80. self.loading = false;
  81. if (jsonData.result) {
  82. self.formModel = jsonData.data;
  83. } else {
  84. self.$message.error(jsonData.message + "");
  85. }
  86. })
  87. .catch((error) => {
  88. self.$message.error(error + "");
  89. });
  90. },
  91. }
  92. </script>
  93. <style lang="scss" scoped>
  94. .el-breadcrumb {
  95. margin: 10px;
  96. line-height: 20px;
  97. }
  98. .el-divider {
  99. margin: 5px 0;
  100. }
  101. .demo-form-inline {
  102. margin-left: 10px;
  103. text-align: left;
  104. }
  105. .el-header, .el-footer {
  106. background-color: #B3C0D1;
  107. color: #333;
  108. text-align: center;
  109. line-height: 60px;
  110. }
  111. .el-aside {
  112. // background-color: #D3DCE6;
  113. // color: #333;
  114. text-align: center;
  115. line-height: 200px;
  116. margin-top: 50px;
  117. margin-left: 50px;
  118. }
  119. .el-main {
  120. // background-color: #E9EEF3;
  121. // color: #333;
  122. text-align: left;
  123. margin-top: 55px;
  124. line-height: 40px;
  125. padding-left: 0px;
  126. }
  127. .title{
  128. font-size: 30px;
  129. }
  130. .typeSpan{
  131. margin-right: 30px;
  132. }
  133. .desc{
  134. margin-bottom: 50px;
  135. }
  136. .detail{
  137. margin-top: 30px;
  138. }
  139. body > .el-container {
  140. margin-bottom: 40px;
  141. }
  142. .el-container:nth-child(5) .el-aside,
  143. .el-container:nth-child(6) .el-aside {
  144. line-height: 260px;
  145. }
  146. .el-container:nth-child(7) .el-aside {
  147. line-height: 320px;
  148. }
  149. </style>