Commit 9c73e520 by 前端

Merge branch 'v2.7.0' into 'develop'

V2.7.0

See merge request !77
2 parents 19ca5715 371bc002
......@@ -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.7",
"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>
......@@ -4,7 +4,7 @@
* @Author: limin
* @Date: 2021-06-07 14:12:32
* @LastEditors: huyue
* @LastEditTime: 2022-04-12 11:11:32
* @LastEditTime: 2022-07-18 14:48:43
*/
// 根据环境引入不同配置 process.env.VUE_APP_ENV
// let request = require('@/http/request.js')
......@@ -17,8 +17,8 @@ export const fetchConfig = function(isEnv = false) {
Object.assign(request, { timeout })
return Promise.resolve(cfg)
}
// return new Http().get('https://oss-config.test.glsx.com.cn/mock/617ba1df1072f92988f05a14/account/config')
return new Http().get('http://config-center-backend.test.glsx.com/glsxAdmin/config?moduleUrl=setting-kyq').then(res => res.data)
return new Http().get('https://oss-config.test.glsx.com.cn/mock/617ba1df1072f92988f05a14/account/config')
// return new Http().get('http://config-center-backend.test.glsx.com/glsxAdmin/config?moduleUrl=setting-kyq').then(res => res.data)
}
export const config = {
install(vue, cfg) {
......
......@@ -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'
......@@ -442,9 +428,9 @@ export default {
}
.account-body {
margin-top: 20px;
&:nth-of-type(3) {
margin-bottom: 70px;
}
// &:nth-of-type(3) {
// margin-bottom: 70px;
// }
.form-title {
font-size: 16px;
font-weight: 500;
......@@ -586,6 +572,6 @@ export default {
height: 64px;
background: #ffffff;
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);
}
</style>
......@@ -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,11 +387,10 @@ export default {
}
}
</script>
<style scoped lang="scss">
.account-body {
padding: 20px;
margin-bottom: 50px;
margin-bottom: 20px;
/deep/ {
.el-checkbox:last-of-type {
margin-right: 8px;
......
......@@ -213,9 +213,6 @@
<GLTable ref="updateRecord" :tableTotal="tableTotal" :tableData="updateRecordList" :hasNum="true" :pageConf="pageConf" :tableParams="thirdtableParams" @refreshTable="getThirdTable"></GLTable>
</div>
</div>
<GLFooter>
<el-button type="primary" @click="handleCancel">关闭</el-button>
</GLFooter>
</div>
</template>
<script>
......@@ -876,7 +873,7 @@ export default {
height: 64px;
background: #ffffff;
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);
}
}
.merchant-brand {
......
......@@ -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
......@@ -502,7 +493,7 @@ export default {
.account-body {
&:nth-of-type(2) {
margin-top: 20px;
margin-bottom: 70px;
margin-bottom: 20px;
}
.form-title {
font-size: 16px;
......@@ -633,6 +624,6 @@ export default {
height: 64px;
background: #ffffff;
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);
}
</style>
......@@ -403,7 +403,7 @@ export default {
.follow-form {
margin-top: 10px;
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: 10px;
}
.accountType-row {
......
......@@ -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 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(),
......@@ -104,7 +104,7 @@ export default {
width: 100%;
height: calc(100vh - 144px);
background: #fff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
// box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
overflow: hidden;
overflow-y: scroll;
}
......@@ -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;
......@@ -150,16 +150,18 @@ export default {
text-align: center;
line-height: 20px;
border-radius: 1px;
border: 1px solid #ff6d00;
border: 1px solid rgba(44, 202, 116, 0.35);
font-size: 12px;
font-weight: 400;
color: #ff6d00;
color: #2cca74;
display: inline-block;
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>
......@@ -49,7 +49,7 @@
</GLTable>
</div>
</div>
<div style="height: 64px"></div>
<div style="height: 20px"></div>
<GLFooter class="fixed-footer">
<div :style="{ width: customWidth + 'px' }" ref="btnWidth" class="btn-custom pruple" @click="handleMutiGL">确定关联({{ dataList.length }})</div>
<div style="width: 20px"></div>
......@@ -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(() => {
......@@ -299,7 +301,7 @@ export default {
width: 100%;
// height: 320px;
background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
// box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
box-sizing: border-box;
// padding: 32px 0 0 20px;
padding: 20px 0 40px 40px;
......@@ -376,7 +378,7 @@ export default {
width: 100%;
min-height: 200px;
background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
// box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
box-sizing: border-box;
padding: 20px;
margin-top: 20px;
......@@ -401,7 +403,7 @@ export default {
height: 64px;
z-index: 10;
background: #ffffff;
box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1);
// box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1);
display: flex;
align-items: center;
justify-content: center;
......
......@@ -240,7 +240,7 @@ export default {
margin-top: 10px;
padding: 15px 15px 0px;
background: #ffffff;
box-shadow: 0px 6px 20px 0px rgba(122, 122, 122, 0.2);
// box-shadow: 0px 6px 20px 0px rgba(122, 122, 122, 0.2);
border-radius: 4px;
.tree-input {
margin-bottom: 10px;
......
......@@ -75,11 +75,11 @@
</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">
<p>深圳广联赛讯股份有限公司</p>
<div class="info_left_title">深圳广联赛讯股份有限公司</div>
<p>联系人:梁卉卉</p>
<p>联系电话:18824231191</p>
<p>微信:18824231191</p>
......@@ -89,13 +89,13 @@
<div class="icon_bg">
<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/lianghh.png" />
</div>
<div class="icon_text">扫码加好友咨询</div>
<div class="icon_text">扫码咨询</div>
</div>
</div>
<div style="footer" class="dialogFooter">
<el-button size="small" class="element_btn" type="primary" @click="closeDialog">确定</el-button>
</div>
</el-dialog>
<span slot="footer" class="dialog-footer">
<el-button type="primary" @click="closeDialog">确 定</el-button>
</span>
</GLDialog>
</div>
</template>
......@@ -244,7 +244,7 @@ export default {
box-sizing: border-box;
padding: 20px;
background: #ffffff;
box-shadow: 0px 6px 10px 0px rgba(88, 80, 255, 0.1);
// box-shadow: 0px 6px 10px 0px rgba(88, 80, 255, 0.1);
border-radius: 10px;
position: relative;
.info_text {
......@@ -279,6 +279,10 @@ export default {
.info_left {
width: 338px;
height: 156px;
&_title {
font-size: 16px;
margin-bottom: 16px;
}
> p {
font-size: 14px;
font-weight: 400;
......@@ -301,9 +305,7 @@ export default {
}
}
.icon_text {
font-size: 16px;
font-weight: 600;
color: #5850ff;
font-size: 14px;
margin-top: 10px;
}
}
......
<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>
......@@ -141,7 +141,7 @@ export default {
}
}
</script>
<style lang="scss">
<style lang="scss" scoped>
.tab_line {
width: 100%;
height: 2px;
......@@ -156,9 +156,7 @@ export default {
margin-bottom: 64px;
}
.config-employee.config-config .container {
margin-top: 20px;
background: #ffffff;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
padding: 0 20px;
.content-title {
display: inline-block;
......
<!-- 基本信息 -->
<template>
<div class="config-employee config-info">
<div class="container edit-box">
<p class="edit-title">员工基本信息</p>
<el-form label-width="140px" :inline="true" style="margin: 32px 0 12px;">
<el-form-item class="basic-info" isEdit="true" v-for="(item, index) in detailFormData" :key="index" :label="item.label + ':'">
<span class="txt-ellipsis" style="display: inline-block; width: 100%; height: 28px;" :title="info[item.name] || '-'">{{ info[item.name] || '-' }}</span>
</el-form-item>
</el-form>
<div>
<div class="config-employee config-info">
<div class="container edit-box">
<p class="edit-title">员工基本信息</p>
<div class="info-box">
<div class="info-box-left">
<div class="label-height">
<span class="info-box-label">姓名:</span>
<span class="info-box-msg">{{ info.staffName }}</span>
</div>
<div class="label-height">
<span class="info-box-label">登录手机号:</span>
<span class="info-box-msg">{{ info.staffPhone }}</span>
</div>
<div>
<span class="info-box-label">职务:</span>
<span class="info-box-msg">{{ info.staffJob }}</span>
</div>
</div>
<div class="info-box-right">
<div class="label-height">
<span class="info-box-label">角色名称:</span>
<span class="info-box-msg">{{ info.roleName }}</span>
</div>
<div class="label-height">
<span class="info-box-label">创建人:</span>
<span class="info-box-msg">{{ info.createdAccount }}</span>
</div>
<div>
<span class="info-box-label">企微号:</span>
<span class="info-box-msg">{{ info.entmicroName }}</span>
</div>
</div>
</div>
</div>
</div>
<div class="container edit-box">
<div class="next-merchant container">
<p class="edit-title">可见下级商户</p>
<div class="config-mer-name">
<!-- <div class="config-mer-name">
<p class="txt-ellipsis" style="margin-bottom: 24px" v-for="(item, index) in info.visibleInferiorMerName.split(',')" :key="index" :title="item">{{ item }}</p>
</div> -->
<div class="merchant-box">
<div class="line_wrapper wrap_header">
<div class="tittle text_w">序号</div>
<div class="tittle1 text_w">商户名称</div>
</div>
<div class="line_body">
<div v-for="(item, index) in info.visibleInferiorMerName.split(',')" :key="index" class="line_wrapper">
<div class="tittle">{{ index + 1 }}</div>
<div class="tittle1">{{ item }}</div>
</div>
</div>
</div>
</div>
</div>
......@@ -26,33 +65,7 @@ export default {
info: {
visibleInferiorMerName: ''
},
powerDataArray: [],
detailFormData: [
{
label: '姓名',
name: 'staffName'
},
{
label: '角色名称',
name: 'roleName'
},
{
label: '登录手机号',
name: 'staffPhone'
},
{
label: '创建人',
name: 'createdAccount'
},
{
label: '职务',
name: 'staffJob'
},
{
label: '企微号',
name: 'entmicroName'
}
]
powerDataArray: []
}
},
......@@ -76,15 +89,34 @@ export default {
}
}
</script>
<style>
.config-employee {
margin-bottom: 64px;
<style scoped lang="scss">
.info-box {
display: flex;
padding: 32px 0;
&-left,
&-right {
width: 50%;
}
&-label {
display: inline-block;
width: 154px;
font-size: 14px;
color: #666666;
text-align: right;
}
&-msg {
font-size: 14px;
color: #333333;
}
}
.config-employee .container {
.next-merchant {
margin-top: 20px;
}
.label-height {
margin-bottom: 20px;
}
.config-employee .container {
background: #ffffff;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
/* padding: 20px; */
}
.config-employee .edit-box.container {
padding: 0 0 20px;
......@@ -119,7 +151,6 @@ export default {
height: 58px;
line-height: 58px;
border-bottom: 1px solid #e7eaec;
margin: 0 0;
padding: 0 20px;
}
......@@ -172,4 +203,48 @@ export default {
height: 22px;
line-height: 22px;
}
.merchant-box {
padding: 20px;
max-height: 440px;
overflow: auto;
}
.line_wrapper {
width: 592px;
min-height: 54px;
background: #ffffff;
display: flex;
align-items: center;
justify-content: center;
color: #909399;
font-size: 14px;
.tittle {
padding-left: 16px;
width: 20%;
text-align: left;
color: #666666;
font-size: 14px;
}
.tittle1 {
width: 80%;
text-align: left;
color: #666666;
font-size: 14px;
word-wrap: break-word;
word-break: break-all;
overflow: hidden;
}
}
.text_w {
font-weight: bold;
}
.wrap_header {
background: #f4f6fc;
}
.line_body {
width: 590px;
overflow-y: auto;
overflow-x: hidden;
border: 1px solid #e8e8ea;
border-top: none;
}
</style>
<!-- 修改记录 -->
<template>
<div class="config-employee">
<div class="container">
<!-- <p class="edit-sub-title p-rl-20">修改记录</p> -->
<GLTable ref="employeeRef" :getListApi="getListApi" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<template slot="auth-button" slot-scope="scope">
<el-button type="text" @click="handleDetail(scope.scope)">查看</el-button>
<el-button type="text" @click="handleEdit(2, scope.scope)">修改</el-button>
<el-button type="text" @click="handleDelete(scope.scope)">删除</el-button>
</template>
</GLTable>
<div class="config-employee-main">
<p class="edit-title">操作记录</p>
<div class="container">
<GLTable ref="employeeRef" :getListApi="getListApi" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<template slot="auth-button" slot-scope="scope">
<el-button type="text" @click="handleDetail(scope.scope)">查看</el-button>
<el-button type="text" @click="handleEdit(2, scope.scope)">修改</el-button>
<el-button type="text" @click="handleDelete(scope.scope)">删除</el-button>
</template>
</GLTable>
</div>
</div>
</div>
</template>
......@@ -100,26 +102,31 @@ export default {
}
}
</script>
<style>
<style lang="scss" scoped>
.config-employee {
margin-bottom: 64px;
&-main {
background: #ffffff;
}
}
.edit-title {
font-size: 16px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 600;
color: #333333;
padding: 20px 20px;
border-bottom: 1px solid #e5e5e5;
}
.config-employee .container {
margin-top: 20px;
background: #ffffff;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
padding: 20px;
}
.config-employee .p-rl-20 {
padding: 0 20px;
}
.config-employee .flex {
display: flex;
justify-content: space-between;
}
.config-employee .edit-container {
/* .config-employee .edit-container {
margin-bottom: 84px;
}
} */
.config-employee .footer {
position: fixed;
......
......@@ -8,14 +8,10 @@
<el-tab-pane label="账户权限" name="config">
<config :id="id"></config>
</el-tab-pane>
<el-tab-pane label="修改记录" name="record">
<el-tab-pane label="编辑记录" name="record">
<record :id="id"></record>
</el-tab-pane>
</el-tabs>
<GLFooter>
<el-button type="primary" @click="handleClose">关闭</el-button>
</GLFooter>
</div>
</template>
......@@ -53,14 +49,14 @@ export default {
}
}
</script>
<style>
<style scoped lang="scss">
.config-employee {
margin-bottom: 64px;
margin-bottom: 20px;
}
.config-employee .container {
margin-top: 20px;
/* margin-top: 20px; */
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;
}
.config-employee .p-rl-20 {
......@@ -106,10 +102,17 @@ export default {
margin-bottom: 0;
}
.config-employee .el-tabs__nav-wrap:after {
opacity: 0;
height: 1px;
}
.config-employee .el-tabs__item {
height: 20px !important;
line-height: 10px !important;
/deep/ {
.el-tabs__item {
font-size: 16px !important;
color: #666666;
height: 35px !important;
line-height: 20px !important;
}
.el-tabs__item.is-active {
color: #5850ff;
}
}
</style>
......@@ -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)">
......@@ -17,7 +17,7 @@
<el-button class="m-l-10" type="primary" @click="handleResetPass">重置密码</el-button>
</template>
<template v-if="userInfo.accountLevel == 4 && routeInfo.addOrEdit == 1" slot="roleIdsSlot">
<el-button class="m-l-10" type="primary" @click="handleJumpRole">创建角色</el-button>
<el-button type="text" @click="handleJumpRole">添加角色</el-button>
<!-- <el-button class="m-l-10 el-icon-refresh" type="primary" @click="handleRefresh">刷新</el-button> -->
</template>
<template slot="visibleInferiorMer" slot-scope="item">
......@@ -130,25 +130,27 @@ export default {
isBlock: true,
editFormData: [
{
label: '所属商户',
label: '所属商户:',
name: 'merchantId',
// nameLabel: 'merchantName',
type: 'selectInput',
noClearable: true,
width: '320px',
optionList: [],
optionId: 'id',
optionLabel: 'merchantName',
optionsName: 'allMerchantList',
addHtml: 'merchantId'
addHtml: 'merchantId',
placeholder: '请选择所属商户'
},
{
label: '员工姓名',
label: '员工姓名:',
name: 'staffName',
type: 'input',
maxlength: 15
maxlength: 15,
placeholder: '请输入员工姓名'
},
{
label: '登录手机号',
label: '登录手机号:',
name: 'staffPhone',
type: 'input',
placeholder: '请输入您有效的手机号作为登录账户',
......@@ -156,20 +158,21 @@ export default {
isDisabled: false
},
{
label: '登录密码',
label: '登录密码:',
name: 'password',
showPass: true,
type: 'input',
maxlength: 20,
suffixSlot: 'passwordSlot'
suffixSlot: 'passwordSlot',
placeholder: '请输入登录密码'
},
{
label: '可见商户',
label: '可见商户:',
name: 'visibleInferiorMer',
addHtml: 'visibleInferiorMer'
},
{
label: '角色权限',
label: '角色权限:',
name: 'roleIds',
type: 'select',
optionList: [],
......@@ -179,7 +182,7 @@ export default {
suffixSlot: 'roleIdsSlot'
},
{
label: '头像',
label: '头像:',
name: 'merchantImg',
type: 'upload',
maxPhotoNum: 1,
......@@ -199,16 +202,18 @@ export default {
}
},
{
label: '邮箱',
label: '邮箱:',
name: 'staffEmail',
type: 'input',
maxlength: 30
maxlength: 30,
placeholder: '请输入邮箱'
},
{
label: '主要职务',
label: '主要职务:',
name: 'staffJob',
type: 'input',
maxlength: 10
maxlength: 10,
placeholder: '请输入主要职务'
}
],
baseData: {
......@@ -393,6 +398,7 @@ export default {
this.$confirm('当前有内容信息未保存,是否继续返回?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
customClass: 'gl-message-box',
type: 'warning'
}).then(() => {
this.$router.push({
......@@ -446,14 +452,11 @@ export default {
}
</script>
<style>
.config-employee {
margin-bottom: 64px;
}
<style lang="scss" scoped>
.config-employee .container {
margin-top: 20px;
margin-bottom: 20px;
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; */
}
.config-employee .edit-box.container {
......@@ -528,4 +531,7 @@ export default {
text-overflow: ellipsis;
word-wrap: break-word;
}
/deep/ .el-form-item {
margin-bottom: 20px !important;
}
</style>
......@@ -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 @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" 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" plain mode="el-button">导出</el-button> -->
<GLButton @click="handleExport" fn="导出" :size="size" plain mode="el-button">导出</GLButton>
</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,9 +633,9 @@ 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);
// box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
padding: 20px;
}
.config-employee .flex {
......
......@@ -490,7 +490,7 @@ export default {
clearInterval(this.timerQrcode)
}
}
</script>
</script>
<style scoped lang="scss">
.scrm-main {
......@@ -581,7 +581,7 @@ export default {
bottom: 0px;
height: 64px;
background: #ffffff;
box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1);
// box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1);
}
.step-panel {
display: flex;
......@@ -900,7 +900,7 @@ export default {
margin: 0 auto 50px;
background: #fff;
border-radius: 2px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
// box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
box-sizing: border-box;
width: 40%;
height: 260px;
......@@ -961,4 +961,4 @@ export default {
}
}
}
</style>
\ No newline at end of file
</style>
......@@ -174,7 +174,7 @@
</div>
<div>
<div class="config-box-content">
<div class="config-box-h2">一共需要配置三个按钮,请根据以下表格进行填写</div>
<div class="config-box-h2">一共需要配置{{ chatMenuList.length }}个按钮,请根据以下表格进行填写</div>
<table cellspacing="0" cellpadding="0" border="0" class="config-box-table">
<tr>
......@@ -186,6 +186,7 @@
<td @click="cloneText(item.itemInfo)">复制链接</td>
</tr>
</table>
<div class="config-box-h2">填写页面内容时,请先选择「自定义」之后,再复制到的链接填写到输入框中</div>
</div>
<div class="config-box-image"><img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/wechat/step5.png" style="width: 830px" /></div>
......@@ -396,7 +397,7 @@ export default {
clearInterval(this.timerQrcode)
}
}
</script>
</script>
<style scoped lang="scss">
.scrm-main {
......@@ -487,11 +488,11 @@ export default {
bottom: 0px;
height: 64px;
background: #ffffff;
box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1);
// box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1);
}
.step-panel {
display: flex;
margin-bottom: 55px;
margin-bottom: 16px;
position: relative;
.step-left {
width: 220px;
......@@ -582,7 +583,7 @@ export default {
vertical-align: middle;
color: #333333;
border-width: 1px;
// height: 36px;
height: 36px;
border-style: solid;
border-color: #e8e8ea;
background: #f4f6fc;
......@@ -895,7 +896,7 @@ export default {
margin: 0 auto 50px;
background: #fff;
border-radius: 2px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
// box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
box-sizing: border-box;
width: 40%;
height: 260px;
......@@ -956,4 +957,4 @@ export default {
}
}
}
</style>
\ No newline at end of file
</style>
<!--
* @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')
......
......@@ -106,7 +106,7 @@ export default {
this.listDepartmentTree()
}
}
</script>
</script>
<style scoped lang="scss">
.select-emp-panel {
......@@ -116,7 +116,7 @@ export default {
width: 200px;
position: relative;
background: #ffffff;
box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.06);
// box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.06);
border: 1px solid #e4e7ed;
.emp-scroll-panel {
min-height: 200px;
......@@ -157,7 +157,7 @@ export default {
overflow: auto;
margin-top: 10px;
background: #ffffff;
box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.06);
// box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.06);
border: 1px solid #e4e7ed;
/deep/ .el-checkbox__input.is-disabled .el-checkbox__inner {
background-color: #999999;
......@@ -179,4 +179,4 @@ export default {
padding: 10px;
}
}
</style>
\ No newline at end of file
</style>
<template>
<div className="scrm-main">
<div class="follow-header">
<div class="follow-title">跟进专员</div>
<p>
为不同的业务部门设置对应的跟进专员,方便后续业务部门创办相关的活动时能为其成员创建活动和发送企微消息,引导其跟进活动。跟进专员接收任务后可转发给客户/客户群,拥有“添加外部联系人权限”的员工才允许设置为跟进专员。
<a class="follow-process-a" @click="jumpUrl('https://img01.glsx.com.cn/upload/temporary/process.html')">
企微管理员为员工“设置外部联系人权限”流程
设置“外部联系人权限”教程
<i class="el-icon-d-arrow-right"></i>
</a>
</p>
......@@ -14,8 +15,14 @@
<div class="table-header">
<div class="header-text">跟进专员列表</div>
<div class="table-btn">
<GLButton fn="新增" size="small" type="primary" plain @click="openDrawer">跟进专员</GLButton>
<!-- <el-button size="small" type="primary" plain @click="openDrawer">跟进专员</el-button> -->
<GLButton fn="新增" size="small" type="primary" plain @click="openDrawer">
<i class="el-icon-plus"></i>
添加专员
</GLButton>
<!-- <el-button size="small" type="primary" plain @click="openDrawer">
<i class="el-icon-plus"></i>
添加专员
</el-button> -->
</div>
</div>
<GLTable ref="table" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams" @refreshTable="handleSearch">
......@@ -50,7 +57,7 @@ export default {
},
searchFormData: [
{
label: '跟进专员类型',
label: '类型',
name: 'followerTypeId',
type: 'select',
placeholder: '全部',
......@@ -61,10 +68,10 @@ export default {
optionsName: 'followName'
},
{
label: '员工搜索',
label: '员工姓名',
name: 'staffName',
type: 'input',
placeholder: '请输入员工姓名'
placeholder: '输入关键字搜索'
}
],
scope: {
......@@ -213,6 +220,7 @@ export default {
this.$confirm('是否删除该员工?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
customClass: 'gl-message-box',
type: 'warning'
})
.then(() => {
......@@ -300,11 +308,16 @@ export default {
font-size: 15px;
color: rgba(0, 0, 0, 0.65);
position: relative;
.follow-title {
font-size: 20px;
font-family: PingFangSC-Medium, PingFang SC;
color: #333333;
margin-bottom: 20px;
}
p {
// width: 70%;
color: #666666;
}
.follow-process-a {
text-decoration: underline;
line-height: 24px;
color: #5850ff;
cursor: pointer;
......@@ -314,7 +327,7 @@ export default {
min-height: calc(100% - 200px);
margin-top: 10px;
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;
&-item {
position: relative;
......
......@@ -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')
......@@ -352,7 +353,7 @@ export default {
.role_widget {
margin-top: 16px;
background: #ffffff;
margin-bottom: 80px;
margin-bottom: 20px;
// padding-bottom: 32px;
overflow: hidden;
}
......@@ -396,7 +397,7 @@ export default {
justify-content: center;
background: #ffffff;
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);
.custtom {
background: #ffffff;
color: #5850ff;
......@@ -413,4 +414,7 @@ export default {
margin-right: 15px;
}
}
/deep/.el-form-item {
margin-bottom: 20px;
}
</style>
......@@ -147,7 +147,8 @@ export default {
return '编辑'
},
condition: row => {
return !row.defalutRole
let flag = !(row.defalutRole || row.roleName == '系统默认角色')
return flag
},
attrs: {
type: 'text',
......@@ -277,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 => {
......@@ -323,7 +325,7 @@ export default {
width: 100%;
// height: calc(100% - 138px);
background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
// box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
box-sizing: border-box;
padding: 20px;
}
......
......@@ -43,14 +43,6 @@
</div>
</div>
</div>
<div style="height: 84px"></div>
<!-- <div class="fixed_bottom">
<el-button type="primary" @click="toBack">关闭</el-button>
</div> -->
<GLFooter>
<el-button type="primary" @click="toBack">关闭</el-button>
</GLFooter>
</div>
</template>
......@@ -228,7 +220,7 @@ export default {
height: 158px;
box-sizing: border-box;
padding: 20px 0 0 52px;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
// box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
.info_line_wrap {
display: flex;
align-items: center;
......@@ -252,7 +244,7 @@ export default {
width: 100%;
min-height: calc(100% - 300px);
background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
// box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
padding-bottom: 20px;
.main_title {
width: 100%;
......@@ -317,7 +309,7 @@ export default {
cursor: pointer;
}
.line_element_two_active {
color: #322ad9;
color: #5850ff;
background-color: #ffffff;
}
}
......@@ -388,6 +380,12 @@ export default {
height: 64px;
background: #ffffff;
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>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!