Commit 0592d043 authored by FE-安焕焕's avatar FE-安焕焕 👣

面试时间提示问题

parent b9c0c3f0
...@@ -287,7 +287,7 @@ import localstorage from '../service/localstorage.service.js' ...@@ -287,7 +287,7 @@ import localstorage from '../service/localstorage.service.js'
<style lang="less" scoped> <style lang="less" scoped>
.home{ .home{
height: 100%; height: 100%;
overflow: hidden; overflow: visible;
.aside{ .aside{
border-right: 1px solid #dcdee2; border-right: 1px solid #dcdee2;
box-shadow: #dcdee2 0 0 6px 1px; box-shadow: #dcdee2 0 0 6px 1px;
......
...@@ -333,7 +333,7 @@ ...@@ -333,7 +333,7 @@
<Input v-model="formInline.UpdateOWER" style="width:100%" :maxlength="5" @on-focus='getfocus("formInline", "UpdateOWER")'/> <Input v-model="formInline.UpdateOWER" style="width:100%" :maxlength="5" @on-focus='getfocus("formInline", "UpdateOWER")'/>
</FormItem> </FormItem>
<FormItem label="面试时间" style="margin-top:20px" prop="UpdateTIME"> <FormItem label="面试时间" style="margin-top:20px" prop="UpdateTIME">
<DatePicker type="datetime" style="width:100%" v-model="formInline.UpdateTIME" format="yyyy-MM-dd HH:mm" @on-change="changeTime" :options="options3" :editable='false' @on-open-change='getfocus("formInline", "UpdateTIME")'></DatePicker> <DatePicker type="datetime" style="width:100%" v-model="formInline.UpdateTIME" format="yyyy-MM-dd HH:mm" @on-change="changeTime" :options="options3" :editable='false' @on-open-change='getfocus("formInline", "UpdateTIME", $event)'></DatePicker>
</FormItem> </FormItem>
<FormItem label="面试官" style="margin-top:20px" prop='UpdateVIEW'> <FormItem label="面试官" style="margin-top:20px" prop='UpdateVIEW'>
<Input v-model="formInline.UpdateVIEW" style="width:100%" :maxlength="5" @on-focus='getfocus("formInline", "UpdateVIEW")'/> <Input v-model="formInline.UpdateVIEW" style="width:100%" :maxlength="5" @on-focus='getfocus("formInline", "UpdateVIEW")'/>
...@@ -1903,7 +1903,6 @@ import {mapState} from 'vuex' ...@@ -1903,7 +1903,6 @@ import {mapState} from 'vuex'
} }
}, },
UpdateOWER(){ UpdateOWER(){
console.log('====')
if(this.formInline.UpdateOWER==''){ if(this.formInline.UpdateOWER==''){
this.isDisable=false this.isDisable=false
}else{ }else{
...@@ -1911,7 +1910,6 @@ import {mapState} from 'vuex' ...@@ -1911,7 +1910,6 @@ import {mapState} from 'vuex'
} }
}, },
UpdateTIME(){ UpdateTIME(){
console.log('--=')
if(this.formInline.UpdateTIME==''){ if(this.formInline.UpdateTIME==''){
this.isDisable=false this.isDisable=false
}else{ }else{
...@@ -1925,7 +1923,7 @@ import {mapState} from 'vuex' ...@@ -1925,7 +1923,7 @@ import {mapState} from 'vuex'
this.isDisable=true this.isDisable=true
} }
}, },
getfocus(form, name){ getfocus(form, name, e){
let vm = this; let vm = this;
let value = this[form][name] let value = this[form][name]
if(name == 'receiveEmail') { if(name == 'receiveEmail') {
...@@ -1937,6 +1935,10 @@ import {mapState} from 'vuex' ...@@ -1937,6 +1935,10 @@ import {mapState} from 'vuex'
} }
}) })
} else { } else {
if (e==false){ // 时间选择器关闭弹框的时候
this.$refs.formInline.validateField('UpdateTIME', (e) => {})
return
}
this.$refs[form].fields.forEach(function (e) { this.$refs[form].fields.forEach(function (e) {
if (e.prop == name) { if (e.prop == name) {
e.resetField() e.resetField()
......
...@@ -329,7 +329,7 @@ ...@@ -329,7 +329,7 @@
<Input v-model="formInline.UpdateOWER" style="width:100%" :maxlength="5" @on-focus='getfocus("formInline", "UpdateOWER")'/> <Input v-model="formInline.UpdateOWER" style="width:100%" :maxlength="5" @on-focus='getfocus("formInline", "UpdateOWER")'/>
</FormItem> </FormItem>
<FormItem label="面试时间" style="margin-top:20px" prop="UpdateTIME"> <FormItem label="面试时间" style="margin-top:20px" prop="UpdateTIME">
<DatePicker type="datetime" style="width:100%" v-model="formInline.UpdateTIME" format="yyyy-MM-dd HH:mm" @on-change="changeTime" :options="options3" :editable='false' @on-open-change='getfocus("formInline", "UpdateTIME")'></DatePicker> <DatePicker type="datetime" style="width:100%" v-model="formInline.UpdateTIME" format="yyyy-MM-dd HH:mm" @on-change="changeTime" :options="options3" :editable='false' @on-open-change='getfocus("formInline", "UpdateTIME", $event)'></DatePicker>
</FormItem> </FormItem>
<FormItem label="面试官" style="margin-top:20px" prop='UpdateVIEW'> <FormItem label="面试官" style="margin-top:20px" prop='UpdateVIEW'>
<Input v-model="formInline.UpdateVIEW" style="width:100%" :maxlength="5" @on-focus='getfocus("formInline", "UpdateVIEW")'/> <Input v-model="formInline.UpdateVIEW" style="width:100%" :maxlength="5" @on-focus='getfocus("formInline", "UpdateVIEW")'/>
...@@ -1339,7 +1339,6 @@ export default { ...@@ -1339,7 +1339,6 @@ export default {
}, },
// 发送邮件 // 发送邮件
sendEmail(type){ sendEmail(type){
console.log(this.checkboxList)
if(this.checkboxList.length == 0&&type) { if(this.checkboxList.length == 0&&type) {
this.$Notice.error({ this.$Notice.error({
title: '提示', title: '提示',
...@@ -1866,7 +1865,7 @@ export default { ...@@ -1866,7 +1865,7 @@ export default {
item.STATES = false item.STATES = false
}) })
}, },
getfocus(form, name){ getfocus(form, name, e){
let vm = this; let vm = this;
let value = this[form][name] let value = this[form][name]
if(name == 'receiveEmail') { if(name == 'receiveEmail') {
...@@ -1878,6 +1877,10 @@ export default { ...@@ -1878,6 +1877,10 @@ export default {
} }
}) })
} else { } else {
if (e==false){ // 时间选择器关闭弹框的时候
this.$refs.formInline.validateField('UpdateTIME', (e) => {})
return
}
this.$refs[form].fields.forEach(function (e) { this.$refs[form].fields.forEach(function (e) {
if (e.prop == name) { if (e.prop == name) {
e.resetField() e.resetField()
...@@ -1888,7 +1891,6 @@ export default { ...@@ -1888,7 +1891,6 @@ export default {
}, },
submit() { submit() {
console.log('++++')
let flag = false let flag = false
this.$refs.emailInline.validate(val => { this.$refs.emailInline.validate(val => {
if (!val) { if (!val) {
......
...@@ -31,7 +31,6 @@ instance.interceptors.response.use(function (response) { ...@@ -31,7 +31,6 @@ instance.interceptors.response.use(function (response) {
if(response.status >= 200 && response.status < 300){ if(response.status >= 200 && response.status < 300){
let code = response.data&&response.data.body&&response.data.body.code || '' let code = response.data&&response.data.body&&response.data.body.code || ''
if (code == '900' || code == '901' || code == '902'){ if (code == '900' || code == '901' || code == '902'){
console.log('----')
if (!store.state.cookieTips && code != '901') { if (!store.state.cookieTips && code != '901') {
store.dispatch('cookieTipsShow', true) store.dispatch('cookieTipsShow', true)
Notice.error({render:(h) => {return h('div', {style: { Notice.error({render:(h) => {return h('div', {style: {
......
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