epmet pc工作端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

184 lines
7.3 KiB

<template>
7 months ago
<div class="g-main">
7 months ago
<div class="right" v-if="!showSummary">
7 months ago
<div class="title-small" id="base">任务信息
7 months ago
<el-button type="text" round @click="handelClickBack" icon="el-icon-back">返回</el-button>
7 months ago
</div>
<el-form ref="form" label-position="left" :model="formData" label-width="120px"
style="margin-left: 3%; margin-top: 30px;">
<el-row>
<el-col :span="8">
<el-form-item label="任务主题">
<div style="display: flex; align-items: center;">
<div>{{ formData.taskTitle}}</div>
7 months ago
<div
style="display: flex;margin-left: 10px;
justify-content: center; align-items: center; width: 60px; height: 20px; border: 2px solid #ADD8E6; color: #ADD8E6; font-size: 12px;">
{{ formData.taskState === 'resolved' ? '已完成' : formData.taskState === 'cancel' ? '已取消' : '进行中' }}
7 months ago
</div>
</div>
</el-form-item>
</el-col>
<el-col :span="16">
<el-form-item label="任务发布时间">
<div>{{formData.createdTime}}</div>
7 months ago
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="任务发布部门">
<div>{{formData.agencyName}}</div>
7 months ago
</el-form-item>
</el-col>
<el-col :span="16">
<el-form-item label="任务发布人">
<div>{{formData.createByName}}</div>
7 months ago
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="任务类型">
<div>{{formData.type}}</div>
</el-form-item>
</el-col>
<el-col :span="16">
<el-form-item label="任务周期">
<div>{{formData.taskPeriod === 'once' ? '一次性' : '每周'}}</div>
7 months ago
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="分发人员">
<div style="display: flex;flex-direction: row; align-items: center;">
<div>{{formData.totalNum}}</div>
<!-- <el-button @click="oncClickInfo('info')" style="margin-left: 10px;"
7 months ago
type="text">查看接收人员名单</el-button>
<el-button @click="oncClickInfo('adjust')" type="text">调整收人人员</el-button> -->
7 months ago
</div>
7 months ago
7 months ago
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="任务说明">
<div style="display: flex;flex-direction: row; align-items: center;">
<div>{{formData.taskIntroduction}}</div>
7 months ago
<el-button style="margin-left: 10px;" type="text"
@click="oncClickInfo('edit')">[修改]</el-button>
7 months ago
</div>
</el-form-item>
</el-col>
</el-row>
</el-form>
<div class="title-small" id="reside">任务进展情况</div>
<div class="m-table">
7 months ago
7 months ago
<el-table :data="tableData" border class="m-table-item"
style="width: 70%;margin-left: 3%; margin-top: 30px;" >
7 months ago
<el-table-column label="序号" fixed="left" type="index" align="center" width="80" />
<el-table-column prop="renwu" align="center" :show-overflow-tooltip="true" label="任务周期">
</el-table-column>
<el-table-column fixed="right" label="汇报情况" align="center">
<template slot-scope="scope">
<el-button @click=" handleInfo(scope.row)" type="text" size="small">{{ scope.row.data
}}</el-button>
<el-button @click="handelClickShowSummary()" type="text" size="small"
class="">查看</el-button>
</template>
</el-table-column>
</el-table>
</div>
</div>
<div v-if="showSummary" style="width: 100%;background: #ffffff;">
7 months ago
<excel-summary @close="closeSummary"></excel-summary>
</div>
7 months ago
<div class=''>
7 months ago
<el-dialog title="调整接收人员" :visible.sync="showPersonel" width="50%" :close-on-click-modal="false">
<acceptingPersonel :showType="showType" :acceptingId="formData.acceptingId" :taskId="taskId"
7 months ago
@handelPersonel="handelPersonel"></acceptingPersonel>
</el-dialog>
</div>
7 months ago
</div>
</template>
<script>
import { requestPost, requestGet } from "@/js/dai/request";
7 months ago
import acceptingPersonel from "./acceptingPersonel.vue";
7 months ago
import excelSummary from "./excel-summary.vue";
7 months ago
import { mapGetters } from 'vuex'
export default {
data() {
return {
taskId:"",
7 months ago
showType:"",
showPersonel:false,
7 months ago
showSummary:false,
formData:{
},
tableData:[
{
renwu:"2024年11月 第三周",
data:"12/16",
}
]
};
},
created() {},
async mounted() {
this.getDetail()
},
methods: {
getDetail() {
let parms = {
id: this.taskId,
};
requestGet('/actual/base/communityOneTablePublish/getDetail', parms).then(res => {
this.formData=res.data
});
},
7 months ago
handelClickBack() {
this.$emit('handleShowPage')
},
handelPersonel() {
this.showPersonel = false;
},
oncClickPersonel(){
this.showType="adjust"
this.showPersonel=true
},
oncClickInfo(value){
this.taskId=this.formData.id
7 months ago
this.showType=value
this.showPersonel=true
},
handelClickShowSummary(){
this.showSummary = true
},
closeSummary(){
this.showSummary = false;
}
},
components:{
7 months ago
acceptingPersonel,excelSummary
},
7 months ago
computed:{
tableHeight() {
return (this.clientHeight - 140) + 'px'
},
...mapGetters(['clientHeight', 'resolution']),
},
props: {
taskId: {
type: String,
default: ""
},
},
watch: {},
}
</script>
<style lang='scss' scoped>
@import "@/assets/scss/pages/resiInfo.scss";
@import "@/assets/scss/modules/management/list-main.scss";
</style>