Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
recruiting-management
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
recruiting-management
Commits
92387ec3
Commit
92387ec3
authored
Nov 07, 2019
by
zhangderong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化代码
parent
15c8a89d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
70 deletions
+3
-70
allResume.vue
src/page/resume/allResume.vue
+1
-1
channel.vue
src/page/resume/channel.vue
+1
-1
resumeDetail.vue
src/page/resume/resumeDetail.vue
+1
-68
No files found.
src/page/resume/allResume.vue
View file @
92387ec3
...
@@ -1637,7 +1637,7 @@ import {mapState} from 'vuex'
...
@@ -1637,7 +1637,7 @@ import {mapState} from 'vuex'
this
.
reResumeName
=
res
.
data
.
body
.
message
this
.
reResumeName
=
res
.
data
.
body
.
message
this
.
isShowRep
=
true
this
.
isShowRep
=
true
}
}
if
(
res
.
data
.
body
.
success
==
false
){
if
(
res
.
data
.
success
==
false
){
this
.
modal8
=
false
this
.
modal8
=
false
this
.
modal12
=
true
this
.
modal12
=
true
this
.
isShowRep
=
false
this
.
isShowRep
=
false
...
...
src/page/resume/channel.vue
View file @
92387ec3
...
@@ -1636,7 +1636,7 @@ export default {
...
@@ -1636,7 +1636,7 @@ export default {
this
.
reResumeName
=
res
.
data
.
body
.
message
this
.
reResumeName
=
res
.
data
.
body
.
message
this
.
isShowRep
=
true
this
.
isShowRep
=
true
}
}
if
(
res
.
data
.
body
.
success
==
false
){
if
(
res
.
data
.
success
==
false
){
this
.
modal8
=
false
this
.
modal8
=
false
this
.
modal12
=
true
this
.
modal12
=
true
this
.
isShowRep
=
false
this
.
isShowRep
=
false
...
...
src/page/resume/resumeDetail.vue
View file @
92387ec3
...
@@ -524,73 +524,6 @@ export default {
...
@@ -524,73 +524,6 @@ export default {
this
.
name
=
res
.
data
.
body
.
resume
.
ownerName
this
.
name
=
res
.
data
.
body
.
resume
.
ownerName
})
})
},
},
// clearPDF: function (OriginalContent) {
// if(this.OriginalContent!==''){
// document.getElementById("container").innerHTML = "";
// }
// },
// // 渲染合同
// renderPDF: function (pdf, pageNumber,OriginalContent) {
// if(this.OriginalContent!==''){}
// pdf.getPage(pageNumber).then(function (page) {
// var scale = 1.5; //随意设置的
// var viewport = page.getViewport(scale);
// // Prepare canvas using PDF page dimensions
// // var canvas = document.getElementById('the-canvas');
// var canvas = document.createElement('canvas');
// canvas.setAttribute("id", "the-canvas-" + pageNumber);
// var element = document.getElementById("container");
// element.appendChild(canvas);
// var context = canvas.getContext('2d');
// canvas.height = viewport.height;
// canvas.width = viewport.width;
// // Render PDF page into canvas context
// var renderContext = {
// canvasContext: context,
// viewport: viewport
// };
// var renderTask = page.render(renderContext);
// renderTask.then(function () {
// });
// });
// },
// // 展示合同
// showPDF : function ( OriginalContent) {
// let vm = this
// if ( this.OriginalContent) {
// var obj = {
// // url: '../../static/test.pdf', // 得到的是数据时使用data属性
// data: this.OriginalContent,
// cMapUrl: 'https://cdn.jsdelivr.net/npm/pdfjs-dist@2.0.943/cmaps/',
// cMapPacked: true
// };
// PDFJS.workerSrc = '../../static/pdf/pdf.worker.js'
// var loadingTask = PDFJS.getDocument(obj);
// loadingTask.promise.then(function(pdf) {
// var total = pdf.numPages;
// for (var i = 0; i
<
total
;
i
++
)
{
// var pageNumber = i + 1;
// // 如果你有node(vue ag...)环境,那么请用async/await替换掉
// setTimeout(vm.renderPDF(pdf, pageNumber), 10);
// }
// }, function (reason) {
// // PDF loading error
// console.error(reason);
// });
// }
// },
// getData(){
// let params = {
// uid:this.$route.query.id
// }
// getPdf(params).then(data => { // 调接口获取数据(二进制流数据)
// this.clearPDF();
// let vm =this
// var array = new Uint8Array(data.data);// 将二进制流数据转换成 Uint8Array (pdf支持的数据格式)
// this.OriginalContent=new Uint8Array(data.data);
// vm.showPDF(this.OriginalContent)
// })
// },
// 下载简历
// 下载简历
downloadONE
(
doid
){
downloadONE
(
doid
){
window
.
location
.
href
=
`
${
sapi
}
/api/resume/download/formatted/one?resumeId=
${
doid
}
`
window
.
location
.
href
=
`
${
sapi
}
/api/resume/download/formatted/one?resumeId=
${
doid
}
`
...
@@ -798,7 +731,7 @@ export default {
...
@@ -798,7 +731,7 @@ export default {
this
.
reResumeName
=
res
.
data
.
body
.
message
this
.
reResumeName
=
res
.
data
.
body
.
message
this
.
isShowRep
=
true
this
.
isShowRep
=
true
}
}
if
(
res
.
data
.
body
.
success
==
false
){
if
(
res
.
data
.
success
==
false
){
this
.
modal8
=
false
this
.
modal8
=
false
this
.
modal12
=
true
this
.
modal12
=
true
this
.
isShowRep
=
false
this
.
isShowRep
=
false
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment