|
@@ -63,7 +63,7 @@
|
|
|
</el-descriptions>
|
|
</el-descriptions>
|
|
|
<el-table
|
|
<el-table
|
|
|
style="width: 100%" border stripe :data="tableData" :highlight-current-row="true"
|
|
style="width: 100%" border stripe :data="tableData" :highlight-current-row="true"
|
|
|
- :span-method="objectSpanMethod">
|
|
|
|
|
|
|
+ :span-method="objectSpanMethod" @cell-click="addWorkPlanWin">
|
|
|
<el-table-column prop="group" label="序号" width="60" align="center">
|
|
<el-table-column prop="group" label="序号" width="60" align="center">
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
<el-table-column
|
|
@@ -90,7 +90,7 @@
|
|
|
<el-table-column prop="workplan" label="下周工作计划">
|
|
<el-table-column prop="workplan" label="下周工作计划">
|
|
|
<el-table-column label="工作内容与完成时间" prop="planContent">
|
|
<el-table-column label="工作内容与完成时间" prop="planContent">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
- <div v-html="scope.row.planContent">
|
|
|
|
|
|
|
+ <div v-html="scope.row.planContent" >
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -105,18 +105,13 @@
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column prop="remarks" label="备注">
|
|
<el-table-column prop="remarks" label="备注">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
- <el-input v-model="scope.row.remark" type="textarea"
|
|
|
|
|
- :autosize="{ minRows: 4}" @change="workComment(scope.row)">
|
|
|
|
|
-
|
|
|
|
|
|
|
+ <el-input v-model="scope.row.remark" type="textarea" :autosize="{ minRows: 4}" @change="workComment(scope.row)">
|
|
|
</el-input>
|
|
</el-input>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column prop="workComments" label="工作评论">
|
|
<el-table-column prop="workComments" label="工作评论">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
- <el-input v-model="scope.row.workComment" type="textarea"
|
|
|
|
|
- :autosize="{ minRows: 4}" @change="workComment(scope.row)">
|
|
|
|
|
-
|
|
|
|
|
- </el-input>
|
|
|
|
|
|
|
+ <el-input v-model="scope.row.workComment" type="textarea" :autosize="{ minRows: 4}" @change="workComment(scope.row)"></el-input>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
</el-table>
|
|
</el-table>
|
|
@@ -132,6 +127,20 @@
|
|
|
<el-button type="primary" @click="taskFeedbackVisible = false" size="mini">确 定</el-button>
|
|
<el-button type="primary" @click="taskFeedbackVisible = false" size="mini">确 定</el-button>
|
|
|
</span>
|
|
</span>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
|
+
|
|
|
|
|
+ <el-dialog>
|
|
|
|
|
+ <el-table :data="workPlanDatas" stripe style="width: 100%;margin-top: 15px;">
|
|
|
|
|
+ <el-table-column type="index" label="序号" width="60"></el-table-column>
|
|
|
|
|
+ <el-table-column prop="name" label="任务名称" width="180"></el-table-column>
|
|
|
|
|
+ <el-table-column prop="s" label="所属项目" width="180"></el-table-column>
|
|
|
|
|
+ <el-table-column prop="address" label="截止时间"></el-table-column>
|
|
|
|
|
+ <el-table-column prop="op" label="操作">
|
|
|
|
|
+ <el-button type="primary" size="mini">修改</el-button>
|
|
|
|
|
+ <el-button type="primary" size="mini">删除</el-button>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ </el-table>
|
|
|
|
|
+ </el-dialog>
|
|
|
|
|
+
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
@@ -146,7 +155,6 @@ import {
|
|
|
|
|
|
|
|
import {downloadPdf} from "@/api/meeting/meeting";
|
|
import {downloadPdf} from "@/api/meeting/meeting";
|
|
|
|
|
|
|
|
-
|
|
|
|
|
export default {
|
|
export default {
|
|
|
name: 'weeklyRecords',
|
|
name: 'weeklyRecords',
|
|
|
data() {
|
|
data() {
|
|
@@ -183,8 +191,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
mergeObj: {}, // 用来记录需要合并行的下标
|
|
mergeObj: {}, // 用来记录需要合并行的下标
|
|
|
mergeArr: ['group', 'userName', 'planContent', 'scores', 'remarks', 'workComments'], // 表格中的列名
|
|
mergeArr: ['group', 'userName', 'planContent', 'scores', 'remarks', 'workComments'], // 表格中的列名
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
+ workPlanDatas:[]
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
@@ -199,10 +206,6 @@ export default {
|
|
|
getData() {
|
|
getData() {
|
|
|
let meetingId = this.meetingId
|
|
let meetingId = this.meetingId
|
|
|
let weeks = this.weeks
|
|
let weeks = this.weeks
|
|
|
- /* if(meetingId===undefined || weeks===undefined){
|
|
|
|
|
- this.$message.error('暂无周会会议!')
|
|
|
|
|
- return
|
|
|
|
|
- } */
|
|
|
|
|
if (meetingId != null && weeks != null) {
|
|
if (meetingId != null && weeks != null) {
|
|
|
getWeeksRecordsByWeeks(meetingId, weeks).then(res => {
|
|
getWeeksRecordsByWeeks(meetingId, weeks).then(res => {
|
|
|
this.tableData = res.data.workContent
|
|
this.tableData = res.data.workContent
|
|
@@ -220,7 +223,6 @@ export default {
|
|
|
if (data != null) {
|
|
if (data != null) {
|
|
|
this.meetingId = data.id
|
|
this.meetingId = data.id
|
|
|
this.weeks = data.weeks
|
|
this.weeks = data.weeks
|
|
|
-
|
|
|
|
|
getWeeksRecordsByWeeks(this.meetingId, this.weeks).then(res => {
|
|
getWeeksRecordsByWeeks(this.meetingId, this.weeks).then(res => {
|
|
|
this.tableData = res.data.workContent
|
|
this.tableData = res.data.workContent
|
|
|
this.getSpanArr(this.tableData);
|
|
this.getSpanArr(this.tableData);
|
|
@@ -356,9 +358,16 @@ export default {
|
|
|
type: 'warning'
|
|
type: 'warning'
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
})
|
|
})
|
|
|
|
|
+ },
|
|
|
|
|
+ addWorkPlanWin(row, column, cell, event){
|
|
|
|
|
+ let label=column.label
|
|
|
|
|
+ if(label==='工作内容与完成时间'){
|
|
|
|
|
+ let userId=row.executor
|
|
|
|
|
+ console.log(JSON.stringify(row))
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
}
|
|
}
|