Commit 57aa2acc by 匡雅琴

样式

1 parent b94c3d55
...@@ -113,7 +113,7 @@ ...@@ -113,7 +113,7 @@
<el-col :span="12"> <el-col :span="12">
<el-form-item label="门店照片"> <el-form-item label="门店照片">
<div class="store-upload-list"> <div class="store-upload-list">
<template v-if="accountAddForm.merchantFiles && accountAddForm.merchantFiles.length > 0"> <template v-if="accountAddForm.merchantFiles.length && accountAddForm.merchantFiles.length > 0">
<div :key="index" v-for="(item, index) in accountAddForm.merchantFiles" class="store-border" @mouseenter="imgIndex = index" @mouseleave="imgIndex = ''"> <div :key="index" v-for="(item, index) in accountAddForm.merchantFiles" class="store-border" @mouseenter="imgIndex = index" @mouseleave="imgIndex = ''">
<img :src="item.fileUrl" /> <img :src="item.fileUrl" />
<div class="uploader-del-icon" v-if="imgIndex === index"> <div class="uploader-del-icon" v-if="imgIndex === index">
......
<template> <template>
<div class="account-body scrm-box-f" v-loading="loading"> <div class="account-body scrm-box-f" v-loading="loading">
<div class="account-title">{{ title }}</div> <div class="account-title">{{ title }}</div>
<el-tabs v-if="tabMenu.length != 0" v-model="tabName" @tab-click="handleClik"> <el-tabs v-if="tabMenu.length && tabMenu.length != 0" v-model="tabName" @tab-click="handleClik">
<el-tab-pane :label="item.accounttypeName" :name="item.accounttypeId + ''" v-for="(item, index) in tabMenu" :key="index"></el-tab-pane> <el-tab-pane :label="item.accounttypeName" :name="item.accounttypeId + ''" v-for="(item, index) in tabMenu" :key="index"></el-tab-pane>
</el-tabs> </el-tabs>
<div class="role-border"> <div class="role-border">
...@@ -22,10 +22,10 @@ ...@@ -22,10 +22,10 @@
</div> </div>
<div v-show="tabName == item.accounttypeId" class="menu-box-tree role-border" v-if="item.products" :style="{ 'min-height': treeHeight + 'px' }"> <div v-show="tabName == item.accounttypeId" class="menu-box-tree role-border" v-if="item.products" :style="{ 'min-height': treeHeight + 'px' }">
<div v-for="(itm, idx) in item.products" :key="idx"> <div v-for="(itm, idx) in item.products" :key="idx">
<div class="nodata" v-if="item.productsArr.length == 0 || itm.merchantProTreeResponses.length == 0"> <div class="nodata" v-if="(item.productsArr.length && item.productsArr.length == 0) || (itm.merchantProTreeResponses.length && itm.merchantProTreeResponses.length == 0)">
<img src="../../../assets/img/empty.png" alt="" /> <img src="../../../assets/img/empty.png" alt="" />
<div> <div>
{{ item.productsArr.length == 0 ? '请先选择产品' : '暂无菜单权限' }} {{ item.productsArr.length && item.productsArr.length == 0 ? '请先选择产品' : '暂无菜单权限' }}
</div> </div>
</div> </div>
<div v-else> <div v-else>
...@@ -118,7 +118,7 @@ export default { ...@@ -118,7 +118,7 @@ export default {
return this.tabMenu return this.tabMenu
}, },
// 获取当前的所有权限 // 获取当前的所有权限
async accountTypeSearchRequest(params, status) { accountTypeSearchRequest(params, status) {
this.loading = true this.loading = true
let account = '' let account = ''
if (status) { if (status) {
...@@ -138,6 +138,7 @@ export default { ...@@ -138,6 +138,7 @@ export default {
// productId: '' // productId: ''
} }
}) })
this.findPermissionsByMerId(params.merchantId ? params.merchantId : params.id)
this.accountTypes = tabMenu.map(item => { this.accountTypes = tabMenu.map(item => {
return { return {
products: null, products: null,
...@@ -145,7 +146,7 @@ export default { ...@@ -145,7 +146,7 @@ export default {
} }
}) })
this.tabMenu_s = util.deepClone(this.accountList) this.tabMenu_s = util.deepClone(this.accountList)
this.findPermissionsByMerId(params.merchantId ? params.merchantId : params.id) // this.findPermissionsByMerId(params.merchantId ? params.merchantId : params.id)
}) })
}, },
// 获取已选择的权限 // 获取已选择的权限
...@@ -386,7 +387,6 @@ export default { ...@@ -386,7 +387,6 @@ export default {
} }
} }
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.account-body { .account-body {
padding: 20px; padding: 20px;
......
...@@ -184,6 +184,7 @@ export default { ...@@ -184,6 +184,7 @@ export default {
this.$confirm('是否保存修改信息?', '提示', { this.$confirm('是否保存修改信息?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
customClass: 'gl-message-box',
type: 'warning' type: 'warning'
}) })
.then(() => { .then(() => {
...@@ -221,6 +222,7 @@ export default { ...@@ -221,6 +222,7 @@ export default {
this.$confirm('当前有内容信息未保存,是否继续返回?', '提示', { this.$confirm('当前有内容信息未保存,是否继续返回?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
customClass: 'gl-message-box',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
this.$router.push({ this.$router.push({
...@@ -339,7 +341,7 @@ export default { ...@@ -339,7 +341,7 @@ export default {
}) })
this.findMerchantDetail() this.findMerchantDetail()
}, },
async findMerchantDetail() { findMerchantDetail() {
this.$apis.store this.$apis.store
.findMerchantDetail({ .findMerchantDetail({
id: this.accountAddForm.id id: this.accountAddForm.id
......
...@@ -4,13 +4,27 @@ ...@@ -4,13 +4,27 @@
<div class="wrap_left"> <div class="wrap_left">
<div class="out_box_wrap"> <div class="out_box_wrap">
<div class="fixed_widget"> <div class="fixed_widget">
<div class="label_text">版本:{{ bloc.merchantModelName || '--'}}</div> <div class="label_top">
<div class="label_text dr_top"> <div class="label_top-title">{{ bloc.merchantModelName || '--' }}</div>
开通门店数: <div>
<span v-if="bloc.numberStores" class="num_text">{{ bloc.numberStores }}家</span> <span class="label_top-text">有效期:</span>
<span v-else class="num_text">--</span> <span class="label_top-time">{{ bloc.effectiveTimeName || '--' }}</span>
</div>
</div>
</div>
<div class="dr_top">
<div class="label_text label-top">
<span class="label-bottom-title">开通门店数:</span>
<span v-if="bloc.numberStores" class="label-bottom-title-text">{{ bloc.numberStores }}家</span>
<!-- <span v-else class="num_text">--</span> -->
</div>
<div class="label-title">
<span class="label-bottom-title">门店详情:</span>
<span class="open-icon" @click="changeRightOpenStatus(isOpen)">
<span>{{ isOpen ? '收起' : '展开' }}</span>
<i :class="isOpen ? 'el-icon-arrow-up' : 'el-icon-arrow-down'"></i>
</span>
</div> </div>
<div class="label_text dr_top">门店详情</div>
</div> </div>
<div :class="isOpen ? 'table_wrapper_open' : 'table_wrapper_close'"> <div :class="isOpen ? 'table_wrapper_open' : 'table_wrapper_close'">
<!-- <GLTable v-if="isOpen" :hasPage="false" :tableParams="tableParams" :tableData="list" :headerStyle="{ background: '#F4F6FC', color: '#333333', fontSize: '14px' }"></GLTable> --> <!-- <GLTable v-if="isOpen" :hasPage="false" :tableParams="tableParams" :tableData="list" :headerStyle="{ background: '#F4F6FC', color: '#333333', fontSize: '14px' }"></GLTable> -->
...@@ -20,7 +34,7 @@ ...@@ -20,7 +34,7 @@
<div class="tittle1 text_w">门店名称</div> <div class="tittle1 text_w">门店名称</div>
<div class="tittle2 text_w">有效期</div> <div class="tittle2 text_w">有效期</div>
</div> </div>
<div class="line_body" :style="{height: tableHeight+ 'px'}"> <div class="line_body" :style="{ height: tableHeight + 'px' }">
<template v-if="list.length"> <template v-if="list.length">
<div v-for="(item, index) in list" :key="index" class="line_wrapper"> <div v-for="(item, index) in list" :key="index" class="line_wrapper">
<div class="tittle">{{ index + 1 }}</div> <div class="tittle">{{ index + 1 }}</div>
...@@ -34,10 +48,10 @@ ...@@ -34,10 +48,10 @@
</div> </div>
</template> </template>
</div> </div>
<div class="fixed_footer" @click="changeRightOpenStatus(isOpen)"> <!-- <div class="fixed_footer" @click="changeRightOpenStatus(isOpen)">
<i :class="isOpen ? 'el-icon-caret-top' : 'el-icon-caret-bottom'"></i> <i :class="isOpen ? 'el-icon-caret-top' : 'el-icon-caret-bottom'"></i>
<span class="dr_left">{{ isOpen ? '隐藏门店详情' : '展开门店详情' }}</span> <span class="dr_left">{{ isOpen ? '隐藏门店详情' : '展开门店详情' }}</span>
</div> </div> -->
</div> </div>
</div> </div>
<!-- <div class="wrap_right"> <!-- <div class="wrap_right">
...@@ -102,7 +116,7 @@ export default { ...@@ -102,7 +116,7 @@ export default {
// }, // },
changeRightOpenStatus(isOpen) { changeRightOpenStatus(isOpen) {
this.isOpen = !isOpen this.isOpen = !isOpen
}, }
// handlerData() { // handlerData() {
// let arr = this.dataList // let arr = this.dataList
// let left = [] // let left = []
...@@ -122,11 +136,11 @@ export default { ...@@ -122,11 +136,11 @@ export default {
}, },
mounted() { mounted() {
let clientHeight = document.documentElement.clientHeight; let clientHeight = document.documentElement.clientHeight
this.tableHeight = clientHeight - 475; this.tableHeight = clientHeight - 475
} }
}; }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.bloc-info-module { .bloc-info-module {
...@@ -149,15 +163,36 @@ export default { ...@@ -149,15 +163,36 @@ export default {
.out_box_wrap { .out_box_wrap {
width: 100%; width: 100%;
min-height: 176px; min-height: 176px;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1); box-shadow: 0px 4px 16px 0px rgba(124, 119, 230, 0.1);
border-radius: 10px; border-radius: 12px;
border: 1px solid #e5e4ff; border: 1px solid #e5e4ff;
margin: 0 40px 40px 0; margin: 0 40px 40px 0;
.fixed_widget { .fixed_widget {
width: 100%; width: 100%;
height: 140px;
box-sizing: border-box; box-sizing: border-box;
padding: 20px 0 0 20px; background-image: url('../../assets/back-img.png');
.label_top {
padding: 20px 22px 24px 24px;
&-title {
font-size: 18px;
font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600;
color: #333333;
margin-bottom: 12px;
}
&-text {
font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #333333;
}
&-time {
font-size: 14px;
font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600;
color: #5850ff;
}
}
.label_text { .label_text {
color: #333333; color: #333333;
font-size: 14px; font-size: 14px;
...@@ -168,10 +203,21 @@ export default { ...@@ -168,10 +203,21 @@ export default {
font-weight: 400; font-weight: 400;
color: #5850ff; color: #5850ff;
} }
.dr_top { }
margin-top: 20px; .label-bottom-title {
font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #666666;
&-text {
font-size: 14px;
color: #333333;
} }
} }
.open-icon {
font-size: 14px;
color: #5850ff;
}
.table_wrapper_close { .table_wrapper_close {
height: 0; height: 0;
// transition: height 0.1s ease-in-out; // transition: height 0.1s ease-in-out;
...@@ -187,15 +233,16 @@ export default { ...@@ -187,15 +233,16 @@ export default {
font-size: 14px; font-size: 14px;
border-bottom: 1px solid #dcdfe6; border-bottom: 1px solid #dcdfe6;
.tittle { .tittle {
width: 20%; padding-left: 16px;
text-align: center; width: 15%;
color: #333333; text-align: left;
color: #666666;
font-size: 14px; font-size: 14px;
} }
.tittle1 { .tittle1 {
width: 40%; width: 45%;
text-align: center; text-align: left;
color: #333333; color: #666666;
font-size: 14px; font-size: 14px;
word-wrap: break-word; word-wrap: break-word;
word-break: break-all; word-break: break-all;
...@@ -203,11 +250,17 @@ export default { ...@@ -203,11 +250,17 @@ export default {
} }
.tittle2 { .tittle2 {
width: 40%; width: 40%;
text-align: center; text-align: left;
color: #333333; color: #666666;
font-size: 14px; font-size: 14px;
} }
} }
.dr_top {
padding: 20px;
}
.label-top {
margin-bottom: 12px;
}
.wrap_header { .wrap_header {
background: #f4f6fc; background: #f4f6fc;
} }
...@@ -218,6 +271,8 @@ export default { ...@@ -218,6 +271,8 @@ export default {
width: 100%; width: 100%;
overflow-y: auto; overflow-y: auto;
overflow-x: hidden; overflow-x: hidden;
border: 1px solid #e8e8ea;
border-top: none;
} }
.line_body::-webkit-scrollbar { .line_body::-webkit-scrollbar {
height: 1px; height: 1px;
...@@ -239,22 +294,9 @@ export default { ...@@ -239,22 +294,9 @@ export default {
color: #b9b8c7; color: #b9b8c7;
border-radius: 0px 0px 10px 10px; border-radius: 0px 0px 10px 10px;
cursor: pointer; cursor: pointer;
.dr_left {
margin-left: 12px;
}
} }
} }
// .bloc-info-module /deep/ .el-table__body-wrapper {
// height: 352px;
// overflow-y: auto;
// overflow-x: hidden;
// }
// .bloc-info-module /deep/ .el-table__body-wrapper::-webkit-scrollbar {
// height: 1px;
// width: 8px;
// }
// .bloc-info-module /deep/ .el-table__body-wrapper::-webkit-scrollbar-thumb {
// background: #e9e8ff;
// border-radius: 7px;
// }
</style>
\ No newline at end of file \ No newline at end of file
.table_wrapper_open {
padding: 0 20px;
}
</style>
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
<GLDialog :visible.sync="dialogMapVisible" title="选择地图"> <GLDialog :visible.sync="dialogMapVisible" :mode="'big'" title="选择地址">
<map-view ref="mapForm" :mapHeight="mapHeight"></map-view> <map-view ref="mapForm" :mapHeight="mapHeight"></map-view>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button @click="dialogMapVisible = false">取 消</el-button> <el-button @click="dialogMapVisible = false">取 消</el-button>
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
{{ blocInfo.merchantName }} {{ blocInfo.merchantName }}
<span class="min_text">(商户号:{{ blocInfo.merchantNo }})</span> <span class="min_text">(商户号:{{ blocInfo.merchantNo }})</span>
</div> </div>
<GLButton type="primary" :size="size" @click="editInfo" fn="修改企业信息">修改企业信息</GLButton> <GLButton type="primary" :size="size" @click="editInfo" fn="修改企业信息">编辑</GLButton>
<!-- <el-button type="primary" :size="size" @click="editInfo">修改企业信息</el-button> --> <!-- <el-button type="primary" :size="size" @click="editInfo">修改企业信息</el-button> -->
</div> </div>
...@@ -70,7 +70,7 @@ export default { ...@@ -70,7 +70,7 @@ export default {
}) })
}) })
}, },
dateFormat: function (dateTime, format = 'yyyy-MM-dd') { dateFormat: function(dateTime, format = 'yyyy-MM-dd') {
const date = new Date(dateTime) const date = new Date(dateTime)
const config = { const config = {
YYYY: date.getFullYear(), YYYY: date.getFullYear(),
...@@ -158,8 +158,10 @@ export default { ...@@ -158,8 +158,10 @@ export default {
margin-left: 16px; margin-left: 16px;
} }
.auth_btn_cp { .auth_btn_cp {
border: 1px solid #5850ff; color: #2cca74;
color: #5850ff; background: rgba(44, 202, 116, 0.06);
border-radius: 2px;
border: 1px solid rgba(44, 202, 116, 0.35);
} }
} }
.dr_top_1 { .dr_top_1 {
...@@ -167,4 +169,4 @@ export default { ...@@ -167,4 +169,4 @@ export default {
} }
} }
} }
</style>
\ No newline at end of file \ No newline at end of file
</style>
...@@ -223,6 +223,7 @@ export default { ...@@ -223,6 +223,7 @@ export default {
this.$confirm(' 请确认是否关联当前信息?', '提示', { this.$confirm(' 请确认是否关联当前信息?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
customClass: 'gl-message-box',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
this.$apis.baseInfo.toGL(para).then(res => { this.$apis.baseInfo.toGL(para).then(res => {
...@@ -246,6 +247,7 @@ export default { ...@@ -246,6 +247,7 @@ export default {
this.$confirm('此操作将删除该项, 是否继续?', '提示', { this.$confirm('此操作将删除该项, 是否继续?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
customClass: 'gl-message-box',
type: 'warning' type: 'warning'
}) })
.then(() => { .then(() => {
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
</div> --> </div> -->
<div class="container edit-box"> <div class="container edit-box">
<p class="edit-title">员工基本信息</p> <p class="edit-title">员工基本信息</p>
<glsx-combi-form style="margin: 20px 20px 0 0" ref="editFormRef" defaultWidth="320px" @handleImgDelete="handleImgDelete" :isBlock="isBlock" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule" isEdit="true"> <glsx-combi-form style="margin: 20px 20px 0 0" ref="editFormRef" defaultWidth="320px" @handleImgDelete="handleImgDelete" :isBlock="isBlock" :formRef="editChildRef" :formObj="editForm" :label-width="'154px'" :formData="editFormData" :formRules="editRule" isEdit="true">
<template slot="merchantId" slot-scope="item"> <template slot="merchantId" slot-scope="item">
<span class="txt-ellipsis" v-if="routeInfo.addOrEdit == 2 || (routeInfo.addOrEdit == 1 && userInfo.accountLevel == 4)" :title="editForm.merchantName">{{ editForm.merchantName }}</span> <span class="txt-ellipsis" v-if="routeInfo.addOrEdit == 2 || (routeInfo.addOrEdit == 1 && userInfo.accountLevel == 4)" :title="editForm.merchantName">{{ editForm.merchantName }}</span>
<el-select v-else :style="{ width: item.scope.width }" v-model="editForm[item.scope.name]" :clearable="item.scope.isClear || false" :placeholder="'请选择' + item.scope.label" :filterable="!item.scope.noFilter" @change="handleChangeMerchant($event)"> <el-select v-else :style="{ width: item.scope.width }" v-model="editForm[item.scope.name]" :clearable="item.scope.isClear || false" :placeholder="'请选择' + item.scope.label" :filterable="!item.scope.noFilter" @change="handleChangeMerchant($event)">
...@@ -132,7 +132,7 @@ export default { ...@@ -132,7 +132,7 @@ export default {
{ {
label: '所属商户', label: '所属商户',
name: 'merchantId', name: 'merchantId',
// nameLabel: 'merchantName', type: 'selectInput',
noClearable: true, noClearable: true,
width: '320px', width: '320px',
optionList: [], optionList: [],
...@@ -393,6 +393,7 @@ export default { ...@@ -393,6 +393,7 @@ export default {
this.$confirm('当前有内容信息未保存,是否继续返回?', '提示', { this.$confirm('当前有内容信息未保存,是否继续返回?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
customClass: 'gl-message-box',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
this.$router.push({ this.$router.push({
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class="glsx-combi-form"> <div class="glsx-combi-form">
<el-form :ref="formRef" :inline="true" :model="formObj" :label-width="labelWidth" :rules="formRules" size="small" class="glsx-combi-form-block"> <el-form :ref="formRef" :inline="true" :model="formObj" :label-width="labelWidth" :rules="formRules" size="small" class="glsx-combi-form-block">
<template v-for="(item, index) in formData"> <template v-for="(item, index) in formData">
<el-form-item v-if="!item.isHide" :key="index" :labelWidth="isEdit ? '144px' : labelWidth" :class="{ 'no-label': !item.label, isBlock: isBlock }" :style="{ 'margin-bottom': isEdit ? '24px' : '', 'margin-right': isEdit ? '0px' : '30px', ...item.style }" :label="item.label" :prop="item.name"> <el-form-item v-if="!item.isHide" :key="index" :labelWidth="isEdit ? '154px' : labelWidth" :class="{ 'no-label': !item.label, isBlock: isBlock }" :style="{ 'margin-bottom': isEdit ? '24px' : '', 'margin-right': isEdit ? '0px' : '30px', ...item.style }" :label="item.label" :prop="item.name">
<span v-if="!item.isHide && item.tips" class="tips-block" slot="label"> <span v-if="!item.isHide && item.tips" class="tips-block" slot="label">
<span class="tips-label">{{ item.label }}</span> <span class="tips-label">{{ item.label }}</span>
<el-tooltip popper-class="tooltip-class" effect="dark" :content="item.tips" :placement="item.placement || 'top'"> <el-tooltip popper-class="tooltip-class" effect="dark" :content="item.tips" :placement="item.placement || 'top'">
...@@ -239,9 +239,6 @@ export default { ...@@ -239,9 +239,6 @@ export default {
.glsx-combi-form .isBlock { .glsx-combi-form .isBlock {
display: block; display: block;
} }
/* .glsx-combi-form .el-form-item {
width: 65%;
} */
.glsx-combi-form .no-label.el-form-item--small .el-form-item__content { .glsx-combi-form .no-label.el-form-item--small .el-form-item__content {
width: 100%; width: 100%;
} }
......
...@@ -478,6 +478,7 @@ export default { ...@@ -478,6 +478,7 @@ export default {
this.$confirm('是否确认删除该员工?', '删除', { this.$confirm('是否确认删除该员工?', '删除', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
customClass: 'gl-message-box',
type: 'warning', type: 'warning',
callback: action => { callback: action => {
if (action == 'confirm') { if (action == 'confirm') {
...@@ -541,6 +542,7 @@ export default { ...@@ -541,6 +542,7 @@ export default {
this.$confirm(`您选中的员工中包含已设置 “角色” 账号。请去除选中已设置 “角色” 员工账号。`, '', { this.$confirm(`您选中的员工中包含已设置 “角色” 账号。请去除选中已设置 “角色” 员工账号。`, '', {
confirmButtonText: '确定', confirmButtonText: '确定',
showCancelButton: false, showCancelButton: false,
customClass: 'gl-message-box',
type: 'warning' type: 'warning'
}) })
} else { } else {
...@@ -554,6 +556,7 @@ export default { ...@@ -554,6 +556,7 @@ export default {
this.$confirm(`是否将选中的账号批量进行启用?`, '', { this.$confirm(`是否将选中的账号批量进行启用?`, '', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
customClass: 'gl-message-box',
type: 'warning' type: 'warning'
}) })
.then(() => { .then(() => {
......
...@@ -198,6 +198,7 @@ export default { ...@@ -198,6 +198,7 @@ export default {
this.$confirm('当前有内容信息未保存,是否继续返回?', '提示', { this.$confirm('当前有内容信息未保存,是否继续返回?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
customClass: 'gl-message-box',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
this.$emit('closeDrawer') this.$emit('closeDrawer')
......
...@@ -213,6 +213,7 @@ export default { ...@@ -213,6 +213,7 @@ export default {
this.$confirm('是否删除该员工?', '提示', { this.$confirm('是否删除该员工?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
customClass: 'gl-message-box',
type: 'warning' type: 'warning'
}) })
.then(() => { .then(() => {
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
</template> </template>
</el-tabs> </el-tabs>
<div class="account-select-pro" v-for="(item, index) in tabMenu" :key="index" v-show="tabName == item.accounttypeId"> <div class="account-select-pro" v-for="(item, index) in tabMenu" :key="index" v-show="tabName == item.accounttypeId">
<label>产品权限:</label> <label style="width:154px;text-align:right">产品权限:</label>
<el-checkbox-group v-model="item.productsArr" @change="selectPro"> <el-checkbox-group v-model="item.productsArr" @change="selectPro">
<el-checkbox v-for="(itm, idx) in item.products" :label="itm" :key="idx">{{ itm.productName }}</el-checkbox> <el-checkbox v-for="(itm, idx) in item.products" :label="itm" :key="idx">{{ itm.productName }}</el-checkbox>
</el-checkbox-group> </el-checkbox-group>
...@@ -442,8 +442,13 @@ export default { ...@@ -442,8 +442,13 @@ export default {
border-radius: 2px; border-radius: 2px;
/deep/ { /deep/ {
.el-tabs { .el-tabs {
height: 48px;
border-bottom: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5;
} }
.el-tabs__nav {
height: 48px;
line-height: 48px;
}
.el-tabs__header { .el-tabs__header {
margin: 0; margin: 0;
padding: 0 30px; padding: 0 30px;
...@@ -486,7 +491,7 @@ export default { ...@@ -486,7 +491,7 @@ export default {
cursor: pointer; cursor: pointer;
&.select-checked { &.select-checked {
background: #ffffff; background: #ffffff;
color: #322ad9; color: #5850ff;
} }
} }
.menu-box-tab { .menu-box-tab {
...@@ -512,5 +517,7 @@ export default { ...@@ -512,5 +517,7 @@ export default {
/deep/ .el-tree { /deep/ .el-tree {
height: 640px; height: 640px;
overflow: auto; overflow: auto;
padding: 0 20px;
font-size: 14px;
} }
</style> </style>
...@@ -5,23 +5,23 @@ ...@@ -5,23 +5,23 @@
<span class="title">{{ pageName }}</span> <span class="title">{{ pageName }}</span>
</div> </div>
<div class="main_widget"> <div class="main_widget">
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px" class="demo-ruleForm"> <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="154px" class="demo-ruleForm">
<el-form-item v-if="pageType == 'create' && accountLevel != 4" label="所属商户" prop="merchantId"> <el-form-item v-if="pageType == 'create' && accountLevel != 4" label="所属商户" prop="merchantId">
<el-select size="small" style="width: 40%" v-model="ruleForm.merchantId" clearable filterable placeholder="请选择" @change="merchantChange"> <el-select size="small" style="width: 40%" v-model="ruleForm.merchantId" clearable filterable placeholder="请选择" @change="merchantChange">
<el-option v-for="item in merchantList" :key="item.id" :label="item.merchantName" :value="item.id"></el-option> <el-option v-for="item in merchantList" :key="item.id" :label="item.merchantName" :value="item.id"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="所属商户" prop="merchantName" v-if="pageType == 'create' && accountLevel == 4"> <el-form-item label="所属商户:" prop="merchantName" v-if="pageType == 'create' && accountLevel == 4">
<el-input size="small" 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="merchantName" v-if="pageType == 'edit'"> <el-form-item label="所属商户:" prop="merchantName" v-if="pageType == 'edit'">
<el-input size="small" 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 size="small" maxlength="20" style="width: 40%; padding-right: 50px" @input="changeInput" v-model="ruleForm.roleName" placeholder="请输入角色名称"></el-input> <el-input size="small" maxlength="20" style="width: 40%; padding-right: 50px" @input="changeInput" v-model="ruleForm.roleName" placeholder="请输入角色名称"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="角色说明" prop="roleDesc"> <el-form-item label="角色说明:" prop="roleDesc">
<el-input size="small" maxlength="50" style="width: 40%; padding-right: 50px" @input="changeInput" v-model="ruleForm.roleDesc" placeholder="请输入角色说明"></el-input> <el-input type="textarea" :rows="2" size="small" maxlength="50" style="width: 40%; padding-right: 50px" @input="changeInput" v-model="ruleForm.roleDesc" placeholder="请输入角色说明"></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">
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
<el-row> <el-row>
<el-col :span="16"> <el-col :span="16">
<div data-v-995a4ff0="" class="role-list"> <div data-v-995a4ff0="" class="role-list">
<label for="roleName" class="el-form-item__label" style="width: 100px">角色权限</label> <label for="roleName" class="el-form-item__label">角色权限</label>
<div class="el-form-item__content" style="margin-left: 100px"> <div class="el-form-item__content" style="margin-left: 100px">
<!-- <div data-v-995a4ff0="" class="el-input el-input--small"> <!-- <div data-v-995a4ff0="" class="el-input el-input--small">
<auto-button v-for="(item, index) in accountDetail.accountTypes" :key="index" :btnLabel="item.accounttypeName" :btnValue="item.accounttypeId" :stopClick="nextStatus" @getBtnStatus="getBtnStatus"></auto-button> <auto-button v-for="(item, index) in accountDetail.accountTypes" :key="index" :btnLabel="item.accounttypeName" :btnValue="item.accounttypeId" :stopClick="nextStatus" @getBtnStatus="getBtnStatus"></auto-button>
...@@ -307,6 +307,7 @@ export default { ...@@ -307,6 +307,7 @@ export default {
this.$confirm('当前有内容信息未保存,是否继续返回?', '提示', { this.$confirm('当前有内容信息未保存,是否继续返回?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
customClass: 'gl-message-box',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
this.$router.push('/role/index') this.$router.push('/role/index')
...@@ -413,4 +414,7 @@ export default { ...@@ -413,4 +414,7 @@ export default {
margin-right: 15px; margin-right: 15px;
} }
} }
/deep/.el-form-item {
margin-bottom: 20px;
}
</style> </style>
...@@ -278,6 +278,7 @@ export default { ...@@ -278,6 +278,7 @@ export default {
this.$confirm('此操作将永久删除, 是否继续?', '提示', { this.$confirm('此操作将永久删除, 是否继续?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
customClass: 'gl-message-box',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
this.$apis.role.deleteRole({ id: row.id }).then(res => { this.$apis.role.deleteRole({ id: row.id }).then(res => {
......
...@@ -317,7 +317,7 @@ export default { ...@@ -317,7 +317,7 @@ export default {
cursor: pointer; cursor: pointer;
} }
.line_element_two_active { .line_element_two_active {
color: #322ad9; color: #5850ff;
background-color: #ffffff; background-color: #ffffff;
} }
} }
...@@ -390,4 +390,10 @@ export default { ...@@ -390,4 +390,10 @@ export default {
z-index: 999; z-index: 999;
box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1); box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1);
} }
/deep/ .el-tree {
height: 640px;
overflow: auto;
padding: 0 20px;
font-size: 14px;
}
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!