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

View File

@@ -117,6 +117,19 @@ let leftUserOptions = {
}, {
label: '姓别',
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: '身份证',
prop: 'idNumber',
@@ -127,9 +140,35 @@ let leftUserOptions = {
}, {
label: "民族",
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: "户口性质",
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: "户口所在地",
prop: "aac010",
@@ -137,6 +176,19 @@ let leftUserOptions = {
}, {
label: "文化程度",
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: '个人标签',
prop: 'labelsBase',

View File

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

View File

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

View File

@@ -117,6 +117,19 @@ let leftUserOptions = {
}, {
label: '姓别',
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: '身份证',
prop: 'idNumber',
@@ -127,9 +140,35 @@ let leftUserOptions = {
}, {
label: "民族",
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: "户口性质",
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: "户口所在地",
prop: "aac010",
@@ -137,6 +176,19 @@ let leftUserOptions = {
}, {
label: "文化程度",
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: '个人标签',
prop: 'labelsBase',