flat: 暂存

This commit is contained in:
Apcallover
2024-03-10 18:25:02 +08:00
parent 050ddd08dc
commit 6a6e99bc71
8 changed files with 325 additions and 83 deletions

View File

@@ -59,6 +59,26 @@
></el-option>
</el-select>
</el-form-item>
<el-form-item label="审核状态:">
<el-select v-model="query.reviewState">
<el-option
v-for="(item, index) in recruitStatus"
:key="index"
:label="item.label"
:value="item.value"
></el-option>
</el-select>
</el-form-item>
<el-form-item label="数据来源:">
<el-select v-model="query.dataSources">
<el-option
v-for="(item, index) in dataSourcesEnum"
:key="index"
:label="item.label"
:value="item.value"
></el-option>
</el-select>
</el-form-item>
<div class="searchBtn">
<el-button
type="primary"
@@ -148,10 +168,11 @@ import {
import { mapGetters } from "vuex";
import postView from "@/views/util/post-view";
import zpView from "./zpView";
import { companyPostState, wageUnitCategoryState } from "@/common/dic";
import {companyPostState, dataSourcesEnum, recruitStatus, wageUnitCategoryState} from "@/common/dic";
import { calcDate } from "@/util/date";
import { Message } from "element-ui";
import lodash from "lodash";
import {Auditing} from "@/api/manage/mission";
const message = lodash.throttle(
function (options) {
@@ -166,6 +187,8 @@ export default {
name: "manage_mission",
data() {
return {
recruitStatus,
dataSourcesEnum,
view: {},
form: {},
selectionList: [],
@@ -315,6 +338,20 @@ export default {
display: false,
span: 24,
width: 80,
},{
label: "数据来源",
prop: "dataSources",
dicData: dataSourcesEnum,
display: false,
span: 24,
width: 80,
},{
label: "审核状态",
prop: "reviewState",
dicData: recruitStatus,
display: false,
span: 24,
width: 80,
},
// {
// label:"备注",
@@ -444,6 +481,7 @@ export default {
this.$refs.delay.open(row.missionNo);
},
handleCheck() {
let self = this
if (this.ids.length < 1) {
message({
type: "warning",
@@ -454,7 +492,7 @@ export default {
let idList = [];
for (let i = 0; i < this.ids.length; i++) {
this.data.forEach((ele) => {
if (ele.jobStatus == 1 && ele.id == this.ids[i]) {
if (ele.id == this.ids[i]) {
idList.push(ele.id);
}
});
@@ -466,34 +504,57 @@ export default {
let h = this.$createElement;
this.$prompt(
h("p", { style: "color: #F56C6C" }, "一旦驳回无法进行后续操作"),
"您确定要驳回此任务吗?",
"请核对招聘信息后再进行审核通过",
{
confirmButtonText: "确定",
cancelButtonText: "取消",
distinguishCancelAndClose: true,
confirmButtonText: "通 过",
cancelButtonText: "驳 回",
type: "warning",
center: true,
inputType: "textarea",
inputPlaceholder: "备注驳回原因",
beforeClose: function(action, instance, done) {
if(action === 'cancel') {
if (!instance.inputValue) {
return this.$message({
type: "info",
message: "请输入驳回原因!",
});
}
self.handelFetchAuditing(idList, 9, instance.inputValue, "成功驳回, 操作成功!").then(() => done())
} else if(action === 'confirm') {
self.handelFetchAuditing(idList, 0, instance.inputValue).then(() => done())
} else {
done()
}
}
}
)
.then(({ value }) => {
this.loading = true;
review(idList.join(","), value)
.then(() => {
this.loading = false;
this.onLoad(this.page, this.params);
this.$message({
type: "success",
message: "操作成功!",
});
})
.catch(() => {
this.loading = false;
});
})
.catch(() => {});
}
},
handelFetchAuditing(idList, reviewState, msg, message) {
return new Promise((resolve, reject) => {
let arr = idList.map((item) => ({
id: item,
reviewState: reviewState,
reviewMsg: msg || '',
jobType: 1,
}))
this.loading = true;
Auditing(arr).then(() => {
this.loading = false;
this.onLoad(this.page, this.params);
this.$message({
type: message ? "info" : "success",
message: message || "审核通过,操作成功!",
});
resolve()
}).catch(() => {
this.loading = false;
reject()
});
})
},
downRecords() {
if (this.query.time) {
this.query.stime = this.query.time[0];