jihua renwu

master
lion 2 years ago
parent e917a47191
commit 789812132e

@ -22,7 +22,7 @@
<Button type="primary" @click="getList"></Button>
<Button type="primary" style="margin-left: 10px;" @click="editorPatrol('','add')"></Button>
<Button type="primary" style='margin-left:10px;' @click="chooseEditorPatrol()"></Button>
<!-- <Button type="primary" style='margin-left:10px;' @click="chooseEditorPatrol()"></Button> -->
<Button type="primary" style="margin-left: 10px;" @click="importTable(new Date().getTime().toString())">导出</Button>
@ -49,19 +49,22 @@
<template v-slot:btns>
<el-table-column align='center' label="操作" width="80" header-align="center">
<template slot-scope="scope">
<div>
<Button v-if="(is_guiji||is_chuzhang||scope.row.is_myself)&&!(scope.row.status==5||scope.row.status==6)" type="primary" style='margin-right:5px;margin-bottom:5px;' size="small" @click="showPatrol(scope.row.id,'show')"></Button>
<Button v-else style='margin-right:5px;margin-bottom:5px;' size="small" @click="showPatrol(scope.row.id,'show')"></Button>
<div v-if="(is_guiji||is_chuzhang||scope.row.is_myself)&&!(scope.row.status==5||scope.row.status==6)">
<Button type="primary" style='margin-right:5px;margin-bottom:5px;' size="small" @click="showPatrol(scope.row.id,'show')"></Button>
</div>
<div v-else>
<Button size="small" style='margin-right:5px;margin-bottom:5px;' @click="showPatrol(scope.row.id,'show')"></Button>
</div>
<!-- <Button type="primary" style='margin-right:5px;margin-bottom:5px;' size="small" @click="showPatrol(scope.row.id,'show')"></Button> -->
<!-- <Button v-if="scope.row.status==1&&((scope.row.check_leader==1&&is_leader&&scope.row.leader_status===null)||(scope.row.check_main==1&&is_main_leader&&scope.row.main_status===null))" type="primary" style='margin-right:5px;margin-bottom:5px;' size="small" @click="showPatrol(scope.row.id,'leader')"></Button> -->
<!-- <Button v-if="scope.row.status==9&&((scope.row.re_check_leader==1&&is_leader&&scope.row.re_leader_status===null)||(scope.row.re_check_main==1&&is_main_leader&&scope.row.re_main_status===null))" type="primary" style='margin-right:5px;margin-bottom:5px;' size="small" @click="showPatrol(scope.row.id,'leaderconfirm')"></Button> -->
<div v-if='is_guiji||is_chuzhang||login_id==scope.row.admin_id'>
<Button type="primary" style='margin-left:10px;' @click="editorPatrol(scope.row.id,'editor')"></Button>
<Button type="primary" style='margin-right:5px;margin-bottom:5px;' size='small' @click="editorPatrol(scope.row.id,'editor')"></Button>
</div>
<div v-if='is_guiji||is_chuzhang'>
<Poptip transfer confirm title="确认要删除吗?" @on-ok="deleteList(scope.row.id)">
<Button type="primary" size='small' style="margin-left:5px;margin-bottom:5px;" ghost>删除</Button>
<Button type="primary" style='margin-right:5px;margin-bottom:5px;' size='small' ghost>删除</Button>
</Poptip>
</div>
@ -725,7 +728,7 @@
</script>
<style scoped>
/deep/ .missionName{
/deep/ .v-table .el-table__body .missionName{
vertical-align: top!important;
}
/deep/ .el-icon-circle-close{

@ -217,25 +217,25 @@
// width: 120,
align:'left'
},
{
label: "月份",
prop: 'start_date',
width: 180,
align:'left',
customFn:(row)=>{
return(<div style={{"display": "flex","flex-wrap": "wrap","justify-content": "center"}}>
{
row.start_date.map((item,index)=>{
return(<span>{
index===row.start_date.length-1?
item
:item+"、"
}</span>)
})
}
</div>)
}
},
// {
// label: "",
// prop: 'start_date',
// width: 180,
// align:'left',
// customFn:(row)=>{
// return(<div style={{"display": "flex","flex-wrap": "wrap","justify-content": "center"}}>
// {
// row.start_date.map((item,index)=>{
// return(<span>{
// index===row.start_date.length-1?
// item
// :item+""
// }</span>)
// })
// }
// </div>)
// }
// },
// {
// label: "",
// prop: 'name',
@ -606,7 +606,7 @@
</script>
<style scoped>
/deep/ .monthName{
/deep/ .v-table .el-table__body .monthName{
vertical-align: top!important;
}
/deep/ .el-icon-circle-close {

Loading…
Cancel
Save