Commit f2731c36 by 前端

Merge branch 'v2.9.0' into 'develop'

V2.9.0

See merge request !81
2 parents 9c73e520 d3986f20
......@@ -13,7 +13,7 @@
"el-tree-transfer": "^2.2.6",
"element-ui": "^2.4.5",
"glsx-common": "^1.4.6",
"glsx-components": "^1.4.7",
"glsx-components": "^1.5.1",
"lodash": "^4.17.21",
"qrcodejs2": "^0.0.2",
"vue": "^2.6.10",
......
<template>
<div class="map-box" :style="{ height: mapHeight + 'px' }">
<div id="container" style="width: 100%; height: 100%"></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">
<el-button slot="append" icon="el-icon-search" @click="searchAddress"></el-button>
</el-input>
</div>
</div>
</template>
<script>
let map, marker, placeSearch
export default {
name: 'map',
props: {
mapHeight: {
type: Number,
default: 300
}
},
data() {
return {
input: '',
address: '',
lnglat: [],
geocoderAddress: {}
}
},
methods: {
mapInit() {
map = new AMap.Map('container', {
resizeEnable: true,
zoom: 20
})
AMap.plugin(['AMap.PlaceSearch'], function() {
//构造地点查询类
placeSearch = new AMap.PlaceSearch({
pageSize: 8, // 单页显示结果条数
pageIndex: 1, // 页码
citylimit: false, //是否强制限制在设置的城市内搜索
// panel: "panel", // 结果列表将在此容器中进行展示。
autoFitView: true, // 是否自动调整地图视野使绘制的 Marker点都处于视口的可见范围
renderStyle: 'default'
})
})
// 添加列表点选监听事件
map.on('click', this.getAddress)
},
searchAddress() {
let _this = this
placeSearch.search(this.input, function(status, result) {
if (status === 'complete' && result.poiList.pois.length) {
let lnglat = result.poiList.pois[0].location
_this.getAddress(lnglat)
}
})
},
addMarker(lnglat) {
let position
if (lnglat.lng) {
position = [lnglat.lng, lnglat.lat]
} else {
position = lnglat
}
marker = new AMap.Marker({
icon: new AMap.Icon({
image: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-default.png',
size: new AMap.Size(27, 34), //图标大小
imageSize: new AMap.Size(27, 34)
}),
position: position,
offset: new AMap.Pixel(-10, -10)
})
map.add(marker)
map.setFitView()
},
getAddress(e) {
let self = this
let lnglat
if (e.type == 'click') {
lnglat = e.lnglat
} else {
let { lng, lat } = e
lnglat = [lng, lat]
}
if (marker) {
marker.setMap(null)
marker = null
}
self.addMarker(lnglat)
AMap.plugin('AMap.Geocoder', () => {
const geocoder = new AMap.Geocoder()
geocoder.getAddress(lnglat, (status, result) => {
self.lnglat = lnglat
self.address = result.regeocode.formattedAddress
geocoder.getLocation(self.address, (status, result) => {
if (status === 'complete' && result.info === 'OK') {
this.geocoderAddress = result.geocodes[0]
}
})
})
})
},
selectAddress(e) {
//这里获得点选地点的经纬度
this.getAddress()
}
},
mounted() {
this.mapInit()
}
}
</script>
<style scoped lang="scss">
.map-box {
position: relative;
width: 100%;
}
#container {
position: absolute;
height: 100%;
}
#panel {
position: absolute;
max-height: 90%;
overflow-y: auto;
top: 80px;
right: 10px;
width: 280px;
}
.map-address {
position: absolute;
line-height: 20px;
bottom: -30px;
}
</style>
......@@ -10,15 +10,15 @@
</div>
<div class="account-body scrm-box-f">
<div class="form-title">账户信息</div>
<el-form ref="accountInfoForm" :model="accountInfoForm" class="account-body-form" label-width="120px" :rules="accountInfoRules">
<el-form ref="accountInfoForm" :model="accountInfoForm" class="account-body-form" :rules="accountInfoRules">
<el-row>
<el-col :span="12">
<el-form-item label="上级商户">
<el-form-item label="上级商户:">
{{ accountDetail.merchantName }}
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="上级商户模式">
<el-form-item label="上级商户模式:">
{{ accountDetail.merchantModelName }}
</el-form-item>
</el-col>
......@@ -26,8 +26,8 @@
<el-row>
<el-col :span="12">
<div class="el-form-item level-row is-required">
<label class="el-form-item__label" style="width: 120px">账户等级</label>
<div class="el-form-item__content" style="margin-left: 120px">
<label class="el-form-item__label">账户等级:</label>
<div class="el-form-item__content">
<el-select size="small" :disabled="nextStatus" v-model="accountDetail.merchantAccountLevel" placeholder="请选择">
<el-option v-for="item in accountLevel" :key="item.dictValue" :label="item.dictLabel" :value="item.dictValue"></el-option>
</el-select>
......@@ -37,12 +37,12 @@
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="登录账户名" prop="merchantLoginAccount">
<el-form-item label="登录账户名:" prop="merchantLoginAccount">
<el-input :disabled="nextStatus" size="small" maxlength="15" v-model="accountInfoForm.merchantLoginAccount" placeholder="请输入登录账户名"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="登录密码" prop="merchantLoginPassword">
<el-form-item label="登录密码:" prop="merchantLoginPassword">
<el-input maxlength="20" :disabled="nextStatus" size="small" type="password" v-model="accountInfoForm.merchantLoginPassword" placeholder="请输入登录密码(必须包含6-20个字母+数字)" show-password></el-input>
</el-form-item>
</el-col>
......@@ -50,8 +50,8 @@
<el-row>
<el-col :span="16">
<div data-v-995a4ff0="" class="el-form-item is-required">
<label for="merchantLoginAccount" class="el-form-item__label" style="width: 120px">账户类型</label>
<div class="el-form-item__content" style="margin-left: 120px">
<label for="merchantLoginAccount" class="el-form-item__label">账户类型:</label>
<div class="el-form-item__content account-type">
<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>
</div>
......@@ -101,6 +101,12 @@ export default {
callback()
}
}
const validateAccountInfo = (rule, value, callback) => {
console.log(value)
if (value.length == 11 && !isNaN(value)) {
callback(new Error('登录账户名不可为 11 位纯数字'))
}
}
return {
editStatus: false,
nextStatus: false,
......@@ -140,7 +146,8 @@ export default {
accountInfoRules: {
merchantLoginAccount: [
{ required: true, message: '请输入登录账户名', trigger: 'blur' },
{ min: 3, max: 15, message: '长度在 3 到 15 个字符', trigger: 'blur' }
{ min: 3, max: 15, message: '长度在 3 到 15 个字符', trigger: 'blur' },
{ validator: validateAccountInfo, trigger: 'blur' }
],
merchantLoginPassword: [
{ required: true, message: '请输入登录密码', trigger: 'blur' },
......@@ -441,7 +448,6 @@ export default {
padding-left: 20px;
}
&-form {
width: 80%;
margin: 20px auto;
.form-row {
/deep/ .el-form-item__content {
......@@ -574,4 +580,23 @@ export default {
z-index: 999;
// box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1);
}
/deep/ {
.el-form-item__content {
display: flex;
}
.el-form-item__label {
width: 154px !important;
}
.el-form-item__content {
width: 404px;
margin-left: 0 !important;
}
}
.account-type {
/deep/ {
.el-input {
min-width: 1000px !important;
}
}
}
</style>
......@@ -566,11 +566,10 @@ export default {
transform: translate(-50%, 0);
}
.merchantDetail {
padding-bottom: 60px;
.titles {
display: flex;
margin-bottom: 20px;
cursor: pointer;
.itemTitle {
margin-right: 20px;
list-style-type: none;
......
......@@ -20,17 +20,17 @@
<div v-show="step == 'second'">
<div class="account-body scrm-box-f">
<div class="form-title">修改账户信息</div>
<el-form ref="accountInfoForm" :model="accountInfoForm" class="account-body-form" label-width="120px" :rules="accountInfoRules">
<el-form ref="accountInfoForm" :model="accountInfoForm" class="gl-form-page" label-width="154px" :rules="accountInfoRules">
<el-row>
<el-col :span="12">
<el-form-item label="登录账户名" prop="merchantLoginAccount">
<el-input readonly size="small" v-model="accountInfoForm.merchantLoginAccount" placeholder="请输入登录账户名"></el-input>
<el-form-item label="登录账户名:" label-width="154px" prop="merchantLoginAccount">
<el-input readonly size="small" class="w432" v-model="accountInfoForm.merchantLoginAccount" placeholder="请输入登录账户名"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item size="small" label="登录密码" prop="merchantLoginPassword" class="form-row">
<el-form-item size="small" label="登录密码:" label-width="154px" prop="merchantLoginPassword" class="form-password">
<el-input type="password" maxlength="20" :readonly="pwdStatus ? 'readonly' : false" v-model="accountInfoForm.merchantLoginPassword" placeholder="请输入登录密码(必须包含6-20个字母+数字)" show-password></el-input>
<el-button
type="primary"
......@@ -47,7 +47,7 @@
</el-row>
<el-row>
<el-col :span="16">
<el-form-item label="账户类型">
<el-form-item label="账户类型:">
<auto-button v-for="(item, index) in accountTypes" :key="index" :btnLabel="item.accounttypeName" :btnValue="item.accounttypeId" stopClick="true" :typeStatus="accounttypeId.indexOf(item.accounttypeId) == -1 ? true : false"></auto-button>
</el-form-item>
</el-col>
......@@ -90,6 +90,12 @@ export default {
callback()
}
}
const validateAccountInfo = (rule, value, callback) => {
console.log(value)
if (value.length == 11 && !isNaN(value)) {
callback(new Error('登录账户名不可为 11 位纯数字'))
}
}
return {
editStatus: false,
detailFirst: {},
......@@ -143,7 +149,11 @@ export default {
businessOption: [],
accountValidityPeriod: [],
baseRules: {
merchantName: [{ required: true, message: '请输入商户名称', trigger: 'blur' }],
merchantName: [
{ required: true, message: '请输入商户名称', trigger: 'blur' },
{ min: 3, max: 15, message: '长度在 3 到 15 个字符', trigger: 'blur' },
{ validator: validateAccountInfo, trigger: 'blur' }
],
merchantLegalPersonPhone: [{ required: true, message: '请输入联系电话', trigger: 'blur' }]
},
accountInfoRules: {
......@@ -434,7 +444,14 @@ export default {
merchantBrandMain
})
// 省市回显
this.$refs.baseInfoForm.init(this.accountAddForm.provinceName, this.accountAddForm.cityName)
var provinceData = {
province: this.accountAddForm.provinceName,
city: this.accountAddForm.cityName,
fullAddress: this.accountAddForm.merchantAddress,
lng: this.accountAddForm.lng,
lat: this.accountAddForm.lat
}
this.$refs.baseInfoForm.init(provinceData)
if (!this.accountAddForm.merchantBrandMain) {
this.accountAddForm.merchantBrandMain = []
} else {
......@@ -507,14 +524,6 @@ export default {
&-form {
width: 80%;
margin: 20px auto;
.form-row {
/deep/ .el-form-item__content {
display: flex;
}
.form-btn {
margin-left: 10px;
}
}
.store-upload-list {
display: flex;
flex-wrap: wrap;
......@@ -626,4 +635,20 @@ export default {
z-index: 999;
// box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1);
}
.form-password {
display: flex;
/deep/ {
.el-form-item__content {
display: flex !important;
margin-left: 0 !important;
}
.el-input__inner {
width: 432px !important;
}
}
.form-btn {
margin-left: 10px;
}
}
</style>
......@@ -7,91 +7,93 @@
* @FilePath: \scrm-micro-settings\src\views\approvalConfig\createGuide.vue
-->
<template>
<div class="guide-page">
<div class="guide-title">操作手册</div>
<div class="guide-content">
<div class="step-line"></div>
<div class="step">
<div class="step-icon">
<span class="icon-shell"><span class="icon-number">1</span></span>
</div>
<div class="step-content">
打开企微后台登录地址:
<el-link type="primary" target="_blank" :underline="false" href="https://work.weixin.qq.com/login">https://work.weixin.qq.com/login</el-link>
企微管理员用企微或者微信扫码进行登录
</div>
</div>
<div class="step">
<div class="step-icon">
<span class="icon-shell"><span class="icon-number">2</span></span>
</div>
<div class="step-content">
<div class="step-title">登录后,在【应用管理-应用】下,找到【嘀加企微管家】,点击进入</div>
<img class="step2-img" src="../../../src/assets/guide/01@3x.png" alt="" />
</div>
</div>
<div class="step">
<div class="step-icon">
<span class="icon-shell"><span class="icon-number">3</span></span>
</div>
<div class="step-content">
<div class="step-title" style="margin-bottom: 16px">在【嘀加企微管家】应用页下方,根据接入方式,找到对应功能(自建应用模式和应用代开发模式为2存1,不会同时出现,企微管理员只需关注“审批设置”在企微后台那里 展示,点进去配置即可)</div>
<div class="half-step">
<div class="half-title">自建应用模式:</div>
<div class="half-content third-content" :style="{ height: thirdHeight + 'px' }">在【开发者接口】模块,找到“审批接口”,点击【设置】,进入设置页</div>
<img class="step3-img" src="../../../src/assets/guide/02@3x.png" alt="" />
<div>
<div class="guide-page">
<div class="guide-title">操作手册</div>
<div class="guide-content">
<div class="step-line"></div>
<div class="step">
<div class="step-icon">
<span class="icon-shell"><span class="icon-number">1</span></span>
</div>
<div class="half-step m-l-md">
<div class="half-title">应用代开发模式:</div>
<div class="half-content" :style="{ height: thirdHeight + 'px' }">在【功能】模块,找到“审批流程”,点击【前往设置】,进入设置页</div>
<img class="step3-img" src="../../../src/assets/guide/03@3x.png" alt="" />
<div class="step-content">
打开企微后台登录地址:
<el-link type="primary" target="_blank" :underline="false" href="https://work.weixin.qq.com/login">https://work.weixin.qq.com/login</el-link>
企微管理员用企微或者微信扫码进行登录
</div>
</div>
</div>
<div class="step">
<div class="step-icon">
<span class="icon-shell"><span class="icon-number">4</span></span>
</div>
<div class="step-content">
<div class="step-title">配置审批人及审批流</div>
<div class="half-title">自建应用模式:</div>
<div class="half-content">点击【+添加模板】,进入审批模板配置页,按自店需要,配置好审批人信息后,点击【保存】</div>
<div class="half-step">
<img class="step4-img m-b-md" src="../../../src/assets/guide/04@3x.png" alt="" />
<div class="step">
<div class="step-icon">
<span class="icon-shell"><span class="icon-number">2</span></span>
</div>
<div class="half-step m-b-md m-l-md">
<img class="step4-img" src="../../../src/assets/guide/05@3x.png" alt="" />
<div class="step-content">
<div class="step-title">登录后,在【应用管理-应用】下,找到【嘀加企微管家】,点击进入</div>
<img class="step2-img" src="../../../src/assets/guide/01@3x.png" alt="" />
</div>
<div class="half-title">应用代开发模式:</div>
<div class="half-content">点击出现的对应模板(若为空或缺少需要审批的模板,请联系我们:18928408808进行配置),进入审批模板配置页,按自店需要,配置好审批人信息后,点击【保存】</div>
<div class="half-step">
<img class="step4-img" src="../../../src/assets/guide/06@3x.png" alt="" />
</div>
<div class="step">
<div class="step-icon">
<span class="icon-shell"><span class="icon-number">3</span></span>
</div>
<div class="half-step m-l-md">
<img class="step4-img" src="../../../src/assets/guide/07@3x.png" alt="" />
<div class="step-content">
<div class="step-title" style="margin-bottom: 16px">在【嘀加企微管家】应用页下方,根据接入方式,找到对应功能(自建应用模式和应用代开发模式为2存1,不会同时出现,企微管理员只需关注“审批设置”在企微后台那里 展示,点进去配置即可)</div>
<div class="half-step">
<div class="half-title">自建应用模式:</div>
<div class="half-content third-content" :style="{ height: thirdHeight + 'px' }">在【开发者接口】模块,找到“审批接口”,点击【设置】,进入设置页</div>
<img class="step3-img" src="../../../src/assets/guide/02@3x.png" alt="" />
</div>
<div class="half-step m-l-md">
<div class="half-title">应用代开发模式:</div>
<div class="half-content" :style="{ height: thirdHeight + 'px' }">在【功能】模块,找到“审批流程”,点击【前往设置】,进入设置页</div>
<img class="step3-img" src="../../../src/assets/guide/03@3x.png" alt="" />
</div>
</div>
</div>
</div>
<div class="step">
<div class="step-icon">
<span class="icon-shell"><span class="icon-number">5</span></span>
</div>
<div class="step-content">
<div class="step-title">复制审批模板的ID</div>
<div class="half-step">
<div class="half-title">自建应用模式:</div>
<div class="half-content" :style="{ height: fiveHeight + 'px' }">点击【复制ID】,即可获取审批模板的ID</div>
<img class="step5-img" src="../../../src/assets/guide/08@3x.png" alt="" />
<div class="step">
<div class="step-icon">
<span class="icon-shell"><span class="icon-number">4</span></span>
</div>
<div class="half-step m-l-md">
<div class="step-content">
<div class="step-title">配置审批人及审批流</div>
<div class="half-title">自建应用模式:</div>
<div class="half-content">点击【+添加模板】,进入审批模板配置页,按自店需要,配置好审批人信息后,点击【保存】</div>
<div class="half-step">
<img class="step4-img m-b-md" src="../../../src/assets/guide/04@3x.png" alt="" />
</div>
<div class="half-step m-b-md m-l-md">
<img class="step4-img" src="../../../src/assets/guide/05@3x.png" alt="" />
</div>
<div class="half-title">应用代开发模式:</div>
<div class="half-content five-content" :style="{ height: fiveHeight + 'px' }">需进入模板的配置页,在浏览器链接中,复制如图位置的字符,即可获取审批 模板的ID</div>
<img class="step5-img" src="../../../src/assets/guide/09@3x.png" alt="" />
<div class="half-content">点击出现的对应模板(若为空或缺少需要审批的模板,请联系我们:18928408808进行配置),进入审批模板配置页,按自店需要,配置好审批人信息后,点击【保存】</div>
<div class="half-step">
<img class="step4-img" src="../../../src/assets/guide/06@3x.png" alt="" />
</div>
<div class="half-step m-l-md">
<img class="step4-img" src="../../../src/assets/guide/07@3x.png" alt="" />
</div>
</div>
</div>
<div class="step">
<div class="step-icon">
<span class="icon-shell"><span class="icon-number">5</span></span>
</div>
<div class="step-content">
<div class="step-title">复制审批模板的ID</div>
<div class="half-step">
<div class="half-title">自建应用模式:</div>
<div class="half-content" :style="{ height: fiveHeight + 'px' }">点击【复制ID】,即可获取审批模板的ID</div>
<img class="step5-img" src="../../../src/assets/guide/08@3x.png" alt="" />
</div>
<div class="half-step m-l-md">
<div class="half-title">应用代开发模式:</div>
<div class="half-content five-content" :style="{ height: fiveHeight + 'px' }">需进入模板的配置页,在浏览器链接中,复制如图位置的字符,即可获取审批 模板的ID</div>
<img class="step5-img" src="../../../src/assets/guide/09@3x.png" alt="" />
</div>
</div>
</div>
</div>
</div>
<GLFooter style="z-index: 2">
<GLFooter>
<el-button type="primary" @click="handleCancel">返回</el-button>
</GLFooter>
</div>
......@@ -120,7 +122,7 @@ export default {
<style lang="scss">
.guide-page {
background-color: #fff;
margin-bottom: 64px;
margin-bottom: 20px;
.guide-title {
padding: 15px 20px;
font-size: 16px;
......@@ -245,4 +247,4 @@ export default {
.m-l-md {
margin-left: 20px;
}
</style>
\ No newline at end of file
</style>
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2022-04-28 10:15:34
* @LastEditors: huyue
* @LastEditTime: 2022-07-19 17:54:00
* @LastEditTime: 2022-08-23 15:47:23
-->
<template>
......@@ -29,7 +29,7 @@
<el-radio-group v-model="checkObj.first" @change="selectChange">
<div class="tree-item" v-for="item in departmentList" :key="item.departmentId" @click.self="toNext(item, $event)">
<el-radio :label="item" :disabled="item.relevanceMerchant">{{ item.departmentName }}</el-radio>
<i v-show="item.childrenNum" class="el-icon-arrow-right"></i>
<i v-show="item.childrenNum" class="el-icon-arrow-right" @click="toNext(item, $event)"></i>
</div>
</el-radio-group>
</div>
......@@ -152,10 +152,22 @@ export default {
overflow: auto;
.el-radio-group {
width: 100%;
.el-radio {
margin-right: 0;
// width: 100%;
padding: 15px 0 11px;
}
.el-icon-arrow-right {
position: absolute;
top: 56%;
right: 0;
transform: translateY(-50%);
}
}
}
&-item {
padding: 15px 0 11px;
position: relative;
// padding: 15px 0 11px;
border-top: 1px solid #e6e6e6;
width: 100%;
display: flex;
......
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2022-04-28 10:15:34
* @LastEditors: huyue
* @LastEditTime: 2022-07-19 17:54:58
* @LastEditTime: 2022-08-23 15:48:39
-->
<template>
......@@ -29,7 +29,7 @@
<el-radio-group v-model="checkObj.first" @change="selectChange">
<div class="tree-item" v-for="item in merchantList" :key="item.merchantId" @click.self="toNext(item, $event)">
<el-radio :label="item" :disabled="item.childrenNms || item.entmicroName">{{ item.merchantName }}</el-radio>
<i v-show="item.childrenNms" class="el-icon-arrow-right"></i>
<i v-show="item.childrenNms" class="el-icon-arrow-right" @click="toNext(item, $event)"></i>
</div>
</el-radio-group>
</div>
......@@ -150,10 +150,22 @@ export default {
overflow: auto;
.el-radio-group {
width: 100%;
.el-radio {
margin-right: 0;
// width: 100%;
padding: 15px 0 11px;
}
.el-icon-arrow-right {
position: absolute;
top: 56%;
right: 0;
transform: translateY(-50%);
}
}
}
&-item {
padding: 15px 0 11px;
position: relative;
// padding: 15px 0 11px;
border-top: 1px solid #e6e6e6;
width: 100%;
display: flex;
......
......@@ -5,23 +5,23 @@
</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" :label-width="'154px'" :formData="editFormData" :formRules="editRule" isEdit="true">
<glsx-combi-form style="margin: 20px 20px 0 0" ref="editFormRef" @handleImgDelete="handleImgDelete" :isBlock="isBlock" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule" isEdit="true" class="gl-form-page">
<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)">
<el-select v-else v-model="editForm[item.scope.name]" :clearable="item.scope.isClear || false" :placeholder="'请选择' + item.scope.label" :filterable="!item.scope.noFilter" @change="handleChangeMerchant($event)">
<el-option v-for="subItem in baseData.allMerchantList" :key="subItem[item.scope.optionId]" :label="subItem[item.scope.optionLabel]" :value="subItem[item.scope.optionId]"></el-option>
</el-select>
<!-- <select-page v-else :form="editForm" width="320" :targetItem="item.scope" @handleChange="handleChangeMerchant"></select-page> -->
</template>
<template v-if="routeInfo.addOrEdit == 2" slot="passwordSlot">
<el-button class="m-l-10" type="primary" @click="handleResetPass">重置密码</el-button>
<el-button class="m-l-10" type="text" @click="handleResetPass">重置密码</el-button>
</template>
<template v-if="userInfo.accountLevel == 4 && routeInfo.addOrEdit == 1" slot="roleIdsSlot">
<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">
<el-input :style="{ width: item.width || '320px' }" placeholder="可见商户" v-model="filterText"></el-input>
<template slot="visibleInferiorMer">
<el-input placeholder="可见商户" v-model="filterText"></el-input>
<el-button class="m-l-10" type="primary" @click="checkAll">{{ isCheckAll ? '全不选' : '全选' }}</el-button>
<el-tree v-show="baseData.merchantTree.length != 0" show-checkbox check-on-click-node check-strictly class="filter-tree" node-key="id" :data="baseData.merchantTree" :props="defaultProps" default-expand-all :filter-node-method="filterNode" ref="tree" @check="handleClickNode"></el-tree>
</template>
......@@ -130,11 +130,10 @@ export default {
isBlock: true,
editFormData: [
{
label: '所属商户:',
label: '所属商户:',
name: 'merchantId',
type: 'selectInput',
noClearable: true,
width: '320px',
optionList: [],
optionId: 'id',
optionLabel: 'merchantName',
......@@ -143,36 +142,40 @@ export default {
placeholder: '请选择所属商户'
},
{
label: '员工姓名:',
label: '员工姓名:',
name: 'staffName',
type: 'input',
maxlength: 15,
placeholder: '请输入员工姓名'
placeholder: '请输入员工姓名',
width: 432
},
{
label: '登录手机号:',
label: '登录手机号:',
name: 'staffPhone',
type: 'input',
placeholder: '请输入您有效的手机号作为登录账户',
maxlength: 11,
isDisabled: false
isDisabled: false,
width: 432
},
{
label: '登录密码:',
label: '登录密码:',
name: 'password',
showPass: true,
type: 'input',
maxlength: 20,
suffixSlot: 'passwordSlot',
placeholder: '请输入登录密码'
placeholder: '请输入登录密码',
width: 432
},
{
label: '可见商户:',
label: '可见商户:',
name: 'visibleInferiorMer',
addHtml: 'visibleInferiorMer'
addHtml: 'visibleInferiorMer',
width: 432
},
{
label: '角色权限:',
label: '角色权限:',
name: 'roleIds',
type: 'select',
optionList: [],
......@@ -182,7 +185,7 @@ export default {
suffixSlot: 'roleIdsSlot'
},
{
label: '头像:',
label: '头像:',
name: 'merchantImg',
type: 'upload',
maxPhotoNum: 1,
......@@ -202,18 +205,20 @@ export default {
}
},
{
label: '邮箱:',
label: '邮箱:',
name: 'staffEmail',
type: 'input',
maxlength: 30,
placeholder: '请输入邮箱'
placeholder: '请输入邮箱',
width: 432
},
{
label: '主要职务:',
label: '主要职务:',
name: 'staffJob',
type: 'input',
maxlength: 10,
placeholder: '请输入主要职务'
placeholder: '请输入主要职务',
width: 432
}
],
baseData: {
......
......@@ -445,7 +445,7 @@ export default {
// this.$refs.employeeRef.setTableHeightFun()
// }
this.$refs.employeeRef.data.length ? (this.$refs.employeeRef.tableHeightValues = '') : this.$refs.employeeRef.setTableHeightFun()
this.$refs.employeeRef.$refs.employeeListMutiTable.clearSelection()
// this.$refs.employeeRef.$refs.employeeListMutiTable.clearSelection()
},
handleDetail(row) {
this.$router.push('/employee/detailEmployee/' + row.id)
......
......@@ -585,7 +585,7 @@ export default {
}
.step-panel {
display: flex;
margin-bottom: 55px;
margin-bottom: 20px;
position: relative;
.step-left {
width: 220px;
......
......@@ -193,7 +193,6 @@ export default {
arr.forEach(item => {
accounttypeId.push(item.accounttypeId)
this.accountList.forEach((itm, index) => {
console.log(accounttypeId)
if (accounttypeId.includes(itm.accounttypeId)) {
this.tabMenu[index] = itm
if (!item.productList) {
......@@ -283,7 +282,6 @@ export default {
this.uniteChildSame(currentObj, true)
} else {
// 未选中 处理子节点全部未选中
console.log(currentObj)
if (currentObj.children !== null) {
if (currentObj.children.length !== 0) {
this.uniteChildSame(currentObj, false)
......@@ -397,7 +395,6 @@ export default {
})
})
}
console.log(menuIdList, functionIdList, functionValueIdLists, list)
if (this.roleType) {
productList.push({
productId: itm.productId,
......@@ -429,10 +426,7 @@ export default {
return this.accountTypes
}
},
mounted() {
// this.accountTypeSearchRequest();
// this.findPermissionsByMerId()
}
mounted() {}
}
</script>
......
......@@ -4,24 +4,24 @@
<div class="top_title_widget">
<span class="title">{{ pageName }}</span>
</div>
<div class="main_widget">
<div class="main_widget gl-form-page">
<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-form-item v-if="pageType == 'create' && accountLevel != 4" label="所属商户:" prop="merchantId">
<el-select size="small" 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-input size="small" disabled style="width: 40%" v-model="ruleForm.merchantName"></el-input>
<el-form-item label="所属商户:" prop="merchantName" v-if="pageType == 'create' && accountLevel == 4">
<el-input size="small" disabled v-model="ruleForm.merchantName"></el-input>
</el-form-item>
<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 label="所属商户:" prop="merchantName" v-if="pageType == 'edit'">
<el-input size="small" disabled v-model="ruleForm.merchantName"></el-input>
</el-form-item>
<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 label="角色名称:" prop="roleName">
<el-input size="small" maxlength="20" @input="changeInput" v-model="ruleForm.roleName" placeholder="请输入角色名称"></el-input>
</el-form-item>
<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 label="角色说明:" prop="roleDesc">
<el-input type="textarea" :rows="2" size="small" maxlength="50" @input="changeInput" v-model="ruleForm.roleDesc" placeholder="请输入角色说明"></el-input>
</el-form-item>
<!-- <el-form-item label="角色权限" prop="roleRoot">
<div class="custom_element">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!