|
@@ -56,6 +56,10 @@
|
|
|
</el-tag>
|
|
|
</div>
|
|
|
<div class="headerRight">
|
|
|
+ <div class="seachFor">
|
|
|
+ <el-input v-model="compNameSa" placeholder="请输入单位名称"></el-input>
|
|
|
+ <el-icon :size="20" color="#3B7AD1" @click="getTableData(isClickTagId)"><Search /></el-icon>
|
|
|
+ </div>
|
|
|
<div class="tableBtn add" @click="addTableDetail"
|
|
|
v-if="(activeName === 'ZDZX' || activeName === 'GLSX') && indicatorList.length > 0">
|
|
|
<img :src="addIcon" alt="">
|
|
@@ -84,7 +88,8 @@
|
|
|
<el-table-column type="index" label="排名" align="center"></el-table-column>
|
|
|
<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">
|
|
|
+ <el-table-column v-for="(iv, index) in it.children" :key="index" :label="iv.key"
|
|
|
+ align="center" :width="iv.code === 'state'?'150':''">
|
|
|
<template #default="scope">
|
|
|
<el-select v-model="scope.row[iv.code]" placeholder="请选择审核状态" v-if="scope.row['IS_LH_'+iv.code] === '3'">
|
|
|
<el-option
|
|
@@ -95,7 +100,7 @@
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
<el-input v-model="scope.row[iv.code]" v-else-if="scope.row['IS_LH_'+iv.code] === '2'"></el-input>
|
|
|
- <el-input-number v-model="scope.row[iv.code]" v-else />
|
|
|
+ <el-input-number v-model="scope.row[iv.code]" :precision="2" :step="0.1" v-else />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table-column>
|
|
@@ -134,7 +139,7 @@
|
|
|
|
|
|
<script>
|
|
|
import importDailog from '../importPage/importDailog.vue'
|
|
|
-import {apiGetEvaluationIndicatorList,apiGetgetEvaluationInfoDataList,apiGetbinsectionList, apiGetbinstageList,
|
|
|
+import {apiGetEvaluationIndicatorList,apiGetgetEvaluationInfoDataList,apiGetbinsectionList, apiGetbinstageList,apiGetExportMsg,
|
|
|
apiPostorganizationUpdateEvaluationInfo, apiPostorganizationUpdateAddEvaluationInfo,apiGetHeaderOrganizationEvaluation,
|
|
|
apiGetHeaderDeptResponsibility, apiPostgetInstanceAndChildren, apiPostIsdoAction} from '../../api/api'
|
|
|
import * as XLSX from 'xlsx'
|
|
@@ -162,6 +167,7 @@ export default {
|
|
|
monthQuarterYearHeader: [],
|
|
|
indicatorList: [],
|
|
|
isClickTagId: '',
|
|
|
+ compNameSa: '',
|
|
|
receiptMsg: {
|
|
|
code: '',
|
|
|
des: '',
|
|
@@ -337,7 +343,8 @@ export default {
|
|
|
let that = this
|
|
|
let params = {
|
|
|
organizationEvaluationId: that.tastbizKey,
|
|
|
- indicatorId: id
|
|
|
+ indicatorId: id,
|
|
|
+ organizationShortName: that.compNameSa
|
|
|
}
|
|
|
apiGetgetEvaluationInfoDataList(params).then(datas =>{
|
|
|
if (datas && datas.data) {
|
|
@@ -484,28 +491,18 @@ export default {
|
|
|
that.getTableData(that.isClickTagId)
|
|
|
},
|
|
|
handleExport() {
|
|
|
- let indexvs = 0
|
|
|
- this.stageData.forEach((it, index) =>{
|
|
|
- if (it.stageCode === this.activeName) {
|
|
|
- indexvs = index
|
|
|
- }
|
|
|
- })
|
|
|
- let $e = this.$refs.monthQuarterYearTT[indexvs].$el
|
|
|
- try {
|
|
|
- let $table = $e.querySelector('.el-table__fixed')
|
|
|
- if(!$table) {
|
|
|
- $table = $e
|
|
|
- }
|
|
|
- const wb = XLSX.utils.table_to_book($table, {raw:true})
|
|
|
-
|
|
|
- const wbout = XLSXD.write(wb, {bookType: 'xlsx', bookSST:true, type: 'array'})
|
|
|
- saveAs(
|
|
|
- new Blob([wbout],{type: 'application/octet-stream'}),
|
|
|
- `考评详情数据导出.xlsx`,
|
|
|
- )
|
|
|
- } catch (e) {
|
|
|
- if (typeof console !== 'undefined') console.error(e)
|
|
|
+ let that = this
|
|
|
+ let url = 'organization-evaluation-info/download-excel'
|
|
|
+ let params = {
|
|
|
+ organizationEvaluationId: that.rowMsg.id,
|
|
|
+ indicatorId: that.isClickTagId
|
|
|
}
|
|
|
+ apiGetExportMsg(url,params).then(datas =>{
|
|
|
+ let blob = new Blob([datas])
|
|
|
+ saveAs(blob, '考评详情数据导出.xlsx')
|
|
|
+ }).catch((r) => {
|
|
|
+ console.error(r)
|
|
|
+ })
|
|
|
},
|
|
|
examineAndApprove(type) {
|
|
|
let that = this
|
|
@@ -666,10 +663,28 @@ export default {
|
|
|
justify-content: end;
|
|
|
width: 20%;
|
|
|
margin-bottom: 5px;
|
|
|
+ .seachFor{
|
|
|
+ display: flex;
|
|
|
+ .el-input{
|
|
|
+ height: 30px;
|
|
|
+ .el-input__inner{
|
|
|
+ height:30px;
|
|
|
+ }
|
|
|
+ .el-input__suffix{
|
|
|
+ .el-select__caret{
|
|
|
+ line-height:30px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .el-icon{
|
|
|
+ margin: 5px 10px 0 10px;
|
|
|
+ cursor: pointer;
|
|
|
+ }
|
|
|
+ }
|
|
|
.tableBtn {
|
|
|
display: flex;
|
|
|
height: 20px;
|
|
|
- margin: 0 10px;
|
|
|
+ margin: 5px 10px 0 10px;
|
|
|
img{
|
|
|
margin-right: 5px;
|
|
|
margin-top: 1px;
|