添加人员筛选以及被退回的相应处理
This commit is contained in:
parent
ec38844851
commit
a6a0fcdc5a
|
@ -311,18 +311,12 @@
|
|||
<el-row>
|
||||
<el-col :md="24" :sm="12" :xs="24">
|
||||
<el-form-item label="作业人员">
|
||||
<el-select
|
||||
v-model="formworker.worker"
|
||||
@change="selectWorker"
|
||||
placeholder="选择作业人员"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in useroptions"
|
||||
:key="item.id"
|
||||
:label="item.name"
|
||||
:value="item.id"
|
||||
/>
|
||||
</el-select>
|
||||
<el-input
|
||||
v-model="formworker.worker_name"
|
||||
style="width:200px"
|
||||
disabled
|
||||
></el-input>
|
||||
<ehsUserSelect :multiple="false" @submit="getWorker"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :md="24" :sm="12" :xs="24">
|
||||
|
@ -616,7 +610,11 @@ export default {
|
|||
}
|
||||
// this.stepSuc.push(++this.active)
|
||||
},
|
||||
|
||||
getWorker(data) {
|
||||
this.formworker.worker=data.id,
|
||||
this.formworker.worker_name=data.name
|
||||
this.selectWorker()
|
||||
},
|
||||
//选择人员后,调出该人员的所有证书
|
||||
selectWorker() {
|
||||
this.$API.hrm.certificate.list
|
||||
|
|
|
@ -48,6 +48,17 @@
|
|||
:value="item.value"
|
||||
></el-option>
|
||||
</el-select>
|
||||
<el-select
|
||||
v-model="query.is_deleted"
|
||||
placeholder="筛选"
|
||||
@change="handleQuery"
|
||||
clearable
|
||||
style="margin-left: 2px"
|
||||
>
|
||||
<el-option label="全部" value=""></el-option>
|
||||
<el-option label="在用" :value="deletedIs"></el-option>
|
||||
<el-option label="已删" :value="isDeleted"></el-option>
|
||||
</el-select>
|
||||
</div>
|
||||
<div class="right-panel">
|
||||
<div class="right-panel-search">
|
||||
|
@ -83,8 +94,8 @@
|
|||
<el-table-column label="登录账号" prop="username" width="140"></el-table-column>
|
||||
<el-table-column label="是否启用" prop="is_active">
|
||||
<template #default="scope">
|
||||
<el-tag type="success" v-if="scope.row.is_active">启用</el-tag>
|
||||
<el-tag v-else type="danger">禁用</el-tag>
|
||||
<el-tag type="danger" v-if="scope.row.is_deleted">已删</el-tag>
|
||||
<el-tag v-else type="success">在用</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- <el-table-column label="微信通知" width="80">
|
||||
|
@ -129,6 +140,7 @@
|
|||
type="primary"
|
||||
link
|
||||
size="small"
|
||||
v-if="!query.is_deleted"
|
||||
@click="formSetting(scope.row)"
|
||||
v-auth="'user.update'"
|
||||
>
|
||||
|
@ -148,6 +160,7 @@
|
|||
link
|
||||
size="small"
|
||||
type="danger"
|
||||
v-if="!query.is_deleted"
|
||||
@click="formReset(scope.row)"
|
||||
v-auth="'user.update'"
|
||||
>
|
||||
|
@ -213,8 +226,8 @@
|
|||
clearable
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="是否在用">
|
||||
<el-switch v-model="addForm.is_active" />
|
||||
<el-form-item label="是否删除">
|
||||
<el-switch active-color="#f56c6c" v-model="addForm.is_deleted" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<template #footer>
|
||||
|
@ -254,7 +267,9 @@ export default {
|
|||
save: false,
|
||||
// certSave:false,
|
||||
},
|
||||
query: {},
|
||||
isDeleted: true,
|
||||
deletedIs: false,
|
||||
query: {is_deleted:''},
|
||||
baseUrl: baseUrl.API_URL,
|
||||
type: "add",
|
||||
titleMap: {
|
||||
|
@ -266,7 +281,6 @@ export default {
|
|||
addForm: {
|
||||
username: "",
|
||||
name: "",
|
||||
// email: "",
|
||||
phone: null,
|
||||
// belong_dept: [],
|
||||
is_active: true,
|
||||
|
@ -428,6 +442,7 @@ export default {
|
|||
if (valid) {
|
||||
this.isSaveing = true;
|
||||
let res;
|
||||
|
||||
if (this.type === "add") {
|
||||
res = await this.$API.system.user.create.req(this.addForm);
|
||||
} else if (this.type === "edit") {
|
||||
|
|
|
@ -70,8 +70,8 @@
|
|||
link
|
||||
size="small"
|
||||
v-if="
|
||||
(scope.row.act_state === 1 || scope.row.act_state === 3) &&
|
||||
scope.row.state_.type === 0
|
||||
(scope.row.act_state === 1&&scope.row.state_.type === 0) || (scope.row.act_state === 3&&
|
||||
scope.row.state_.type === 0) ||scope.row.act_state === 2
|
||||
"
|
||||
type="primary"
|
||||
@click="handleDetail(scope.row)"
|
||||
|
|
Loading…
Reference in New Issue