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