|
@@ -5,7 +5,7 @@
|
|
|
<el-form-item label="姓名" prop="name">
|
|
|
<el-input v-model="searchForm.name" placeholder="请输入姓名" clearable></el-input>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="归属部门" prop="department">
|
|
|
+ <el-form-item label="实习部门" prop="practiceOffice">
|
|
|
<SelectTree
|
|
|
ref="officeTree"
|
|
|
:props="{
|
|
@@ -14,25 +14,53 @@
|
|
|
children: 'children' // 子级字段名
|
|
|
}"
|
|
|
:url="`/system-server/sys/office/treeData?type=2`"
|
|
|
- :value="searchForm.department"
|
|
|
+ :value="searchForm.practiceOffice"
|
|
|
:clearable="true"
|
|
|
:accordion="true"
|
|
|
size="default"
|
|
|
- @getValue="(value,label) => {searchForm.department=value}"/>
|
|
|
+ @getValue="(value,label) => {searchForm.practiceOffice=value}"/>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="联系电话" prop="mobilePhone">
|
|
|
<el-input v-model="searchForm.mobilePhone" placeholder="请输入联系电话" clearable></el-input>
|
|
|
</el-form-item>
|
|
|
-
|
|
|
+ <el-form-item v-if="showHideItem" label="性别" prop="sex">
|
|
|
+ <el-select v-model="searchForm.sex" placeholder="请选择" style="width:100%;" clearable>
|
|
|
+ <el-option
|
|
|
+ v-for="item in $dictUtils.getDictList('sex')"
|
|
|
+ :key="item.value"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.value">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item v-if="showHideItem" label="身份证号码" prop="idCard">
|
|
|
+ <el-input v-model="searchForm.idCard" placeholder="请输入身份证号码" clearable></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item v-if="showHideItem" label="就读/毕业院校" prop="graduatedFrom">
|
|
|
+ <el-input v-model="searchForm.graduatedFrom" placeholder="请输入就读/毕业院校" clearable></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item v-if="showHideItem" label="专业" prop="speciality">
|
|
|
+ <el-input v-model="searchForm.speciality" placeholder="请输入专业" clearable></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item v-if="showHideItem" label="QQ号/微信号" prop="qqNum">
|
|
|
+ <el-input v-model="searchForm.qqNum" placeholder="请输入QQ号/微信号" clearable></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item v-if="showHideItem" label="实习单位名称" prop="practiceUnitName">
|
|
|
+ <el-input v-model="searchForm.practiceUnitName" placeholder="请输入实习单位名称" clearable></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item v-if="showHideItem" label="项目经理" prop="projectManager">
|
|
|
+ <UserSelect2 :limit='1' :modelValue="searchForm.projectManager" @update:modelValue='(value, label) => {searchForm.projectManager = value}'></UserSelect2>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item>
|
|
|
- <el-button type="primary" @click="refreshList()" icon="el-icon-search">查询</el-button>
|
|
|
+ <el-button type="default" @click="showHide" :icon="showHideIcon">{{showHideName}}</el-button>
|
|
|
+ <el-button type="primary" @click="refreshList()" icon="el-icon-search">查询</el-button>
|
|
|
<el-button @click="resetSearch()" icon="el-icon-refresh-right">重置</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<div class="jp-table top" style="">
|
|
|
<vxe-toolbar :refresh="{query: refreshList}" ref="toolbarRef" export custom>
|
|
|
<template #buttons>
|
|
|
-<!-- <el-button type="primary" icon="el-icon-plus" @click="start()">新建</el-button>-->
|
|
|
+ <el-button type="primary" icon="el-icon-plus" @click="add()">新建</el-button>
|
|
|
</template>
|
|
|
</vxe-toolbar>
|
|
|
<div style="height: calc(100% - 90px)">
|
|
@@ -76,7 +104,11 @@
|
|
|
<vxe-column min-width="160" align="center" title="毕业院校" field="graduatedFrom"></vxe-column>
|
|
|
<vxe-column min-width="160" align="center" title="所属部门" field="departmentName"></vxe-column>
|
|
|
<vxe-column min-width="160" align="center" title="项目经理" field="projectManagerName"></vxe-column>
|
|
|
- <vxe-column min-width="160" align="center" title="实习状态" field="practiceStatus"></vxe-column>
|
|
|
+ <vxe-column min-width="160" align="center" title="实习状态" field="practiceStatus">
|
|
|
+ <template #default="scope">
|
|
|
+ {{$dictUtils.getDictLabel('practice_type', scope.row.practiceStatus, '')}}
|
|
|
+ </template>
|
|
|
+ </vxe-column>
|
|
|
<vxe-column min-width="100" title="状态" fixed="right" align="center" field="type">
|
|
|
<template #default="scope">
|
|
|
<el-button @click="detail(scope.row)" :type="$dictUtils.getDictLabel('status_info', scope.row.type, '')" effect="dark" >{{$dictUtils.getDictLabel("status", scope.row.type, '未开始')}} </el-button>
|
|
@@ -119,14 +151,25 @@
|
|
|
import taskService from '@/api/flowable/TaskService'
|
|
|
import RegistrationEditForm from './RegistrationEditForm'
|
|
|
import pick from "lodash.pick";
|
|
|
+ import UserSelect2 from '@/components/userSelect'
|
|
|
export default {
|
|
|
data () {
|
|
|
return {
|
|
|
+ showHideItem: false,
|
|
|
+ showHideIcon: 'el-icon-arrow-down',
|
|
|
+ showHideName: '展示',
|
|
|
num: 0,
|
|
|
searchForm: {
|
|
|
name: '',
|
|
|
- department: '',
|
|
|
+ practiceOffice: '',
|
|
|
mobilePhone: '',
|
|
|
+ sex:'',
|
|
|
+ idCard:'',
|
|
|
+ graduatedFrom:'',
|
|
|
+ speciality:'',
|
|
|
+ qqNum:'',
|
|
|
+ practiceUnitName:'',
|
|
|
+ projectManager:'',
|
|
|
},
|
|
|
dataList: [],
|
|
|
tablePage: {
|
|
@@ -148,7 +191,8 @@
|
|
|
},
|
|
|
components: {
|
|
|
SelectTree,
|
|
|
- RegistrationEditForm
|
|
|
+ RegistrationEditForm,
|
|
|
+ UserSelect2
|
|
|
},
|
|
|
computed: {
|
|
|
userName () {
|
|
@@ -172,8 +216,20 @@
|
|
|
this.refreshList()
|
|
|
},
|
|
|
methods: {
|
|
|
+ showHide () {
|
|
|
+ if (this.showHideItem === false) {
|
|
|
+ this.showHideItem = true
|
|
|
+ this.showHideIcon = 'el-icon-arrow-up'
|
|
|
+ this.showHideName = '隐藏'
|
|
|
+ } else {
|
|
|
+ this.showHideItem = false
|
|
|
+ this.showHideIcon = 'el-icon-arrow-down'
|
|
|
+ this.showHideName = '展示'
|
|
|
+ }
|
|
|
+ },
|
|
|
// 新增
|
|
|
add () {
|
|
|
+ this.$refs.registrationEditForm.init('add', '')
|
|
|
},
|
|
|
// 查看
|
|
|
view (id) {
|