档案目录修改

master
wanglei 1 year ago
parent 6a0698be92
commit 6b58c8e422

@ -3,6 +3,7 @@ import { getToken, setToken, removeToken } from '@/utils/auth'
const user = {
state: {
admin:'',
token: getToken(),
id: '',
name: '',
@ -13,6 +14,9 @@ const user = {
},
mutations: {
SET_ADMIN: (state, admin) => {
state.admin = admin
},
SET_TOKEN: (state, token) => {
state.token = token
},
@ -66,6 +70,7 @@ 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_AVATAR', avatar)

@ -379,7 +379,6 @@ export default {
},
created() {
this.getList();
// this.getParentOption();
},
methods: {
/** 查询目录列表 */
@ -456,7 +455,7 @@ export default {
this.form.pid = 0;
}
if(row&&row.id!==0){
if(row&&row.id!==0&&row.id!==undefined){
getCatalogNumber(row.id).then(response => {
this.form.orderNum = response.orderNum;
});
@ -537,7 +536,7 @@ export default {
this.form.muName = this.dict.type.yw_type.find(option => option.value === val).label;
},
/** 查询乡镇列表 */
/*getParentOption() {
getParentOption() {
listAreaSort({
pageNum: 1,
pageSize: 1000000000,
@ -545,9 +544,10 @@ export default {
}).then(response => {
this.xzcsq.parentOption = response.rows;
});
},*/
},
// /
selectXZCSQ(areaType){
this.getParentOption();
this.xzcsq.list = [];
this.xzcsq.queryParams.pageNum = 1;
this.xzcsq.queryParams.pageSize = 10;
@ -603,8 +603,7 @@ export default {
},
/** 查询档案图片信息记录列表 */
getListPicture(row) {
if(this.$store.state.user.permissions.indexOf('dangan:pictureRecard:list')>0){
if(this.$store.state.user.admin || this.$store.state.user.permissions.indexOf('dangan:pictureRecard:list')>0){
this.lssc.open = true;
listPictureRecard({muId: row.id,pageSize: 1000000000}).then(response => {
this.lssc.list = response.rows;

Loading…
Cancel
Save