Browse Source

导出

master
YF-yuan 3 years ago
parent
commit
66864a06ac
30 changed files with 479 additions and 218 deletions
  1. +5
    -1
      src/views/assessingTarget/basicTarget.vue
  2. +5
    -1
      src/views/assessingTarget/constraint.vue
  3. +5
    -1
      src/views/assessingTarget/reward.vue
  4. +23
    -20
      src/views/assessingTarget/taskTable.vue
  5. +7
    -3
      src/views/chain/coordinationManage/applyCooperation.vue
  6. +15
    -7
      src/views/chain/coordinationManage/approvalCooperation.vue
  7. +13
    -5
      src/views/second/assessmentResults/results/basicTarget.vue
  8. +12
    -5
      src/views/second/assessmentResults/results/constraint.vue
  9. +12
    -4
      src/views/second/assessmentResults/results/reward.vue
  10. +58
    -34
      src/views/second/assessmentResults/scoreRules/constraint.vue
  11. +50
    -27
      src/views/second/assessmentResults/scoreRules/reward.vue
  12. +19
    -9
      src/views/second/coordinationManage/applyCooperation/basicTarget.vue
  13. +19
    -8
      src/views/second/coordinationManage/applyCooperation/constraint.vue
  14. +19
    -8
      src/views/second/coordinationManage/applyCooperation/reward.vue
  15. +22
    -9
      src/views/second/coordinationManage/approvalCooperation/basicTarget.vue
  16. +22
    -8
      src/views/second/coordinationManage/approvalCooperation/constraint.vue
  17. +22
    -8
      src/views/second/coordinationManage/approvalCooperation/reward.vue
  18. +6
    -2
      src/views/second/coordinationManage/cooperateList/basicTarget.vue
  19. +5
    -1
      src/views/second/coordinationManage/cooperateList/constraint.vue
  20. +5
    -1
      src/views/second/coordinationManage/cooperateList/reward.vue
  21. +11
    -5
      src/views/second/segmentation/basicTable.vue
  22. +8
    -2
      src/views/second/segmentation/constraint.vue
  23. +5
    -5
      src/views/second/segmentation/contentDetail.vue
  24. +8
    -2
      src/views/second/segmentation/reward.vue
  25. +37
    -14
      src/views/second/taskSummary/basicTable.vue
  26. +19
    -7
      src/views/second/taskSummary/constraint.vue
  27. +19
    -7
      src/views/second/taskSummary/reward.vue
  28. +11
    -5
      src/views/summary/basicTarget.vue
  29. +6
    -4
      src/views/summary/constraint.vue
  30. +11
    -5
      src/views/summary/reward.vue

+ 5
- 1
src/views/assessingTarget/basicTarget.vue View File

align="center" align="center"
prop="leaderUnit" prop="leaderUnit"
:key="6" :key="6"
></el-table-column>
>
<template slot-scope="{row}">
<pre>{{row.leaderUnit}}</pre>
</template>
</el-table-column>


<el-table-column <el-table-column
label="牵头部门" label="牵头部门"

+ 5
- 1
src/views/assessingTarget/constraint.vue View File

align="center" align="center"
prop="leaderUnit" prop="leaderUnit"
:key="4" :key="4"
></el-table-column>
>
<template slot-scope="{ row }">
<pre>{{ row.leaderUnit }}</pre>
</template>
</el-table-column>
<el-table-column <el-table-column
label="牵头部门" label="牵头部门"
min-width="80" min-width="80"

+ 5
- 1
src/views/assessingTarget/reward.vue View File

align="center" align="center"
prop="leaderUnit" prop="leaderUnit"
:key="6" :key="6"
></el-table-column>
>
<template slot-scope="{ row }">
<pre>{{ row.leaderUnit }}</pre>
</template>
</el-table-column>
<el-table-column <el-table-column
label="牵头部门" label="牵头部门"
min-width="80" min-width="80"

+ 23
- 20
src/views/assessingTarget/taskTable.vue View File

min-width="80" min-width="80"
align="center" align="center"
prop="leaderUnit" prop="leaderUnit"
></el-table-column>
>
<template slot-scope="{ row }">
<pre>{{ row.leaderUnit }}</pre>
</template>
</el-table-column>
<el-table-column <el-table-column
label="牵头部门" label="牵头部门"
min-width="80" min-width="80"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="责任领导" label="责任领导"
min-width="80" min-width="80"
align="center" align="center"
prop="leaderPrincipal" prop="leaderPrincipal"
return 1; return 1;
}, },
}, },
count:{
type:[Number,String],
default(){
return 0
}
count: {
type: [Number, String],
default() {
return 0;
},
}, },
loading:{
type:Boolean,
default(){
return false
}
loading: {
type: Boolean,
default() {
return false;
},
}, },
page:{
type:Object,
default(){
page: {
type: Object,
default() {
return { return {
page:1,
limit:10,
}
}
}
page: 1,
limit: 10,
};
},
},
}, },
data() { data() {
return { return {

+ 7
- 3
src/views/chain/coordinationManage/applyCooperation.vue View File

<template> <template>
<div class="apply-cooperation ele-body"> <div class="apply-cooperation ele-body">
<el-card shadow="never" element-loading-background="rgba(255, 255, 255, 1)"> <el-card shadow="never" element-loading-background="rgba(255, 255, 255, 1)">
<search @search:task="updateParams($event)" @export="exportData($event)" :show-export="true"/>
<search
@search:task="updateParams($event)"
@export="exportData($event)"
:show-export="true"
/>
<el-table <el-table
border border
highlight-current-row highlight-current-row
methods: { methods: {
exportData(data){ exportData(data){
this.loading=true; this.loading=true;
api.exportList(Object.assign({sheetName:"链长制配合申请列表", isApply: 1},data)).then(res=>{
if(res.code == 0) {
applyApi.exportList(Object.assign({sheetName:"链长制配合申请列表", isApply: 1},data)).then(res=>{
if(res.data.code == 0) {
window.open(res.data.data); window.open(res.data.data);
this.$message({ this.$message({
type:"success", type:"success",

+ 15
- 7
src/views/chain/coordinationManage/approvalCooperation.vue View File

methods: { methods: {
exportData(data){ exportData(data){
this.loading=true; this.loading=true;
api.exportList(Object.assign({sheetName:"链长制配合申请审核记录", isChecked: 1},data)).then(res=>{
window.open(res.data.data);
this.$message({
type:"success",
message:"导出成功"
})
api.exportList(Object.assign({sheetName:"链长制配合申请审核记录"},data)).then(res=>{
if (res.data.code == 0) {
window.open(res.data.data);
this.$message({
type: "success",
message: "导出成功",
});
}else{
this.$message({
type:"warning",
message:"暂无数据"
})
}
}).catch(e=>{ }).catch(e=>{
this.$message.error("导出失败")
console.log(e)
this.$message.error("暂无数据")
}).finally(()=>{ }).finally(()=>{
this.loading=false; this.loading=false;
}) })

+ 13
- 5
src/views/second/assessmentResults/results/basicTarget.vue View File

width="80 " width="80 "
align="center" align="center"
prop="leaderUnit" prop="leaderUnit"
></el-table-column>
>
<template slot-scope="{ row }">
<pre>{{ row.leaderUnit }}</pre>
</template>
</el-table-column>
<el-table-column label="第一牵头部门" width="120" align="center"> <el-table-column label="第一牵头部门" width="120" align="center">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<pre>{{ row.leaderDeptList | formatList }}</pre> <pre>{{ row.leaderDeptList | formatList }}</pre>
</el-table-column> </el-table-column>
<el-table-column label="牵头部门" width="100" align="center"> <el-table-column label="牵头部门" width="100" align="center">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<span><pre>{{ row.leaderDeptList | formatList }}</pre></span>
<span>
<pre>{{ row.leaderDeptList | formatList }}</pre>
</span>
</template> </template>
</el-table-column> </el-table-column>


</el-table-column> </el-table-column>
<el-table-column label="配合部门" width="100" align="center"> <el-table-column label="配合部门" width="100" align="center">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<span><pre>{{ row.leaderDeptList | formatList }}</pre></span>
<span>
<pre>{{ row.leaderDeptList | formatList }}</pre>
</span>
</template> </template>
</el-table-column> </el-table-column>


<template slot-scope="{ row }"> <template slot-scope="{ row }">
<pre>{{ row.leaderPrincipalList | formatList }}</pre> <pre>{{ row.leaderPrincipalList | formatList }}</pre>
</template> </template>
</el-table-column>
</el-table-column>
</el-table> </el-table>
<el-pagination <el-pagination
:current-page.sync="page.page" :current-page.sync="page.page"
count: 0, count: 0,
showEdit: false, showEdit: false,
loading: false, loading: false,
form:{}
form: {},
}; };
}, },
methods: { methods: {

+ 12
- 5
src/views/second/assessmentResults/results/constraint.vue View File

width="80 " width="80 "
align="center" align="center"
prop="leaderUnit" prop="leaderUnit"
></el-table-column>
>
<template slot-scope="{ row }">
<pre>{{ row.leaderUnit }}</pre>
</template>
</el-table-column>
<el-table-column label="第一牵头部门" width="120" align="center"> <el-table-column label="第一牵头部门" width="120" align="center">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<pre>{{ row.leaderDeptList | formatList }}</pre> <pre>{{ row.leaderDeptList | formatList }}</pre>
</el-table-column> </el-table-column>
<el-table-column label="牵头部门" width="100" align="center"> <el-table-column label="牵头部门" width="100" align="center">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<span><pre>{{ row.leaderDeptList | formatList }}</pre></span>
<span>
<pre>{{ row.leaderDeptList | formatList }}</pre>
</span>
</template> </template>
</el-table-column> </el-table-column>


</el-table-column> </el-table-column>
<el-table-column label="配合部门" width="100" align="center"> <el-table-column label="配合部门" width="100" align="center">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<span><pre>{{ row.leaderDeptList | formatList }}</pre></span>
<span>
<pre>{{ row.leaderDeptList | formatList }}</pre>
</span>
</template> </template>
</el-table-column> </el-table-column>


:flat="true" :flat="true"
@current-change="getDataList()" @current-change="getDataList()"
/> />
</div> </div>
</template> </template>


count: 0, count: 0,
showEdit: false, showEdit: false,
loading: false, loading: false,
form:{}
form: {},
}; };
}, },
methods: { methods: {

+ 12
- 4
src/views/second/assessmentResults/results/reward.vue View File

width="80 " width="80 "
align="center" align="center"
prop="leaderUnit" prop="leaderUnit"
></el-table-column>
>
<template slot-scope="{ row }">
<pre>{{ row.leaderUnit }}</pre>
</template>
</el-table-column>
<el-table-column label="第一牵头部门" width="120" align="center"> <el-table-column label="第一牵头部门" width="120" align="center">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<pre>{{ row.leaderDeptList | formatList }}</pre> <pre>{{ row.leaderDeptList | formatList }}</pre>
</el-table-column> </el-table-column>
<el-table-column label="牵头部门" width="100" align="center"> <el-table-column label="牵头部门" width="100" align="center">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<span><pre>{{ row.leaderDeptList | formatList }}</pre></span>
<span>
<pre>{{ row.leaderDeptList | formatList }}</pre>
</span>
</template> </template>
</el-table-column> </el-table-column>


</el-table-column> </el-table-column>
<el-table-column label="配合部门" width="100" align="center"> <el-table-column label="配合部门" width="100" align="center">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<span><pre>{{ row.leaderDeptList | formatList }}</pre></span>
<span>
<pre>{{ row.leaderDeptList | formatList }}</pre>
</span>
</template> </template>
</el-table-column> </el-table-column>


count: 0, count: 0,
showEdit: false, showEdit: false,
loading: false, loading: false,
form:{}
form: {},
}; };
}, },
methods: { methods: {

+ 58
- 34
src/views/second/assessmentResults/scoreRules/constraint.vue View File

min-width="95 " min-width="95 "
align="center" align="center"
prop="leaderUnit" prop="leaderUnit"
></el-table-column>
<el-table-column label="第一牵头部门" width="120" align="center">
<template slot-scope="{ row }">
<pre>{{ row.leaderDeptList | formatList }}</pre>
</template>
</el-table-column>
<el-table-column label="责任领导" width="80" align="center">
<template slot-scope="{ row }">
<pre>{{ row.leaderPrincipalList | formatList }}</pre>
</template>
</el-table-column>
>
<template slot-scope="{ row }">
<pre>{{ row.leaderUnit }}</pre>
</template>
</el-table-column>
<el-table-column label="第一牵头部门" width="120" align="center">
<template slot-scope="{ row }">
<pre>{{ row.leaderDeptList | formatList }}</pre>
</template>
</el-table-column>
<el-table-column label="责任领导" width="80" align="center">
<template slot-scope="{ row }">
<pre>{{ row.leaderPrincipalList | formatList }}</pre>
</template>
</el-table-column>
<el-table-column label="牵头部门" min-width="80" align="center"> <el-table-column label="牵头部门" min-width="80" align="center">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<span><pre>{{ row.leaderDeptList | formatList }}</pre></span>
<span>
<pre>{{ row.leaderDeptList | formatList }}</pre>
</span>
</template> </template>
</el-table-column> </el-table-column>


</el-table-column> </el-table-column>
<el-table-column label="配合部门" min-width="80" align="center"> <el-table-column label="配合部门" min-width="80" align="center">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<span><pre>{{ row.leaderDeptList | formatList }}</pre></span>
<span>
<pre>{{ row.leaderDeptList | formatList }}</pre>
</span>
</template> </template>
</el-table-column> </el-table-column>


@closed="form = {}" @closed="form = {}"
> >
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="6"><div class="grid-content bg-purple">序号</div></el-col>
<el-col :span="8"><div class="grid-content bg-purple">牵头部门名称</div></el-col>
<el-col :span="10"><div class="grid-content bg-purple">考核得分</div></el-col>
<el-col :span="6"
><div class="grid-content bg-purple">序号</div></el-col
>
<el-col :span="8"
><div class="grid-content bg-purple">牵头部门名称</div></el-col
>
<el-col :span="10"
><div class="grid-content bg-purple">考核得分</div></el-col
>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="6"><div class="grid-content bg-purple">1</div></el-col> <el-col :span="6"><div class="grid-content bg-purple">1</div></el-col>
<el-col :span="8"><div class="grid-content bg-purple">党政办公室</div></el-col>
<el-col :span="8"
><div class="grid-content bg-purple">党政办公室</div></el-col
>
<el-col :span="10"> <el-col :span="10">
<div class="grid-content bg-purple"> <div class="grid-content bg-purple">
<el-input size="mini" v-model="form.leaderPoints"></el-input> <el-input size="mini" v-model="form.leaderPoints"></el-input>
</el-col> </el-col>
</el-row> </el-row>
<el-divider></el-divider> <el-divider></el-divider>
<el-row :gutter="20">
<el-col :span="6"><div class="grid-content bg-purple">序号</div></el-col>
<el-col :span="8"><div class="grid-content bg-purple">配合部门名称</div></el-col>
<el-col :span="10"><div class="grid-content bg-purple">考核得分</div></el-col>
<el-row :gutter="20">
<el-col :span="6"
><div class="grid-content bg-purple">序号</div></el-col
>
<el-col :span="8"
><div class="grid-content bg-purple">配合部门名称</div></el-col
>
<el-col :span="10"
><div class="grid-content bg-purple">考核得分</div></el-col
>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="6"><div class="grid-content bg-purple">1</div></el-col> <el-col :span="6"><div class="grid-content bg-purple">1</div></el-col>
<el-col :span="8"><div class="grid-content bg-purple">党群办公室</div></el-col>
<el-col :span="8"
><div class="grid-content bg-purple">党群办公室</div></el-col
>
<el-col :span="10"> <el-col :span="10">
<div class="grid-content bg-purple"> <div class="grid-content bg-purple">
<el-input size="mini" v-model="form.coorPoints"></el-input> <el-input size="mini" v-model="form.coorPoints"></el-input>
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
<div slot="footer"> <div slot="footer">
<el-button @click="showEdit = false">取消</el-button>&nbsp; <el-button @click="showEdit = false">取消</el-button>&nbsp;
<el-button type="primary" @click="save">保存</el-button> <el-button type="primary" @click="save">保存</el-button>
count: 0, count: 0,
showEdit: false, showEdit: false,
loading: false, loading: false,
form:{}
form: {},
}; };
}, },
methods: { methods: {
</script> </script>


<style scoped> <style scoped>
/deep/.el-dialog__body {
padding: 10px 20px;
}
.el-row {
height: 45px;
line-height: 45px;
}
.el-divider {
margin: 10px 0px;
}
/deep/.el-dialog__body {
padding: 10px 20px;
}
.el-row {
height: 45px;
line-height: 45px;
}
.el-divider {
margin: 10px 0px;
}
</style> </style>

+ 50
- 27
src/views/second/assessmentResults/scoreRules/reward.vue View File

min-width="95 " min-width="95 "
align="center" align="center"
prop="leaderUnit" prop="leaderUnit"
></el-table-column>
>
<template slot-scope="{ row }">
<pre>{{ row.leaderUnit }}</pre>
</template>
</el-table-column>
<el-table-column label="第一牵头部门" width="120" align="center"> <el-table-column label="第一牵头部门" width="120" align="center">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<pre>{{ row.leaderDeptList | formatList }}</pre> <pre>{{ row.leaderDeptList | formatList }}</pre>
</el-table-column> </el-table-column>
<el-table-column label="牵头部门" min-width="80" align="center"> <el-table-column label="牵头部门" min-width="80" align="center">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<span><pre>{{ row.leaderDeptList | formatList }}</pre></span>
<span>
<pre>{{ row.leaderDeptList | formatList }}</pre>
</span>
</template> </template>
</el-table-column> </el-table-column>


</el-table-column> </el-table-column>
<el-table-column label="配合部门" min-width="80" align="center"> <el-table-column label="配合部门" min-width="80" align="center">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<span><pre>{{ row.leaderDeptList | formatList }}</pre></span>
<span>
<pre>{{ row.leaderDeptList | formatList }}</pre>
</span>
</template> </template>
</el-table-column> </el-table-column>


@closed="form = {}" @closed="form = {}"
> >
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="6"><div class="grid-content bg-purple">序号</div></el-col>
<el-col :span="8"><div class="grid-content bg-purple">牵头部门名称</div></el-col>
<el-col :span="10"><div class="grid-content bg-purple">考核得分</div></el-col>
<el-col :span="6"
><div class="grid-content bg-purple">序号</div></el-col
>
<el-col :span="8"
><div class="grid-content bg-purple">牵头部门名称</div></el-col
>
<el-col :span="10"
><div class="grid-content bg-purple">考核得分</div></el-col
>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="6"><div class="grid-content bg-purple">1</div></el-col> <el-col :span="6"><div class="grid-content bg-purple">1</div></el-col>
<el-col :span="8"><div class="grid-content bg-purple">党政办公室</div></el-col>
<el-col :span="8"
><div class="grid-content bg-purple">党政办公室</div></el-col
>
<el-col :span="10"> <el-col :span="10">
<div class="grid-content bg-purple"> <div class="grid-content bg-purple">
<el-input size="mini" v-model="form.leaderPoints"></el-input> <el-input size="mini" v-model="form.leaderPoints"></el-input>
</el-col> </el-col>
</el-row> </el-row>
<el-divider></el-divider> <el-divider></el-divider>
<el-row :gutter="20">
<el-col :span="6"><div class="grid-content bg-purple">序号</div></el-col>
<el-col :span="8"><div class="grid-content bg-purple">配合部门名称</div></el-col>
<el-col :span="10"><div class="grid-content bg-purple">考核得分</div></el-col>
<el-row :gutter="20">
<el-col :span="6"
><div class="grid-content bg-purple">序号</div></el-col
>
<el-col :span="8"
><div class="grid-content bg-purple">配合部门名称</div></el-col
>
<el-col :span="10"
><div class="grid-content bg-purple">考核得分</div></el-col
>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="6"><div class="grid-content bg-purple">1</div></el-col> <el-col :span="6"><div class="grid-content bg-purple">1</div></el-col>
<el-col :span="8"><div class="grid-content bg-purple">党群办公室</div></el-col>
<el-col :span="8"
><div class="grid-content bg-purple">党群办公室</div></el-col
>
<el-col :span="10"> <el-col :span="10">
<div class="grid-content bg-purple"> <div class="grid-content bg-purple">
<el-input size="mini" v-model="form.coorPoints"></el-input> <el-input size="mini" v-model="form.coorPoints"></el-input>
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
<div slot="footer"> <div slot="footer">
<el-button @click="showEdit = false">取消</el-button>&nbsp; <el-button @click="showEdit = false">取消</el-button>&nbsp;
<el-button type="primary" @click="save">保存</el-button> <el-button type="primary" @click="save">保存</el-button>
</div> </div>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>


count: 0, count: 0,
showEdit: false, showEdit: false,
loading: false, loading: false,
form:{}
form: {},
}; };
}, },
methods: { methods: {
getDataList() {}, getDataList() {},
edit(row) { edit(row) {
this.showEdit = true
this.showEdit = true;
}, },
save() { save() {
this.showEdit = false
this.showEdit = false;
}, },
}, },
filters: { filters: {
</script> </script>


<style scoped> <style scoped>
/deep/.el-dialog__body {
padding: 10px 20px;
}
.el-row {
height: 45px;
line-height: 45px;
}
.el-divider {
margin: 10px 0px;
}
/deep/.el-dialog__body {
padding: 10px 20px;
}
.el-row {
height: 45px;
line-height: 45px;
}
.el-divider {
margin: 10px 0px;
}
</style> </style>

+ 19
- 9
src/views/second/coordinationManage/applyCooperation/basicTarget.vue View File

width="95 " width="95 "
align="center" align="center"
prop="leaderUnit" prop="leaderUnit"
></el-table-column>
>
<template slot-scope="{ row }">
<pre>{{ row.leaderUnit }}</pre>
</template>
</el-table-column>
<el-table-column label="第一牵头部门" width="120" align="center"> <el-table-column label="第一牵头部门" width="120" align="center">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<pre>{{ row.leaderDeptList | formatList }}</pre> <pre>{{ row.leaderDeptList | formatList }}</pre>
this.loading = true; this.loading = true;
api api
.exportBasicList( .exportBasicList(
Object.assign({ sheetName: "基础目标任务细分小条",isApply:1 }, data)
Object.assign({ sheetName: "基础目标任务细分小条", isApply: 1 }, data)
) )
.then((res) => { .then((res) => {
console.log(res.data.data);
window.open(res.data.data);
this.$message({
type: "success",
message: "导出成功",
});
if (res.data.code == 0) {
window.open(res.data.data);
this.$message({
type: "success",
message: "导出成功",
});
} else {
this.$message({
type: "warning",
message: "暂无数据",
});
}
}) })
.catch((e) => { .catch((e) => {
console.log(e); console.log(e);
this.$message.error("导出失败");
this.$message.error("暂无数据");
}) })
.finally(() => { .finally(() => {
this.loading = false; this.loading = false;

+ 19
- 8
src/views/second/coordinationManage/applyCooperation/constraint.vue View File

width="95 " width="95 "
align="center" align="center"
prop="leaderUnit" prop="leaderUnit"
></el-table-column>
>
<template slot-scope="{ row }">
<pre>{{ row.leaderUnit }}</pre>
</template>
</el-table-column>
<el-table-column label="第一牵头部门" width="120" align="center"> <el-table-column label="第一牵头部门" width="120" align="center">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<pre>{{ row.leaderDeptList | formatList }}</pre> <pre>{{ row.leaderDeptList | formatList }}</pre>
this.loading = true; this.loading = true;
api api
.exportContraintList( .exportContraintList(
Object.assign({ sheetName: "刚性约束细分小条",isApply:1 }, data)
Object.assign({ sheetName: "刚性约束细分小条", isApply: 1 }, data)
) )
.then((res) => { .then((res) => {
window.open(res.data.data);
this.$message({
type: "success",
message: "导出成功",
});
if (res.data.code == 0) {
window.open(res.data.data);
this.$message({
type: "success",
message: "导出成功",
});
}else{
this.$message({
type:"warning",
message:"暂无数据"
})
}
}) })
.catch((e) => { .catch((e) => {
console.log(e); console.log(e);
this.$message.error("导出失败");
this.$message.error("暂无数据");
}) })
.finally(() => { .finally(() => {
this.loading = false; this.loading = false;

+ 19
- 8
src/views/second/coordinationManage/applyCooperation/reward.vue View File

width="95 " width="95 "
align="center" align="center"
prop="leaderUnit" prop="leaderUnit"
></el-table-column>
>
<template slot-scope="{ row }">
<pre>{{ row.leaderUnit }}</pre>
</template>
</el-table-column>
<el-table-column label="第一牵头部门" width="120" align="center"> <el-table-column label="第一牵头部门" width="120" align="center">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<pre>{{ row.leaderDeptList | formatList }}</pre> <pre>{{ row.leaderDeptList | formatList }}</pre>
this.loading = true; this.loading = true;
api api
.exportRewardList( .exportRewardList(
Object.assign({ sheetName: "重点专项细分小条" ,isApply:1}, data)
Object.assign({ sheetName: "重点专项细分小条", isApply: 1 }, data)
) )
.then((res) => { .then((res) => {
window.open(res.data.data);
this.$message({
type: "success",
message: "导出成功",
});
if (res.data.code == 0) {
window.open(res.data.data);
this.$message({
type: "success",
message: "导出成功",
});
} else {
this.$message({
type: "warning",
message: "暂无数据",
});
}
}) })
.catch((e) => { .catch((e) => {
console.log(e); console.log(e);
this.$message.error("导出失败");
this.$message.error("暂无数据");
}) })
.finally(() => { .finally(() => {
this.loading = false; this.loading = false;

+ 22
- 9
src/views/second/coordinationManage/approvalCooperation/basicTarget.vue View File

min-width="95 " min-width="95 "
align="center" align="center"
prop="leaderUnit" prop="leaderUnit"
></el-table-column>
>
<template slot-scope="{ row }">
<pre>{{ row.leaderUnit }}</pre>
</template>
</el-table-column>
<el-table-column label="第一牵头部门" width="120" align="center"> <el-table-column label="第一牵头部门" width="120" align="center">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<pre>{{ row.leaderDeptList | formatList }}</pre> <pre>{{ row.leaderDeptList | formatList }}</pre>
this.loading = true; this.loading = true;
api api
.exportBasicList( .exportBasicList(
Object.assign({ sheetName: "基础目标任务配合申请审核列表" ,isChecked:1}, data)
Object.assign(
{ sheetName: "基础目标任务配合申请审核列表", isChecked: 1 },
data
)
) )
.then((res) => { .then((res) => {
console.log(res.data.data);
window.open(res.data.data);
this.$message({
type: "success",
message: "导出成功",
});
if (res.data.code == 0) {
window.open(res.data.data);
this.$message({
type: "success",
message: "导出成功",
});
} else {
this.$message({
type: "warning",
message: "暂无数据",
});
}
}) })
.catch((e) => { .catch((e) => {
console.log(e); console.log(e);
this.$message.error("导出失败");
this.$message.error("暂无数据");
}) })
.finally(() => { .finally(() => {
this.loading = false; this.loading = false;

+ 22
- 8
src/views/second/coordinationManage/approvalCooperation/constraint.vue View File

min-width="95 " min-width="95 "
align="center" align="center"
prop="leaderUnit" prop="leaderUnit"
></el-table-column>
>
<template slot-scope="{ row }">
<pre>{{ row.leaderUnit }}</pre>
</template>
</el-table-column>
<el-table-column label="第一牵头部门" width="120" align="center"> <el-table-column label="第一牵头部门" width="120" align="center">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<pre>{{ row.leaderDeptList | formatList }}</pre> <pre>{{ row.leaderDeptList | formatList }}</pre>
this.loading = true; this.loading = true;
api api
.exportContraintList( .exportContraintList(
Object.assign({ sheetName: "刚性约束配合申请审核审核列表",isChecked:1 }, data)
Object.assign(
{ sheetName: "刚性约束配合申请审核审核列表", isChecked: 1 },
data
)
) )
.then((res) => { .then((res) => {
window.open(res.data.data);
this.$message({
type: "success",
message: "导出成功",
});
if (res.data.code == 0) {
window.open(res.data.data);
this.$message({
type: "success",
message: "导出成功",
});
} else {
this.$message({
type: "warning",
message: "暂无数据",
});
}
}) })
.catch((e) => { .catch((e) => {
console.log(e); console.log(e);
this.$message.error("导出失败");
this.$message.error("暂无数据");
}) })
.finally(() => { .finally(() => {
this.loading = false; this.loading = false;

+ 22
- 8
src/views/second/coordinationManage/approvalCooperation/reward.vue View File

min-width="95 " min-width="95 "
align="center" align="center"
prop="leaderUnit" prop="leaderUnit"
></el-table-column>
>
<template slot-scope="{ row }">
<pre>{{ row.leaderUnit }}</pre>
</template>
</el-table-column>
<el-table-column label="第一牵头部门" width="120" align="center"> <el-table-column label="第一牵头部门" width="120" align="center">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<pre>{{ row.leaderDeptList | formatList }}</pre> <pre>{{ row.leaderDeptList | formatList }}</pre>
this.loading = true; this.loading = true;
api api
.exportRewardList( .exportRewardList(
Object.assign({ sheetName: "重点专项配合申请审核列表",isChecked: 1}, data)
Object.assign(
{ sheetName: "重点专项配合申请审核列表", isChecked: 1 },
data
)
) )
.then((res) => { .then((res) => {
window.open(res.data.data);
this.$message({
type: "success",
message: "导出成功",
});
if (res.data.code == 0) {
window.open(res.data.data);
this.$message({
type: "success",
message: "导出成功",
});
} else {
this.$message({
type: "warning",
message: "暂无数据",
});
}
}) })
.catch((e) => { .catch((e) => {
console.log(e); console.log(e);
this.$message.error("导出失败");
this.$message.error("暂无数据");
}) })
.finally(() => { .finally(() => {
this.loading = false; this.loading = false;

+ 6
- 2
src/views/second/coordinationManage/cooperateList/basicTarget.vue View File

<template> <template>
<div class="basic-target" v-loading="loading"> <div class="basic-target" v-loading="loading">
<search :type="1" @search:task="updateParams($event)"/>
<search :type="1" @search:task="updateParams($event)" />
<el-table <el-table
:data="dataList" :data="dataList"
border border
min-width="95 " min-width="95 "
align="center" align="center"
prop="leaderUnit" prop="leaderUnit"
></el-table-column>
>
<template slot-scope="{ row }">
<pre>{{ row.leaderUnit }}</pre>
</template>
</el-table-column>
<el-table-column label="第一牵头部门" width="120" align="center"> <el-table-column label="第一牵头部门" width="120" align="center">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<pre>{{ row.leaderDeptList | formatList }}</pre> <pre>{{ row.leaderDeptList | formatList }}</pre>

+ 5
- 1
src/views/second/coordinationManage/cooperateList/constraint.vue View File

min-width="95 " min-width="95 "
align="center" align="center"
prop="leaderUnit" prop="leaderUnit"
></el-table-column>
>
<template slot-scope="{ row }">
<pre>{{ row.leaderUnit }}</pre>
</template>
</el-table-column>
<el-table-column label="第一牵头部门" width="120" align="center"> <el-table-column label="第一牵头部门" width="120" align="center">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<pre>{{ row.leaderDeptList | formatList }}</pre> <pre>{{ row.leaderDeptList | formatList }}</pre>

+ 5
- 1
src/views/second/coordinationManage/cooperateList/reward.vue View File

min-width="95 " min-width="95 "
align="center" align="center"
prop="leaderUnit" prop="leaderUnit"
></el-table-column>
>
<template slot-scope="{ row }">
<pre>{{ row.leaderUnit }}</pre>
</template>
</el-table-column>
<el-table-column label="第一牵头部门" width="120" align="center"> <el-table-column label="第一牵头部门" width="120" align="center">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<pre>{{ row.leaderDeptList | formatList }}</pre> <pre>{{ row.leaderDeptList | formatList }}</pre>

+ 11
- 5
src/views/second/segmentation/basicTable.vue View File

width="95" width="95"
align="center" align="center"
prop="leaderUnit" prop="leaderUnit"
></el-table-column>
>
<template slot-scope="{ row }">
<pre>{{ row.leaderUnit }}</pre>
</template>
</el-table-column>
<el-table-column label="第一牵头部门" width="150" align="center"> <el-table-column label="第一牵头部门" width="150" align="center">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<pre>{{ row.leaderDeptList | formatList }}</pre> <pre>{{ row.leaderDeptList | formatList }}</pre>
>分项</router-link >分项</router-link
> --> > -->
<!-- <span @click="toSegmentation(row)">分项</span> --> <!-- <span @click="toSegmentation(row)">分项</span> -->
<el-link @click="toSegmentation(row)" type="primary" ><i class="el-icon-setting"></i>分项</el-link>
<el-link @click="toSegmentation(row)" type="primary"
><i class="el-icon-setting"></i>分项</el-link
>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
], ],
created() { created() {
this.getDataList(); this.getDataList();
let page=this.page;
page.page=this.$store.state.base.currentPage||1;
let page = this.page;
page.page = this.$store.state.base.currentPage || 1;
this.$store.commit("base/SET_CURRENT_PAGE", null); this.$store.commit("base/SET_CURRENT_PAGE", null);
this.page=page
this.page = page;
}, },
methods: { methods: {
toSegmentation(row) { toSegmentation(row) {

+ 8
- 2
src/views/second/segmentation/constraint.vue View File

width="95" width="95"
align="center" align="center"
prop="leaderUnit" prop="leaderUnit"
></el-table-column>
>
<template slot-scope="{ row }">
<pre>{{ row.leaderUnit }}</pre>
</template>
</el-table-column>
<el-table-column label="第一牵头部门" width="150" align="center"> <el-table-column label="第一牵头部门" width="150" align="center">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<pre>{{ row.leaderDeptList | formatList }}</pre> <pre>{{ row.leaderDeptList | formatList }}</pre>
}" }"
>分项</router-link >分项</router-link
> --> > -->
<el-link @click="toSegmentation(row)" type="primary"><i class="el-icon-setting"></i>分项</el-link>
<el-link @click="toSegmentation(row)" type="primary"
><i class="el-icon-setting"></i>分项</el-link
>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>

+ 5
- 5
src/views/second/segmentation/contentDetail.vue View File

<el-row type="flex"> <el-row type="flex">
<el-col :span="5" class="grey"><span>区牵头单位</span></el-col> <el-col :span="5" class="grey"><span>区牵头单位</span></el-col>
<el-col :span="7" <el-col :span="7"
><span>{{ data.leaderUnit }}</span></el-col
><span><pre>{{ data.leaderUnit }}</pre></span></el-col
> >
<el-col :span="5" class="grey"><span>封顶分值</span></el-col> <el-col :span="5" class="grey"><span>封顶分值</span></el-col>
<el-col :span="7" <el-col :span="7"
"points", "points",
"leaderDept", "leaderDept",
"leaderPrincipal", "leaderPrincipal",
"otherDept",
"otherPrincipal",
"cooperateDept",
"cooperatePrincipal",
// "otherDept",
// "otherPrincipal",
// "cooperateDept",
// "cooperatePrincipal",
]; ];
for (let param of params) { for (let param of params) {
if (Array.isArray(form[param])) { if (Array.isArray(form[param])) {

+ 8
- 2
src/views/second/segmentation/reward.vue View File

width="95" width="95"
align="center" align="center"
prop="leaderUnit" prop="leaderUnit"
></el-table-column>
>
<template slot-scope="{ row }">
<pre>{{ row.leaderUnit }}</pre>
</template>
</el-table-column>
<el-table-column label="第一牵头部门" width="150" align="center"> <el-table-column label="第一牵头部门" width="150" align="center">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<pre>{{ row.leaderDeptList | formatList }}</pre> <pre>{{ row.leaderDeptList | formatList }}</pre>
}" }"
>分项</router-link >分项</router-link
> --> > -->
<el-link @click="toSegmentation(row)" type="primary"><i class="el-icon-setting"></i>分项</el-link>
<el-link @click="toSegmentation(row)" type="primary"
><i class="el-icon-setting"></i>分项</el-link
>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>

+ 37
- 14
src/views/second/taskSummary/basicTable.vue View File

<template> <template>
<div class="assessing-content ele-body"> <div class="assessing-content ele-body">
<el-card shadow="never" element-loading-background="rgba(255, 255, 255, 1)"> <el-card shadow="never" element-loading-background="rgba(255, 255, 255, 1)">
<search :type="1" @search:task="updateParams($event)" @export="exportData($event)" :show-export="true"/>
<search
:type="1"
@search:task="updateParams($event)"
@export="exportData($event)"
:show-export="true"
/>
<el-table <el-table
highlight-current-row highlight-current-row
:data="dataList" :data="dataList"
width="95" width="95"
align="center" align="center"
prop="leaderUnit" prop="leaderUnit"
></el-table-column>
>
<template slot-scope="{ row }">
<pre>{{ row.leaderUnit }}</pre>
</template>
</el-table-column>
<el-table-column label="第一牵头部门" width="150" align="center"> <el-table-column label="第一牵头部门" width="150" align="center">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<pre>{{ row.leaderDeptList | formatList }}</pre> <pre>{{ row.leaderDeptList | formatList }}</pre>
}, },
}, },
methods: { methods: {
exportData(data){
this.loading=true;
api.exportBasicList(Object.assign({sheetName:"基础目标任务细分小条"},data)).then(res=>{
window.open(res.data.data);
this.$message({
type:"success",
message:"导出成功"
exportData(data) {
this.loading = true;
api
.exportBasicList(
Object.assign({ sheetName: "基础目标任务细分小条" }, data)
)
.then((res) => {
if (res.data.code == 0) {
window.open(res.data.data);
this.$message({
type: "success",
message: "导出成功",
});
} else {
this.$message({
type: "warning",
message: "暂无数据",
});
}
}) })
}).catch(e=>{
this.$message.error("导出失败")
}).finally(()=>{
this.loading=false;
})
.catch((e) => {
console.log(e);
this.$message.error("暂无数据");
})
.finally(() => {
this.loading = false;
});
}, },
changePrincipal(e, type, index) { changePrincipal(e, type, index) {
if (type == "other") { if (type == "other") {

+ 19
- 7
src/views/second/taskSummary/constraint.vue View File

width="95" width="95"
align="center" align="center"
prop="leaderUnit" prop="leaderUnit"
></el-table-column>
>
<template slot-scope="{ row }">
<pre>{{ row.leaderUnit }}</pre>
</template>
</el-table-column>
<el-table-column label="第一牵头部门" width="150" align="center"> <el-table-column label="第一牵头部门" width="150" align="center">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<pre>{{ row.leaderDeptList | formatList }}</pre> <pre>{{ row.leaderDeptList | formatList }}</pre>
Object.assign({ sheetName: "刚性约束细分小条" }, data) Object.assign({ sheetName: "刚性约束细分小条" }, data)
) )
.then((res) => { .then((res) => {
window.open(res.data.data);
this.$message({
type: "success",
message: "导出成功",
});
if (res.data.code == 0) {
window.open(res.data.data);
this.$message({
type: "success",
message: "导出成功",
});
} else {
this.$message({
type: "warning",
message: "暂无数据",
});
}
}) })
.catch((e) => { .catch((e) => {
this.$message.error("导出失败");
console.log(e);
this.$message.error("暂无数据");
}) })
.finally(() => { .finally(() => {
this.loading = false; this.loading = false;

+ 19
- 7
src/views/second/taskSummary/reward.vue View File

width="95" width="95"
align="center" align="center"
prop="leaderUnit" prop="leaderUnit"
></el-table-column>
>
<template slot-scope="{ row }">
<pre>{{ row.leaderUnit }}</pre>
</template>
</el-table-column>
<el-table-column label="第一牵头部门" width="150" align="center"> <el-table-column label="第一牵头部门" width="150" align="center">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<pre>{{ row.leaderDeptList | formatList }}</pre> <pre>{{ row.leaderDeptList | formatList }}</pre>
Object.assign({ sheetName: "重点专项细分小条" }, data) Object.assign({ sheetName: "重点专项细分小条" }, data)
) )
.then((res) => { .then((res) => {
window.open(res.data.data);
this.$message({
type: "success",
message: "导出成功",
});
if (res.data.code == 0) {
window.open(res.data.data);
this.$message({
type: "success",
message: "导出成功",
});
} else {
this.$message({
type: "warning",
message: "暂无数据",
});
}
}) })
.catch((e) => { .catch((e) => {
this.$message.error("导出失败");
console.log(e);
this.$message.error("暂无数据");
}) })
.finally(() => { .finally(() => {
this.loading = false; this.loading = false;

+ 11
- 5
src/views/summary/basicTarget.vue View File

min-width="95" min-width="95"
align="center" align="center"
prop="leaderUnit" prop="leaderUnit"
></el-table-column>
>
<template slot-scope="{ row }">
<pre>{{ row.leaderUnit }}</pre>
</template>
</el-table-column>
<el-table-column label="牵头部门" min-width="80" align="center"> <el-table-column label="牵头部门" min-width="80" align="center">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<pre>{{ row.leaderDeptList | formatList }}</pre> <pre>{{ row.leaderDeptList | formatList }}</pre>
components: { components: {
search, search,
}, },
mixins: [mergeSpan([
{name: 'quota1', col: [1]},
{name: 'quota2', col: [2]},
])],
mixins: [
mergeSpan([
{ name: "quota1", col: [1] },
{ name: "quota2", col: [2] },
]),
],
created() { created() {
this.getDataList(); this.getDataList();
this.$store.dispatch("base/getQuota1List", 1); this.$store.dispatch("base/getQuota1List", 1);

+ 6
- 4
src/views/summary/constraint.vue View File

min-width="95" min-width="95"
align="center" align="center"
prop="leaderUnit" prop="leaderUnit"
></el-table-column>
>
<template slot-scope="{ row }">
<pre>{{ row.leaderUnit }}</pre>
</template>
</el-table-column>
<el-table-column label="牵头部门" min-width="80" align="center"> <el-table-column label="牵头部门" min-width="80" align="center">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<pre>{{ row.leaderDeptList | formatList }}</pre> <pre>{{ row.leaderDeptList | formatList }}</pre>
} }
}, },
}, },
mixins: [mergeSpan([
{name: 'quota', col: [1]}
])],
mixins: [mergeSpan([{ name: "quota", col: [1] }])],
created() { created() {
this.getDataList(); this.getDataList();
this.$store.dispatch("base/getQuota1List", 1); this.$store.dispatch("base/getQuota1List", 1);

+ 11
- 5
src/views/summary/reward.vue View File

min-width="95" min-width="95"
align="center" align="center"
prop="leaderUnit" prop="leaderUnit"
></el-table-column>
>
<template slot-scope="{ row }">
<pre>{{ row.leaderUnit }}</pre>
</template>
</el-table-column>
<el-table-column label="牵头部门" min-width="80" align="center"> <el-table-column label="牵头部门" min-width="80" align="center">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<pre>{{ row.leaderDeptList | formatList }}</pre> <pre>{{ row.leaderDeptList | formatList }}</pre>
components: { components: {
search, search,
}, },
mixins: [mergeSpan([
{name: 'quota1', col: [1]},
{name: 'quota2', col: [2]},
])],
mixins: [
mergeSpan([
{ name: "quota1", col: [1] },
{ name: "quota2", col: [2] },
]),
],
created() { created() {
this.getDataList(); this.getDataList();
this.$store.dispatch("base/getQuota1List", 1); this.$store.dispatch("base/getQuota1List", 1);

Loading…
Cancel
Save