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 @@
"el-tree-transfer": "^2.2.6",
"element-ui": "^2.4.5",
"glsx-common": "^1.4.6",
"glsx-components": "^1.4.2",
"glsx-components": "^1.4.4",
"lodash": "^4.17.21",
"qrcodejs2": "^0.0.2",
"vue": "^2.6.10",
......
......@@ -235,3 +235,21 @@ img {
.role-border-b {
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 @@
color: #333333;
font-weight: 600;
}
.el-button.is-plain {
color: #666;
border-color: rgba(105,105,105,0.3000)
}
.el-button--primary.is-plain {
color: #5850FF;
border-color: #5850FF;
}
.emptyBg {
width: 100%;
......@@ -38,4 +42,8 @@
.message-z {
z-index: 9999 !important;
}
.el-popover {
padding: 10px 12px !important;
}
\ No newline at end of file
<template>
<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 id="myPageTop" style="position: absolute; top: 10px; width: 50%; left: 25%">
<el-input placeholder="请输入关键字" v-model="input" class="input-with-select">
......@@ -137,6 +137,6 @@ export default {
.map-address {
position: absolute;
line-height: 20px;
bottom: -30px;
bottom: 0;
}
</style>
......@@ -71,26 +71,17 @@
<el-button type="primary" @click="handleSave(2)" v-show="step == 2">确定</el-button>
<el-button type="primary" @click="handleCancel">取消</el-button>
</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>
</template>
<script>
import util from '@/utils/util'
import mapView from '@/components/mapView/index'
import autoButton from '@/components/auto-button/index'
import selectProduct from './components/selectProduct'
import baseInfo from './components/baseInfo'
export default {
name: 'index',
components: {
mapView,
autoButton,
selectProduct,
baseInfo
......@@ -122,10 +113,8 @@ export default {
},
parentId: '',
step: 1,
mapHeight: 400,
typeStatus: false,
loadingImg: false,
dialogMapVisible: false,
businessScopeCustomize: [{ name: '' }],
accountAddForm: {
status: '',
......@@ -182,10 +171,6 @@ export default {
}
},
methods: {
getAddress() {
this.dialogMapVisible = false
this.accountAddForm.merchantAddress = this.$refs.mapForm.address
},
getBtnStatus(status, value) {
this.editStatus = true
this.accountTypesRule = false
......@@ -217,9 +202,10 @@ export default {
handleCancel() {
if (this.editStatus) {
this.$confirm('当前有内容信息未保存,是否继续返回?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
confirmButtonText: '是',
cancelButtonText: '否',
type: 'warning',
customClass: 'gl-message-box'
}).then(() => {
this.$router.push({
path: '/account/index'
......
......@@ -49,7 +49,7 @@
<el-form-item size="small" label="商户地址" class="form-row">
<!-- 省市 -->
<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-form-item>
</el-col>
......@@ -113,7 +113,7 @@
<el-col :span="12">
<el-form-item label="门店照片">
<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 = ''">
<img :src="item.fileUrl" />
<div class="uploader-del-icon" v-if="imgIndex === index">
......@@ -131,13 +131,13 @@
</el-col>
</el-row>
</el-form>
<el-dialog :visible.sync="dialogMapVisible" width="60%">
<map-view ref="mapForm" :mapHeight="mapHeight"></map-view>
<GLDialog :visible.sync="dialogMapVisible" title="选择地图">
<map-view ref="mapForm" :mapHeight="450"></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>
</GLDialog>
</div>
</template>
......@@ -199,7 +199,6 @@ export default {
label: 'label'
},
dialogMapVisible: false,
mapHeight: 380,
baseRules: {
merchantName: [{ required: true, message: '请输入商户名称', trigger: 'blur' }],
merchantLegalPersonPhone: [
......
<template>
<div class="account-body scrm-box-f" v-loading="loading">
<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-tabs>
<div class="role-border">
......@@ -22,10 +22,10 @@
</div>
<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 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="" />
<div>
{{ item.productsArr.length == 0 ? '请先选择产品' : '暂无菜单权限' }}
{{ item.productsArr.length && item.productsArr.length == 0 ? '请先选择产品' : '暂无菜单权限' }}
</div>
</div>
<div v-else>
......@@ -118,7 +118,7 @@ export default {
return this.tabMenu
},
// 获取当前的所有权限
async accountTypeSearchRequest(params, status) {
accountTypeSearchRequest(params, status) {
this.loading = true
let account = ''
if (status) {
......@@ -138,6 +138,7 @@ export default {
// productId: ''
}
})
this.findPermissionsByMerId(params.merchantId ? params.merchantId : params.id)
this.accountTypes = tabMenu.map(item => {
return {
products: null,
......@@ -145,7 +146,7 @@ export default {
}
})
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 {
}
}
</script>
<style scoped lang="scss">
.account-body {
padding: 20px;
......
......@@ -67,26 +67,17 @@
<el-button type="primary" @click="handleNext()" v-show="step == 'second'">确定</el-button>
<el-button type="primary" @click="handleCancel">取消</el-button>
</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>
</template>
<script>
import util from '@/utils/util'
import mapView from '@/components/mapView/index'
import autoButton from '@/components/auto-button/index'
import selectProduct from './components/selectProduct'
import baseInfo from './components/baseInfo'
export default {
name: 'index',
components: {
mapView,
autoButton,
selectProduct,
baseInfo
......@@ -113,10 +104,8 @@ export default {
label: 'label'
},
parentId: '1',
mapHeight: 400,
typeStatus: false,
loadingImg: false,
dialogMapVisible: false,
businessScopeCustomize: [{ name: '' }],
accountAddForm: {
id: null,
......@@ -195,6 +184,7 @@ export default {
this.$confirm('是否保存修改信息?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
customClass: 'gl-message-box',
type: 'warning'
})
.then(() => {
......@@ -232,6 +222,7 @@ export default {
this.$confirm('当前有内容信息未保存,是否继续返回?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
customClass: 'gl-message-box',
type: 'warning'
}).then(() => {
this.$router.push({
......@@ -350,7 +341,7 @@ export default {
})
this.findMerchantDetail()
},
async findMerchantDetail() {
findMerchantDetail() {
this.$apis.store
.findMerchantDetail({
id: this.accountAddForm.id
......
......@@ -4,13 +4,27 @@
<div class="wrap_left">
<div class="out_box_wrap">
<div class="fixed_widget">
<div class="label_text">版本:{{ bloc.merchantModelName || '--'}}</div>
<div class="label_text dr_top">
开通门店数:
<span v-if="bloc.numberStores" class="num_text">{{ bloc.numberStores }}家</span>
<span v-else class="num_text">--</span>
<div class="label_top">
<div class="label_top-title">{{ bloc.merchantModelName || '--' }}</div>
<div>
<span class="label_top-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 class="label_text dr_top">门店详情</div>
</div>
<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> -->
......@@ -20,7 +34,7 @@
<div class="tittle1 text_w">门店名称</div>
<div class="tittle2 text_w">有效期</div>
</div>
<div class="line_body" :style="{height: tableHeight+ 'px'}">
<div class="line_body" :style="{ height: tableHeight + 'px' }">
<template v-if="list.length">
<div v-for="(item, index) in list" :key="index" class="line_wrapper">
<div class="tittle">{{ index + 1 }}</div>
......@@ -34,10 +48,10 @@
</div>
</template>
</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>
<span class="dr_left">{{ isOpen ? '隐藏门店详情' : '展开门店详情' }}</span>
</div>
</div> -->
</div>
</div>
<!-- <div class="wrap_right">
......@@ -102,7 +116,7 @@ export default {
// },
changeRightOpenStatus(isOpen) {
this.isOpen = !isOpen
},
}
// handlerData() {
// let arr = this.dataList
// let left = []
......@@ -122,11 +136,11 @@ export default {
},
mounted() {
let clientHeight = document.documentElement.clientHeight;
this.tableHeight = clientHeight - 475;
let clientHeight = document.documentElement.clientHeight
this.tableHeight = clientHeight - 475
}
};
</script>
}
</script>
<style lang="scss" scoped>
.bloc-info-module {
......@@ -149,15 +163,36 @@ export default {
.out_box_wrap {
width: 100%;
min-height: 176px;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
border-radius: 10px;
box-shadow: 0px 4px 16px 0px rgba(124, 119, 230, 0.1);
border-radius: 12px;
border: 1px solid #e5e4ff;
margin: 0 40px 40px 0;
.fixed_widget {
width: 100%;
height: 140px;
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 {
color: #333333;
font-size: 14px;
......@@ -168,10 +203,21 @@ export default {
font-weight: 400;
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 {
height: 0;
// transition: height 0.1s ease-in-out;
......@@ -187,15 +233,16 @@ export default {
font-size: 14px;
border-bottom: 1px solid #dcdfe6;
.tittle {
width: 20%;
text-align: center;
color: #333333;
padding-left: 16px;
width: 15%;
text-align: left;
color: #666666;
font-size: 14px;
}
.tittle1 {
width: 40%;
text-align: center;
color: #333333;
width: 45%;
text-align: left;
color: #666666;
font-size: 14px;
word-wrap: break-word;
word-break: break-all;
......@@ -203,11 +250,17 @@ export default {
}
.tittle2 {
width: 40%;
text-align: center;
color: #333333;
text-align: left;
color: #666666;
font-size: 14px;
}
}
.dr_top {
padding: 20px;
}
.label-top {
margin-bottom: 12px;
}
.wrap_header {
background: #f4f6fc;
}
......@@ -218,6 +271,8 @@ export default {
width: 100%;
overflow-y: auto;
overflow-x: hidden;
border: 1px solid #e8e8ea;
border-top: none;
}
.line_body::-webkit-scrollbar {
height: 1px;
......@@ -239,22 +294,9 @@ export default {
color: #b9b8c7;
border-radius: 0px 0px 10px 10px;
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
.table_wrapper_open {
padding: 0 20px;
}
</style>
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2022-04-28 10:15:34
* @LastEditors: huyue
* @LastEditTime: 2022-05-05 18:32:18
* @LastEditTime: 2022-07-19 17:54:00
-->
<template>
......@@ -77,6 +77,7 @@ export default {
})
},
handleClose() {
console.log(11212)
this.visible = false
this.selectLevel = []
this.checkObj.first = ''
......
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2022-04-28 10:15:34
* @LastEditors: huyue
* @LastEditTime: 2022-05-18 18:06:35
* @LastEditTime: 2022-07-19 17:54:58
-->
<template>
......@@ -76,6 +76,7 @@ export default {
})
},
handleClose() {
console.log(3232)
this.visible = false
this.selectLevel = []
this.checkObj.first = ''
......
<!--
* @Author: your name
* @Date: 2022-03-07 14:32:50
* @LastEditTime: 2022-05-06 14:32:10
* @LastEditTime: 2022-07-19 19:03:43
* @LastEditors: huyue
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: \scrm-micro-settings\src\views\baseInfo\editInfo.vue
-->
<template>
<div class="main-information">
<div class="information-title">修改企业信息</div>
<div class="information-form-box">
<el-form ref="baseForm" :model="infoForm" class="account-body-form" label-width="120px" :rules="baseFormRules">
<el-form-item size="small" label="商户地址" class="map-row">
<Province ref="provinceForm" :subdistrict="subdistrict" @selectProvince="selectProvince" @selectCity="selectCity"></Province>
<el-input class="input-width" v-model="infoForm.merchantAddress" placeholder="请选择商户地址" readonly="readonly"></el-input>
<el-button @click="hanleSelectMap" type="primary">选择地址</el-button>
</el-form-item>
<el-form-item size="small" label="经营业务类型">
<el-checkbox-group v-model="infoForm.businessType">
<el-checkbox :label="item.dictValue" v-for="item in businessType" :key="item.dictValue" :disabled="item.dictValue <= 6">{{ item.dictLabel }}</el-checkbox>
</el-checkbox-group>
</el-form-item>
<el-form-item size="small" label="营业时间" class="time-row">
<el-time-picker size="small" value-format="HH:mm:ss" is-range v-model="infoForm.bussinessTime" range-separator="至" start-placeholder="开始时间" end-placeholder="结束时间" placeholder="选择时间范围"></el-time-picker>
</el-form-item>
<el-form-item size="small" label="驻店电话" style="position: relative" prop="residentPhone">
<el-input v-model="infoForm.residentPhone" class="phone-input" maxlength="13" placeholder="此电话会在小程序上显示,请填写真实有效的电话或手机号"></el-input>
<div @click="showTelDia" class="show-address">显示位置</div>
</el-form-item>
<el-form-item size="small" label="主营品牌" style="height: 500px">
<select-brand :brandListTree="brandListTree" @clickBrand="clickBrand" ref="brandListTree"></select-brand>
</el-form-item>
</el-form>
<div>
<div class="main-information">
<div class="information-title">修改企业信息</div>
<div class="information-form-box">
<el-form ref="baseForm" :model="infoForm" class="account-body-form" label-width="120px" :rules="baseFormRules">
<el-form-item size="small" label="商户地址" class="map-row">
<Province ref="provinceForm" :subdistrict="subdistrict" @selectProvince="selectProvince" @selectCity="selectCity"></Province>
<el-input class="input-width" v-model="infoForm.merchantAddress" placeholder="请选择商户地址" readonly="readonly"></el-input>
<el-button @click="hanleSelectMap" type="primary">选择地址</el-button>
</el-form-item>
<el-form-item size="small" label="经营业务类型">
<el-checkbox-group v-model="infoForm.businessType">
<el-checkbox :label="item.dictValue" v-for="item in businessType" :key="item.dictValue" :disabled="item.dictValue <= 6">{{ item.dictLabel }}</el-checkbox>
</el-checkbox-group>
</el-form-item>
<el-form-item size="small" label="营业时间" class="time-row">
<el-time-picker size="small" value-format="HH:mm:ss" is-range v-model="infoForm.bussinessTime" range-separator="至" start-placeholder="开始时间" end-placeholder="结束时间" placeholder="选择时间范围"></el-time-picker>
</el-form-item>
<el-form-item size="small" label="驻店电话" style="position: relative" prop="residentPhone">
<el-input v-model="infoForm.residentPhone" class="phone-input" maxlength="13" placeholder="此电话会在小程序上显示,请填写真实有效的电话或手机号"></el-input>
<div @click="showTelDia" class="show-address">显示位置</div>
</el-form-item>
<el-form-item size="small" label="主营品牌" style="height: 500px">
<select-brand :brandListTree="brandListTree" @clickBrand="clickBrand" ref="brandListTree"></select-brand>
</el-form-item>
</el-form>
</div>
<GLDialog :visible.sync="dialogMapVisible" :mode="'big'" bigTitle="选择地址">
<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>
</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>
<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>
<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>
</template>
......@@ -303,7 +309,6 @@ export default {
background: #ffffff;
border-radius: 2px;
min-height: calc(100% - 80px);
margin-bottom: 84px;
.information-title {
height: 58px;
line-height: 58px;
......@@ -341,6 +346,7 @@ export default {
cursor: pointer;
}
.input-width {
min-width: 200px;
// min-width: 200px;
flex: 1;
}
</style>
<template>
<div class="out_main">
<!-- <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" />
<div class="info_widget">
<div style="display: flex">
......@@ -9,7 +9,7 @@
{{ blocInfo.merchantName }}
<span class="min_text">(商户号:{{ blocInfo.merchantNo }})</span>
</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> -->
</div>
......@@ -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 config = {
YYYY: date.getFullYear(),
......@@ -116,7 +116,7 @@ export default {
background: #e9e8ff;
border-radius: 7px;
}
.top_widget {
.top_baceInfo {
width: 100%;
box-sizing: border-box;
padding: 40px 40px 0 40px;
......@@ -158,8 +158,10 @@ export default {
margin-left: 16px;
}
.auth_btn_cp {
border: 1px solid #5850ff;
color: #5850ff;
color: #2cca74;
background: rgba(44, 202, 116, 0.06);
border-radius: 2px;
border: 1px solid rgba(44, 202, 116, 0.35);
}
}
.dr_top_1 {
......@@ -167,4 +169,4 @@ export default {
}
}
}
</style>
\ No newline at end of file
</style>
......@@ -223,6 +223,7 @@ export default {
this.$confirm(' 请确认是否关联当前信息?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
customClass: 'gl-message-box',
type: 'warning'
}).then(() => {
this.$apis.baseInfo.toGL(para).then(res => {
......@@ -246,6 +247,7 @@ export default {
this.$confirm('此操作将删除该项, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
customClass: 'gl-message-box',
type: 'warning'
})
.then(() => {
......
......@@ -75,7 +75,7 @@
</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 class="dialogMain">
<div class="info_left">
......@@ -95,7 +95,7 @@
<div style="footer" class="dialogFooter">
<el-button size="small" class="element_btn" type="primary" @click="closeDialog">确定</el-button>
</div>
</el-dialog>
</GLDialog>
</div>
</template>
......
<template>
<div>
<el-dialog :visible.sync="dialogTelVisible" width="30%" top="30px">
<GLDialog :visible.sync="dialogTelVisible" mode="big" :hasFooter="false" top="30px">
<div class="dialog-show">
<img src="@/assets/tel-show.png" alt="" />
<div class="tel-plus">联系电话:{{ residentPhone }}</div>
</div>
</el-dialog>
</GLDialog>
</div>
</template>
......@@ -31,7 +31,8 @@ export default {
.dialog-show {
position: relative;
width: 534px;
height: 650px;
// height: 650px;
margin: 0 auto;
.tel-plus {
position: absolute;
top: 395px;
......@@ -43,17 +44,22 @@ export default {
line-height: 25px;
}
}
/deep/ .el-dialog {
background-color: transparent;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0);
}
/deep/ .el-dialog__header {
border-bottom: transparent;
}
/deep/ .el-dialog__headerbtn .el-dialog__close {
color: #191717;
}
/deep/ .el-dialog__headerbtn {
font-size: 23px;
/deep/ {
.el-dialog {
background-color: transparent;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0);
}
.el-dialog__header {
border-bottom: transparent;
}
.el-dialog__headerbtn .el-dialog__close {
color: #191717;
}
.el-dialog__headerbtn {
font-size: 23px;
}
.gl-dialog-wrap.big .el-dialog__body {
max-height: inherit;
}
}
</style>
......@@ -81,7 +81,7 @@ export default {
margin-bottom: 64px;
}
.config-employee .container {
margin-top: 20px;
/* margin-top: 20px; */
background: #ffffff;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
/* padding: 20px; */
......
......@@ -105,7 +105,7 @@ export default {
margin-bottom: 64px;
}
.config-employee .container {
margin-top: 20px;
/* margin-top: 20px; */
background: #ffffff;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
padding: 20px;
......
......@@ -58,7 +58,7 @@ export default {
margin-bottom: 64px;
}
.config-employee .container {
margin-top: 20px;
/* margin-top: 20px; */
background: #ffffff;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
padding: 20px;
......
......@@ -5,7 +5,7 @@
</div> -->
<div class="container edit-box">
<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">
<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)">
......@@ -132,7 +132,7 @@ export default {
{
label: '所属商户',
name: 'merchantId',
// nameLabel: 'merchantName',
type: 'selectInput',
noClearable: true,
width: '320px',
optionList: [],
......@@ -393,6 +393,7 @@ export default {
this.$confirm('当前有内容信息未保存,是否继续返回?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
customClass: 'gl-message-box',
type: 'warning'
}).then(() => {
this.$router.push({
......@@ -451,7 +452,7 @@ export default {
margin-bottom: 64px;
}
.config-employee .container {
margin-top: 20px;
/* margin-top: 20px; */
background: #ffffff;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
/* padding: 20px; */
......
......@@ -3,7 +3,7 @@
<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">
<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 class="tips-label">{{ item.label }}</span>
<el-tooltip popper-class="tooltip-class" effect="dark" :content="item.tips" :placement="item.placement || 'top'">
......@@ -94,9 +94,9 @@
<slot name="footer"></slot>
</el-form-item>
</el-form>
<el-dialog :visible.sync="isImgVisible">
<GLDialog :visible.sync="isImgVisible">
<img class="dialog-img" width="100%" :src="dialogImageUrl" alt="" />
</el-dialog>
</GLDialog>
</div>
</template>
......@@ -239,16 +239,13 @@ export default {
.glsx-combi-form .isBlock {
display: block;
}
/* .glsx-combi-form .el-form-item {
width: 65%;
} */
.glsx-combi-form .no-label.el-form-item--small .el-form-item__content {
width: 100%;
}
.glsx-combi-form .el-form-item--small.el-form-item {
/* margin: 0 30px 20px 0; */
margin: 0 0 20px 0;
margin: 0 0 20px 0;
}
.glsx-combi-form .el-form-item--small .el-form-item__label {
......@@ -391,7 +388,7 @@ export default {
height: 100%;
}
/* 图片上传 */
.footer-btns {
.footer-btns {
float: right;
}
</style>
......@@ -7,15 +7,15 @@
</div>
<div class="container">
<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 class="table-header">
<div class="header-text">员工列表</div>
<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> -->
<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>
<!-- 表格区域 开始 -->
......@@ -29,7 +29,7 @@
<template slot="otherOptions" slot-scope="scope">
<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>1. 角色管理-创建角色</p>
<p>2. 选择员工账户-修改角色</p>
......@@ -315,7 +315,7 @@ export default {
},
{
type: 'GLButton',
name: '修改',
name: '编辑',
condition: row => {
return true
},
......@@ -478,6 +478,7 @@ export default {
this.$confirm('是否确认删除该员工?', '删除', {
confirmButtonText: '确定',
cancelButtonText: '取消',
customClass: 'gl-message-box',
type: 'warning',
callback: action => {
if (action == 'confirm') {
......@@ -541,6 +542,7 @@ export default {
this.$confirm(`您选中的员工中包含已设置 “角色” 账号。请去除选中已设置 “角色” 员工账号。`, '', {
confirmButtonText: '确定',
showCancelButton: false,
customClass: 'gl-message-box',
type: 'warning'
})
} else {
......@@ -554,6 +556,7 @@ export default {
this.$confirm(`是否将选中的账号批量进行启用?`, '', {
confirmButtonText: '确定',
cancelButtonText: '取消',
customClass: 'gl-message-box',
type: 'warning'
})
.then(() => {
......@@ -630,7 +633,7 @@ export default {
float: right;
}
.config-employee .container {
margin-bottom: 20px;
// margin-bottom: 20px;
background: #ffffff;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
padding: 20px;
......
<!--
* @Description:
* @Author: huyue
* @Date: 2022-05-06 11:28:02
* @LastEditors: huyue
* @LastEditTime: 2022-07-21 16:21:02
-->
<template>
<div class="scrm-wechat-main">
<wx-system v-if="corpAuthModel === 0"></wx-system>
......@@ -41,14 +48,16 @@ export default {
this.$apis.ww.getStatus({}).then(res => {
this.corpAuthModel = res.corpAuthModel
if (this.corpAuthModel === null) {
this.$alert('请联系平台运营配置企微接入模式', {
confirmButtonText: '确定'
this.$alert('请联系平台运营配置企微接入模式', '提示', {
confirmButtonText: '确定',
type: 'info',
customClass: 'gl-message-box'
})
}
})
}
}
</script>
</script>
<style lang="scss" scoped>
.wechat-qrcode-panel {
......@@ -69,4 +78,4 @@ export default {
}
}
}
</style>
\ No newline at end of file
</style>
......@@ -198,6 +198,7 @@ export default {
this.$confirm('当前有内容信息未保存,是否继续返回?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
customClass: 'gl-message-box',
type: 'warning'
}).then(() => {
this.$emit('closeDrawer')
......
......@@ -213,6 +213,7 @@ export default {
this.$confirm('是否删除该员工?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
customClass: 'gl-message-box',
type: 'warning'
})
.then(() => {
......
......@@ -7,7 +7,7 @@
</template>
</el-tabs>
<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 v-for="(itm, idx) in item.products" :label="itm" :key="idx">{{ itm.productName }}</el-checkbox>
</el-checkbox-group>
......@@ -442,8 +442,13 @@ export default {
border-radius: 2px;
/deep/ {
.el-tabs {
height: 48px;
border-bottom: 1px solid #e5e5e5;
}
.el-tabs__nav {
height: 48px;
line-height: 48px;
}
.el-tabs__header {
margin: 0;
padding: 0 30px;
......@@ -486,7 +491,7 @@ export default {
cursor: pointer;
&.select-checked {
background: #ffffff;
color: #322ad9;
color: #5850ff;
}
}
.menu-box-tab {
......@@ -512,5 +517,7 @@ export default {
/deep/ .el-tree {
height: 640px;
overflow: auto;
padding: 0 20px;
font-size: 14px;
}
</style>
......@@ -5,23 +5,23 @@
<span class="title">{{ pageName }}</span>
</div>
<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-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-select>
</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-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-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-form-item>
<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-form-item label="角色说明:" prop="roleDesc">
<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 label="角色权限" prop="roleRoot">
<div class="custom_element">
......@@ -42,7 +42,7 @@
<el-row>
<el-col :span="16">
<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 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>
......@@ -307,6 +307,7 @@ export default {
this.$confirm('当前有内容信息未保存,是否继续返回?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
customClass: 'gl-message-box',
type: 'warning'
}).then(() => {
this.$router.push('/role/index')
......@@ -413,4 +414,7 @@ export default {
margin-right: 15px;
}
}
/deep/.el-form-item {
margin-bottom: 20px;
}
</style>
......@@ -278,6 +278,7 @@ export default {
this.$confirm('此操作将永久删除, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
customClass: 'gl-message-box',
type: 'warning'
}).then(() => {
this.$apis.role.deleteRole({ id: row.id }).then(res => {
......
......@@ -317,7 +317,7 @@ export default {
cursor: pointer;
}
.line_element_two_active {
color: #322ad9;
color: #5850ff;
background-color: #ffffff;
}
}
......@@ -390,4 +390,10 @@ export default {
z-index: 999;
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>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!