更新重点人群服务-基础标签库页面

This commit is contained in:
dengxin
2024-02-19 16:17:59 +08:00
parent e63caaaa74
commit ca1f42083d
9 changed files with 1318 additions and 1004 deletions

106
src/api/tenant/policy.js Normal file
View File

@@ -0,0 +1,106 @@
import request from '@/router/axios';
/*获取人才列表*/
export const getList =
(current, size, params, groupId) => {
return request({
url: '/api/jobslink-api/label/list',
method: 'get',
params: {...params, current, size, groupId}
})
}
/*新增人才*/
export const add =
(row) => {
return request(
{url: '/api/jobslink-api/label/save', method: 'post', data: row})
}
/*编辑人才*/
export const update =
(row) => {
return request({
url: '/api/jobslink-api/label/tenant/update',
method: 'post',
data: row
})
}
/*删除人才*/
export const remove =
(ids) => {
return request({
url: '/api/jobslink-api/label/remove',
method: 'post',
params: {ids}
})
}
/*人才详情*/
export const detail =
(id) => {
return request({
url: '/api/jobslink-api/label/detail',
method: 'get',
params: {id}
})
}
/*获取分组*/
export const getDept =
() => {
return request({
url: '/api/jobslink-api/label/group/listAll',
method: 'get',
params: {}
})
}
/*新建分组*/
export const addDept =
(row) => {
return request({
url: '/api/jobslink-api/label/group/save',
method: 'post',
data: row
})
}
/*编辑分组*/
export const updateDept =
(row) => {
return request({
url: '/api/jobslink-api/label/group/update',
method: 'post',
data: row
})
}
/*删除分组*/
export const removeDept =
(ids) => {
return request({
url: '/api/jobslink-api/label/group/remove',
method: 'post',
params: {ids}
})
}
/*转移分组*/
export const transferDept =
(groupIds, ids) => {
return request({
url: '/api/jobslink-api/label/updateAllGroup',
method: 'post',
params: {groupIds, ids}
})
}
/*导入人才库*/
export const upload = () => {
return `/api/jobslink-api/label/tenant/import-label?isCovered=1`
}

View File

@@ -1,126 +1,148 @@
export const wagesStatus = [ export const wagesStatus = [
{value: 0,label: '未支付'}, { value: 0, label: "未支付" },
{value: 1,label: '已支付'}, { value: 1, label: "已支付" },
{value: 2,label: '已取消'}, { value: 2, label: "已取消" },
{value: 3,label: '已过期'}, { value: 3, label: "已过期" },
{value: 9,label: '异常'}, { value: 9, label: "异常" },
]; ];
export const orderGoodStatus = [ export const orderGoodStatus = [
{value: 0,label: '未支付'}, { value: 0, label: "未支付" },
{value: 1,label: '已支付'} { value: 1, label: "已支付" },
]; ];
export const insuranceStatus = [ export const insuranceStatus = [
{value: 1,label: '生效中'}, { value: 1, label: "生效中" },
{value: 2,label: '即将失效'}, { value: 2, label: "即将失效" },
{value: 3,label: '已失效'}, { value: 3, label: "已失效" },
{value: 0,label: '未生效'}, { value: 0, label: "未生效" },
]; ];
export const orderGoods = [ export const orderGoods = [
{value: 1,label: '服务费订单'}, { value: 1, label: "服务费订单" },
{value: 0,label: '工资订单'} { value: 0, label: "工资订单" },
]; ];
export const timeStatus = [ export const timeStatus = [
{value: 0,label: '开始时间'}, { value: 0, label: "开始时间" },
{value: 1,label: '结束时间'}, { value: 1, label: "结束时间" },
{value: 2,label: '截止时间'}, { value: 2, label: "截止时间" },
]; ];
export const jobStatus = [ export const jobStatus = [
{value: '',label: '全部'}, { value: "", label: "全部" },
{value: 1,label: '招聘中'}, { value: 1, label: "招聘中" },
{value: 2,label: '任务中'}, { value: 2, label: "任务中" },
{value: 3,label: '已完成'}, { value: 3, label: "已完成" },
{value: 4,label: '已失效'}, { value: 4, label: "已失效" },
{value: 9,label: '审核未通过'} { value: 9, label: "审核未通过" },
]; ];
export const bondState = [ export const bondState = [
{value: '',label: '全部'}, { value: "", label: "全部" },
{value: 0,label: '已缴'}, { value: 0, label: "已缴" },
{value: 2,label: '免缴'}, { value: 2, label: "免缴" },
{value: 1,label: '未缴'} { value: 1, label: "未缴" },
]; ];
export const enableState = [ export const enableState = [
{value: '',label: '全部'}, { value: "", label: "全部" },
{value: 1,label: '启用'}, { value: 1, label: "启用" },
{value: 0,label: '停用'} { value: 0, label: "停用" },
]; ];
export const payState = [ export const payState = [
{value: '', label: '全部'}, {value: 0, label: '未支付'}, { value: "", label: "全部" },
{value: 1, label: '已支付'} { value: 0, label: "未支付" },
{ value: 1, label: "已支付" },
]; ];
export const taskState = [ export const taskState = [
{value: 1, label: '任务汇总'}, {value: 2, label: '任务明细'} { value: 1, label: "任务汇总" },
{ value: 2, label: "任务明细" },
]; ];
export const postState = [ export const postState = [
{value: 1, label: '岗位汇总'}, {value: 2, label: '岗位明细'} { value: 1, label: "岗位汇总" },
{ value: 2, label: "岗位明细" },
]; ];
export const enterpriseState = [ export const enterpriseState = [
{value: 1, label: '审核中企业'}, {value: 2, label: '合作中企业'}, { value: 1, label: "审核中企业" },
{value: 3, label: '终止合作企业'} { value: 2, label: "合作企业" },
{ value: 3, label: "终止合作企业" },
]; ];
export const companyMissionState = [ export const companyMissionState = [
{value: 1, label: '招聘中'}, {value: 2, label: '任务中'}, { value: 1, label: "招聘中" },
{value: 3, label: '已完成'}, {value: 4, label: '已失效'} { value: 2, label: "任务中" },
{ value: 3, label: "已完成" },
{ value: 4, label: "已失效" },
]; ];
export const companyPostState = [ export const companyPostState = [
{value: 1, label: '在招'}, {value: 2, label: '已招'}, { value: 1, label: "在招" },
{value: 3, label: '过期'}, {value: 4, label: '未正式发布'} { value: 2, label: "已招" },
{ value: 3, label: "过期" },
{ value: 4, label: "未正式发布" },
]; ];
//电子签章管理 //电子签章管理
export const esignatureState = [ export const esignatureState = [
{value: 0, label: '待签发'}, {value: 1, label: '签发成功'},{value: 2, label: '签发失败'} { value: 0, label: "待签发" },
{ value: 1, label: "签发成功" },
{ value: 2, label: "签发失败" },
]; ];
//线上代发工资状态 //线上代发工资状态
export const onLinePayState = [ export const onLinePayState = [
{value: 'wait', label: '待确定'}, {value: 'ing', label: '发放中'}, { value: "wait", label: "待确定" },
{value: 'moreThan', label: '超三倍工资'}, { value: "ing", label: "发放中" },
{value: 'success', label: '发放成功'}, {value: 'fail', label: '发放失败'}, { value: "moreThan", label: "超三倍工资" },
{value: 'pause', label: '暂不发放'}, {value: 'all', label: '发放历史'} { value: "success", label: "发放成功" },
{ value: "fail", label: "发放失败" },
{ value: "pause", label: "暂不发放" },
{ value: "all", label: "发放历史" },
]; ];
//个税校准管理状态 //个税校准管理状态
export const incomeTaxState = [ export const incomeTaxState = [
{value: 1, label: '待校准'}, {value: 2, label: '待确定'}, { value: 1, label: "待校准" },
{value: 3, label: '补发中'}, {value: 4, label: '补发成功'}, { value: 2, label: "待确定" },
{value: 5, label: '补发失败'}, {value: 6, label: '无需补发'} { value: 3, label: "补发中" },
{ value: 4, label: "补发成功" },
{ value: 5, label: "补发失败" },
{ value: 6, label: "无需补发" },
]; ];
//线下代发工资状态 //线下代发工资状态
export const offLinePayState = [ export const offLinePayState = [
{value: 'wait', label: '待发放'}, {value: 'success', label: '发放成功'}, { value: "wait", label: "待发放" },
{value: 'all', label: '发放历史'} { value: "success", label: "发放成功" },
{ value: "all", label: "发放历史" },
]; ];
//线上代发发放渠道 //线上代发发放渠道
export const payType = [ export const payType = [
{value: 0, label: '银联线上'}, {value: 1, label: '其他发放'}, { value: 0, label: "银联线上" },
{ value: 1, label: "其他发放" },
]; ];
//个税校准管理状态 //个税校准管理状态
export const examineListState = [ export const examineListState = [
{ {
value: 3, value: 3,
label: '待完善' label: "待完善",
}, { },
{
value: 4, value: 4,
label: '待审核' label: "待审核",
}, { },
{
value: 0, value: 0,
label: '审核通过' label: "审核通过",
}, { },
{
value: 1, value: 1,
label: '审核不通过' label: "审核不通过",
}, { },
{
value: 5, value: 5,
label: '暂不处理' label: "暂不处理",
}, { },
{
value: 9, value: 9,
label: '终止合作' label: "终止合作",
} },
]; ];
export const missionState = [ export const missionState = [
...companyMissionState, ...companyMissionState,
{ {
label: '审核未通过', label: "审核未通过",
value: 9, value: 9,
}, },
]; ];
@@ -129,189 +151,199 @@ export const missionState = [
export const insureState = [ export const insureState = [
{ {
value: 0, value: 0,
label: '未生效', label: "未生效",
}, },
{ {
value: 1, value: 1,
label: '生效中', label: "生效中",
}, },
{ {
value: 2, value: 2,
label: '即将失效', label: "即将失效",
}, },
{ {
value: 3, value: 3,
label: '已失效', label: "已失效",
}, },
{ {
value: 4, value: 4,
label: '已生效', label: "已生效",
}, },
{ {
value: 5, value: 5,
label: '已过期', label: "已过期",
}, },
{ {
value: 6, value: 6,
label: '已失效', label: "已失效",
}, },
]; ];
export const wageUnitCategoryState = [ export const wageUnitCategoryState = [
{value: 0, label: '元/人·次', disable: true}, { value: 0, label: "元/人·次", disable: true },
{value: 1, label: '元/人·时', disable: false}, { value: 1, label: "元/人·时", disable: false },
{value: 2, label: '元/人·天', disable: false}, { value: 2, label: "元/人·天", disable: false },
{value: 3, label: '元/人·周', disable: true}, { value: 3, label: "元/人·周", disable: true },
{value: 4, label: '元/人·月', disable: true}, { value: 4, label: "元/人·月", disable: true },
{value: 5, label: '元/人·个', disable: true}, { value: 5, label: "元/人·个", disable: true },
{value: 6, label: '元/人·件', disable: true}, { value: 6, label: "元/人·件", disable: true },
]; ];
export const wageOptionsMonth = [ export const wageOptionsMonth = [
{ {
value: '2000元以下/月', value: "2000元以下/月",
label: '2000元以下/月', label: "2000元以下/月",
}, },
{ {
value: '2000-5000元/月', value: "2000-5000元/月",
label: '2000-5000元/月', label: "2000-5000元/月",
}, },
{ {
value: '5000-8000元/月', value: "5000-8000元/月",
label: '5000-8000元/月', label: "5000-8000元/月",
}, },
{ {
value: '8000-10000元/月', value: "8000-10000元/月",
label: '8000-10000元/月', label: "8000-10000元/月",
}, },
{ {
value: '10000-15000元/月', value: "10000-15000元/月",
label: '10000-15000元/月', label: "10000-15000元/月",
}, },
{ {
value: '15000-20000元/月', value: "15000-20000元/月",
label: '15000-20000元/月', label: "15000-20000元/月",
}, },
{ {
value: '20000-25000元/月', value: "20000-25000元/月",
label: '20000-25000元/月', label: "20000-25000元/月",
}, },
{ {
value: '25000-30000元/月', value: "25000-30000元/月",
label: '25000-30000元/月', label: "25000-30000元/月",
}, },
{ {
value: '30000元以上/月', value: "30000元以上/月",
label: '30000元以上/月', label: "30000元以上/月",
}, },
{ {
value: '面议、暂无要求', value: "面议、暂无要求",
label: '面议、暂无要求', label: "面议、暂无要求",
} },
] ];
export const wageOptionsWithNoMonth = [ export const wageOptionsWithNoMonth = [
{ {
value: '10-15元/小时', value: "10-15元/小时",
label: '10-15元/小时', label: "10-15元/小时",
}, },
{ {
value: '16-20元/小时', value: "16-20元/小时",
label: '16-20元/小时', label: "16-20元/小时",
}, },
{ {
value: '21-25元/小时', value: "21-25元/小时",
label: '21-25元/小时', label: "21-25元/小时",
}, },
{ {
value: '26-30元/小时', value: "26-30元/小时",
label: '26-30元/小时', label: "26-30元/小时",
}, },
{ {
value: '30元/小时以上', value: "30元/小时以上",
label: '30元/小时以上', label: "30元/小时以上",
}, },
{ {
value: '100-150元/天', value: "100-150元/天",
label: '100-150元/天', label: "100-150元/天",
}, },
{ {
value: '151-200元/天', value: "151-200元/天",
label: '151-200元/天', label: "151-200元/天",
}, },
{ {
value: '201-250元/天', value: "201-250元/天",
label: '201-250元/天', label: "201-250元/天",
}, },
{ {
value: '251-300元/天', value: "251-300元/天",
label: '251-300元/天', label: "251-300元/天",
}, },
{ {
value: '300元/天以上', value: "300元/天以上",
label: '300元/天以上', label: "300元/天以上",
}, },
{ {
value: '30000元以上/月', value: "30000元以上/月",
label: '30000元以上/月', label: "30000元以上/月",
}, },
{ {
value: '面议、暂无要求', value: "面议、暂无要求",
label: '面议、暂无要求', label: "面议、暂无要求",
} },
] ];
export const educationState = [ export const educationState = [
{ {
label: '不限', label: "不限",
value: 8, value: 8,
}, },
{ {
label: '初中及以下', label: "初中及以下",
value: 7, value: 7,
}, },
{ {
label: '中专/中技', label: "中专/中技",
value: 6, value: 6,
}, },
{ {
label: '高中', label: "高中",
value: 5, value: 5,
}, },
{ {
label: '大专', label: "大专",
value: 4, value: 4,
}, },
{ {
label: '本科', label: "本科",
value: 3, value: 3,
}, },
{ {
label: '硕士', label: "硕士",
value: 2, value: 2,
}, },
{ {
label: '博士', label: "博士",
value: 1, value: 1,
}, },
{ {
label: 'MBA/EMBA', label: "MBA/EMBA",
value: 0, value: 0,
} },
]; ];
export const genderState = [ export const genderState = [
{ {
label: '不限男女', label: "不限男女",
value: 0, value: 0,
}, },
{ {
label: '男', label: "男",
value: 1, value: 1,
}, },
{ {
label: '女', label: "女",
value: 2, value: 2,
}, },
]; ];
// 服务类型
export const serviceType = [
{
label: "政策标签",
value: 0,
},
{
label: "个人标签",
value: 1,
},
];

View File

@@ -35,7 +35,7 @@
</template> </template>
<script> <script>
import { addDept, updateDept } from "@/api/tenant/talents"; import { addDept, updateDept } from "@/api/tenant/policy";
export default { export default {
data() { data() {
return { return {

View File

@@ -19,7 +19,7 @@
</template> </template>
<script> <script>
import { transferDept } from "@/api/tenant/talents"; import { transferDept } from "@/api/tenant/policy";
export default { export default {
props: { props: {
ids: String, ids: String,
@@ -42,7 +42,7 @@ export default {
type: "tree", type: "tree",
span: 24, span: 24,
display: true, display: true,
dicUrl: `/api/jobslink-api/tenant/talents/group/listAll`, dicUrl: `/api/jobslink-api/label/group/listAll`,
dicMethod: "get", dicMethod: "get",
dicFormatter: (res) => { dicFormatter: (res) => {
return res.data.list; //返回字典的层级结构 return res.data.list; //返回字典的层级结构

File diff suppressed because it is too large Load Diff

View File

@@ -1,21 +1,8 @@
<template> <template>
<div> <div>
<avue-crud <avue-crud :option="option" :table-loading="loading" :data="data" ref="crud" v-model="obj" @row-del="rowDel"
:option="option" @row-update="rowUpdate" @row-save="rowSave" :before-open="beforeOpen" :page.sync="page"
:table-loading="loading" @current-change="currentChange" @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad">
:data="data"
ref="crud"
v-model="obj"
@row-del="rowDel"
@row-update="rowUpdate"
@row-save="rowSave"
:before-open="beforeOpen"
:page.sync="page"
@current-change="currentChange"
@size-change="sizeChange"
@refresh-change="refreshChange"
@on-load="onLoad"
>
<!--自定义列--> <!--自定义列-->
<template slot="missionTitle" slot-scope="{ row }"> <template slot="missionTitle" slot-scope="{ row }">
<el-tooltip effect="dark" :content="row.missionTitle" placement="top"> <el-tooltip effect="dark" :content="row.missionTitle" placement="top">
@@ -26,11 +13,11 @@
</template> </template>
<!-- 开始日期 --> <!-- 开始日期 -->
<template slot="stime" slot-scope="{row}"> <template slot="stime" slot-scope="{row}">
<span>{{format(row.stime)}}</span> <span>{{ format(row.stime) }}</span>
</template> </template>
<!-- 完成日期 --> <!-- 完成日期 -->
<template slot="etime" slot-scope="{row}"> <template slot="etime" slot-scope="{row}">
<span>{{format(row.etime)}}</span> <span>{{ format(row.etime) }}</span>
</template> </template>
<template slot="signUpCount" slot-scope="{ row }"> <template slot="signUpCount" slot-scope="{ row }">
<div style="color: #409eff"> <div style="color: #409eff">
@@ -56,32 +43,16 @@
@click="rowView(row);" @click="rowView(row);"
v-show="vaildData(permission.tenant_mission_view,false)" v-show="vaildData(permission.tenant_mission_view,false)"
>查看</el-button>--> >查看</el-button>-->
<el-button <el-button icon="el-icon-check" :size="size" :type="type" @click="rowCopy(row, 'copy')"
icon="el-icon-check" v-show="vaildData(permission.tenant_mission_add, false)">复制</el-button>
:size="size" <el-button icon="el-icon-delete" :size="size" :type="type" @click="$refs.crud.rowDel(row)"
:type="type" v-show="vaildData(permission.tenant_mission_delete, false)">删除</el-button>
@click="rowCopy(row, 'copy')"
v-show="vaildData(permission.tenant_mission_add, false)"
>复制</el-button>
<el-button
icon="el-icon-delete"
:size="size"
:type="type"
@click="$refs.crud.rowDel(row)"
v-show="vaildData(permission.tenant_mission_delete, false)"
>删除</el-button>
</div> </div>
<!--/自定义操作栏--> <!--/自定义操作栏-->
<!--自定义按钮--> <!--自定义按钮-->
<template slot="menuLeft"> <template slot="menuLeft">
<el-button <el-button type="warning" plain icon="el-icon-plus" size="small" @click="rowCopy('', 'add')"
type="warning" v-show="vaildData(permission.tenant_mission_add, false)">发布任务</el-button>
plain
icon="el-icon-plus"
size="small"
@click="rowCopy('', 'add')"
v-show="vaildData(permission.tenant_mission_add, false)"
>发布任务</el-button>
</template> </template>
<!--/自定义按钮--> <!--/自定义按钮-->
</avue-crud> </avue-crud>
@@ -105,7 +76,7 @@ import saveButton from "./saveButton";
export default { export default {
comments: {}, comments: {},
filters: { filters: {
ellipsis (value) { ellipsis(value) {
if (!value) return ""; if (!value) return "";
if (value.length > 15) { if (value.length > 15) {
return value.slice(0, 14) + "..."; return value.slice(0, 14) + "...";
@@ -113,7 +84,7 @@ export default {
return value; return value;
}, },
}, },
data () { data() {
return { return {
viewDrawer: false, viewDrawer: false,
view: {}, view: {},
@@ -168,10 +139,10 @@ export default {
missionView, missionView,
saveButton, saveButton,
}, },
created () { }, created() { },
computed: { computed: {
...mapGetters(["permission"]), ...mapGetters(["permission"]),
option () { option() {
return { return {
height: "auto", height: "auto",
calcHeight: 40, calcHeight: 40,
@@ -193,12 +164,63 @@ export default {
dialogType: "drawer", dialogType: "drawer",
dialogWidth: "60%", dialogWidth: "60%",
dialogClickModal: false, dialogClickModal: false,
// column: [
// {
// label: "任务名称",
// prop: "missionTitle",
// slot: true,
// display: false,
// },
// {
// label: "任务编码",
// prop: "missionNo",
// display: false,
// },
// {
// label: "开始时间",
// prop: "stime",
// display: false,
// width: 130,
// slot:true
// },
// {
// label: "完成时间",
// prop: "etime",
// display: false,
// width: 130,
// slot:true
// },
// // {
// // label: "任务时间",
// // prop: "missionDate",
// // slot: true,
// // display: false,
// // width: 200,
// // },
// {
// label: "申请人数",
// prop: "signUpCount",
// slot: true,
// display: false,
// },
// {
// label: "录用人数",
// prop: "takeOnCount",
// slot: true,
// display: false,
// },
// {
// label: "备注",
// prop: "remarks",
// display: false,
// },
// ],
column: [ column: [
{ {
label: "任务名称", label: "任务名称",
prop: "missionTitle", prop: "missionTitle",
slot: true,
display: false, display: false,
slot: true,
}, },
{ {
label: "任务编码", label: "任务编码",
@@ -206,69 +228,75 @@ export default {
display: false, display: false,
}, },
{ {
label: "开始时间", label: "报名截止日期",
prop: "etimePub",
display: false,
format: "yyyy-MM-dd",
width: 130,
slot: true,
},
{
label: "开始日期",
prop: "stime", prop: "stime",
display: false, display: false,
width: 130, width: 130,
slot:true slot: true,
}, },
{ {
label: "完成时间", label: "完成日期",
prop: "etime", prop: "etime",
display: false, display: false,
width: 130, width: 130,
slot:true slot: true,
}, },
// {
// label: "任务时间",
// prop: "missionDate",
// slot: true,
// display: false,
// width: 200,
// },
{ {
label: "申请人数", label: "申请人数",
prop: "signUpCount", prop: "signUpCount",
slot: true, slot: true,
display: false, display: false,
width: 110,
}, },
{ {
label: "录用人数", label: "录用人数",
prop: "takeOnCount", prop: "takeOnCount",
slot: true, slot: true,
display: false, display: false,
width: 110,
}, },
{
label: "备注", // {
prop: "remarks", // label: "提示",
display: false, // prop: "toStart",
}, // slot: true,
// display: false,
// width: 200,
// },
], ],
}; };
}, },
}, },
methods: { methods: {
format (date) { format(date) {
if (date) { if (date) {
return dateFormat(new Date(date), "yyyy/MM/dd"); return dateFormat(new Date(date), "yyyy/MM/dd");
} }
}, },
/*查看*/ /*查看*/
rowView (row) { rowView(row) {
detail(row.missionNo).then((res) => { detail(row.missionNo).then((res) => {
this.viewDrawer = true; this.viewDrawer = true;
this.view = res; this.view = res;
}); });
}, },
/*打开新建 复制*/ /*打开新建 复制*/
rowCopy (row, type) { rowCopy(row, type) {
this.$refs.copy.onLoad(row, type); this.$refs.copy.onLoad(row, type);
this.$nextTick(()=>{ this.$nextTick(() => {
this.$refs.copy.resetFields();//等弹窗里的form表单的dom渲染完在执行this.$refs.staffForm.resetFields(),去除验证 this.$refs.copy.resetFields();//等弹窗里的form表单的dom渲染完在执行this.$refs.staffForm.resetFields(),去除验证
}) })
}, },
/*删除任务*/ /*删除任务*/
rowDel (row) { rowDel(row) {
const h = this.$createElement; const h = this.$createElement;
this.$confirm( this.$confirm(
h("div", null, [ h("div", null, [
@@ -321,18 +349,18 @@ export default {
// }); // });
}); });
}, },
currentChange (currentPage) { currentChange(currentPage) {
this.page.currentPage = currentPage; this.page.currentPage = currentPage;
}, },
sizeChange (pageSize) { sizeChange(pageSize) {
this.page.pageSize = pageSize; this.page.pageSize = pageSize;
}, },
/*刷新本页 带搜索参数*/ /*刷新本页 带搜索参数*/
refreshChange () { refreshChange() {
this.onLoad(this.page, this.query); this.onLoad(this.page, this.query);
}, },
/*加载数据*/ /*加载数据*/
onLoad (page, params = {}) { onLoad(page, params = {}) {
this.loading = true; this.loading = true;
getExpiredList( getExpiredList(
page.currentPage, page.currentPage,
@@ -346,7 +374,7 @@ export default {
}); });
}, },
/*返回首页*/ /*返回首页*/
backIndex () { backIndex() {
this.$emit("refresh"); this.$emit("refresh");
}, },
}, },

View File

@@ -191,6 +191,69 @@ export default {
dialogWidth: "60%", dialogWidth: "60%",
delBtnText: "取消", delBtnText: "取消",
dialogClickModal: false, dialogClickModal: false,
// column: [
// {
// label: "任务名称",
// prop: "missionTitle",
// display: false,
// slot: true,
// },
// {
// label: "任务编码",
// prop: "missionNo",
// display: false,
// },
// // {
// // label: "任务时间",
// // prop: "missionDate",
// // slot: true,
// // display: false,
// // width: 200,
// // },
// {
// label: "开始日期",
// prop: "stime",
// display: false,
// width: 130,
// slot:true
// },
// {
// label: "完成日期",
// prop: "etime",
// display: false,
// width: 130,
// slot:true
// },
// {
// label: "录用人数",
// prop: "takeOnCount",
// slot: true,
// display: false,
// width: 130,
// },
// {
// label: "已发工资人数",
// prop: "payCount",
// slot: true,
// display: false,
// width: 130,
// },
// {
// label: "发工资截止日期",
// prop: "expiryTime",
// slot: true,
// display: false,
// width: 160,
// format: "yyyy-MM-dd",
// },
// {
// label: "提示",
// prop: "toPayEnd",
// slot: true,
// display: false,
// width: 200,
// },
// ],
column: [ column: [
{ {
label: "任务名称", label: "任务名称",
@@ -203,56 +266,50 @@ export default {
prop: "missionNo", prop: "missionNo",
display: false, display: false,
}, },
// { {
// label: "任务时间", label: "报名截止日期",
// prop: "missionDate", prop: "etimePub",
// slot: true, display: false,
// display: false, format: "yyyy-MM-dd",
// width: 200, width: 130,
// }, slot: true,
},
{ {
label: "开始日期", label: "开始日期",
prop: "stime", prop: "stime",
display: false, display: false,
width: 130, width: 130,
slot:true slot: true,
}, },
{ {
label: "完成日期", label: "完成日期",
prop: "etime", prop: "etime",
display: false, display: false,
width: 130, width: 130,
slot:true slot: true,
},
{
label: "申请人数",
prop: "signUpCount",
slot: true,
display: false,
width: 110,
}, },
{ {
label: "录用人数", label: "录用人数",
prop: "takeOnCount", prop: "takeOnCount",
slot: true, slot: true,
display: false, display: false,
width: 130, width: 110,
},
{
label: "已发工资人数",
prop: "payCount",
slot: true,
display: false,
width: 130,
},
{
label: "发工资截止日期",
prop: "expiryTime",
slot: true,
display: false,
width: 160,
format: "yyyy-MM-dd",
},
{
label: "提示",
prop: "toPayEnd",
slot: true,
display: false,
width: 200,
}, },
// {
// label: "提示",
// prop: "toStart",
// slot: true,
// display: false,
// width: 200,
// },
], ],
}; };
}, },

View File

@@ -187,6 +187,52 @@ export default {
dialogWidth: "60%", dialogWidth: "60%",
delBtnText: "取消", delBtnText: "取消",
dialogClickModal: false, dialogClickModal: false,
// column: [
// {
// label: "任务名称",
// prop: "missionTitle",
// display: false,
// slot: true,
// },
// {
// label: "任务编码",
// prop: "missionNo",
// display: false,
// },
// // {
// // label: "任务时间",
// // prop: "missionDate",
// // slot: true,
// // display: false,
// // width: 200,
// // },
// {
// label: "开始时间",
// prop: "stime",
// display: false,
// width: 130,
// slot: true,
// },
// {
// label: "完成时间",
// prop: "etime",
// display: false,
// width: 130,
// slot: true,
// },
// {
// label: "录用人数",
// prop: "takeOnCount",
// slot: true,
// display: false,
// },
// {
// label: "提示",
// prop: "toEnd",
// slot: true,
// display: false,
// },
// ],
column: [ column: [
{ {
label: "任务名称", label: "任务名称",
@@ -199,39 +245,50 @@ export default {
prop: "missionNo", prop: "missionNo",
display: false, display: false,
}, },
// {
// label: "任务时间",
// prop: "missionDate",
// slot: true,
// display: false,
// width: 200,
// },
{ {
label: "开始时间", label: "报名截止日期",
prop: "etimePub",
display: false,
format: "yyyy-MM-dd",
width: 130,
slot: true,
},
{
label: "开始日期",
prop: "stime", prop: "stime",
display: false, display: false,
width: 130, width: 130,
slot: true, slot: true,
}, },
{ {
label: "完成时间", label: "完成日期",
prop: "etime", prop: "etime",
display: false, display: false,
width: 130, width: 130,
slot: true, slot: true,
}, },
{
label: "申请人数",
prop: "signUpCount",
slot: true,
display: false,
width: 110,
},
{ {
label: "录用人数", label: "录用人数",
prop: "takeOnCount", prop: "takeOnCount",
slot: true, slot: true,
display: false, display: false,
width: 110,
}, },
{
label: "提示", // {
prop: "toEnd", // label: "提示",
slot: true, // prop: "toStart",
display: false, // slot: true,
}, // display: false,
// width: 200,
// },
], ],
}; };
}, },

View File

@@ -24,8 +24,8 @@ module.exports = {
proxy: { proxy: {
"/api": { "/api": {
// target: 'http://127.0.0.1:8000', // 本地服务接口地址 // target: 'http://127.0.0.1:8000', // 本地服务接口地址
target: "http://39.98.184.58:8000", // 阿里云后台地址 // target: "http://39.98.184.58:8000", // 阿里云后台地址
// target: "http://192.168.0.106:8000", // 本地 target: "http://192.168.0.105:8000", // 本地
ws: true, ws: true,
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {