flat: 暂存

This commit is contained in:
Apcallover
2024-05-13 18:27:25 +08:00
parent 26dca7884c
commit 5f4363ce89
5 changed files with 261 additions and 107 deletions

View File

@@ -6,19 +6,21 @@
:before-close="handleClose" :before-close="handleClose"
append-to-body> append-to-body>
<span>{{ subTitle }}</span> <span>{{ subTitle }}</span>
<div class="input_box"> <div v-if="status === 1">
<el-input type="textarea" v-model="input" placeholder="请输入内容"></el-input> <div class="input_box">
</div> <el-input type="textarea" v-model="input" placeholder="请输入内容"></el-input>
<div class="kuajie"> </div>
<div class="kuajie_span" v-for="(item, index) in tips" :key="index" @click="input += item">{{ index + 1 }}:{{ <div class="kuajie">
item <div class="kuajie_span" v-for="(item, index) in tips" :key="index" @click="input += item">{{ index + 1 }}:{{
}} item
}}
</div>
</div> </div>
</div> </div>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button @click="handleClose"> </el-button> <el-button @click="handleClose"> </el-button>
<el-button type="warning" @click="handleCancel">驳回</el-button> <el-button :type="btnTypes[status]" @click="handleCancel"> </el-button>
<el-button type="primary" @click="handleConfirm"> </el-button> <el-button type="primary" @click="handleConfirm"> </el-button>
</span> </span>
</el-dialog> </el-dialog>
</template> </template>
@@ -33,11 +35,18 @@ const classEnum = {
largeXX: '146px', largeXX: '146px',
largeXXL: '186px', largeXXL: '186px',
} }
const btnTypes = {
0: 'warning',
1: 'danger'
}
export default { export default {
name: "promptDialog", name: "promptDialog",
data() { data() {
return { return {
btnTypes,
input: '', input: '',
status: 0,
btnType: ''
} }
}, },
props: { props: {
@@ -63,6 +72,7 @@ export default {
visible(val) { visible(val) {
if (val) { if (val) {
this.input = '' this.input = ''
this.status = 0
} }
} }
}, },
@@ -72,7 +82,11 @@ export default {
this.$emit('onClose') this.$emit('onClose')
}, },
handleCancel() { handleCancel() {
this.$emit('onCancel', this.input) if (this.status) {
this.$emit('onCancel', this.input)
} else {
this.status = 1
}
}, },
handleConfirm() { handleConfirm() {
this.$emit('onConfirm', this.input) this.$emit('onConfirm', this.input)

View File

@@ -117,6 +117,19 @@ let leftUserOptions = {
}, { }, {
label: '姓别', label: '姓别',
prop: 'aac004', prop: 'aac004',
type: 'select',
dicUrl: "/api/jobslink-api/system/dict-biz/tadict?code=AAC004",
props: {
label: "dictValue",
value: "dictKey",
},
rules: [
{
required: true,
message: "请输入性别",
trigger: "blur",
},
],
}, { }, {
label: '身份证', label: '身份证',
prop: 'idNumber', prop: 'idNumber',
@@ -127,9 +140,35 @@ let leftUserOptions = {
}, { }, {
label: "民族", label: "民族",
prop: "aac005", prop: "aac005",
type: 'select',
dicUrl: "/api/jobslink-api/system/dict-biz/tadict?code=AAC005",
props: {
label: "dictValue",
value: "dictKey",
},
rules: [
{
required: true,
message: "请输入民族",
trigger: "blur",
},
],
}, { }, {
label: "户口性质", label: "户口性质",
prop: "aac009", prop: "aac009",
type: 'select',
dicUrl: "/api/jobslink-api/system/dict-biz/tadict?code=AAC009",
props: {
label: "dictValue",
value: "dictKey",
},
rules: [
{
required: true,
message: "请输入户口性质",
trigger: "blur",
},
],
}, { }, {
label: "户口所在地", label: "户口所在地",
prop: "aac010", prop: "aac010",
@@ -137,6 +176,19 @@ let leftUserOptions = {
}, { }, {
label: "文化程度", label: "文化程度",
prop: "aac011", prop: "aac011",
type: 'select',
dicUrl: "/api/jobslink-api/system/dict-biz/tadict?code=AAC011",
props: {
label: "dictValue",
value: "dictKey",
},
rules: [
{
required: true,
message: "请输入文化程度",
trigger: "blur",
},
],
}, { }, {
label: '个人标签', label: '个人标签',
prop: 'labelsBase', prop: 'labelsBase',

View File

@@ -300,7 +300,7 @@ export default {
dicUrl: "/api/jobslink-api/system/dict-biz/tadict?code=AAC004", dicUrl: "/api/jobslink-api/system/dict-biz/tadict?code=AAC004",
props: { props: {
label: "dictValue", label: "dictValue",
value: "dictValue", value: "dictKey",
}, },
rules: [ rules: [
{ {
@@ -340,10 +340,10 @@ export default {
prop: "aac005", prop: "aac005",
type: 'select', type: 'select',
dicUrl: "/api/jobslink-api/system/dict-biz/tadict?code=AAC005", dicUrl: "/api/jobslink-api/system/dict-biz/tadict?code=AAC005",
props: { // props: {
label: "dictValue", // label: "dictValue",
value: "dictValue", // value: "dictValue",
}, // },
props: { props: {
label: "dictValue", label: "dictValue",
value: "dictKey", value: "dictKey",
@@ -364,7 +364,7 @@ export default {
dicUrl: "/api/jobslink-api/system/dict-biz/tadict?code=AAC009", dicUrl: "/api/jobslink-api/system/dict-biz/tadict?code=AAC009",
props: { props: {
label: "dictValue", label: "dictValue",
value: "dictValue", value: "dictKey",
}, },
rules: [ rules: [
{ {
@@ -391,7 +391,7 @@ export default {
dicUrl: "/api/jobslink-api/system/dict-biz/tadict?code=AAC011", dicUrl: "/api/jobslink-api/system/dict-biz/tadict?code=AAC011",
props: { props: {
label: "dictValue", label: "dictValue",
value: "dictValue", value: "dictKey",
}, },
rules: [ rules: [
{ {

View File

@@ -1,33 +1,33 @@
<template> <template>
<basic-container> <basic-container>
<avue-crud <avue-crud
ref="crud" ref="crud"
:table-loading="loading" :table-loading="loading"
@date-change="dateChange" @date-change="dateChange"
@current-change="currentChange" @current-change="currentChange"
@size-change="sizeChange" @size-change="sizeChange"
@on-load="onLoad" @on-load="onLoad"
:option="option" :option="option"
:data="inviteCodeList" :data="inviteCodeList"
:page.sync="page" :page.sync="page"
@row-del="rowDel" @row-del="rowDel"
@search-change="searchChange" @search-change="searchChange"
@refresh-change="refreshChange" @refresh-change="refreshChange"
@search-reset="searchReset" @search-reset="searchReset"
@selection-change="selectionChange" @selection-change="selectionChange"
> >
<template slot="menuLeft"> <template slot="menuLeft">
<el-button <el-button
size="small" size="small"
@click.stop="distributionCodeDialog = true; isEdit = false; inviteCodeForm = {}" @click.stop="distributionCodeDialog = true; isEdit = false; inviteCodeForm = {}"
type="primary" type="primary"
v-show="vaildData(permission.manage_station_inviteCode_edituser, false)" v-show="vaildData(permission.manage_station_inviteCode_edituser, false)"
>绑定用户 >绑定用户
</el-button> </el-button>
<el-button <el-button
size="small" size="small"
@click.stop="handleCheck" @click.stop="handleCheck"
type="primary" type="primary"
>审核用户 >审核用户
</el-button> </el-button>
</template> </template>
@@ -37,21 +37,21 @@
</template> </template>
<template slot="isEnabled" slot-scope="{ row }"> <template slot="isEnabled" slot-scope="{ row }">
<el-switch <el-switch
:value="row.isEnabled" :value="row.isEnabled"
:active-value="1" :active-value="1"
:inactive-value="0" :inactive-value="0"
active-color="#13ce66" active-color="#13ce66"
inactive-color="#ff4949" inactive-color="#ff4949"
@change="changeEnabled(row)"> @change="changeEnabled(row)">
</el-switch> </el-switch>
</template> </template>
</avue-crud> </avue-crud>
<el-drawer <el-drawer
title="绑定用户" title="绑定用户"
:visible.sync="distributionCodeDialog" :visible.sync="distributionCodeDialog"
append-to-body append-to-body
width="40%" width="40%"
> >
<div class="drawer_content"> <div class="drawer_content">
<el-form :model="inviteCodeForm" :rules="inviteCodeRules" filterable ref="inviteCode" label-width="100px" <el-form :model="inviteCodeForm" :rules="inviteCodeRules" filterable ref="inviteCode" label-width="100px"
@@ -60,10 +60,10 @@
<el-select v-model="inviteCodeForm.inviteCompanyId" :disabled="isEdit" filterable placeholder="请选择" <el-select v-model="inviteCodeForm.inviteCompanyId" :disabled="isEdit" filterable placeholder="请选择"
style="width: 260px"> style="width: 260px">
<el-option <el-option
v-for="item in enterpriseList" v-for="item in enterpriseList"
:key="item.id" :key="item.id"
:label="item.comname" :label="item.comname"
:value="item.id"> :value="item.id">
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
@@ -87,6 +87,20 @@
</span> </span>
</div> </div>
</el-drawer> </el-drawer>
<PromptDialog
:visible="dialogFlag"
title="审核"
sub-title="请核对用工单位信息后再进行审核通过 一旦驳回无法进行后续操作"
:tips="[
'该用户未达期望,建议重筛;',
'不符合条件,请再评估;',
'经审核,该用户资质不符,建议重评;',
'用工单位资质不符;',
]"
@onClose="dialogFlag = false"
@onCancel="diaLogCancel"
@onConfirm="diaLogConfirm"
></PromptDialog>
</basic-container> </basic-container>
</template> </template>
<script> <script>
@@ -104,6 +118,7 @@ import {Message} from "element-ui";
import lodash from "lodash"; import lodash from "lodash";
import {recruitStatus} from "@/common/dic"; import {recruitStatus} from "@/common/dic";
import {Auditing} from "@/api/manage/mission"; import {Auditing} from "@/api/manage/mission";
import PromptDialog from "@/components/promptDialog/index.vue";
const inviteCodeRules = { const inviteCodeRules = {
stationId: [ stationId: [
@@ -206,16 +221,19 @@ const page = {
total: 0, total: 0,
} }
const message = lodash.throttle( const message = lodash.throttle(
function (options) { function (options) {
Message(options); Message(options);
}, },
3000, 3000,
{trailing: false} {trailing: false}
); );
export default { export default {
name: "manage_station_inviteCode", name: "manage_station_inviteCode",
components: {PromptDialog},
data() { data() {
return { return {
dialogFlag: false,
selectIdList: [],
distributionCodeDialog: false, distributionCodeDialog: false,
inviteCodeRules: Object.assign({}, inviteCodeRules), inviteCodeRules: Object.assign({}, inviteCodeRules),
enterpriseList: [], // 用工单位列表 enterpriseList: [], // 用工单位列表
@@ -236,6 +254,22 @@ export default {
...mapGetters(["permission"]), ...mapGetters(["permission"]),
}, },
methods: { methods: {
diaLogCancel(value) {
if (!value) {
return this.$message({
type: "info",
message: "请输入驳回原因!",
});
}
this.handelFetchAuditing(this.selectIdList, 9, value, "成功驳回, 操作成功!").then(() => {
this.dialogFlag = false
})
},
diaLogConfirm(value) {
this.handelFetchAuditing(this.selectIdList, 1, value).then(() => {
this.dialogFlag = false
})
},
handleCheck() { handleCheck() {
let self = this let self = this
if (this.selectionList.length < 1) { if (this.selectionList.length < 1) {
@@ -248,34 +282,36 @@ export default {
let idList = this.selectionList.map((v) => v.id) let idList = this.selectionList.map((v) => v.id)
let h = this.$createElement; let h = this.$createElement;
this.$prompt( this.dialogFlag = true
h("p", {style: "color: #F56C6C"}, "一旦驳回无法进行后续操作"), this.selectIdList = idList
"请核对用工单位信息后再进行审核通过", // this.$prompt(
{ // h("p", {style: "color: #F56C6C"}, "一旦驳回无法进行后续操作"),
distinguishCancelAndClose: true, // "请核对用工单位信息后再进行审核通过",
confirmButtonText: "通 过", // {
cancelButtonText: "驳 回", // distinguishCancelAndClose: true,
type: "warning", // confirmButtonText: "通 过",
center: true, // cancelButtonText: "驳 回",
inputType: "textarea", // type: "warning",
inputPlaceholder: "备注驳回原因", // center: true,
beforeClose: function (action, instance, done) { // inputType: "textarea",
if (action === 'cancel') { // inputPlaceholder: "备注驳回原因",
if (!instance.inputValue) { // beforeClose: function (action, instance, done) {
return this.$message({ // if (action === 'cancel') {
type: "info", // if (!instance.inputValue) {
message: "请输入驳回原因!", // return this.$message({
}); // type: "info",
} // message: "请输入驳回原因!",
self.handelFetchAuditing(idList, 9, instance.inputValue, "成功驳回, 操作成功!").then(() => done()) // });
} else if (action === 'confirm') { // }
self.handelFetchAuditing(idList, 1, instance.inputValue).then(() => done()) // self.handelFetchAuditing(idList, 9, instance.inputValue, "成功驳回, 操作成功!").then(() => done())
} else { // } else if (action === 'confirm') {
done() // self.handelFetchAuditing(idList, 1, instance.inputValue).then(() => done())
} // } else {
} // done()
} // }
) // }
// }
// )
}, },
handelFetchAuditing(idList, reviewState, msg, message) { handelFetchAuditing(idList, reviewState, msg, message) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
@@ -312,30 +348,30 @@ export default {
rowDel(row) { rowDel(row) {
const h = this.$createElement; const h = this.$createElement;
this.$confirm( this.$confirm(
h("div", null, [ h("div", null, [
h("p", {style: "font-size: 16px"}, "您确定要删除此消息吗? "), h("p", {style: "font-size: 16px"}, "您确定要删除此消息吗? "),
h("p", {style: "color: red"}, "一旦删除则无法找回"), h("p", {style: "color: red"}, "一旦删除则无法找回"),
]), ]),
{ {
type: "warning", type: "warning",
showClose: false, showClose: false,
showCancelButton: true, showCancelButton: true,
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
} }
) )
.then(() => { .then(() => {
return getInvitationStatusUpdate({id: row.id, isDeleted: 1}); return getInvitationStatusUpdate({id: row.id, isDeleted: 1});
}) })
.then(() => { .then(() => {
this.$message({ this.$message({
type: "success", type: "success",
message: "操作成功!", message: "操作成功!",
});
this.refreshChange();
})
.catch(() => {
}); });
this.refreshChange();
})
.catch(() => {
});
}, },
selectionChange(list) { selectionChange(list) {
this.selectionList = list; this.selectionList = list;

View File

@@ -117,6 +117,19 @@ let leftUserOptions = {
}, { }, {
label: '姓别', label: '姓别',
prop: 'aac004', prop: 'aac004',
type: 'select',
dicUrl: "/api/jobslink-api/system/dict-biz/tadict?code=AAC004",
props: {
label: "dictValue",
value: "dictKey",
},
rules: [
{
required: true,
message: "请输入性别",
trigger: "blur",
},
],
}, { }, {
label: '身份证', label: '身份证',
prop: 'idNumber', prop: 'idNumber',
@@ -127,9 +140,35 @@ let leftUserOptions = {
}, { }, {
label: "民族", label: "民族",
prop: "aac005", prop: "aac005",
type: 'select',
dicUrl: "/api/jobslink-api/system/dict-biz/tadict?code=AAC005",
props: {
label: "dictValue",
value: "dictKey",
},
rules: [
{
required: true,
message: "请输入民族",
trigger: "blur",
},
],
}, { }, {
label: "户口性质", label: "户口性质",
prop: "aac009", prop: "aac009",
type: 'select',
dicUrl: "/api/jobslink-api/system/dict-biz/tadict?code=AAC009",
props: {
label: "dictValue",
value: "dictKey",
},
rules: [
{
required: true,
message: "请输入户口性质",
trigger: "blur",
},
],
}, { }, {
label: "户口所在地", label: "户口所在地",
prop: "aac010", prop: "aac010",
@@ -137,6 +176,19 @@ let leftUserOptions = {
}, { }, {
label: "文化程度", label: "文化程度",
prop: "aac011", prop: "aac011",
type: 'select',
dicUrl: "/api/jobslink-api/system/dict-biz/tadict?code=AAC011",
props: {
label: "dictValue",
value: "dictKey",
},
rules: [
{
required: true,
message: "请输入文化程度",
trigger: "blur",
},
],
}, { }, {
label: '个人标签', label: '个人标签',
prop: 'labelsBase', prop: 'labelsBase',