|
@@ -140,8 +140,8 @@
|
|
<vxe-column title="操作" width="200px" fixed="right" align="center">
|
|
<vxe-column title="操作" width="200px" fixed="right" align="center">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-button v-if="hasPermission('sys:workContract:view')" type="text" icon="el-icon-view" size="small" @click="view(scope.row.id)">查看</el-button>
|
|
<el-button v-if="hasPermission('sys:workContract:view')" type="text" icon="el-icon-view" size="small" @click="view(scope.row.id)">查看</el-button>
|
|
- <el-button v-if="hasPermission('sys:workContract:edit') && scope.row.status !== '2' && scope.row.status !== '5' && scope.row.createId === create && scope.row.createId !== '1'" type="text" icon="el-icon-edit" size="small" @click="edit(scope.row)">修改</el-button>
|
|
|
|
- <el-button v-if="hasPermission('sys:workContract:edit') && scope.row.status === '5' && scope.row.createId === '1'" type="text" icon="el-icon-edit" size="small" @click="editForm(scope.row.id)">修改</el-button>
|
|
|
|
|
|
+ <el-button v-if="hasPermission('sys:workContract:edit') && scope.row.status !== '2' && scope.row.status !== '5' && scope.row.createId === create && create !== '1'" type="text" icon="el-icon-edit" size="small" @click="edit(scope.row)">修改</el-button>
|
|
|
|
+ <el-button v-if="hasPermission('sys:workContract:edit') && scope.row.status === '5' && create === '1'" type="text" icon="el-icon-edit" size="small" @click="editForm(scope.row.id)">修改</el-button>
|
|
<el-button v-if="hasPermission('sys:workContract:del') && (scope.row.status === '1' || scope.row.status === '3')" type="text" icon="el-icon-delete" size="small" @click="del(scope.row.id)">删除</el-button>
|
|
<el-button v-if="hasPermission('sys:workContract:del') && (scope.row.status === '1' || scope.row.status === '3')" type="text" icon="el-icon-delete" size="small" @click="del(scope.row.id)">删除</el-button>
|
|
<el-button v-if="hasPermission('sys:workContract:back') && scope.row.status === '2'" type="text" icon="el-icon-back" size="small" @click="reback(scope.row)">撤回</el-button>
|
|
<el-button v-if="hasPermission('sys:workContract:back') && scope.row.status === '2'" type="text" icon="el-icon-back" size="small" @click="reback(scope.row)">撤回</el-button>
|
|
</template>
|
|
</template>
|
|
@@ -226,6 +226,7 @@
|
|
},
|
|
},
|
|
user () {
|
|
user () {
|
|
this.create = JSON.parse(localStorage.getItem('user')).id
|
|
this.create = JSON.parse(localStorage.getItem('user')).id
|
|
|
|
+ return JSON.parse(localStorage.getItem('user'))
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
|