Browse Source

删除多余页面,权限频道优化

zhangrenyuan/feature-20251104133449-现金管理二期
ZhangYong 3 weeks ago
parent
commit
b741d16c49
  1. 2
      src/router/index.js
  2. 5
      src/views/moneyManage/receiveDetail/receiveFinance.vue
  3. 1174
      src/views/moneyManage/receiveDetail/receiveManage.vue
  4. 22
      src/views/permissions/rolePermission.vue

2
src/router/index.js

@ -319,7 +319,7 @@ const routes = [
{ {
path: 'receiveManager', path: 'receiveManager',
name: "receiveManager", name: "receiveManager",
component: () => import("../views/moneyManage/receiveDetail/receiveManage.vue"),
component: () => import("../views/moneyManage/receiveDetail/receiveFinance.vue"),
meta: { permissionId: [67, 79] } meta: { permissionId: [67, 79] }
}, },
{//地区财务 {//地区财务

5
src/views/moneyManage/receiveDetail/receiveFinance.vue

@ -454,12 +454,11 @@
<el-text style="width:4vw;">产品数量</el-text> <el-text style="width:4vw;">产品数量</el-text>
<el-input style="padding-right: 10px; width:10.5vw;" v-model="refundFormData.goodNum" <el-input style="padding-right: 10px; width:10.5vw;" v-model="refundFormData.goodNum"
placeholder="请输入产品数量" disabled /> placeholder="请输入产品数量" disabled />
<span style="color: #999999;">{{ productUnit }}</span>
</div> </div>
<div v-show="isRefundGold" style="display: flex;">
<div v-show="isRefundGold" style="display: flex; margin-bottom: 10px;">
<div style=" display: flex; align-items: center;justify-content: center; "> <div style=" display: flex; align-items: center;justify-content: center; ">
<span style="color: #999999; white-space: nowrap;">永久金币</span> <span style="color: #999999; white-space: nowrap;">永久金币</span>
<el-input style="padding-right: 10px; height: 30px; width: 70px; margin-bottom: 10px"
<el-input style="padding-right: 10px; height: 30px; width: 70px;"
v-model="refundFormData.permanentGold" disabled /> v-model="refundFormData.permanentGold" disabled />
</div> </div>
<div style=" display: flex; align-items: center;justify-content: center; "> <div style=" display: flex; align-items: center;justify-content: center; ">

1174
src/views/moneyManage/receiveDetail/receiveManage.vue
File diff suppressed because it is too large
View File

22
src/views/permissions/rolePermission.vue

@ -431,18 +431,38 @@ const collectIds2 = (tree) => {
return ids return ids
} }
const collectIdsAll = (tree) => {
let ids = []
tree.forEach((node) => {
ids.push(node.id)
// children children
if (node.children || node.children.length === 0) {
ids = ids.concat(collectIdsAll(node.children))
}
})
return ids
}
// //
const permissionEditRoleInit = async function (row) { const permissionEditRoleInit = async function (row) {
console.log('row', row) console.log('row', row)
console.log('row.tree', row.tree) console.log('row.tree', row.tree)
let EditIds = collectIdsAll(row.tree)
console.log(EditIds);
permissionEditRoleObj.value = {} permissionEditRoleObj.value = {}
permissionEditRoleObj.value.id = row.id permissionEditRoleObj.value.id = row.id
permissionEditRoleObj.value.roleName = row.roleName permissionEditRoleObj.value.roleName = row.roleName
permissionEditRoleObj.value.market = row.market permissionEditRoleObj.value.market = row.market
permissionEditRoleObj.value.parentId = row.fatherId permissionEditRoleObj.value.parentId = row.fatherId
permissionEditRoleObj.value.parentName = row.fatherName permissionEditRoleObj.value.parentName = row.fatherName
permissionEditRoleObj.value.channel = row.channel
if (EditIds.includes(124)) {
ifHasChannel.value = true
} else {
ifHasChannel.value = false
}
try { try {
let roleId = permissionEditRoleObj.value.parentId; let roleId = permissionEditRoleObj.value.parentId;
// id // id

Loading…
Cancel
Save