Commit 5500e96e by wangzhihui

修复招聘管理一轮bug

1 parent d880d75b
...@@ -1664,7 +1664,7 @@ export const inviteStatusOptMap = { ...@@ -1664,7 +1664,7 @@ export const inviteStatusOptMap = {
} }
export const interviewResultOpt = [ export const interviewResultOpt = [
{ confId: "1", confValue: "通过" }, { confId: "1", confValue: "通过" },
{ confId: "0", confValue: "未通过" } { confId: "0", confValue: "不通过" }
] ]
export const processResultOpt = [ export const processResultOpt = [
{ confId: "1", confValue: "人员不匹配" }, { confId: "1", confValue: "人员不匹配" },
......
...@@ -143,7 +143,7 @@ export default { ...@@ -143,7 +143,7 @@ export default {
} }
}, },
handleConfirm() { handleConfirm() {
console.log(this.editFormData) console.log(this.editFormData, this.editData)
this.$refs.editFormRef.$refs[this.editChildRef].validate((valid) => { this.$refs.editFormRef.$refs[this.editChildRef].validate((valid) => {
if (valid) { if (valid) {
this.$emit("handleConfirm", this.editData) this.$emit("handleConfirm", this.editData)
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
提交 提交
</el-button> </el-button>
<el-button class="cancel-btn" size="small" @click="handleCancel" <el-button class="cancel-btn" size="small" @click="handleCancel"
>关闭</el-button >取消</el-button
> >
</div> </div>
</div> </div>
......
...@@ -43,7 +43,7 @@ export default { ...@@ -43,7 +43,7 @@ export default {
}, },
{ {
title: "招聘数量", title: "招聘数量",
key: "recruitmentTypeName" key: "recruitmentQuantity"
}, },
{ {
title: "区域运营", title: "区域运营",
......
...@@ -404,6 +404,7 @@ export default { ...@@ -404,6 +404,7 @@ export default {
handleEntryConfirm(data) { handleEntryConfirm(data) {
data.onboardingDate = Util.dateFormate(data.onboardingDate, "YYYY-MM-DD") data.onboardingDate = Util.dateFormate(data.onboardingDate, "YYYY-MM-DD")
this.$emit("handleEntryConfirm", data, this.isAdd, this.index) this.$emit("handleEntryConfirm", data, this.isAdd, this.index)
this.isEntryForm = {}
this.handleEntry() this.handleEntry()
}, },
async handleAddSelectTypeConfirm(data) { async handleAddSelectTypeConfirm(data) {
......
...@@ -29,7 +29,8 @@ export default { ...@@ -29,7 +29,8 @@ export default {
4: "新增简历", 4: "新增简历",
5: "编辑简历", 5: "编辑简历",
6: "新增入职", 6: "新增入职",
7: "完成" 7: "完成",
8: "处理"
} }
} }
} }
......
...@@ -133,6 +133,7 @@ import { baseConfig } from "@/main" ...@@ -133,6 +133,7 @@ import { baseConfig } from "@/main"
import detailDialog from "./detail.vue" import detailDialog from "./detail.vue"
import { interviewResultOpt, processResultOpt } from "@/common/constants.js" import { interviewResultOpt, processResultOpt } from "@/common/constants.js"
import GlOssApi from "glsk-oss-jssdk" import GlOssApi from "glsk-oss-jssdk"
import { mapMutations } from "vuex"
export default { export default {
name: "recruitInfo", name: "recruitInfo",
components: { detailDialog }, components: { detailDialog },
...@@ -302,8 +303,10 @@ export default { ...@@ -302,8 +303,10 @@ export default {
}) })
}, },
methods: { methods: {
...mapMutations("d2admin/loading", ["set"]),
// 获取文件 // 获取文件
importFileChange(file, fileList) { importFileChange(file, fileList) {
this.isAddForm.resumeUrl = ""
this.uploadFileList = fileList this.uploadFileList = fileList
}, },
hanldeOnExceed(files, fileList) { hanldeOnExceed(files, fileList) {
...@@ -313,7 +316,9 @@ export default { ...@@ -313,7 +316,9 @@ export default {
}) })
}, },
//上传文件 //上传文件
handleFileChange(file, targetItem) { async handleFileChange(file, targetItem) {
console.log("targetItem", targetItem)
await this.set(true)
var fileInfo = file.raw var fileInfo = file.raw
const fileName = fileInfo.name const fileName = fileInfo.name
if (!fileInfo.name.includes(".pdf")) { if (!fileInfo.name.includes(".pdf")) {
...@@ -347,14 +352,19 @@ export default { ...@@ -347,14 +352,19 @@ export default {
} }
] ]
const success = (res) => { const success = (res) => {
this.isAddForm.resumeFileName = fileInfo.name if (res.aliyunAddress) {
this.isAddForm[targetItem] = res.aliyunAddress // 文件地址 this.isAddForm.resumeFileName = fileInfo.name
this.uploadFileList[0].url = res.aliyunAddress this.isAddForm[targetItem] = res.aliyunAddress // 文件地址
//清除校验 this.uploadFileList[0].url = res.aliyunAddress
const childRef = this.$refs.addResumeDialog //清除校验
childRef.$refs.editFormRef.$refs[childRef.editChildRef].clearValidate( const childRef = this.$refs.addResumeDialog
"resumeUrl" childRef.$refs.editFormRef.$refs[childRef.editChildRef].clearValidate(
) "resumeUrl"
)
this.$nextTick(async () => {
await this.set(false)
})
}
} }
const fail = (err) => { const fail = (err) => {
this.clearItem(targetItem) this.clearItem(targetItem)
...@@ -382,16 +392,18 @@ export default { ...@@ -382,16 +392,18 @@ export default {
getCurrentDate() { getCurrentDate() {
const time = new Date() const time = new Date()
const y = time.getFullYear() const y = time.getFullYear()
const m = time.getMonth() + 1 const m = String(time.getMonth() + 1).padStart(2, "0")
const d = time.getDate() const d = String(time.getDate()).padStart(2, "0")
return y + "-" + m + "-" + d return `${y}-${m}-${d}`
}, },
//新增简历确认 //新增简历确认
handleAddConfirm(data) { handleAddConfirm(data) {
console.log("data", data)
data.status = 0 //状态未处理 data.status = 0 //状态未处理
data.createdDate = this.getCurrentDate() if (this.isAdd) {
data.createdDate = this.getCurrentDate()
}
this.$emit("handleAddConfirm", data, this.isAdd, this.index) this.$emit("handleAddConfirm", data, this.isAdd, this.index)
this.isAddDialogVisible() this.isAddDialogVisible()
}, },
...@@ -458,6 +470,7 @@ export default { ...@@ -458,6 +470,7 @@ export default {
this.$emit("handleWorking", data) this.$emit("handleWorking", data)
}, },
handleLook(data) { handleLook(data) {
console.log(data)
this.recordInfo = data this.recordInfo = data
this.detailVisible = !this.detailVisible this.detailVisible = !this.detailVisible
}, },
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
提交 提交
</el-button> </el-button>
<el-button class="cancel-btn" size="small" @click="handleCancel" <el-button class="cancel-btn" size="small" @click="handleCancel"
>关闭</el-button >取消</el-button
> >
</div> </div>
</div> </div>
...@@ -118,7 +118,7 @@ export default { ...@@ -118,7 +118,7 @@ export default {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
margin-top: 20px; padding: 20px 0;
.save-btn { .save-btn {
// width: 60px; // width: 60px;
padding: 5px 14px; padding: 5px 14px;
......
...@@ -41,6 +41,22 @@ ...@@ -41,6 +41,22 @@
:table-params="tableParams" :table-params="tableParams"
:before-search-fn="beforeSearchFn" :before-search-fn="beforeSearchFn"
> >
<!-- 门店名称 -->
<div slot="merchantName" slot-scope="scope">
<span v-if="scope.scope.merchantName.length < 14">{{
scope.scope.merchantName.slice(0, 14)
}}</span>
<div v-else>
<el-tooltip
class="item"
effect="dark"
:content="scope.scope.merchantName"
placement="top-start"
>
<span> {{ scope.scope.merchantName.slice(0, 14) }}...</span>
</el-tooltip>
</div>
</div>
<!-- 评估单状态 --> <!-- 评估单状态 -->
<div slot="statusHtml" slot-scope="scope"> <div slot="statusHtml" slot-scope="scope">
<div class="online-status"> <div class="online-status">
...@@ -125,6 +141,7 @@ export default { ...@@ -125,6 +141,7 @@ export default {
label: "门店名称", label: "门店名称",
prop: "merchantName", prop: "merchantName",
width: "200px" width: "200px"
// addHtml: "merchantName"
}, },
{ {
label: "业务类型", label: "业务类型",
...@@ -133,7 +150,8 @@ export default { ...@@ -133,7 +150,8 @@ export default {
}, },
{ {
label: "招聘类型", label: "招聘类型",
prop: "recruitmentTypeName" prop: "recruitmentTypeName",
width: 140
}, },
{ {
label: "招聘数量", label: "招聘数量",
...@@ -142,9 +160,9 @@ export default { ...@@ -142,9 +160,9 @@ export default {
{ {
label: "申请时间", label: "申请时间",
prop: "createdDate", prop: "createdDate",
width: "200px", width: "150px",
formatter: (row, column) => { formatter: (row, column) => {
return Util.dateFormate(row.createdDate, "YYYY-MM-DD HH:mm:ss") return Util.dateFormate(row.createdDate, "YYYY-MM-DD")
} }
}, },
{ {
...@@ -530,6 +548,7 @@ export default { ...@@ -530,6 +548,7 @@ export default {
handleSearch() { handleSearch() {
this.page = this.$options.data.call(this).page this.page = this.$options.data.call(this).page
this.$refs.table.refreshTable(true, true) this.$refs.table.refreshTable(true, true)
this.getRecruitmentSummaryData()
}, },
handleReset() { handleReset() {
this.searchForm = this.$options.data.call(this).searchForm this.searchForm = this.$options.data.call(this).searchForm
......
...@@ -55,7 +55,7 @@ export default { ...@@ -55,7 +55,7 @@ export default {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
margin-top: 20px; padding: 20px 0;
.save-btn { .save-btn {
// width: 60px; // width: 60px;
padding: 5px 14px; padding: 5px 14px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!