@@ -77,7 +77,11 @@ | |||
align="center" | |||
prop="leaderUnit" | |||
:key="6" | |||
></el-table-column> | |||
> | |||
<template slot-scope="{row}"> | |||
<pre>{{row.leaderUnit}}</pre> | |||
</template> | |||
</el-table-column> | |||
<el-table-column | |||
label="牵头部门" |
@@ -58,7 +58,11 @@ | |||
align="center" | |||
prop="leaderUnit" | |||
:key="4" | |||
></el-table-column> | |||
> | |||
<template slot-scope="{ row }"> | |||
<pre>{{ row.leaderUnit }}</pre> | |||
</template> | |||
</el-table-column> | |||
<el-table-column | |||
label="牵头部门" | |||
min-width="80" |
@@ -74,7 +74,11 @@ | |||
align="center" | |||
prop="leaderUnit" | |||
:key="6" | |||
></el-table-column> | |||
> | |||
<template slot-scope="{ row }"> | |||
<pre>{{ row.leaderUnit }}</pre> | |||
</template> | |||
</el-table-column> | |||
<el-table-column | |||
label="牵头部门" | |||
min-width="80" |
@@ -66,7 +66,11 @@ | |||
min-width="80" | |||
align="center" | |||
prop="leaderUnit" | |||
></el-table-column> | |||
> | |||
<template slot-scope="{ row }"> | |||
<pre>{{ row.leaderUnit }}</pre> | |||
</template> | |||
</el-table-column> | |||
<el-table-column | |||
label="牵头部门" | |||
min-width="80" | |||
@@ -75,7 +79,6 @@ | |||
></el-table-column> | |||
<el-table-column | |||
label="责任领导" | |||
min-width="80" | |||
align="center" | |||
prop="leaderPrincipal" | |||
@@ -115,27 +118,27 @@ export default { | |||
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 { | |||
page:1, | |||
limit:10, | |||
} | |||
} | |||
} | |||
page: 1, | |||
limit: 10, | |||
}; | |||
}, | |||
}, | |||
}, | |||
data() { | |||
return { |
@@ -1,7 +1,11 @@ | |||
<template> | |||
<div class="apply-cooperation ele-body"> | |||
<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 | |||
border | |||
highlight-current-row | |||
@@ -174,8 +178,8 @@ export default { | |||
methods: { | |||
exportData(data){ | |||
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); | |||
this.$message({ | |||
type:"success", |
@@ -183,14 +183,22 @@ export default { | |||
methods: { | |||
exportData(data){ | |||
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=>{ | |||
this.$message.error("导出失败") | |||
console.log(e) | |||
this.$message.error("暂无数据") | |||
}).finally(()=>{ | |||
this.loading=false; | |||
}) |
@@ -52,7 +52,11 @@ | |||
width="80 " | |||
align="center" | |||
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"> | |||
<template slot-scope="{ row }"> | |||
<pre>{{ row.leaderDeptList | formatList }}</pre> | |||
@@ -65,7 +69,9 @@ | |||
</el-table-column> | |||
<el-table-column label="牵头部门" width="100" align="center"> | |||
<template slot-scope="{ row }"> | |||
<span><pre>{{ row.leaderDeptList | formatList }}</pre></span> | |||
<span> | |||
<pre>{{ row.leaderDeptList | formatList }}</pre> | |||
</span> | |||
</template> | |||
</el-table-column> | |||
@@ -76,7 +82,9 @@ | |||
</el-table-column> | |||
<el-table-column label="配合部门" width="100" align="center"> | |||
<template slot-scope="{ row }"> | |||
<span><pre>{{ row.leaderDeptList | formatList }}</pre></span> | |||
<span> | |||
<pre>{{ row.leaderDeptList | formatList }}</pre> | |||
</span> | |||
</template> | |||
</el-table-column> | |||
@@ -84,7 +92,7 @@ | |||
<template slot-scope="{ row }"> | |||
<pre>{{ row.leaderPrincipalList | formatList }}</pre> | |||
</template> | |||
</el-table-column> | |||
</el-table-column> | |||
</el-table> | |||
<el-pagination | |||
:current-page.sync="page.page" | |||
@@ -119,7 +127,7 @@ export default { | |||
count: 0, | |||
showEdit: false, | |||
loading: false, | |||
form:{} | |||
form: {}, | |||
}; | |||
}, | |||
methods: { |
@@ -46,7 +46,11 @@ | |||
width="80 " | |||
align="center" | |||
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"> | |||
<template slot-scope="{ row }"> | |||
<pre>{{ row.leaderDeptList | formatList }}</pre> | |||
@@ -59,7 +63,9 @@ | |||
</el-table-column> | |||
<el-table-column label="牵头部门" width="100" align="center"> | |||
<template slot-scope="{ row }"> | |||
<span><pre>{{ row.leaderDeptList | formatList }}</pre></span> | |||
<span> | |||
<pre>{{ row.leaderDeptList | formatList }}</pre> | |||
</span> | |||
</template> | |||
</el-table-column> | |||
@@ -70,7 +76,9 @@ | |||
</el-table-column> | |||
<el-table-column label="配合部门" width="100" align="center"> | |||
<template slot-scope="{ row }"> | |||
<span><pre>{{ row.leaderDeptList | formatList }}</pre></span> | |||
<span> | |||
<pre>{{ row.leaderDeptList | formatList }}</pre> | |||
</span> | |||
</template> | |||
</el-table-column> | |||
@@ -92,7 +100,6 @@ | |||
:flat="true" | |||
@current-change="getDataList()" | |||
/> | |||
</div> | |||
</template> | |||
@@ -115,7 +122,7 @@ export default { | |||
count: 0, | |||
showEdit: false, | |||
loading: false, | |||
form:{} | |||
form: {}, | |||
}; | |||
}, | |||
methods: { |
@@ -52,7 +52,11 @@ | |||
width="80 " | |||
align="center" | |||
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"> | |||
<template slot-scope="{ row }"> | |||
<pre>{{ row.leaderDeptList | formatList }}</pre> | |||
@@ -65,7 +69,9 @@ | |||
</el-table-column> | |||
<el-table-column label="牵头部门" width="100" align="center"> | |||
<template slot-scope="{ row }"> | |||
<span><pre>{{ row.leaderDeptList | formatList }}</pre></span> | |||
<span> | |||
<pre>{{ row.leaderDeptList | formatList }}</pre> | |||
</span> | |||
</template> | |||
</el-table-column> | |||
@@ -76,7 +82,9 @@ | |||
</el-table-column> | |||
<el-table-column label="配合部门" width="100" align="center"> | |||
<template slot-scope="{ row }"> | |||
<span><pre>{{ row.leaderDeptList | formatList }}</pre></span> | |||
<span> | |||
<pre>{{ row.leaderDeptList | formatList }}</pre> | |||
</span> | |||
</template> | |||
</el-table-column> | |||
@@ -120,7 +128,7 @@ export default { | |||
count: 0, | |||
showEdit: false, | |||
loading: false, | |||
form:{} | |||
form: {}, | |||
}; | |||
}, | |||
methods: { |
@@ -47,20 +47,26 @@ | |||
min-width="95 " | |||
align="center" | |||
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"> | |||
<template slot-scope="{ row }"> | |||
<span><pre>{{ row.leaderDeptList | formatList }}</pre></span> | |||
<span> | |||
<pre>{{ row.leaderDeptList | formatList }}</pre> | |||
</span> | |||
</template> | |||
</el-table-column> | |||
@@ -71,7 +77,9 @@ | |||
</el-table-column> | |||
<el-table-column label="配合部门" min-width="80" align="center"> | |||
<template slot-scope="{ row }"> | |||
<span><pre>{{ row.leaderDeptList | formatList }}</pre></span> | |||
<span> | |||
<pre>{{ row.leaderDeptList | formatList }}</pre> | |||
</span> | |||
</template> | |||
</el-table-column> | |||
@@ -114,13 +122,21 @@ | |||
@closed="form = {}" | |||
> | |||
<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 :gutter="20"> | |||
<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"> | |||
<div class="grid-content bg-purple"> | |||
<el-input size="mini" v-model="form.leaderPoints"></el-input> | |||
@@ -128,21 +144,29 @@ | |||
</el-col> | |||
</el-row> | |||
<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 :gutter="20"> | |||
<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"> | |||
<div class="grid-content bg-purple"> | |||
<el-input size="mini" v-model="form.coorPoints"></el-input> | |||
</div> | |||
</el-col> | |||
</el-row> | |||
<div slot="footer"> | |||
<el-button @click="showEdit = false">取消</el-button> | |||
<el-button type="primary" @click="save">保存</el-button> | |||
@@ -170,7 +194,7 @@ export default { | |||
count: 0, | |||
showEdit: false, | |||
loading: false, | |||
form:{} | |||
form: {}, | |||
}; | |||
}, | |||
methods: { | |||
@@ -191,14 +215,14 @@ export default { | |||
</script> | |||
<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> |
@@ -53,7 +53,11 @@ | |||
min-width="95 " | |||
align="center" | |||
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"> | |||
<template slot-scope="{ row }"> | |||
<pre>{{ row.leaderDeptList | formatList }}</pre> | |||
@@ -66,7 +70,9 @@ | |||
</el-table-column> | |||
<el-table-column label="牵头部门" min-width="80" align="center"> | |||
<template slot-scope="{ row }"> | |||
<span><pre>{{ row.leaderDeptList | formatList }}</pre></span> | |||
<span> | |||
<pre>{{ row.leaderDeptList | formatList }}</pre> | |||
</span> | |||
</template> | |||
</el-table-column> | |||
@@ -77,7 +83,9 @@ | |||
</el-table-column> | |||
<el-table-column label="配合部门" min-width="80" align="center"> | |||
<template slot-scope="{ row }"> | |||
<span><pre>{{ row.leaderDeptList | formatList }}</pre></span> | |||
<span> | |||
<pre>{{ row.leaderDeptList | formatList }}</pre> | |||
</span> | |||
</template> | |||
</el-table-column> | |||
@@ -119,13 +127,21 @@ | |||
@closed="form = {}" | |||
> | |||
<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 :gutter="20"> | |||
<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"> | |||
<div class="grid-content bg-purple"> | |||
<el-input size="mini" v-model="form.leaderPoints"></el-input> | |||
@@ -133,27 +149,34 @@ | |||
</el-col> | |||
</el-row> | |||
<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 :gutter="20"> | |||
<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"> | |||
<div class="grid-content bg-purple"> | |||
<el-input size="mini" v-model="form.coorPoints"></el-input> | |||
</div> | |||
</el-col> | |||
</el-row> | |||
<div slot="footer"> | |||
<el-button @click="showEdit = false">取消</el-button> | |||
<el-button type="primary" @click="save">保存</el-button> | |||
</div> | |||
</el-dialog> | |||
</div> | |||
</template> | |||
@@ -176,16 +199,16 @@ export default { | |||
count: 0, | |||
showEdit: false, | |||
loading: false, | |||
form:{} | |||
form: {}, | |||
}; | |||
}, | |||
methods: { | |||
getDataList() {}, | |||
edit(row) { | |||
this.showEdit = true | |||
this.showEdit = true; | |||
}, | |||
save() { | |||
this.showEdit = false | |||
this.showEdit = false; | |||
}, | |||
}, | |||
filters: { | |||
@@ -199,14 +222,14 @@ export default { | |||
</script> | |||
<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> |
@@ -54,7 +54,11 @@ | |||
width="95 " | |||
align="center" | |||
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"> | |||
<template slot-scope="{ row }"> | |||
<pre>{{ row.leaderDeptList | formatList }}</pre> | |||
@@ -196,19 +200,25 @@ export default { | |||
this.loading = true; | |||
api | |||
.exportBasicList( | |||
Object.assign({ sheetName: "基础目标任务细分小条",isApply:1 }, data) | |||
Object.assign({ sheetName: "基础目标任务细分小条", isApply: 1 }, data) | |||
) | |||
.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) => { | |||
console.log(e); | |||
this.$message.error("导出失败"); | |||
this.$message.error("暂无数据"); | |||
}) | |||
.finally(() => { | |||
this.loading = false; |
@@ -48,7 +48,11 @@ | |||
width="95 " | |||
align="center" | |||
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"> | |||
<template slot-scope="{ row }"> | |||
<pre>{{ row.leaderDeptList | formatList }}</pre> | |||
@@ -188,18 +192,25 @@ export default { | |||
this.loading = true; | |||
api | |||
.exportContraintList( | |||
Object.assign({ sheetName: "刚性约束细分小条",isApply:1 }, data) | |||
Object.assign({ sheetName: "刚性约束细分小条", isApply: 1 }, data) | |||
) | |||
.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) => { | |||
console.log(e); | |||
this.$message.error("导出失败"); | |||
this.$message.error("暂无数据"); | |||
}) | |||
.finally(() => { | |||
this.loading = false; |
@@ -54,7 +54,11 @@ | |||
width="95 " | |||
align="center" | |||
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"> | |||
<template slot-scope="{ row }"> | |||
<pre>{{ row.leaderDeptList | formatList }}</pre> | |||
@@ -195,18 +199,25 @@ export default { | |||
this.loading = true; | |||
api | |||
.exportRewardList( | |||
Object.assign({ sheetName: "重点专项细分小条" ,isApply:1}, data) | |||
Object.assign({ sheetName: "重点专项细分小条", isApply: 1 }, data) | |||
) | |||
.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) => { | |||
console.log(e); | |||
this.$message.error("导出失败"); | |||
this.$message.error("暂无数据"); | |||
}) | |||
.finally(() => { | |||
this.loading = false; |
@@ -72,7 +72,11 @@ | |||
min-width="95 " | |||
align="center" | |||
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"> | |||
<template slot-scope="{ row }"> | |||
<pre>{{ row.leaderDeptList | formatList }}</pre> | |||
@@ -206,19 +210,28 @@ export default { | |||
this.loading = true; | |||
api | |||
.exportBasicList( | |||
Object.assign({ sheetName: "基础目标任务配合申请审核列表" ,isChecked:1}, data) | |||
Object.assign( | |||
{ sheetName: "基础目标任务配合申请审核列表", isChecked: 1 }, | |||
data | |||
) | |||
) | |||
.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) => { | |||
console.log(e); | |||
this.$message.error("导出失败"); | |||
this.$message.error("暂无数据"); | |||
}) | |||
.finally(() => { | |||
this.loading = false; |
@@ -65,7 +65,11 @@ | |||
min-width="95 " | |||
align="center" | |||
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"> | |||
<template slot-scope="{ row }"> | |||
<pre>{{ row.leaderDeptList | formatList }}</pre> | |||
@@ -199,18 +203,28 @@ export default { | |||
this.loading = true; | |||
api | |||
.exportContraintList( | |||
Object.assign({ sheetName: "刚性约束配合申请审核审核列表",isChecked:1 }, data) | |||
Object.assign( | |||
{ sheetName: "刚性约束配合申请审核审核列表", isChecked: 1 }, | |||
data | |||
) | |||
) | |||
.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) => { | |||
console.log(e); | |||
this.$message.error("导出失败"); | |||
this.$message.error("暂无数据"); | |||
}) | |||
.finally(() => { | |||
this.loading = false; |
@@ -72,7 +72,11 @@ | |||
min-width="95 " | |||
align="center" | |||
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"> | |||
<template slot-scope="{ row }"> | |||
<pre>{{ row.leaderDeptList | formatList }}</pre> | |||
@@ -206,18 +210,28 @@ export default { | |||
this.loading = true; | |||
api | |||
.exportRewardList( | |||
Object.assign({ sheetName: "重点专项配合申请审核列表",isChecked: 1}, data) | |||
Object.assign( | |||
{ sheetName: "重点专项配合申请审核列表", isChecked: 1 }, | |||
data | |||
) | |||
) | |||
.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) => { | |||
console.log(e); | |||
this.$message.error("导出失败"); | |||
this.$message.error("暂无数据"); | |||
}) | |||
.finally(() => { | |||
this.loading = false; |
@@ -1,6 +1,6 @@ | |||
<template> | |||
<div class="basic-target" v-loading="loading"> | |||
<search :type="1" @search:task="updateParams($event)"/> | |||
<search :type="1" @search:task="updateParams($event)" /> | |||
<el-table | |||
:data="dataList" | |||
border | |||
@@ -66,7 +66,11 @@ | |||
min-width="95 " | |||
align="center" | |||
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"> | |||
<template slot-scope="{ row }"> | |||
<pre>{{ row.leaderDeptList | formatList }}</pre> |
@@ -59,7 +59,11 @@ | |||
min-width="95 " | |||
align="center" | |||
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"> | |||
<template slot-scope="{ row }"> | |||
<pre>{{ row.leaderDeptList | formatList }}</pre> |
@@ -66,7 +66,11 @@ | |||
min-width="95 " | |||
align="center" | |||
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"> | |||
<template slot-scope="{ row }"> | |||
<pre>{{ row.leaderDeptList | formatList }}</pre> |
@@ -58,7 +58,11 @@ | |||
width="95" | |||
align="center" | |||
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"> | |||
<template slot-scope="{ row }"> | |||
<pre>{{ row.leaderDeptList | formatList }}</pre> | |||
@@ -114,7 +118,9 @@ | |||
>分项</router-link | |||
> --> | |||
<!-- <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> | |||
</el-table-column> | |||
</el-table> | |||
@@ -169,10 +175,10 @@ export default { | |||
], | |||
created() { | |||
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.page=page | |||
this.page = page; | |||
}, | |||
methods: { | |||
toSegmentation(row) { |
@@ -52,7 +52,11 @@ | |||
width="95" | |||
align="center" | |||
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"> | |||
<template slot-scope="{ row }"> | |||
<pre>{{ row.leaderDeptList | formatList }}</pre> | |||
@@ -110,7 +114,9 @@ | |||
}" | |||
>分项</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> | |||
</el-table-column> | |||
</el-table> |
@@ -27,7 +27,7 @@ | |||
<el-row type="flex"> | |||
<el-col :span="5" class="grey"><span>区牵头单位</span></el-col> | |||
<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="7" | |||
@@ -833,10 +833,10 @@ export default { | |||
"points", | |||
"leaderDept", | |||
"leaderPrincipal", | |||
"otherDept", | |||
"otherPrincipal", | |||
"cooperateDept", | |||
"cooperatePrincipal", | |||
// "otherDept", | |||
// "otherPrincipal", | |||
// "cooperateDept", | |||
// "cooperatePrincipal", | |||
]; | |||
for (let param of params) { | |||
if (Array.isArray(form[param])) { |
@@ -58,7 +58,11 @@ | |||
width="95" | |||
align="center" | |||
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"> | |||
<template slot-scope="{ row }"> | |||
<pre>{{ row.leaderDeptList | formatList }}</pre> | |||
@@ -116,7 +120,9 @@ | |||
}" | |||
>分项</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> | |||
</el-table-column> | |||
</el-table> |
@@ -1,7 +1,12 @@ | |||
<template> | |||
<div class="assessing-content ele-body"> | |||
<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 | |||
highlight-current-row | |||
:data="dataList" | |||
@@ -53,7 +58,11 @@ | |||
width="95" | |||
align="center" | |||
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"> | |||
<template slot-scope="{ row }"> | |||
<pre>{{ row.leaderDeptList | formatList }}</pre> | |||
@@ -405,19 +414,33 @@ export default { | |||
}, | |||
}, | |||
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) { | |||
if (type == "other") { |
@@ -52,7 +52,11 @@ | |||
width="95" | |||
align="center" | |||
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"> | |||
<template slot-scope="{ row }"> | |||
<pre>{{ row.leaderDeptList | formatList }}</pre> | |||
@@ -411,14 +415,22 @@ export default { | |||
Object.assign({ sheetName: "刚性约束细分小条" }, data) | |||
) | |||
.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) => { | |||
this.$message.error("导出失败"); | |||
console.log(e); | |||
this.$message.error("暂无数据"); | |||
}) | |||
.finally(() => { | |||
this.loading = false; |
@@ -58,7 +58,11 @@ | |||
width="95" | |||
align="center" | |||
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"> | |||
<template slot-scope="{ row }"> | |||
<pre>{{ row.leaderDeptList | formatList }}</pre> | |||
@@ -418,14 +422,22 @@ export default { | |||
Object.assign({ sheetName: "重点专项细分小条" }, data) | |||
) | |||
.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) => { | |||
this.$message.error("导出失败"); | |||
console.log(e); | |||
this.$message.error("暂无数据"); | |||
}) | |||
.finally(() => { | |||
this.loading = false; |
@@ -53,7 +53,11 @@ | |||
min-width="95" | |||
align="center" | |||
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"> | |||
<template slot-scope="{ row }"> | |||
<pre>{{ row.leaderDeptList | formatList }}</pre> | |||
@@ -117,10 +121,12 @@ export default { | |||
components: { | |||
search, | |||
}, | |||
mixins: [mergeSpan([ | |||
{name: 'quota1', col: [1]}, | |||
{name: 'quota2', col: [2]}, | |||
])], | |||
mixins: [ | |||
mergeSpan([ | |||
{ name: "quota1", col: [1] }, | |||
{ name: "quota2", col: [2] }, | |||
]), | |||
], | |||
created() { | |||
this.getDataList(); | |||
this.$store.dispatch("base/getQuota1List", 1); |
@@ -40,7 +40,11 @@ | |||
min-width="95" | |||
align="center" | |||
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"> | |||
<template slot-scope="{ row }"> | |||
<pre>{{ row.leaderDeptList | formatList }}</pre> | |||
@@ -111,9 +115,7 @@ export default { | |||
} | |||
}, | |||
}, | |||
mixins: [mergeSpan([ | |||
{name: 'quota', col: [1]} | |||
])], | |||
mixins: [mergeSpan([{ name: "quota", col: [1] }])], | |||
created() { | |||
this.getDataList(); | |||
this.$store.dispatch("base/getQuota1List", 1); |
@@ -53,7 +53,11 @@ | |||
min-width="95" | |||
align="center" | |||
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"> | |||
<template slot-scope="{ row }"> | |||
<pre>{{ row.leaderDeptList | formatList }}</pre> | |||
@@ -122,10 +126,12 @@ export default { | |||
components: { | |||
search, | |||
}, | |||
mixins: [mergeSpan([ | |||
{name: 'quota1', col: [1]}, | |||
{name: 'quota2', col: [2]}, | |||
])], | |||
mixins: [ | |||
mergeSpan([ | |||
{ name: "quota1", col: [1] }, | |||
{ name: "quota2", col: [2] }, | |||
]), | |||
], | |||
created() { | |||
this.getDataList(); | |||
this.$store.dispatch("base/getQuota1List", 1); |