安全教育:时间更改

This commit is contained in:
骆乐 2022-09-08 18:26:43 +08:00
parent 4d4331d3bb
commit db6327b48a
3 changed files with 66 additions and 2 deletions

BIN
dist.zip

Binary file not shown.

View File

@ -43,12 +43,12 @@ if (process.env.NODE_ENV == 'development') {
// axios.defaults.baseURL = 'http://192.168.34.125:6023/' //杨意本地 http/1.1
// axios.defaults.baseURL = 'http://192.168.34.216:6023/' // 邱平毅本地
// axios.defaults.baseURL = 'http://192.168.34.125:6023/' //杨意本地 http/1.1
// axios.defaults.baseURL = 'http://192.168.34.216:18070/' // 邱平毅本地
axios.defaults.baseURL = 'http://192.168.34.216:18070/' // 邱平毅本地
// axios.defaults.baseURL = 'http://192.168.34.231:6023/'; //杨思瑞本地
// axios.defaults.baseURL = 'http://47.97.202.104:6023/';
// axios.defaults.baseURL = 'http://139.9.66.234:8/';
// axios.defaults.baseURL = 'http://120.196.217.6:7000/'; // 鹤洲
axios.defaults.baseURL = 'http://182.90.224.237:7000/'; // 广西
// axios.defaults.baseURL = 'http://182.90.224.237:7000/'; // 广西
// axios.defaults.baseURL = 'http://120.196.217.6:7000/' //鹤洲
// axios.defaults.baseURL = 'http://117.156.17.59:9090/'; //

View File

@ -216,6 +216,8 @@
class="startTime"
placeholder="起始时间"
v-model="cardForm.eduStartTime"
:clearable="false"
@change = "startTime"
:picker-options="{
start: '08:30',
step: '00:15',
@ -227,6 +229,8 @@
class="endTime"
placeholder="结束时间"
v-model="cardForm.eduEndTime"
:clearable="false"
@change = "endTime"
:picker-options="{
start: '08:30',
step: '00:15',
@ -250,6 +254,7 @@
>
<el-input
v-model="cardForm.eduClasshour"
disabled
:placeholder="$t('message.personnelPosition.please_enter')"
></el-input>
</el-form-item>
@ -523,6 +528,13 @@ export default {
// }
// };
return {
studyTime:'',
startingTime:'',
min1:'',
min2:'',
hour1:'',
hour2:'',
finishTime:'',
uploadaurl:'',
fileList:[],
searchForm: {
@ -575,7 +587,53 @@ export default {
let xxx = this.$store.state.FILEURL
console.log('url',xxx)
},
watch:{
startingTime:{
handler(n,o){
if(n != o){
this.getTime()
}
}
},
finishTime:{
handler(n,o){
if(n != o){
this.getTime()
}
}
}
},
methods: {
//
startTime(val){
// console.log('',val)
this.startingTime = val
},
endTime(val){
// console.log('',val)
this.finishTime = val
console.log( this.cardForm.eduClasshour)
},
getTime(){
if( this.startingTime != null){
this.hour1 = this.startingTime.split(':')[0]
this.min1 = this.startingTime.split(':')[1]
if(this.finishTime != null){
this.hour2 = this.finishTime.split(':')[0]
this.min2 = this.finishTime.split(':')[1]
if(this.hour2 > this.hour1 && this.min2>this.min1){
this.cardForm.eduClasshour = this.min2 - this.min1 + (this.hour2-this.hour1)*60
}if(this.hour2 > this.hour1 && this.min2<this.min1){
this.cardForm.eduClasshour = (this.hour2-this.hour1)*60 + (this.min2 - this.min1)
}if(this.hour2 > this.hour1 && this.min2==this.min1){
this.cardForm.eduClasshour = (this.hour2-this.hour1)*60
}
if( this.hour2 == this.hour1) {
this.cardForm.eduClasshour = this.min2 - this.min1
}
}
}
},
picName(i){
// console.log('========',this.cardForm[ `edu${i === 1 ? 'Before': i === 2 ? 'In' : 'After'}Photo` ])
return this.cardForm[ `edu${i === 1 ? 'Before': i === 2 ? 'In' : 'After'}Photo` ]
@ -857,6 +915,12 @@ export default {
};
</script>
<style lang="less" scoped>
::v-deep .el-date-editor {
.el-range__close-icon {
color: red;
line-height: 23px;
}
}
.uploadpoint{
text-decoration: none;
color:black;