创建个人招工页面,删除无用的页面
This commit is contained in:
@@ -102,7 +102,7 @@
|
||||
size="small"
|
||||
@click.stop="handleCheck"
|
||||
type="primary"
|
||||
>任务审核</el-button
|
||||
>审核</el-button
|
||||
>
|
||||
</template>
|
||||
<template slot="menuRight">
|
||||
@@ -111,13 +111,6 @@
|
||||
>
|
||||
</template>
|
||||
<template slot-scope="{ row }" slot="menu">
|
||||
<!-- <el-button
|
||||
v-if="vaildData(permission.manage_mission_delay, false) && row.status==3"
|
||||
size="small"
|
||||
@click.stop="handleDelay(row)"
|
||||
type="text"
|
||||
>发工资延期</el-button
|
||||
> -->
|
||||
<el-button
|
||||
type="text"
|
||||
size="small"
|
||||
@@ -132,25 +125,12 @@
|
||||
v-if="vaildData(permission.manage_mission_zpview, false)"
|
||||
>招聘情况</el-button
|
||||
>
|
||||
<el-button
|
||||
v-if="row.status==2"
|
||||
size="small"
|
||||
@click.stop="handleFinish(row)"
|
||||
type="text"
|
||||
>完成任务</el-button
|
||||
>
|
||||
</template>
|
||||
</avue-crud>
|
||||
<delay-dialog
|
||||
ref="delay"
|
||||
:ids="ids"
|
||||
@success="onLoad(page, query)"
|
||||
></delay-dialog>
|
||||
<el-drawer title="详情" :visible.sync="viewDrawer" size="60%">
|
||||
<mission-view :model="view"></mission-view>
|
||||
</el-drawer>
|
||||
<zp-view ref="zpView"></zp-view>
|
||||
<wage-view ref="wageView"></wage-view>
|
||||
</basic-container>
|
||||
</template>
|
||||
|
||||
@@ -163,10 +143,8 @@ import {
|
||||
download,
|
||||
} from "@/api/manage/mission";
|
||||
import { mapGetters } from "vuex";
|
||||
import delayDialog from "./delayDialog";
|
||||
import missionView from "@/views/util/mission-view";
|
||||
import zpView from "./zpView";
|
||||
import wageView from "./wageView";
|
||||
import { missionState, wageUnitCategoryState } from "@/common/dic";
|
||||
import { calcDate } from "@/util/date";
|
||||
import { Message } from "element-ui";
|
||||
@@ -181,7 +159,7 @@ const message = lodash.throttle(
|
||||
);
|
||||
|
||||
export default {
|
||||
components: { delayDialog, missionView, zpView, wageView },
|
||||
components: {missionView, zpView },
|
||||
name: "manage_mission",
|
||||
data() {
|
||||
return {
|
||||
@@ -207,7 +185,7 @@ export default {
|
||||
// { value: 2, label: "任务中" },
|
||||
{ value: 3, label: "已完成" },
|
||||
{ value: 4, label: "已失效" },
|
||||
|
||||
|
||||
],
|
||||
option: {
|
||||
height: "auto",
|
||||
@@ -373,9 +351,6 @@ export default {
|
||||
rowZPView(row) {
|
||||
this.$refs.zpView.open(row.missionNo);
|
||||
},
|
||||
handleWageView(row) {
|
||||
this.$refs.wageView.open(row.missionNo);
|
||||
},
|
||||
searchReset() {
|
||||
this.query = {};
|
||||
this.onLoad(this.page);
|
||||
@@ -511,43 +486,6 @@ export default {
|
||||
.catch(() => {});
|
||||
}
|
||||
},
|
||||
handleFinish(row) {
|
||||
if (row.status!=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];
|
||||
|
||||
Reference in New Issue
Block a user