优化
This commit is contained in:
parent
72b33afce9
commit
83244fe4dd
@ -29,6 +29,7 @@
|
|||||||
import getPersonnel from '@/components/getPersonnel'
|
import getPersonnel from '@/components/getPersonnel'
|
||||||
import PopupRight from '@/components/PopupRight'
|
import PopupRight from '@/components/PopupRight'
|
||||||
export default {
|
export default {
|
||||||
|
props: ['tableInfo'],
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
bohui: false,
|
bohui: false,
|
||||||
@ -49,7 +50,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
// 结果值录入
|
// 结果值录入
|
||||||
handleJieguo () {
|
handleJieguo () {
|
||||||
|
this.$emit('update:tableInfo', Object.assign({}, this.tableInfo, {result: true}))
|
||||||
},
|
},
|
||||||
// 开始评分
|
// 开始评分
|
||||||
handlePingfen () {
|
handlePingfen () {
|
||||||
|
|||||||
@ -8,10 +8,10 @@
|
|||||||
<th>维度</th>
|
<th>维度</th>
|
||||||
<th>名称</th>
|
<th>名称</th>
|
||||||
<th>考核标准</th>
|
<th>考核标准</th>
|
||||||
<th>结果值</th>
|
<th v-if="tableInfo.result">结果值</th>
|
||||||
<th>权重({{obj.weight*100}}%)</th>
|
<th>权重({{obj.weight*100}}%)</th>
|
||||||
<th>上级评分</th>
|
<th v-if="tableInfo.score">上级评分</th>
|
||||||
<th>评分说明</th>
|
<th v-if="tableInfo.score">评分说明</th>
|
||||||
</tr>
|
</tr>
|
||||||
<!-- 暂无数据时显示 -->
|
<!-- 暂无数据时显示 -->
|
||||||
<tr v-if="obj.recortModelDtos.length === 0">
|
<tr v-if="obj.recortModelDtos.length === 0">
|
||||||
@ -26,31 +26,31 @@
|
|||||||
<td :rowspan="item.detailDtos.length+1">{{item.name}}</td>
|
<td :rowspan="item.detailDtos.length+1">{{item.name}}</td>
|
||||||
<td v-if="item.detailDtos.length===0"></td>
|
<td v-if="item.detailDtos.length===0"></td>
|
||||||
<td v-if="item.detailDtos.length===0"></td>
|
<td v-if="item.detailDtos.length===0"></td>
|
||||||
<td v-if="item.detailDtos.length===0"></td>
|
<td v-if="item.detailDtos.length===0 && tableInfo.score"></td>
|
||||||
<td v-if="item.detailDtos.length===0"></td>
|
<td v-if="item.detailDtos.length===0 && tableInfo.score"></td>
|
||||||
<td v-if="item.detailDtos.length===0"></td>
|
<td v-if="item.detailDtos.length===0 && tableInfo.result"></td>
|
||||||
<td v-if="item.detailDtos.length===0"></td>
|
<td v-if="item.detailDtos.length===0"></td>
|
||||||
</tr>
|
</tr>
|
||||||
<!-- 右侧数据 -->
|
<!-- 右侧数据 -->
|
||||||
<tr v-for="(child,index1) in item.detailDtos" :key="index1">
|
<tr v-for="(child) in item.detailDtos" :key="child.target">
|
||||||
<td>
|
<td>
|
||||||
{{child.target}}
|
{{child.target || ''}}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{{child.keyResult}}
|
{{child.keyResult || ''}}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td v-if="tableInfo.result">
|
||||||
<span>{{child.checkResult || '--'}}</span>
|
<span>{{child.checkResult || '--'}}</span>
|
||||||
<el-input type="textarea" placeholder="请输入内容" v-model="child.checkResulted" clearable></el-input>
|
<el-input type="textarea" placeholder="请输入内容" v-model="child.checkResulted" clearable></el-input>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{{child.checkWeight*100}}%
|
{{(child.checkWeight)*100}}%
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td v-if="tableInfo.score">
|
||||||
<span>{{child.superScore || '--'}}</span>
|
<span>{{child.superScore || '--'}}</span>
|
||||||
<el-input type="textarea" placeholder="请输入内容" v-model="child.superScoreed" clearable></el-input>
|
<el-input type="textarea" placeholder="请输入内容" v-model="child.superScoreed" clearable></el-input>
|
||||||
</td>
|
</td>
|
||||||
<td style="padding:10px;">
|
<td style="padding:10px;" v-if="tableInfo.score">
|
||||||
<span>{{child.scoreComment || '--'}}</span>
|
<span>{{child.scoreComment || '--'}}</span>
|
||||||
<el-input type="textarea" placeholder="请输入内容" v-model="child.scoreCommented" clearable></el-input>
|
<el-input type="textarea" placeholder="请输入内容" v-model="child.scoreCommented" clearable></el-input>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
departmentName:obj.departmentName
|
departmentName:obj.departmentName
|
||||||
}" />
|
}" />
|
||||||
<div class="performance-content-title-right">
|
<div class="performance-content-title-right">
|
||||||
<UseButton />
|
<UseButton :tableInfo.sync='tableInfo'/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="performance-content-center">
|
<div class="performance-content-center">
|
||||||
@ -68,7 +68,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="performance-content-bottom">
|
<div class="performance-content-bottom">
|
||||||
<tables
|
<tables
|
||||||
:tableInfo='tableInfo'
|
:tableInfo.sync='tableInfo'
|
||||||
v-if="obj.recortModelDtos.length !==0"
|
v-if="obj.recortModelDtos.length !==0"
|
||||||
:obj='obj'
|
:obj='obj'
|
||||||
/>
|
/>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user