This commit is contained in:
熊成强 2020-11-05 14:44:07 +08:00
parent d936130edd
commit 41ed494630
10 changed files with 17 additions and 45 deletions

View File

@ -36,7 +36,7 @@
<el-table-column <el-table-column
label="全选" label="全选"
width="250" 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 <el-table-column
width="80" width="80"
align="right" align="right"
@ -136,7 +136,7 @@ export default {
}, },
methods: { methods: {
checkSelectable (row, index) { checkSelectable (row, index) {
return !this.nOSec && row.score === 1 return !this.nOSec && row.score === 0
}, },
handlePopupCreat () { handlePopupCreat () {
this.$emit('update:showChooseList', false) this.$emit('update:showChooseList', false)

View File

@ -79,7 +79,7 @@ export function departGetForm (arr = []) {
export function handleInput (form) { export function handleInput (form) {
let value = this[form.split('.')[0]][form.split('.')[1]] let value = this[form.split('.')[0]][form.split('.')[1]]
value = String(value) if (String(value).split('.').length > 2) value = String(parseFloat(value))
if (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]] = Number(value) > 100 ? 0 : value.replace(/[^.\d]/g, '') this[form.split('.')[0]][form.split('.')[1]] = String(a)
} }

View File

@ -110,35 +110,7 @@ export default {
form: { form: {
cycleType: '' cycleType: ''
}, },
tableData: [{ 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'
}]
} }
}, },
computed: {}, computed: {},

View File

@ -209,6 +209,7 @@ export default {
if (this.handleGetList().length === 2) { if (this.handleGetList().length === 2) {
this.itemInfo = params this.itemInfo = params
} }
this.handleClick(params)
this.$forceUpdate() this.$forceUpdate()
console.log('this.itemInfo: ', this.itemInfo) console.log('this.itemInfo: ', this.itemInfo)
console.log('this.list: ', this.list) console.log('this.list: ', this.list)
@ -333,8 +334,7 @@ export default {
} }
} }
&-contant:hover{ &-contant:hover{
background: @fontBlue; background: rgb(236, 246, 253);
color: #fff;
.close{ .close{
display: block; display: block;
} }

View File

@ -216,6 +216,7 @@ export default {
if (this.handleGetList().length === 2) { if (this.handleGetList().length === 2) {
this.itemInfo = params this.itemInfo = params
} }
this.handleClick(params)
this.$forceUpdate() this.$forceUpdate()
console.log('this.itemInfo: ', this.itemInfo) console.log('this.itemInfo: ', this.itemInfo)
console.log('this.list: ', this.list) console.log('this.list: ', this.list)
@ -345,8 +346,7 @@ export default {
} }
} }
&-contant:hover{ &-contant:hover{
background: @fontBlue; background: rgb(236, 246, 253);
color: #fff;
.close{ .close{
display: block; display: block;
} }

View File

@ -37,7 +37,7 @@ export default {
beforeMount () {}, beforeMount () {},
mounted () { mounted () {
this.form = Object.assign({}, this.info) 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 optType: -1
} }

View File

@ -2,7 +2,7 @@
<template> <template>
<div class="confirm"> <div class="confirm">
<div class="confirm-top"> <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 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="commonFont">由谁确认</div>
<div v-show="isShow" class="confirm-top-queren"> <div v-show="isShow" class="confirm-top-queren">

View File

@ -214,6 +214,7 @@ export default {
if (this.handleGetList().length === 2) { if (this.handleGetList().length === 2) {
this.itemInfo = params this.itemInfo = params
} }
this.handleClick(params)
this.$forceUpdate() this.$forceUpdate()
console.log('this.itemInfo: ', this.itemInfo) console.log('this.itemInfo: ', this.itemInfo)
console.log('this.list: ', this.list) console.log('this.list: ', this.list)
@ -343,8 +344,7 @@ export default {
} }
} }
&-contant:hover{ &-contant:hover{
background: @fontBlue; background: rgb(236, 246, 253);
color: #fff;
.close{ .close{
display: block; display: block;
} }

View File

@ -20,7 +20,7 @@ export default {
beforeMount () {}, beforeMount () {},
mounted () { mounted () {
const params = JSON.parse(JSON.stringify(this.info)) 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) this.$emit('update:info', params)
}, },
methods: {}, methods: {},

View File

@ -27,7 +27,7 @@ const islzmanagement = window.location.host.indexOf('hostList') > -1 && window.l
export default { export default {
data () { data () {
return { return {
isShow: false, isShow: true,
islzmanagement, islzmanagement,
input: localStorage.getItem('input'), input: localStorage.getItem('input'),
verify: '888888', verify: '888888',
@ -53,7 +53,7 @@ export default {
if (res.code === 200) { if (res.code === 200) {
this.token = res.token this.token = res.token
this.$cookies.set('token', res.token, res.expire) this.$cookies.set('token', res.token, res.expire)
history.go(0) location.reload()
} }
} }
}, },