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

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

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

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

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

Loading…
Cancel
Save