|
@@ -56,6 +56,14 @@
|
|
|
</el-tag>
|
|
|
</div>
|
|
|
<div class="headerRight">
|
|
|
+ <div class="tableBtn add" @click="addTableDetail" v-if="activeName === 'ZDZX' || activeName === 'GLSX'">
|
|
|
+ <img :src="addIcon" alt="">
|
|
|
+ <span>新增</span>
|
|
|
+ </div>
|
|
|
+ <div class="tableBtn save" @click="saveDetail">
|
|
|
+ <img :src="saveIcon" alt="">
|
|
|
+ <span>保存</span>
|
|
|
+ </div>
|
|
|
<div class="tableBtn import" @click="handleImport">
|
|
|
<img :src="importIcon" alt="">
|
|
|
<span>导入</span>
|
|
@@ -68,13 +76,16 @@
|
|
|
</div>
|
|
|
<el-table :data="monthQuarterYearData" style="width: 100%" ref="monthQuarterYearTT" :border="true" >
|
|
|
<el-table-column type="index" label="排名" align="center"></el-table-column>
|
|
|
- <el-table-column label="考评单位" prop="organizationShortName" width="200" />
|
|
|
+ <el-table-column label="考评单位" prop="organizationShortName" width="300" />
|
|
|
<el-table-column v-for="(it, index) in monthQuarterYearHeader" :key="index" :label="it.name" align="center">
|
|
|
<el-table-column v-for="(iv, index) in it.children" :key="index" :label="iv.key" align="center">
|
|
|
<template #default="scope">
|
|
|
- <span
|
|
|
+ <!-- <span
|
|
|
style="font-weight: bold"
|
|
|
- :style="scope.row[iv.code+'_flag'] === '1'?'color:#3B7AD1': scope.row[iv.code+'_flag'] === '-1'?'color:#F65177':'color:#666666'">{{scope.row[iv.code]}}</span>
|
|
|
+ :style="scope.row[iv.code+'_flag'] === '1'?'color:#3B7AD1': scope.row[iv.code+'_flag'] === '-1'?'color:#F65177':'color:#666666'">
|
|
|
+ {{scope.row[iv.code]}}
|
|
|
+ </span> -->
|
|
|
+ <el-input-number v-model="scope.row[iv.code]" :min="0" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table-column>
|
|
@@ -103,7 +114,8 @@
|
|
|
|
|
|
<script>
|
|
|
import importDailog from '../importPage/importDailog.vue'
|
|
|
-import {apiGetEvaluationIndicatorList,apiGetgetEvaluationInfoDataList,apiGetbinsectionList, apiGetbinstageList} from '../../api/api'
|
|
|
+import {apiGetEvaluationIndicatorList,apiGetgetEvaluationInfoDataList,apiGetbinsectionList, apiGetbinstageList,
|
|
|
+apiPostorganizationUpdateEvaluationInfo} from '../../api/api'
|
|
|
import * as XLSX from 'xlsx'
|
|
|
import { saveAs } from 'file-saver'
|
|
|
import * as XLSXD from 'xlsx-js-style'
|
|
@@ -122,6 +134,8 @@ import meiCha from '../../assets/benchmarkImg/meiCha.png'
|
|
|
import guoCha from '../../assets/benchmarkImg/guoCha.png'
|
|
|
import zongCha from '../../assets/benchmarkImg/zongCha.png'
|
|
|
|
|
|
+import addIcon from '../../assets/btnIcon/add.png'
|
|
|
+import saveIcon from '../../assets/btnIcon/save.png'
|
|
|
import exportIcon from '../../assets/btnIcon/export.png'
|
|
|
import importIcon from '../../assets/btnIcon/import.png'
|
|
|
|
|
@@ -152,6 +166,8 @@ export default {
|
|
|
stageData: [],
|
|
|
titleMsgArr: [],
|
|
|
binSectionStr: '',
|
|
|
+ addIcon: addIcon,
|
|
|
+ saveIcon: saveIcon,
|
|
|
exportIcon: exportIcon,
|
|
|
importIcon: importIcon,
|
|
|
}
|
|
@@ -321,6 +337,14 @@ export default {
|
|
|
})
|
|
|
this.getTableHeaderData(stageId)
|
|
|
},
|
|
|
+ saveDetail() {
|
|
|
+ let that = this
|
|
|
+ apiPostorganizationUpdateEvaluationInfo(that.monthQuarterYearData).then(datas =>{
|
|
|
+ if (datas) {
|
|
|
+ that.getTableData(that.isClickTagId)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
handleImport() {
|
|
|
this.$refs.importPage.upload.title = "考评详情信息导入"
|
|
|
this.$refs.importPage.upload.open = true
|
|
@@ -465,7 +489,7 @@ export default {
|
|
|
.headerRight{
|
|
|
display: flex;
|
|
|
justify-content: end;
|
|
|
- width: 15%;
|
|
|
+ width: 20%;
|
|
|
margin-bottom: 5px;
|
|
|
.tableBtn {
|
|
|
display: flex;
|
|
@@ -481,6 +505,18 @@ export default {
|
|
|
font-weight: 400;
|
|
|
}
|
|
|
}
|
|
|
+ .add{
|
|
|
+ cursor: pointer;
|
|
|
+ span{
|
|
|
+ color: #3B7AD1;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .save{
|
|
|
+ cursor: pointer;
|
|
|
+ span{
|
|
|
+ color: #50C14E;
|
|
|
+ }
|
|
|
+ }
|
|
|
.import{
|
|
|
cursor: pointer;
|
|
|
span{
|