Commit b996c0be authored by zhangderong's avatar zhangderong

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

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