|
@@ -2,13 +2,28 @@
|
|
|
<div>
|
|
|
<!-- 评估项 -->
|
|
|
<div>
|
|
|
- <tableLayout :layout="tablecolsItem" :data="listItem" :opwidth="200" :custom="true" @rowClick="rowClick">
|
|
|
- <template v-slot:customcol="scope">
|
|
|
- <p>{{scope.column.data[scope.column.columnname]}}</p>
|
|
|
- </template>
|
|
|
- <template v-slot:opreation="scope">
|
|
|
- </template>
|
|
|
- </tableLayout>
|
|
|
+ <el-table
|
|
|
+ :header-cell-style="{background:'#EEEEEE',color:'#333'}"
|
|
|
+ style="width: 100%"
|
|
|
+ size="mini"
|
|
|
+ border
|
|
|
+ ref="listItem" :layout="tablecolsItem" :data="listItem" :opwidth="200" :custom="true" @row-click="rowClick"
|
|
|
+ >
|
|
|
+ <el-table-column
|
|
|
+ prop="optionname"
|
|
|
+ label="评估项"
|
|
|
+ >
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="remarks"
|
|
|
+ label="描述"
|
|
|
+ >
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="score"
|
|
|
+ label="独立项分值">
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
</div>
|
|
|
<!-- 关联对象 -->
|
|
|
<div style="margin-top: 20px" v-if="flag">
|
|
@@ -95,18 +110,30 @@ export default {
|
|
|
}
|
|
|
console.log(this.flag,this.flagObject,this.flagStage)
|
|
|
},
|
|
|
-
|
|
|
+ },
|
|
|
+ mounted() {
|
|
|
+ this.$nextTick(()=>{
|
|
|
+ this.$refs['listItem'].setCurrentRow(this.listItem[0])
|
|
|
+ })
|
|
|
},
|
|
|
created() {
|
|
|
this.tablecolsItem = this.tool.tabelCol(this.$route.name).evaluationItems.tablecols
|
|
|
this.listItem = this.data.projtaskmag_options
|
|
|
- this.listObject = []
|
|
|
-
|
|
|
-
|
|
|
+ console.log(this.data)
|
|
|
+ if (this.data.onstage === 0 && this.data.onparties === 0){
|
|
|
+ this.listObject = []
|
|
|
+ }else {
|
|
|
+ this.listObject = this.data.projtaskmag_options[0].projtaskmag_optionscore
|
|
|
+ this.rowClick(this.data.projtaskmag_options[0])
|
|
|
+ }
|
|
|
},
|
|
|
}
|
|
|
</script>
|
|
|
-
|
|
|
+<style>
|
|
|
+.el-table .success-row {
|
|
|
+ background: #fafafa;
|
|
|
+}
|
|
|
+</style>
|
|
|
<style scoped>
|
|
|
|
|
|
</style>
|