创建个人招工页面,删除无用的页面

This commit is contained in:
18500206848
2024-03-05 22:57:05 +08:00
parent 0b8fb3c77b
commit f2b547e9e4
14 changed files with 1274 additions and 505 deletions

View File

@@ -94,28 +94,21 @@
@refresh-change="refreshChange"
@on-load="onLoad"
>
<!-- <template slot="menuLeft">
<template slot="menuLeft">
<el-button
v-if="vaildData(permission.manage_mission_check, false)"
size="small"
@click.stop="handleCheck"
type="primary"
>任务审核</el-button
>审核</el-button
>
</template> -->
</template>
<template slot="menuRight">
<el-button size="small" @click.stop="downRecords" type="primary"
>导出</el-button
>
</template>
<template slot-scope="{ row }" slot="menu">
<el-button
v-if="vaildData(permission.manage_mission_delay, false) && row.jobStatus==3"
size="small"
@click.stop="handleDelay(row)"
type="text"
>发工资延期</el-button
>
<el-button
type="text"
size="small"
@@ -130,13 +123,6 @@
v-if="vaildData(permission.manage_mission_zpview, false)"
>报名详情</el-button
>
<el-button
v-if="row.jobStatus==2"
size="small"
@click.stop="handleFinish(row)"
type="text"
>完成任务</el-button
>
</template>
</avue-crud>
<delay-dialog
@@ -161,10 +147,8 @@ import {
download,
} from "@/api/workstation/post";
import { mapGetters } from "vuex";
import delayDialog from "./delayDialog";
import postView from "@/views/util/post-view";
import zpView from "./zpView";
import wageView from "./wageView";
import { companyPostState, wageUnitCategoryState } from "@/common/dic";
import { calcDate } from "@/util/date";
import { Message } from "element-ui";
@@ -179,7 +163,7 @@ const message = lodash.throttle(
);
export default {
components: { delayDialog, postView, zpView, wageView },
components: {postView, zpView},
name: "manage_mission",
data() {
return {
@@ -511,43 +495,6 @@ export default {
.catch(() => {});
}
},
handleFinish(row) {
if (row.jobStatus!=2) {
this.$message.error('只能提前完成【任务中】的任务')
}
/*只能提前完成【任务中】的任务*/
else{
let h = this.$createElement;
this.$confirm(
h("p", { style: "color: #F56C6C" }, "一旦确定无法修改"),
"您确定要提前此任务吗?",
{
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
center: true,
inputType: "textarea",
inputPlaceholder: "备注原因",
}
)
.then(() => {
this.loading = true;
complet(row.id)
.then(() => {
this.$message({
type: "success",
message: "操作成功!",
});
this.loading = false;
this.onLoad(this.page, this.query);
})
.catch(() => {
this.loading = false;
});
})
.catch(() => { });
}
},
downRecords() {
if (this.query.time) {
this.query.stime = this.query.time[0];