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

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

View File

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

View File

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

File diff suppressed because it is too large Load Diff

View File

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

View File

@@ -191,6 +191,69 @@ export default {
dialogWidth: "60%",
delBtnText: "取消",
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: [
{
label: "任务名称",
@@ -203,56 +266,50 @@ export default {
prop: "missionNo",
display: false,
},
// {
// label: "任务时间",
// prop: "missionDate",
// slot: true,
// display: false,
// width: 200,
// },
{
label: "报名截止日期",
prop: "etimePub",
display: false,
format: "yyyy-MM-dd",
width: 130,
slot: true,
},
{
label: "开始日期",
prop: "stime",
display: false,
width: 130,
slot:true
slot: true,
},
{
label: "完成日期",
prop: "etime",
display: false,
width: 130,
slot:true
slot: true,
},
{
label: "申请人数",
prop: "signUpCount",
slot: true,
display: false,
width: 110,
},
{
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,
width: 110,
},
// {
// label: "提示",
// prop: "toStart",
// slot: true,
// display: false,
// width: 200,
// },
],
};
},

View File

@@ -187,6 +187,52 @@ export default {
dialogWidth: "60%",
delBtnText: "取消",
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: [
{
label: "任务名称",
@@ -199,39 +245,50 @@ export default {
prop: "missionNo",
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",
display: false,
width: 130,
slot: true,
},
{
label: "完成时间",
label: "完成日期",
prop: "etime",
display: false,
width: 130,
slot: true,
},
{
label: "申请人数",
prop: "signUpCount",
slot: true,
display: false,
width: 110,
},
{
label: "录用人数",
prop: "takeOnCount",
slot: true,
display: false,
width: 110,
},
{
label: "提示",
prop: "toEnd",
slot: true,
display: false,
},
// {
// label: "提示",
// prop: "toStart",
// slot: true,
// display: false,
// width: 200,
// },
],
};
},