Commit 073412aa by 杨北旺

修改角色页面/企微绑定页面

1 parent 662355ef
......@@ -156,7 +156,7 @@ export default {
}
let flag = false
this.dataList.forEach(item => {
if (item.departmentId == this.curGLData.departmentId && item.merchantId == this.curGLData.merchantId) {
if (item.departmentId == this.curGLData.departmentId || item.merchantId == this.curGLData.merchantId) {
flag = true
}
})
......@@ -233,7 +233,6 @@ export default {
tempindex = index
}
})
console.log(tempindex)
this.$confirm('此操作将删除该项, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
......@@ -248,10 +247,10 @@ export default {
})
})
.catch(() => {
this.$message({
type: 'info',
message: '已取消删除'
})
// this.$message({
// type: 'info',
// message: '已取消删除'
// })
})
},
// 递归:处理层级数组
......@@ -323,6 +322,9 @@ export default {
text-align: right;
}
}
.sel-wrap /deep/ .el-cascader-node {
max-width: 250px!important;
}
.btn-wrap {
padding-left: 20px;
padding-top: 40px;
......
......@@ -11,13 +11,13 @@
</el-select>
</el-form-item>
<el-form-item label="所属商户" prop="merchantName" v-if="pageType == 'edit'">
<el-input disabled style="width: 40%" v-model="ruleForm.merchantName"></el-input>
<el-input size="small" disabled style="width: 40%" v-model="ruleForm.merchantName"></el-input>
</el-form-item>
<el-form-item label="角色名称" prop="roleName">
<el-input style="width: 40%" v-model="ruleForm.roleName"></el-input>
<el-input size="small" style="width: 40%" v-model="ruleForm.roleName"></el-input>
</el-form-item>
<el-form-item label="角色说明" prop="roleDesc">
<el-input style="width: 40%" v-model="ruleForm.roleDesc"></el-input>
<el-input size="small" style="width: 40%" v-model="ruleForm.roleDesc"></el-input>
</el-form-item>
<el-form-item label="角色权限" prop="roleRoot">
<div class="custom_element">
......@@ -32,7 +32,10 @@
<SelectProduct ref="productFrom" :roleType="true" title=""></SelectProduct>
</div>
<div style="height: 84px"></div>
<div class="fixed_bottom">
<div class="fixed_bottom" :style="{
left: footerLeft + 'px',
width: footerWidth + 'px',
}">
<el-button v-if="pageType == 'create'" type="primary" @click="toCreateRole(1)">草稿</el-button>
<div class="wrap_driver">
<el-button type="primary" @click="toCreateRole(0)">确定</el-button>
......@@ -91,6 +94,10 @@ export default {
const { session } = this.$globalState
this.accountLevel = session.accountLevel
},
mounted(){
this.footerLeft = document.querySelector(".base-container-right").offsetLeft;
this.footerWidth = document.documentElement.clientWidth - this.footerLeft;
},
methods: {
// 获取角色信息
getRoleData(id) {
......@@ -235,17 +242,15 @@ export default {
}
.fixed_bottom {
position: fixed;
left: 0;
right: 0;
bottom: 0;
// width: calc(100% - 60px);
width: 100%;
bottom: 0px;
height: 64px;
background: #ffffff;
display: flex;
align-items: center;
justify-content: center;
z-index: 20;
background: #ffffff;
z-index: 999;
box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1);
.wrap_driver {
margin: 0 40px;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!