Commit b996c0be authored by zhangderong's avatar zhangderong

修复普通用户和超级管理员用户权限问题,用户约面验证问题

parent 2129c0e2
......@@ -3,13 +3,15 @@
<Col span="3" class="aside" style="width:17%;height:100%">
<img src="https://o7oe0d6qz.qnssl.com/image/homelogo.png" alt="" style="height:60px">
<Menu style="width: 100%;" ref='subMenu' :active-name="vSubName" :open-names="vName" @on-select="go">
<Submenu v-for="menu in childMenu" :name="menu.name" :key="menu.name">
<template v-for="menu in childMenu" >
<Submenu :name="menu.name" :key="menu.name" v-show='!(isadmin==false&&menu.item=="账户管理")'>
<template slot="title">
<Icon type='type'/>
<Icon type="ios-paper"/>
{{menu.item}}
</template>
<MenuItem v-for="child in menu.child" :key="child.name" :name="child.name" @click="go">{{child.item}}</MenuItem>
</Submenu>
</template>
</Menu>
</Col>
<Col span="21" class="content" style="width:83%">
......@@ -157,9 +159,9 @@ import localstorage from '../service/localstorage.service.js'
judeAdmin().then(res=>{
this.isadmin=res.data.body
console.log(this.isadmin,67575,typeof(this.isadmin))
if(this.isadmin == false){
this.menuList[3].child.splice(0,1)
}
// if(this.isadmin == false){
// this.menuList[3].child.splice(0,1)
// }
})
}
},
......
......@@ -168,15 +168,15 @@
:closable="false"
width='300px'>
<h3 style="text-align:center">更改约面信息</h3>
<Form :label-width="80" ref="formInline" :rules="ruleInline">
<Form :label-width="80" ref="formInline" :rules="ruleInline" :model="formInline">
<FormItem label="邀约人" style="margin-top:20px" prop="ower">
<Input v-model="UpdateOWER" :maxlength="5"/>
<Input v-model="formInline.UpdateOWER" :maxlength="5"/>
</FormItem>
<FormItem label="面试时间" style="margin-top:20px" prop="time">
<DatePicker type="datetime" style="width:185px" v-model="UpdateTIME" @on-change="selectTime" placeholder="请选择时间" :options="options3" :editable='false' format="yyyy-MM-dd HH:mm"></DatePicker>
<DatePicker type="datetime" style="width:185px" v-model="formInline.UpdateTIME" @on-change="selectTime" placeholder="请选择时间" :options="options3" :editable='false' format="yyyy-MM-dd HH:mm"></DatePicker>
</FormItem>
<FormItem label="面试官" style="margin-top:20px" prop="view">
<Input v-model="UpdateVIEW" :maxlength="5"/>
<Input v-model="formInline.UpdateVIEW" :maxlength="5"/>
</FormItem>
</Form>
<div slot='footer' style="text-align:center">
......@@ -232,16 +232,21 @@ export default {
data(){
return{
ruleInline: {
ower: [
{ required: true, pattern:this.UpdateOWER!=='', message: '邀约人不能为空', trigger: 'blur' }
UpdateOWER: [
{ required: true, message: '邀约人不能为空', trigger: 'blur' }
],
time: [
{ required: true, pattern:this.UpdateTIME!=='', message: '面试时间不能为空', trigger: 'blur' }
UpdateOWER: [
{ required: true, message: '面试时间不能为空', trigger: 'blur' }
],
view: [
{ required: true, pattern:this.UpdateVIEW!=='',message: '面试官不能为空', trigger: 'blur' }
UpdateOWER: [
{ required: true,message: '面试官不能为空', trigger: 'blur' }
],
},
formInline:{
UpdateOWER:'',
UpdateOWER:'',
UpdateOWER:''
},
recordModal:false,
modal2:false,
modal3:false,
......@@ -260,9 +265,9 @@ export default {
clickIndex1: 0,
clickIndex2: 0,
clickIndex3: 0,
UpdateOWER:'',
UpdateTIME:'',
UpdateVIEW:'',
// UpdateOWER:'',
// UpdateTIME:'',
// UpdateVIEW:'',
UpdateID:'',
options3: {
disabledDate (date) {
......@@ -327,9 +332,9 @@ export default {
},
//更改面试信息弹出框
updateInterview(InterID,InterOWOR,InterTime,InterVIEW){
this.UpdateOWER=InterVIEW,
this.UpdateVIEW=InterOWOR,
this.UpdateTIME=InterTime,
this.formInline.UpdateOWER=InterVIEW,
this.formInline.UpdateVIEW=InterOWOR,
this.formInline.UpdateTIME=InterTime,
this.UpdateID=InterID
this.modal2=true
},
......@@ -375,11 +380,11 @@ export default {
changeUpdate(){
let parmars={
resumeId:this.UpdateID,
inviterName:this.UpdateOWER,
seeTime:moment(this.UpdateTIME).format('YYYY-MM-DD HH:mm:ss'),
interviewerName:this.UpdateVIEW
inviterName:this.formInline.UpdateOWER,
seeTime:moment(this.formInline.UpdateTIME).format('YYYY-MM-DD HH:mm:ss'),
interviewerName:this.formInline.UpdateVIEW
}
if(this.UpdateOWER==''||this.UpdateTIME==""||this.UpdateVIEW==''){
if(this.formInline.UpdateOWER==''||this.formInline.UpdateTIME==""||this.formInline.UpdateVIEW==''){
this.$Notice.error({
title: '提示',
desc: '请您填写完整的约面信息'
......@@ -388,6 +393,9 @@ export default {
}
changeinterviewMassage(parmars).then(res=>{
if(res.data.success==true){
this.formInline.UpdateTIME==""
this.formInline.UpdateVIEW==''
this.formInline.UpdateOWER==''
this.modal2=false;
this.serchListInterview()
}
......
......@@ -210,15 +210,15 @@
<span>更改为<span style="color:blue">“邀请约面”</span>的状态后,你需要从<span style="color:blue">”面试管理“</span>中对该候选人进行后续的操作。</span>
</p>
<p style="margin-top:20px;line-height:25px">
<Form :label-width="80" ref="formInline" :rules="ruleInline">
<FormItem label="邀约人" style="margin-top:20px" prop="ower">
<Input v-model="UpdateOWER" style="width:180px" :maxlength="5"/>
<Form :label-width="80" ref="formInline" :rules="ruleInline" :model="formInline">
<FormItem label="邀约人" style="margin-top:20px" prop="UpdateOWER">
<Input v-model="formInline.UpdateOWER" style="width:180px" :maxlength="5"/>
</FormItem>
<FormItem label="面试时间" style="margin-top:20px" prop='time'>
<DatePicker type="datetime" style="width:180px" v-model="UpdateTIME" format="yyyy-MM-dd HH:mm" @on-change="changeTime" :options="options3" :editable='false'></DatePicker>
<FormItem label="面试时间" style="margin-top:20px" prop='UpdateOWER'>
<DatePicker type="datetime" style="width:180px" v-model="formInline.UpdateOWER" format="yyyy-MM-dd HH:mm" @on-change="changeTime" :options="options3" :editable='false'></DatePicker>
</FormItem>
<FormItem label="面试官" style="margin-top:20px" prop='view'>
<Input v-model="UpdateVIEW" style="width:180px" :maxlength="5"/>
<FormItem label="面试官" style="margin-top:20px" prop='UpdateOWERs'>
<Input v-model="formInline.UpdateOWER" style="width:180px" :maxlength="5"/>
</FormItem>
</Form>
</p>
......@@ -297,16 +297,21 @@ import Router from 'vue-router';
data () {
return {
ruleInline: {
ower: [
{ required: true, pattern:this.UpdateOWER=='', message: '邀约人不能为空', trigger: 'blur' }
UpdateOWER: [
{ required: true, message: '邀约人不能为空', trigger: 'blur' }
],
time: [
{ required: true, pattern:this.UpdateTIME=='', message: '面试时间不能为空', trigger: 'blur' }
UpdateOWER: [
{ required: true, message: '面试时间不能为空', trigger: 'blur' }
],
view: [
{ required: true, pattern:this.UpdateVIEW=='',message: '面试官不能为空', trigger: 'blur' }
UpdateOWER: [
{ required: true,message: '面试官不能为空', trigger: 'blur' }
],
},
formInline:{
UpdateOWER:'',
UpdateOWER:'',
UpdateOWER:''
},
modal1:false,
modal2:false,
modal3:false,
......@@ -327,9 +332,9 @@ import Router from 'vue-router';
ownerName:'',
midStr:'',
toseename:'',
UpdateOWER:'',
UpdateTIME:'',
UpdateVIEW:'',
// UpdateOWER:'',
// UpdateTIME:'',
// UpdateVIEW:'',
DOWNID:'',
resume:[],//简历基本详情
riList:[],//实习经历列表
......@@ -484,11 +489,11 @@ import Router from 'vue-router';
addINTERVIEW(){
let parmars={
resumeId: this.toseeid,
inviterName:this.UpdateOWER,
interviewerName:this.UpdateVIEW,
seeTime:this.UpdateTIME
inviterName:this.formInline.UpdateOWER,
interviewerName:this.formInline.UpdateVIEW,
seeTime:this.formInline.UpdateTIME
}
if(this.UpdateOWER==''||this.UpdateVIEW==''||this.UpdateTIME==''){
if(this.formInline.UpdateOWER==''||this.formInline.UpdateVIEW==''||this.formInline.UpdateTIME==''){
this.$Notice.error({
title: '提示',
desc: '请您填写完整的约面信息'
......@@ -498,10 +503,10 @@ import Router from 'vue-router';
addinterview(parmars).then(res=>{
if(res.data.success==true){
this.modal2=false
this.UpdateOWER=''
this.UpdateVIEW=''
this.UpdateTIME=''
this.SearchList()
this.formInline.UpdateOWER=''
this.formInline.UpdateVIEW=''
this.formInline.UpdateTIME=''
this.SearchList()
}
if(res.data.body.code==0){
this.SearchList(this.pageT)
......
......@@ -209,15 +209,15 @@
<span>更改为<span style="color:blue">“邀请约面”</span>的状态后,你需要从<span style="color:blue">”面试管理“</span>中对该候选人进行后续的操作。</span>
</p>
<p style="margin-top:20px;line-height:25px">
<Form :label-width="80" ref="formInline" :rules="ruleInline">
<FormItem label="邀约人" style="margin-top:20px" prop="ower">
<Input v-model="UpdateOWER" style="width:180px" :maxlength="5"/>
<Form :label-width="80" ref="formInline" :rules="ruleInline" :model="formInline">
<FormItem label="邀约人" style="margin-top:20px" prop="UpdateOWER">
<Input v-model="formInline.UpdateOWER" style="width:180px" :maxlength="5"/>
</FormItem>
<FormItem label="面试时间" style="margin-top:20px" prop="time">
<DatePicker type="datetime" style="width:180px" v-model="UpdateTIME" format="yyyy-MM-dd HH:mm:ss" @on-change="changeTime" :editable='false' :options="options3"></DatePicker>
<FormItem label="面试时间" style="margin-top:20px" prop="UpdateTIME">
<DatePicker type="datetime" style="width:180px" v-model="formInline.UpdateTIME" format="yyyy-MM-dd HH:mm:ss" @on-change="changeTime" :editable='false' :options="options3"></DatePicker>
</FormItem>
<FormItem label="面试官" style="margin-top:20px" prop="view">
<Input v-model="UpdateVIEW" style="width:180px" :maxlength="5"/>
<FormItem label="面试官" style="margin-top:20px" prop="UpdateVIEW">
<Input v-model="formInline.UpdateVIEW" style="width:180px" :maxlength="5"/>
</FormItem>
</Form>
</p>
......@@ -293,16 +293,21 @@ export default {
data(){
return {
ruleInline: {
ower: [
{ required: true, pattern:this.UpdateOWER!=='', message: '邀约人不能为空', trigger: 'blur' }
UpdateOWER: [
{ required: true, message: '邀约人不能为空', trigger: 'blur' }
],
time: [
{ required: true, pattern:this.UpdateTIME!=='', message: '面试时间不能为空', trigger: 'blur' }
UpdateOWER: [
{ required: true, message: '面试时间不能为空', trigger: 'blur' }
],
view: [
{ required: true, pattern:this.UpdateVIEW!=='',message: '面试官不能为空', trigger: 'blur' }
UpdateOWER: [
{ required: true,message: '面试官不能为空', trigger: 'blur' }
],
},
},
formInline:{
UpdateOWER:'',
UpdateOWER:'',
UpdateOWER:''
},
a:[],
checked: false,
activeClass: 0,
......@@ -334,9 +339,9 @@ export default {
modal7:false,
optcode:'',
toseename:'',
UpdateOWER:'',
UpdateTIME:'',
UpdateVIEW:'',
// UpdateOWER:'',
// UpdateTIME:'',
// UpdateVIEW:'',
item:[],
delateARRALL:[],
delateARRALL2:[],
......@@ -622,17 +627,20 @@ export default {
addINTERVIEW(){
let parmars={
resumeId: this.toseeid,
inviterName:this.UpdateOWER,
interviewerName:this.UpdateVIEW,
seeTime:this.UpdateTIME
inviterName:this.formInline.UpdateOWER,
interviewerName:this.formInline.UpdateVIEW,
seeTime:this.formInline.UpdateTIME
}
if(this.UpdateOWER==''||this.UpdateTIME==''||this.UpdateVIEW==''){
if(this.formInline.UpdateOWER==''||this.formInline.UpdateTIME==''||this.formInline.UpdateVIEW==''){
this.$Message.error('请填写完整的约面信息')
return
}
addinterview(parmars).then(res=>{
if(res.data.success==true){
this.modal2=false
this.formInline.UpdateOWER=''
this.formInline.UpdateTIME=''
this.formInline.UpdateVIEW=''
this.quxiaoxi(this.pageT)
}
if(res.data.body.code==0){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment