1.部门周报页面的修改

2.修改页面的本周进展改为文本域
This commit is contained in:
chen 2024-07-26 16:32:06 +08:00
parent e69d38a3f3
commit 5451d1787f
3 changed files with 35 additions and 5 deletions

View File

@ -31,6 +31,8 @@
class="form-input" class="form-input"
placeholder="请输入内容" placeholder="请输入内容"
v-model="formAll.ls[0].thisWeek" v-model="formAll.ls[0].thisWeek"
type="textarea"
row="7"
> >
</el-input> </el-input>
</el-form-item> </el-form-item>
@ -39,6 +41,8 @@
class="form-input" class="form-input"
placeholder="请输入内容" placeholder="请输入内容"
v-model="formAll.ls[0].nextWeek" v-model="formAll.ls[0].nextWeek"
type="textarea"
row="7"
> >
</el-input> </el-input>
</el-form-item> </el-form-item>

View File

@ -38,11 +38,17 @@
prop="thisWeek" prop="thisWeek"
label="本周进展" label="本周进展"
> >
<template slot-scope="{ row }">
<div style="white-space: pre-wrap;">{{ row.thisWeek }}</div>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="nextWeek" prop="nextWeek"
label="下周计划" label="下周计划"
> >
<template slot-scope="{ row }">
<div style="white-space: pre-wrap;">{{ row.nextWeek }}</div>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="week" prop="week"
@ -52,9 +58,10 @@
<el-table-column label="操作"> <el-table-column label="操作">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" size="mini" @click="showById(scope.row.id)">查看工作量</el-button> <el-button type="text" size="mini" @click="showById(scope.row.id)">查看工作量</el-button>
<el-button type="text" size="mini" @click="updateById(scope.row.id)">修改</el-button> <el-button type="text" size="mini" @click="updateById(scope.row.id)">查看</el-button>
<el-button v-if="isButtonDisabled(scope.row.id)" type="text" size="mini" disabled>已汇总</el-button> <el-button v-if="isButtonDisabled(scope.row.id)" type="text" size="mini" disabled>已汇总</el-button>
<el-button v-else type="text" size="mini" @click="summary(scope.row)">汇总</el-button> <el-button v-else-if="isAdminDisabled(scope.row)" type="text" size="mini" @click="summary(scope.row)">汇总</el-button>
<el-button v-else type="text" size="mini" disabled>汇总</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -130,6 +137,7 @@
projectName: '', projectName: '',
week: '' week: ''
}, },
formAll: [],
dataList: [], dataList: [],
workLoadInfo: [], // workLoadInfo: [], //
ext: [], ext: [],
@ -172,6 +180,7 @@
this.pageLoading = false; this.pageLoading = false;
console.log("周报填报列表",result) console.log("周报填报列表",result)
if (result.status === 0) { if (result.status === 0) {
this.formAll = result.data;
this.dataList = result.data.ls; this.dataList = result.data.ls;
this.total = result.data.total; this.total = result.data.total;
for (let i=0; i<this.dataList.length; i++) { for (let i=0; i<this.dataList.length; i++) {
@ -181,7 +190,8 @@
userName: this.dataList[i].userName, userName: this.dataList[i].userName,
workload: this.dataList[i].workload, workload: this.dataList[i].workload,
thisWeek: this.dataList[i].thisWeek, thisWeek: this.dataList[i].thisWeek,
nextWeek: this.dataList[i].nextWeek nextWeek: this.dataList[i].nextWeek,
ids: this.dataList[i].id
}) })
} }
console.log("tableRowsData",this.tableRowsData) console.log("tableRowsData",this.tableRowsData)
@ -304,6 +314,16 @@
isButtonDisabled (id) { isButtonDisabled (id) {
return this.disabledButtons.includes(id); return this.disabledButtons.includes(id);
}, },
isAdminDisabled (row) {
if (row.id === this.ids) {
if (this.formAll.userId !== this.formAll.ls[0].ext.draftManId &&
this.formAll.userId !== this.formAll.ls[0].ext.projectManagerData) {
return true;
}
} else {
return false
}
},
updateWorkload (id) { updateWorkload (id) {
this.$router.push({ this.$router.push({
name: "DepartmentWorkloadEdit", name: "DepartmentWorkloadEdit",

View File

@ -101,7 +101,8 @@ export default {
week: dataList[i].week, week: dataList[i].week,
budget: dataList[i].budget, budget: dataList[i].budget,
execute: dataList[i].execute, execute: dataList[i].execute,
implementationRate: dataList[i].implementationRate implementationRate: dataList[i].implementationRate,
updatedAt: dataList[i].updatedAt
}) })
} }
} }
@ -188,6 +189,11 @@ export default {
label: '预算执行率', label: '预算执行率',
prop: 'implementationRate', prop: 'implementationRate',
show: true show: true
},
{
label: '修改时间',
prop: 'updatedAt',
show: true
} }
] ]
}, },