|
@@ -214,11 +214,11 @@ const handleCurrentChange = (val) => {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const add = (row) => {
|
|
const add = (row) => {
|
|
|
- console.log(userInfo.value)
|
|
|
|
|
- if (row.dutyPerson !== userInfo.value.id && userInfo.value.username !== 'admin') {
|
|
|
|
|
- ElMessage.error('您没有权限进行此操作')
|
|
|
|
|
- return
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // console.log(userInfo.value)
|
|
|
|
|
+ // if (row.dutyPerson !== userInfo.value.id && userInfo.value.username !== 'admin') {
|
|
|
|
|
+ // ElMessage.error('您没有权限进行此操作')
|
|
|
|
|
+ // return
|
|
|
|
|
+ // }
|
|
|
router.push({
|
|
router.push({
|
|
|
name: 'MonthlyReportAdd',
|
|
name: 'MonthlyReportAdd',
|
|
|
params: {
|
|
params: {
|
|
@@ -228,10 +228,10 @@ const add = (row) => {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const detail = (row) => {
|
|
const detail = (row) => {
|
|
|
- if (row.dutyPerson !== userInfo.value.id && userInfo.value.username !== 'admin') {
|
|
|
|
|
- ElMessage.error('您没有权限进行此操作')
|
|
|
|
|
- return
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // if (row.dutyPerson !== userInfo.value.id && userInfo.value.username !== 'admin') {
|
|
|
|
|
+ // ElMessage.error('您没有权限进行此操作')
|
|
|
|
|
+ // return
|
|
|
|
|
+ // }
|
|
|
router.push({
|
|
router.push({
|
|
|
name: 'MonthlyReportInfo',
|
|
name: 'MonthlyReportInfo',
|
|
|
params: {
|
|
params: {
|