* 'v_1.0.0' of http://gitlab.ldxinyong.com/enterpriseManagement/digitization-ui:
  优化
This commit is contained in:
leave 2020-11-06 17:29:42 +08:00
commit 1703edf095
3 changed files with 18 additions and 7 deletions

View File

@ -33,7 +33,7 @@
</pre> </pre>
</div> </div>
<div v-if="tableInfo.result || auth.showResult"> <div v-if="tableInfo.result || auth.showResult">
<el-input v-if="tableInfo.result" type="textarea" style="width:120px;" size="mini" placeholder="请输入内容" v-model="child.checkResult" clearable></el-input> <el-input v-if="tableInfo.result" type="textarea" size="mini" placeholder="请输入内容" v-model="child.checkResult" clearable></el-input>
<pre v-else>{{child.checkResult || '--'}}</pre> <pre v-else>{{child.checkResult || '--'}}</pre>
</div> </div>
<div class="quanzhomng" style="flex:none;"> <div class="quanzhomng" style="flex:none;">
@ -50,7 +50,7 @@
</el-option> </el-option>
</el-select> </el-select>
<el-input v-if="tableInfo.score && obj.gradeGroupId===2" style="width:120px;" size="mini" placeholder="请输入评分值" v-model="child.superScore" clearable></el-input> <el-input v-if="tableInfo.score && obj.gradeGroupId===2" style="width:120px;" size="mini" placeholder="请输入评分值" v-model="child.superScore" clearable></el-input>
<span v-if="!tableInfo.score">{{child.scoreDtos[child.scoreDtos.length-1].acquireScore || 0}}</span> <span v-if="!tableInfo.score">{{handleScore(child.scoreDtos[child.scoreDtos.length-1].acquireScore)}}</span>
</div> </div>
<div style="padding:10px;" v-if="tableInfo.score || auth.showScore"> <div style="padding:10px;" v-if="tableInfo.score || auth.showScore">
<el-input v-if="tableInfo.score" style="width:200px;" size="mini" type="textarea" placeholder="请输入内容" v-model="child.scoreComment" clearable></el-input> <el-input v-if="tableInfo.score" style="width:200px;" size="mini" type="textarea" placeholder="请输入内容" v-model="child.scoreComment" clearable></el-input>
@ -139,6 +139,10 @@ export default {
this.handleGrt375() this.handleGrt375()
}, },
methods: { methods: {
handleScore (item) {
console.log('this.scoreList: ', this.scoreList)
return this.scoreList.filter(i => i.score === item).length > 0 ? this.scoreList.filter(i => i.score === item)[0].name : 0
},
async handleGetNext () { async handleGetNext () {
this.loadingTi = true this.loadingTi = true
let res1 = await apiSaveDetail(this.obj) let res1 = await apiSaveDetail(this.obj)
@ -150,7 +154,7 @@ export default {
const obj = {status: 1, menuName: this.tableInfo.result ? '提交了结果值' : '提交了评分'} const obj = {status: 1, menuName: this.tableInfo.result ? '提交了结果值' : '提交了评分'}
const params = Object.assign({}, {resultRecordId: this.$route.query.id || ''}, obj) const params = Object.assign({}, {resultRecordId: this.$route.query.id || ''}, obj)
let res = await apiSaveapproval(params) let res = await apiSaveapproval(params)
this.this.loadingTi = false this.loadingTi = false
if (res.code !== 200) { if (res.code !== 200) {
this.$message.error(res.msg) this.$message.error(res.msg)
return return
@ -276,6 +280,7 @@ export default {
} }
.table-left{ .table-left{
width: 60px; width: 60px;
text-align: center;
} }
.quanzhomng{ .quanzhomng{
width: 100px !important; width: 100px !important;

View File

@ -76,7 +76,7 @@
:obj='obj' :obj='obj'
/> />
</div> </div>
<div v-if="formList.resultCommentList" class="performance-content-jilu"> <div v-if="formList.resultCommentList.length !== 0" class="performance-content-jilu">
<div class="performance-content-jilu-title commonFont"> <div class="performance-content-jilu-title commonFont">
记录 记录
</div> </div>

View File

@ -37,6 +37,7 @@
<div>{{ assessItem.num }}</div> <div>{{ assessItem.num }}</div>
</div> </div>
</li> </li>
<li class="zanwu commonFont" v-if="assessNum.length === 0">暂无数据</li>
</ul> </ul>
</div> </div>
</div> </div>
@ -219,7 +220,7 @@ export default {
}, },
methods: { methods: {
handleJump (item) { handleJump (item) {
this.$router.push({name: 'assessment-stepList', query: {id: 10, step: item.flowProcess}}) this.$router.push({name: 'assessment-stepList', query: {id: this.startId, step: item.flowProcess}})
}, },
// //
handleliColor (val) { handleliColor (val) {
@ -348,7 +349,7 @@ export default {
} }
</script> </script>
<style lang='' scoped> <style lang='less' scoped>
.report_index{ .report_index{
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -425,7 +426,12 @@ export default {
.num_report_list{ .num_report_list{
margin-top: 20px; margin-top: 20px;
height: 360px; height: 360px;
overflow:auto overflow:auto;
.zanwu{
.center();
height: 200px;
width: 100%;
}
} }
.rep_list{ .rep_list{
width: 200px; width: 200px;