1.部门周报页面的修改
2.修改页面的本周进展改为文本域
This commit is contained in:
parent
e69d38a3f3
commit
5451d1787f
@ -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>
|
||||||
|
@ -37,12 +37,18 @@
|
|||||||
<el-table-column
|
<el-table-column
|
||||||
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",
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user