优化
This commit is contained in:
parent
d936130edd
commit
41ed494630
@ -36,7 +36,7 @@
|
||||
<el-table-column
|
||||
label="全选"
|
||||
width="250"
|
||||
><template slot-scope="scope"><span>{{scope.row.name}}</span><el-tag style="margin:0 0 0 10px;" v-if="scope.row.score ===0">已开始评分</el-tag></template></el-table-column>
|
||||
><template slot-scope="scope"><span>{{scope.row.name}}</span><el-tag style="margin:0 0 0 10px;" v-if="scope.row.score ===1">已开始评分</el-tag></template></el-table-column>
|
||||
<el-table-column
|
||||
width="80"
|
||||
align="right"
|
||||
@ -136,7 +136,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
checkSelectable (row, index) {
|
||||
return !this.nOSec && row.score === 1
|
||||
return !this.nOSec && row.score === 0
|
||||
},
|
||||
handlePopupCreat () {
|
||||
this.$emit('update:showChooseList', false)
|
||||
|
||||
@ -79,7 +79,7 @@ export function departGetForm (arr = []) {
|
||||
|
||||
export function handleInput (form) {
|
||||
let value = this[form.split('.')[0]][form.split('.')[1]]
|
||||
value = String(value)
|
||||
if (value.split('.').length > 2) value = String(parseFloat(value))
|
||||
this[form.split('.')[0]][form.split('.')[1]] = Number(value) > 100 ? 0 : value.replace(/[^.\d]/g, '')
|
||||
if (String(value).split('.').length > 2) value = String(parseFloat(value))
|
||||
const a = Number(value) > 100 ? 0 : value.replace(/[^.\d]/g, '')
|
||||
this[form.split('.')[0]][form.split('.')[1]] = String(a)
|
||||
}
|
||||
|
||||
@ -110,35 +110,7 @@ export default {
|
||||
form: {
|
||||
cycleType: ''
|
||||
},
|
||||
tableData: [{
|
||||
date: '2016-05-03',
|
||||
name: '2020年01月绩效考核',
|
||||
number: '10'
|
||||
}, {
|
||||
date: '2016-05-03',
|
||||
name: '2020年02月绩效考核',
|
||||
number: '10'
|
||||
}, {
|
||||
date: '2016-05-03',
|
||||
name: '2020年03月绩效考核',
|
||||
number: '10'
|
||||
}, {
|
||||
date: '2016-05-03',
|
||||
name: '2020年01月绩效考核',
|
||||
number: '10'
|
||||
}, {
|
||||
date: '2016-05-03',
|
||||
name: '2020年01月绩效考核',
|
||||
number: '10'
|
||||
}, {
|
||||
date: '2016-05-03',
|
||||
name: '2020年01月绩效考核',
|
||||
number: '10'
|
||||
}, {
|
||||
date: '2016-05-03',
|
||||
name: '2020年01月绩效考核',
|
||||
number: '10'
|
||||
}]
|
||||
tableData: []
|
||||
}
|
||||
},
|
||||
computed: {},
|
||||
|
||||
@ -209,6 +209,7 @@ export default {
|
||||
if (this.handleGetList().length === 2) {
|
||||
this.itemInfo = params
|
||||
}
|
||||
this.handleClick(params)
|
||||
this.$forceUpdate()
|
||||
console.log('this.itemInfo: ', this.itemInfo)
|
||||
console.log('this.list: ', this.list)
|
||||
@ -333,8 +334,7 @@ export default {
|
||||
}
|
||||
}
|
||||
&-contant:hover{
|
||||
background: @fontBlue;
|
||||
color: #fff;
|
||||
background: rgb(236, 246, 253);
|
||||
.close{
|
||||
display: block;
|
||||
}
|
||||
|
||||
@ -216,6 +216,7 @@ export default {
|
||||
if (this.handleGetList().length === 2) {
|
||||
this.itemInfo = params
|
||||
}
|
||||
this.handleClick(params)
|
||||
this.$forceUpdate()
|
||||
console.log('this.itemInfo: ', this.itemInfo)
|
||||
console.log('this.list: ', this.list)
|
||||
@ -345,8 +346,7 @@ export default {
|
||||
}
|
||||
}
|
||||
&-contant:hover{
|
||||
background: @fontBlue;
|
||||
color: #fff;
|
||||
background: rgb(236, 246, 253);
|
||||
.close{
|
||||
display: block;
|
||||
}
|
||||
|
||||
@ -37,7 +37,7 @@ export default {
|
||||
beforeMount () {},
|
||||
mounted () {
|
||||
this.form = Object.assign({}, this.info)
|
||||
this.form.chartDetails.recordSimpleDtos = [
|
||||
this.form.chartDetails.recordSimpleDtos = this.form.chartDetails.recordSimpleDtos.length ? this.form.chartDetails.recordSimpleDtos : [
|
||||
{
|
||||
optType: -1
|
||||
}
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
<template>
|
||||
<div class="confirm">
|
||||
<div class="confirm-top">
|
||||
<div style="padding:0 0 10px 0;" class='commonFont'>互评配置</div>
|
||||
<div style="padding:0 0 10px 0;" class='commonFont'>评分配置</div>
|
||||
<div class="commonFont" style="padding:0 0 20px 0">启用:<el-switch v-model="form.chartDetails.status" :disabled='info.status===0' active-color="#3ba1ff" :active-value='1' :inactive-value='0' inactive-color="#dcdfe6"></el-switch></div>
|
||||
<div v-show="isShow" class="commonFont">由谁确认:</div>
|
||||
<div v-show="isShow" class="confirm-top-queren">
|
||||
|
||||
@ -214,6 +214,7 @@ export default {
|
||||
if (this.handleGetList().length === 2) {
|
||||
this.itemInfo = params
|
||||
}
|
||||
this.handleClick(params)
|
||||
this.$forceUpdate()
|
||||
console.log('this.itemInfo: ', this.itemInfo)
|
||||
console.log('this.list: ', this.list)
|
||||
@ -343,8 +344,7 @@ export default {
|
||||
}
|
||||
}
|
||||
&-contant:hover{
|
||||
background: @fontBlue;
|
||||
color: #fff;
|
||||
background: rgb(236, 246, 253);
|
||||
.close{
|
||||
display: block;
|
||||
}
|
||||
|
||||
@ -20,7 +20,7 @@ export default {
|
||||
beforeMount () {},
|
||||
mounted () {
|
||||
const params = JSON.parse(JSON.stringify(this.info))
|
||||
params.chartDetails.recordSimpleDtos = [this.form]
|
||||
params.chartDetails.recordSimpleDtos = params.chartDetails.recordSimpleDtos.length ? params.chartDetails.recordSimpleDtos : [this.form]
|
||||
this.$emit('update:info', params)
|
||||
},
|
||||
methods: {},
|
||||
|
||||
@ -27,7 +27,7 @@ const islzmanagement = window.location.host.indexOf('hostList') > -1 && window.l
|
||||
export default {
|
||||
data () {
|
||||
return {
|
||||
isShow: false,
|
||||
isShow: true,
|
||||
islzmanagement,
|
||||
input: localStorage.getItem('input'),
|
||||
verify: '888888',
|
||||
@ -53,7 +53,7 @@ export default {
|
||||
if (res.code === 200) {
|
||||
this.token = res.token
|
||||
this.$cookies.set('token', res.token, res.expire)
|
||||
history.go(0)
|
||||
location.reload()
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user