Commit ae634ef1 by 王志慧

commit

2 parents 3c9bd665 55909069
......@@ -65,27 +65,24 @@
width: footerWidth + 'px'
}"
>
<el-button class="custtom" size="small" v-if="pageType == 'create'" type="primary" @click="toCreateRole(1)">草稿</el-button>
<el-button class="custtom" v-if="pageType == 'create'" type="primary" @click="toCreateRole(1)">草稿</el-button>
<div class="wrap_driver">
<el-button size="small" type="primary" @click="toCreateRole(0)">确定</el-button>
<el-button type="primary" @click="toCreateRole(0)">确定</el-button>
</div>
<el-button size="small" @click="toBack">取消</el-button>
<el-button @click="toBack">取消</el-button>
</div>
</div>
</div>
</template>
<script>
import AutoButton from '../../components/auto-button/index.vue'
import SelectProduct from './components/selectProduct.vue'
export default {
name: '',
components: {
AutoButton,
SelectProduct
},
data() {
return {
roleRootRules: false,
......@@ -210,7 +207,6 @@ export default {
this.rootList = arr
}
let accounttypeId = []
this.rootList.forEach(item => {
accounttypeId.push(item.accounttypeId)
})
......@@ -218,7 +214,6 @@ export default {
this.accounttypeIds = accounttypeId
this.$refs.productFrom.findMenuFunTree(item.accounttypeId, item.select)
},
// 确定按钮---处理参数---提交数据---创建为0---草稿为1
toCreateRole(delFlag) {
let { merchantId, roleDesc, roleName } = this.ruleForm
......@@ -227,7 +222,6 @@ export default {
this.$refs.ruleForm.validateField('merchantId')
return
}
if (!roleName && this.$refs.productFrom.getSelectInfo().length == 0) {
this.$message.error('角色和权限至少选择一项')
return
......@@ -337,7 +331,6 @@ export default {
this.$router.push('/role/index')
}
},
async created() {
const { session } = this.$globalState
this.accountLevel = session.accountLevel
......@@ -358,7 +351,6 @@ export default {
// document.getElementById('tab-/account/role/create').innerHTML='修改角色'
}
},
mounted() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
......@@ -368,7 +360,6 @@ export default {
}
}
</script>
<style lang="scss" scoped>
.role-create-page {
height: 100%;
......
<template>
<div class="role-home-page">
<div class="top_widget">
<!-- <el-button size="small" icon="el-icon-plus" type="primary" @click="toCreatePage">创建角色</el-button> -->
<GLButton size="small" fn="创建角色" icon="el-icon-plus" type="primary" display="disabled" @click="toCreatePage">创建角色</GLButton>
<!-- <el-button size="small" icon="el-icon-plus" type="primary" @click="toCreatePage">创建角色</el-button> -->
</div>
<div class="table_widget">
<div class="search_widget">
......@@ -32,7 +32,6 @@
<GLTable v-if="distoryTable" ref="table" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams" @refreshTable="getTableData">
<template slot="auth-button" slot-scope="scope" :data="scope.scope">
<GLButton type="text" @click="toLookPage(scope.scope)" fn="查看">查看</GLButton>
<!-- <GLButton v-if="scope.scope.roleName != '超级管理员'" fn="修改" type="text" display="disabled" @click="toEditPage(scope.scope)">修改</GLButton> -->
<GLButton v-if="!scope.scope.defalutRole" fn="修改" type="text" display="disabled" @click="toEditPage(scope.scope)">修改</GLButton>
<!-- <el-button type="text" @click="toLookPage(scope.scope)">查看</el-button>
<el-button v-if="scope.scope.roleName!='超级管理员'" type="text" @click="toEditPage(scope.scope)">修改</el-button> -->
......@@ -220,7 +219,11 @@ export default {
})
}
})
<<<<<<< HEAD
})
=======
.catch(() => {})
>>>>>>> 559090692ced1fe5260fd37a322951b2f7b08013
}
},
......
......@@ -53,7 +53,7 @@
width: footerWidth + 'px'
}"
>
<el-button size="small" type="primary" @click="toBack">关闭</el-button>
<el-button type="primary" @click="toBack">关闭</el-button>
</div>
</div>
</template>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!