Commit 0cba9ab0 by 前端

Merge branch 'huy_dev_v2.7.0' into 'v2.7.0'

Huy dev v2.7.0

See merge request !71
2 parents a0a5bb78 2401232f
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
"el-tree-transfer": "^2.2.6", "el-tree-transfer": "^2.2.6",
"element-ui": "^2.4.5", "element-ui": "^2.4.5",
"glsx-common": "^1.4.6", "glsx-common": "^1.4.6",
"glsx-components": "^1.4.2", "glsx-components": "^1.4.4",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"qrcodejs2": "^0.0.2", "qrcodejs2": "^0.0.2",
"vue": "^2.6.10", "vue": "^2.6.10",
......
...@@ -235,3 +235,21 @@ img { ...@@ -235,3 +235,21 @@ img {
.role-border-b { .role-border-b {
border-bottom: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5;
} }
.gl-message-box {
.el-message-box__title {
line-height: 27px;
}
.el-message-box__headerbtn {
height: 100%;
top: 0;
}
.el-message-box__message {
p {
line-height: 22px;
}
}
.el-message-box__status+.el-message-box__message {
padding-top: 112.5px;
}
}
...@@ -22,12 +22,16 @@ ...@@ -22,12 +22,16 @@
color: #333333; color: #333333;
font-weight: 600; font-weight: 600;
} }
.el-button.is-plain {
color: #666;
border-color: rgba(105,105,105,0.3000)
}
.el-button--primary.is-plain { .el-button--primary.is-plain {
color: #5850FF; color: #5850FF;
border-color: #5850FF; border-color: #5850FF;
} }
.emptyBg { .emptyBg {
width: 100%; width: 100%;
...@@ -39,3 +43,7 @@ ...@@ -39,3 +43,7 @@
.message-z { .message-z {
z-index: 9999 !important; z-index: 9999 !important;
} }
.el-popover {
padding: 10px 12px !important;
}
\ No newline at end of file \ No newline at end of file
<template> <template>
<div class="map-box" :style="{ height: mapHeight + 'px' }"> <div class="map-box" :style="{ height: mapHeight + 'px' }">
<div id="container" style="width: 100%; height: 100%"></div> <div id="container" style="width: 100%; height: calc(100% - 30px)"></div>
<div class="map-address">{{ address }}</div> <div class="map-address">{{ address }}</div>
<div id="myPageTop" style="position: absolute; top: 10px; width: 50%; left: 25%"> <div id="myPageTop" style="position: absolute; top: 10px; width: 50%; left: 25%">
<el-input placeholder="请输入关键字" v-model="input" class="input-with-select"> <el-input placeholder="请输入关键字" v-model="input" class="input-with-select">
...@@ -137,6 +137,6 @@ export default { ...@@ -137,6 +137,6 @@ export default {
.map-address { .map-address {
position: absolute; position: absolute;
line-height: 20px; line-height: 20px;
bottom: -30px; bottom: 0;
} }
</style> </style>
...@@ -71,26 +71,17 @@ ...@@ -71,26 +71,17 @@
<el-button type="primary" @click="handleSave(2)" v-show="step == 2">确定</el-button> <el-button type="primary" @click="handleSave(2)" v-show="step == 2">确定</el-button>
<el-button type="primary" @click="handleCancel">取消</el-button> <el-button type="primary" @click="handleCancel">取消</el-button>
</GLFooter> </GLFooter>
<el-dialog :visible.sync="dialogMapVisible" width="60%">
<map-view ref="mapForm" :mapHeight="mapHeight"></map-view>
<span slot="footer" class="dialog-footer">
<el-button @click="dialogMapVisible = false">取 消</el-button>
<el-button type="primary" @click="getAddress">确 定</el-button>
</span>
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
import util from '@/utils/util' import util from '@/utils/util'
import mapView from '@/components/mapView/index'
import autoButton from '@/components/auto-button/index' import autoButton from '@/components/auto-button/index'
import selectProduct from './components/selectProduct' import selectProduct from './components/selectProduct'
import baseInfo from './components/baseInfo' import baseInfo from './components/baseInfo'
export default { export default {
name: 'index', name: 'index',
components: { components: {
mapView,
autoButton, autoButton,
selectProduct, selectProduct,
baseInfo baseInfo
...@@ -122,10 +113,8 @@ export default { ...@@ -122,10 +113,8 @@ export default {
}, },
parentId: '', parentId: '',
step: 1, step: 1,
mapHeight: 400,
typeStatus: false, typeStatus: false,
loadingImg: false, loadingImg: false,
dialogMapVisible: false,
businessScopeCustomize: [{ name: '' }], businessScopeCustomize: [{ name: '' }],
accountAddForm: { accountAddForm: {
status: '', status: '',
...@@ -182,10 +171,6 @@ export default { ...@@ -182,10 +171,6 @@ export default {
} }
}, },
methods: { methods: {
getAddress() {
this.dialogMapVisible = false
this.accountAddForm.merchantAddress = this.$refs.mapForm.address
},
getBtnStatus(status, value) { getBtnStatus(status, value) {
this.editStatus = true this.editStatus = true
this.accountTypesRule = false this.accountTypesRule = false
...@@ -217,9 +202,10 @@ export default { ...@@ -217,9 +202,10 @@ export default {
handleCancel() { handleCancel() {
if (this.editStatus) { if (this.editStatus) {
this.$confirm('当前有内容信息未保存,是否继续返回?', '提示', { this.$confirm('当前有内容信息未保存,是否继续返回?', '提示', {
confirmButtonText: '确定', confirmButtonText: '是',
cancelButtonText: '取消', cancelButtonText: '否',
type: 'warning' type: 'warning',
customClass: 'gl-message-box'
}).then(() => { }).then(() => {
this.$router.push({ this.$router.push({
path: '/account/index' path: '/account/index'
......
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
<el-form-item size="small" label="商户地址" class="form-row"> <el-form-item size="small" label="商户地址" class="form-row">
<!-- 省市 --> <!-- 省市 -->
<ProvinceCity ref="provinceForm" @selectProvince="selectProvince" @selectCity="selectCity"></ProvinceCity> <ProvinceCity ref="provinceForm" @selectProvince="selectProvince" @selectCity="selectCity"></ProvinceCity>
<el-input readonly v-model="accountAddForm.merchantAddress" placeholder="请选择商户地址"></el-input> <el-input readonly style="flex:1" v-model="accountAddForm.merchantAddress" placeholder="请选择商户地址"></el-input>
<el-button type="primary" class="form-btn" @click="hanleSelectMap">选择地址</el-button> <el-button type="primary" class="form-btn" @click="hanleSelectMap">选择地址</el-button>
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -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">
...@@ -131,13 +131,13 @@ ...@@ -131,13 +131,13 @@
</el-col> </el-col>
</el-row> </el-row>
</el-form> </el-form>
<el-dialog :visible.sync="dialogMapVisible" width="60%"> <GLDialog :visible.sync="dialogMapVisible" title="选择地图">
<map-view ref="mapForm" :mapHeight="mapHeight"></map-view> <map-view ref="mapForm" :mapHeight="450"></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>
<el-button type="primary" @click="getAddress">确 定</el-button> <el-button type="primary" @click="getAddress">确 定</el-button>
</span> </span>
</el-dialog> </GLDialog>
</div> </div>
</template> </template>
...@@ -199,7 +199,6 @@ export default { ...@@ -199,7 +199,6 @@ export default {
label: 'label' label: 'label'
}, },
dialogMapVisible: false, dialogMapVisible: false,
mapHeight: 380,
baseRules: { baseRules: {
merchantName: [{ required: true, message: '请输入商户名称', trigger: 'blur' }], merchantName: [{ required: true, message: '请输入商户名称', trigger: 'blur' }],
merchantLegalPersonPhone: [ merchantLegalPersonPhone: [
......
<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;
......
...@@ -67,26 +67,17 @@ ...@@ -67,26 +67,17 @@
<el-button type="primary" @click="handleNext()" v-show="step == 'second'">确定</el-button> <el-button type="primary" @click="handleNext()" v-show="step == 'second'">确定</el-button>
<el-button type="primary" @click="handleCancel">取消</el-button> <el-button type="primary" @click="handleCancel">取消</el-button>
</GLFooter> </GLFooter>
<el-dialog :visible.sync="dialogMapVisible" width="60%">
<map-view ref="mapForm" :mapHeight="mapHeight"></map-view>
<span slot="footer" class="dialog-footer">
<el-button @click="dialogMapVisible = false">取 消</el-button>
<el-button type="primary" @click="getAddress">确 定</el-button>
</span>
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
import util from '@/utils/util' import util from '@/utils/util'
import mapView from '@/components/mapView/index'
import autoButton from '@/components/auto-button/index' import autoButton from '@/components/auto-button/index'
import selectProduct from './components/selectProduct' import selectProduct from './components/selectProduct'
import baseInfo from './components/baseInfo' import baseInfo from './components/baseInfo'
export default { export default {
name: 'index', name: 'index',
components: { components: {
mapView,
autoButton, autoButton,
selectProduct, selectProduct,
baseInfo baseInfo
...@@ -113,10 +104,8 @@ export default { ...@@ -113,10 +104,8 @@ export default {
label: 'label' label: 'label'
}, },
parentId: '1', parentId: '1',
mapHeight: 400,
typeStatus: false, typeStatus: false,
loadingImg: false, loadingImg: false,
dialogMapVisible: false,
businessScopeCustomize: [{ name: '' }], businessScopeCustomize: [{ name: '' }],
accountAddForm: { accountAddForm: {
id: null, id: null,
...@@ -195,6 +184,7 @@ export default { ...@@ -195,6 +184,7 @@ export default {
this.$confirm('是否保存修改信息?', '提示', { this.$confirm('是否保存修改信息?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
customClass: 'gl-message-box',
type: 'warning' type: 'warning'
}) })
.then(() => { .then(() => {
...@@ -232,6 +222,7 @@ export default { ...@@ -232,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({
...@@ -350,7 +341,7 @@ export default { ...@@ -350,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,10 +136,10 @@ export default { ...@@ -122,10 +136,10 @@ 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>
...@@ -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,9 +203,20 @@ export default { ...@@ -168,9 +203,20 @@ 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;
...@@ -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 { .table_wrapper_open {
// height: 352px; padding: 0 20px;
// 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> </style>
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2022-04-28 10:15:34 * @Date: 2022-04-28 10:15:34
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2022-05-05 18:32:18 * @LastEditTime: 2022-07-19 17:54:00
--> -->
<template> <template>
...@@ -77,6 +77,7 @@ export default { ...@@ -77,6 +77,7 @@ export default {
}) })
}, },
handleClose() { handleClose() {
console.log(11212)
this.visible = false this.visible = false
this.selectLevel = [] this.selectLevel = []
this.checkObj.first = '' this.checkObj.first = ''
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2022-04-28 10:15:34 * @Date: 2022-04-28 10:15:34
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2022-05-18 18:06:35 * @LastEditTime: 2022-07-19 17:54:58
--> -->
<template> <template>
...@@ -76,6 +76,7 @@ export default { ...@@ -76,6 +76,7 @@ export default {
}) })
}, },
handleClose() { handleClose() {
console.log(3232)
this.visible = false this.visible = false
this.selectLevel = [] this.selectLevel = []
this.checkObj.first = '' this.checkObj.first = ''
......
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2022-03-07 14:32:50 * @Date: 2022-03-07 14:32:50
* @LastEditTime: 2022-05-06 14:32:10 * @LastEditTime: 2022-07-19 19:03:43
* @LastEditors: huyue * @LastEditors: huyue
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: \scrm-micro-settings\src\views\baseInfo\editInfo.vue * @FilePath: \scrm-micro-settings\src\views\baseInfo\editInfo.vue
--> -->
<template> <template>
<div>
<div class="main-information"> <div class="main-information">
<div class="information-title">修改企业信息</div> <div class="information-title">修改企业信息</div>
<div class="information-form-box"> <div class="information-form-box">
...@@ -33,18 +34,23 @@ ...@@ -33,18 +34,23 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
<el-dialog :visible.sync="dialogMapVisible" width="60%"> <GLDialog :visible.sync="dialogMapVisible" :mode="'big'" bigTitle="选择地址">
<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>
<el-button type="primary" @click="getAddress">确 定</el-button> <el-button type="primary" @click="getAddress">确 定</el-button>
</span> </span>
</el-dialog> </GLDialog>
<!-- <GLFooter style="z-index: 2">
<el-button type="primary" @click="handleSave">提交</el-button>
<el-button @click="goback">取消</el-button>
</GLFooter> -->
<TelPosition ref="telDialog" :visible.sync="dialogTelVisible"></TelPosition>
</div>
<GLFooter style="z-index: 2"> <GLFooter style="z-index: 2">
<el-button type="primary" @click="handleSave">提交</el-button> <el-button type="primary" @click="handleSave">提交</el-button>
<el-button @click="goback">取消</el-button> <el-button @click="goback">取消</el-button>
</GLFooter> </GLFooter>
<TelPosition ref="telDialog" :visible.sync="dialogTelVisible"></TelPosition>
</div> </div>
</template> </template>
...@@ -303,7 +309,6 @@ export default { ...@@ -303,7 +309,6 @@ export default {
background: #ffffff; background: #ffffff;
border-radius: 2px; border-radius: 2px;
min-height: calc(100% - 80px); min-height: calc(100% - 80px);
margin-bottom: 84px;
.information-title { .information-title {
height: 58px; height: 58px;
line-height: 58px; line-height: 58px;
...@@ -341,6 +346,7 @@ export default { ...@@ -341,6 +346,7 @@ export default {
cursor: pointer; cursor: pointer;
} }
.input-width { .input-width {
min-width: 200px; // min-width: 200px;
flex: 1;
} }
</style> </style>
<template> <template>
<div class="out_main"> <div class="out_main">
<!-- <div class="base-info-index"> --> <!-- <div class="base-info-index"> -->
<div class="top_widget"> <div class="top_baceInfo">
<img class="sign_icon" src="../../assets/scrm_base_info_icon_one.png" /> <img class="sign_icon" src="../../assets/scrm_base_info_icon_one.png" />
<div class="info_widget"> <div class="info_widget">
<div style="display: flex"> <div style="display: flex">
...@@ -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(),
...@@ -116,7 +116,7 @@ export default { ...@@ -116,7 +116,7 @@ export default {
background: #e9e8ff; background: #e9e8ff;
border-radius: 7px; border-radius: 7px;
} }
.top_widget { .top_baceInfo {
width: 100%; width: 100%;
box-sizing: border-box; box-sizing: border-box;
padding: 40px 40px 0 40px; padding: 40px 40px 0 40px;
...@@ -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 {
......
...@@ -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(() => {
......
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
</div> </div>
<!-- 弹框信息 --> <!-- 弹框信息 -->
<el-dialog :visible.sync="showDialog" width="50%" :before-close="closeDialog" :show-close="false"> <GLDialog :visible.sync="showDialog" :before-close="closeDialog" :show-close="false">
<div slot="title" class="dialogTitle">产品升级订购联系方式</div> <div slot="title" class="dialogTitle">产品升级订购联系方式</div>
<div class="dialogMain"> <div class="dialogMain">
<div class="info_left"> <div class="info_left">
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
<div style="footer" class="dialogFooter"> <div style="footer" class="dialogFooter">
<el-button size="small" class="element_btn" type="primary" @click="closeDialog">确定</el-button> <el-button size="small" class="element_btn" type="primary" @click="closeDialog">确定</el-button>
</div> </div>
</el-dialog> </GLDialog>
</div> </div>
</template> </template>
......
<template> <template>
<div> <div>
<el-dialog :visible.sync="dialogTelVisible" width="30%" top="30px"> <GLDialog :visible.sync="dialogTelVisible" mode="big" :hasFooter="false" top="30px">
<div class="dialog-show"> <div class="dialog-show">
<img src="@/assets/tel-show.png" alt="" /> <img src="@/assets/tel-show.png" alt="" />
<div class="tel-plus">联系电话:{{ residentPhone }}</div> <div class="tel-plus">联系电话:{{ residentPhone }}</div>
</div> </div>
</el-dialog> </GLDialog>
</div> </div>
</template> </template>
...@@ -31,7 +31,8 @@ export default { ...@@ -31,7 +31,8 @@ export default {
.dialog-show { .dialog-show {
position: relative; position: relative;
width: 534px; width: 534px;
height: 650px; // height: 650px;
margin: 0 auto;
.tel-plus { .tel-plus {
position: absolute; position: absolute;
top: 395px; top: 395px;
...@@ -43,17 +44,22 @@ export default { ...@@ -43,17 +44,22 @@ export default {
line-height: 25px; line-height: 25px;
} }
} }
/deep/ .el-dialog { /deep/ {
.el-dialog {
background-color: transparent; background-color: transparent;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0); box-shadow: 0 1px 3px rgba(0, 0, 0, 0);
} }
/deep/ .el-dialog__header { .el-dialog__header {
border-bottom: transparent; border-bottom: transparent;
} }
/deep/ .el-dialog__headerbtn .el-dialog__close { .el-dialog__headerbtn .el-dialog__close {
color: #191717; color: #191717;
} }
/deep/ .el-dialog__headerbtn { .el-dialog__headerbtn {
font-size: 23px; font-size: 23px;
}
.gl-dialog-wrap.big .el-dialog__body {
max-height: inherit;
}
} }
</style> </style>
...@@ -81,7 +81,7 @@ export default { ...@@ -81,7 +81,7 @@ export default {
margin-bottom: 64px; margin-bottom: 64px;
} }
.config-employee .container { .config-employee .container {
margin-top: 20px; /* margin-top: 20px; */
background: #ffffff; background: #ffffff;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1); box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
/* padding: 20px; */ /* padding: 20px; */
......
...@@ -105,7 +105,7 @@ export default { ...@@ -105,7 +105,7 @@ export default {
margin-bottom: 64px; margin-bottom: 64px;
} }
.config-employee .container { .config-employee .container {
margin-top: 20px; /* margin-top: 20px; */
background: #ffffff; background: #ffffff;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1); box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
padding: 20px; padding: 20px;
......
...@@ -58,7 +58,7 @@ export default { ...@@ -58,7 +58,7 @@ export default {
margin-bottom: 64px; margin-bottom: 64px;
} }
.config-employee .container { .config-employee .container {
margin-top: 20px; /* margin-top: 20px; */
background: #ffffff; background: #ffffff;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1); box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
padding: 20px; padding: 20px;
......
...@@ -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({
...@@ -451,7 +452,7 @@ export default { ...@@ -451,7 +452,7 @@ export default {
margin-bottom: 64px; margin-bottom: 64px;
} }
.config-employee .container { .config-employee .container {
margin-top: 20px; /* margin-top: 20px; */
background: #ffffff; background: #ffffff;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1); box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
/* padding: 20px; */ /* padding: 20px; */
......
...@@ -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'">
...@@ -94,9 +94,9 @@ ...@@ -94,9 +94,9 @@
<slot name="footer"></slot> <slot name="footer"></slot>
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-dialog :visible.sync="isImgVisible"> <GLDialog :visible.sync="isImgVisible">
<img class="dialog-img" width="100%" :src="dialogImageUrl" alt="" /> <img class="dialog-img" width="100%" :src="dialogImageUrl" alt="" />
</el-dialog> </GLDialog>
</div> </div>
</template> </template>
...@@ -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%;
} }
...@@ -391,7 +388,7 @@ export default { ...@@ -391,7 +388,7 @@ export default {
height: 100%; height: 100%;
} }
/* 图片上传 */ /* 图片上传 */
.footer-btns { .footer-btns {
float: right; float: right;
} }
</style> </style>
...@@ -7,15 +7,15 @@ ...@@ -7,15 +7,15 @@
</div> </div>
<div class="container"> <div class="container">
<div> <div>
<GLCombiForm :formObj="searchForm" :searchSelectObj="searchSelectObj" :rowNumber="$globalState.session.accountLevel == 4 ? 1 : 2" :formData="searchFormData" @handleOk="handleSearch" @handleRest="reSetFindData"></GLCombiForm> <GLCombiForm :formObj="searchForm" :searchSelectObj="searchSelectObj" :rowNumber="1" :formData="searchFormData" @handleOk="handleSearch" @handleRest="reSetFindData"></GLCombiForm>
</div> </div>
<div class="table-header"> <div class="table-header">
<div class="header-text">员工列表</div> <div class="header-text">员工列表</div>
<div class="table-btn"> <div class="table-btn">
<el-button v-if="($globalState.session.userType == 1 && $globalState.session.accountLevel == 4) || ($globalState.session.userType == 2 && $globalState.session.isMerchantStaffAdmin)" :size="size" type="primary" plain @click="batch(1)">批量分配角色</el-button>
<el-button v-if="($globalState.session.userType == 1 && $globalState.session.accountLevel == 4) || ($globalState.session.userType == 2 && $globalState.session.isMerchantStaffAdmin)" :size="size" plain @click="batch(2)">批量启用</el-button>
<!-- <el-button @click="handleExport" :size="size" type="primary" plain mode="el-button">导出</el-button> --> <!-- <el-button @click="handleExport" :size="size" type="primary" plain mode="el-button">导出</el-button> -->
<GLButton @click="handleExport" fn="导出" :size="size" type="primary" plain mode="el-button">导出</GLButton> <GLButton @click="handleExport" fn="导出" :size="size" type="primary" plain mode="el-button">导出</GLButton>
<el-button v-if="($globalState.session.userType == 1 && $globalState.session.accountLevel == 4) || ($globalState.session.userType == 2 && $globalState.session.isMerchantStaffAdmin)" :size="size" plain @click="batch(1)">批量分配角色</el-button>
<el-button v-if="($globalState.session.userType == 1 && $globalState.session.accountLevel == 4) || ($globalState.session.userType == 2 && $globalState.session.isMerchantStaffAdmin)" :size="size" plain @click="batch(2)">批量启用</el-button>
</div> </div>
</div> </div>
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
<template slot="otherOptions" slot-scope="scope"> <template slot="otherOptions" slot-scope="scope">
<GLButton mode="div" fn="开关"> <GLButton mode="div" fn="开关">
<el-popover v-if="scope.scope.statusName == '禁用'" placement="top" width="180" trigger="hover"> <el-popover v-if="scope.scope.statusName == '禁用'" placement="top" title="提示" width="200" trigger="hover">
<p>启用前,你可先为该员工创建角色,配置其所需的功能权限。如下所示:</p> <p>启用前,你可先为该员工创建角色,配置其所需的功能权限。如下所示:</p>
<p>1. 角色管理-创建角色</p> <p>1. 角色管理-创建角色</p>
<p>2. 选择员工账户-修改角色</p> <p>2. 选择员工账户-修改角色</p>
...@@ -315,7 +315,7 @@ export default { ...@@ -315,7 +315,7 @@ export default {
}, },
{ {
type: 'GLButton', type: 'GLButton',
name: '修改', name: '编辑',
condition: row => { condition: row => {
return true return true
}, },
...@@ -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(() => {
...@@ -630,7 +633,7 @@ export default { ...@@ -630,7 +633,7 @@ export default {
float: right; float: right;
} }
.config-employee .container { .config-employee .container {
margin-bottom: 20px; // margin-bottom: 20px;
background: #ffffff; background: #ffffff;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1); box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
padding: 20px; padding: 20px;
......
<!--
* @Description:
* @Author: huyue
* @Date: 2022-05-06 11:28:02
* @LastEditors: huyue
* @LastEditTime: 2022-07-21 16:21:02
-->
<template> <template>
<div class="scrm-wechat-main"> <div class="scrm-wechat-main">
<wx-system v-if="corpAuthModel === 0"></wx-system> <wx-system v-if="corpAuthModel === 0"></wx-system>
...@@ -41,8 +48,10 @@ export default { ...@@ -41,8 +48,10 @@ export default {
this.$apis.ww.getStatus({}).then(res => { this.$apis.ww.getStatus({}).then(res => {
this.corpAuthModel = res.corpAuthModel this.corpAuthModel = res.corpAuthModel
if (this.corpAuthModel === null) { if (this.corpAuthModel === null) {
this.$alert('请联系平台运营配置企微接入模式', { this.$alert('请联系平台运营配置企微接入模式', '提示', {
confirmButtonText: '确定' confirmButtonText: '确定',
type: 'info',
customClass: 'gl-message-box'
}) })
} }
}) })
......
...@@ -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!