Browse Source

Merge branch 'dev-role' into dev

feature
jiangyy 3 years ago
parent
commit
f00bdaf3f4
  1. 4
      src/router/index.js
  2. 2
      src/views/modules/workSys/role/role.vue
  3. 26
      src/views/modules/workSys/role/roleForm.vue

4
src/router/index.js

@ -380,7 +380,7 @@ router.beforeEach((to, from, next) => {
// fnAddDynamicMenuRoutes2(window.SITE_CONFIG["menuShujuList"]);
http
.get("gov/access/menu/navDigitalCommunity?tableName=data_menu")
.get("/gov/access/menu/nav?tableName=data_menu")
.then(({ data: res }) => {
if (res.code == 10005 || res.code == 10006 || res.code == 10007) {
// 10005 token为空 10006登陆超时 10007别处登录
@ -406,7 +406,7 @@ router.beforeEach((to, from, next) => {
});
http
.get("gov/access/menu/navDigitalCommunity")
.get("/gov/access/menu/nav")
.then(({ data: res }) => {
if (res.code == 10005 || res.code == 10006 || res.code == 10007) {
// 10005 token为空 10006登陆超时 10007别处登录

2
src/views/modules/workSys/role/role.vue

@ -242,7 +242,7 @@ export default {
},
diaClose () {
this.$refs.ref_form.resetData()
this.formShow = false
},

26
src/views/modules/workSys/role/roleForm.vue

@ -126,7 +126,7 @@ export default {
await this.getMenuList()
await this.getMenuShujuList()
this.$refs['ref_form'].resetFields();
this.$refs.menuListTree.setCheckedKeys([])
this.$refs.menuListShujuTree.setCheckedKeys([])
@ -297,31 +297,15 @@ export default {
},
resetData () {
this.roleId = ''
this.fileList = []
this.hideUploadEdit = false
this.formData = {
roleId: '',
agencyId: '',//Id
userId: '',//idicResiUserId
userType: 'icresi',//resi;icresi;import;synchro
id: '',
name: '',
idCard: '',
mobile: '',
natTime: '',
natAddress: '',
natResult: '',
isSelChannel: false,
channel: [],
content: '',
fileName: '',//
attachmentType: '',// - image - video - voice - doc
attachmentUrl: '',//
remark: '',//
menuIdList: [],
customerId: ''
}
},

Loading…
Cancel
Save