心愿管理、走访记录、补贴管理、巡查记录、工作记录页面修改

main
wanglei 2 years ago
parent fa4d98d7a7
commit 84765dae58

@ -4,9 +4,11 @@ import { getToken, setToken, removeToken } from '@/utils/auth'
const user = {
state: {
token: getToken(),
admin: '',
id: '',
name: '',
nickName: '',
deptId: '',
avatar: '',
roles: [],
permissions: []
@ -16,6 +18,9 @@ const user = {
SET_TOKEN: (state, token) => {
state.token = token
},
SET_ADMIN: (state, admin) => {
state.admin = admin
},
SET_ID: (state, id) => {
state.id = id
},
@ -25,6 +30,9 @@ const user = {
SET_NICKNAME: (state, nickName) => {
state.nickName = nickName
},
SET_DEPTID: (state, deptId) => {
state.deptId = deptId
},
SET_AVATAR: (state, avatar) => {
state.avatar = avatar
},
@ -66,9 +74,11 @@ const user = {
} else {
commit('SET_ROLES', ['ROLE_DEFAULT'])
}
commit('SET_ADMIN', user.admin)
commit('SET_ID', user.userId)
commit('SET_NAME', user.userName)
commit('SET_NICKNAME', user.nickName)
commit('SET_DEPTID', user.deptId)
commit('SET_AVATAR', avatar)
resolve(res)
}).catch(error => {

@ -140,7 +140,7 @@
v-hasPermi="['szxc:butie:remove']"
>删除</el-button>
<el-button
v-if="scope.row.zfStatus==='0'"
v-if="scope.row.zfStatus==='0'&& ($store.state.user.deptId===scope.row.auditDeptid || $store.state.user.admin)"
size="mini"
type="text"
@click="handleShenHe(scope.row)"

@ -179,7 +179,7 @@
v-hasPermi="['szxc:visitrecard:remove']"
>删除</el-button>
<el-button
v-if="scope.row.zfStatus==='0'"
v-if="scope.row.zfStatus==='0'&& ($store.state.user.deptId===scope.row.auditDeptid || $store.state.user.admin)"
size="mini"
type="text"
@click="handleShenHe(scope.row)"

@ -173,7 +173,7 @@
v-hasPermi="['szxc:wish:remove']"
>删除</el-button>
<el-button
v-if="scope.row.wishStatus==='0'"
v-if="scope.row.wishStatus==='0'&& ($store.state.user.deptId===scope.row.auditDeptid || $store.state.user.admin)"
size="mini"
type="text"
@click="handleShenHe(scope.row)"

@ -161,7 +161,7 @@
v-hasPermi="['szxc:workrecard:remove']"
>删除</el-button>
<el-button
v-if="scope.row.gzStatus==='0'"
v-if="scope.row.gzStatus==='0'&& ($store.state.user.deptId===scope.row.auditDeptid || $store.state.user.admin)"
size="mini"
type="text"
@click="handleShenHe(scope.row)"

@ -209,7 +209,7 @@
v-hasPermi="['szxc:xcrecard:edit']"
>整改进度</el-button>
<el-button
v-if="scope.row.xcStatus==='0'"
v-if="scope.row.xcStatus==='0'&& ($store.state.user.deptId===scope.row.auditDeptid || $store.state.user.admin)"
size="mini"
type="text"
@click="handleShenHe(scope.row)"

Loading…
Cancel
Save