diff --git a/src/views/applicationList/applicationAdd.vue b/src/views/applicationList/applicationAdd.vue index 70f3a16..a36a381 100644 --- a/src/views/applicationList/applicationAdd.vue +++ b/src/views/applicationList/applicationAdd.vue @@ -20,7 +20,7 @@
- +
@@ -136,6 +136,9 @@ export default { }; }, methods: { + handleImageError(row) { + row.imgUrl = require('./images/1.png') + }, // 状态改变 async appStatusChange(val, row) { const res = await getApiModuleApi({ @@ -322,10 +325,13 @@ export default { flex: 0.25; width: 29px; height: 29px; + display: flex; + justify-content: center; + align-items: center; img { width: 100%; - height: 100%; + // height: 100%; } } diff --git a/src/views/applicationList/settingMenu.vue b/src/views/applicationList/settingMenu.vue index ffef840..00e0c59 100644 --- a/src/views/applicationList/settingMenu.vue +++ b/src/views/applicationList/settingMenu.vue @@ -16,10 +16,10 @@ -->
{{ name }}
@@ -62,6 +62,9 @@ export default { }; }, methods: { + handleImageError(row) { + this.imgUrl = require('./images/1.png') + }, flashActive(val) { this.menuActived = val }, @@ -137,6 +140,9 @@ export default { > .img { width: 64px; height: 64px; + display: flex; + justify-content: center; + align-items: center; } .appName { diff --git a/src/views/systemSettings/jurisdictionManage/userJurisdiction/rightDialog.vue b/src/views/systemSettings/jurisdictionManage/userJurisdiction/rightDialog.vue index dfafb77..b88c2c7 100644 --- a/src/views/systemSettings/jurisdictionManage/userJurisdiction/rightDialog.vue +++ b/src/views/systemSettings/jurisdictionManage/userJurisdiction/rightDialog.vue @@ -180,7 +180,56 @@ export default { }) }, handleSelectionChange(val, row) { - row.check = !row.check + this.multipleSelection = val + let data = this.treeToArray([row]) + this.childNode = !row.check + console.log(this.childNode,'this.childNode') + if (data.length > 1) { + console.log(data,'data') + data.forEach((el, index) => { + el.check = this.childNode + this.$refs.multipleTable.toggleRowSelection(el, this.childNode) + }) + let ids = data[0].id + let arr = this.treeFindPath( + this.menuDatas, + (data) => data.id == ids, + 'id' + ) + arr = arr.splice(0, arr.length - 1) + let dataList = [] + let allList = this.treeToArray(this.menuDatas) + allList.forEach((el, index) => { + if (arr.includes(el.id)) { + dataList.push(el) + } + }) + dataList.forEach((el, index) => { + el.check = true + this.$refs.multipleTable.toggleRowSelection(el, true) + }) + } else { + let ids = data[0].id + let arr = this.treeFindPath( + this.menuDatas, + (data) => data.id == ids, + 'id' + ) + console.log(arr,'arr') + // arr = arr.splice(0, arr.length - 1) + let dataList = [] + let allList = this.treeToArray(this.menuDatas) + allList.forEach((el, index) => { + if (arr.includes(el.id)) { + dataList.push(el) + } + }) + console.log(dataList,'dataList') + dataList.forEach((el, index) => { + el.check = this.childNode + this.$refs.multipleTable.toggleRowSelection(el, this.childNode ) + }) + } }, // 默认选中 exhibitList(menu, homeList, id) { @@ -239,13 +288,13 @@ export default { } this.homeListHandle(params.sysPopedomHomeEntities) this.menuListHandle(this.menuDatas, params.sysPopedomMenuEntities, params.sysPopedomOperateEntities) - const res = await authApi("sysUserService","","saveJurisdiction","",params) - if(res.status == '200'){ - this.handleDialogClose(); + const res = await authApi('sysUserService', '', 'saveJurisdiction', '', params) + if (res.status == '200') { + this.handleDialogClose() this.$message({ - message: "保存成功", - type: "success", - }); + message: '保存成功', + type: 'success' + }) } }, //处理首页拖拽 @@ -265,7 +314,7 @@ export default { }) } if (item.children.length) { - this.menuListHandle(item.children, result,btnResult) + this.menuListHandle(item.children, result, btnResult) } if (item.buttonList.length) { this.btnListHandle(item.buttonList, btnResult, item.id) @@ -276,7 +325,7 @@ export default { btnListHandle(list, btnResult, menuId) { list.forEach(item => { if (item.check) { - console.log(btnResult,'btnResult') + console.log(btnResult, 'btnResult') btnResult.push({ menuId, operate: item.id