Commit 5faad80e by 李长胜

修改集团省代市代权限

1 parent 6bdeed38
......@@ -47,4 +47,4 @@
"> 1%",
"last 2 versions"
]
}
\ No newline at end of file
}
......@@ -80,7 +80,7 @@
</template>
<script>
import { getTableList, getDictionaryFun, syncCustomer ,clientManageExportApi} from '@/api/modules/clientManage'
import { getTableList, getDictionaryFun, syncCustomer, clientManageExportApi } from '@/api/modules/clientManage'
import url from '@/assets/clientDataOverview/nodata.png'
export default {
name: 'clientManage',
......@@ -299,10 +299,10 @@ export default {
// }
this.$refs.clientManage.data.length ? (this.$refs.clientManage.tableHeightValues = '') : this.$refs.clientManage.setTableHeightFun()
},
getParams(){
getParams() {
var params = JSON.parse(JSON.stringify(this.searchForm))
if (params.daterange) {
params.beginTime = this.searchForm.daterange[0]
params.beginTime = this.searchForm.daterange[0]
params.endTime = this.searchForm.daterange[1]
} else {
if (params.beginTime) delete params.beginTime && delete params.endTime
......@@ -322,7 +322,7 @@ export default {
// }
// resolve()
// })
return new Promise((resolve, reject) => {
return new Promise((resolve, reject) => {
this.searchFormTable = this.getParams()
resolve()
})
......@@ -359,13 +359,13 @@ export default {
return curElement.label
},
//导出
handleExport(){
//导出
handleExport() {
var params = this.getParams()
clientManageExportApi(params).then(res => {
this.$Utils.exportFn(res)
this.$Utils.exportFn(res)
})
},
},
//搜索表格
searchTable() {
this.$refs.clientManage.refreshTable()
......@@ -460,6 +460,9 @@ export default {
&-tag {
display: inline-block;
}
// /deep/ .entmicro-tag + .entmicro-tag {
// margin-bottom: 4px;
// }
&-hover {
max-height: 214px;
overflow: auto;
......@@ -470,6 +473,7 @@ export default {
}
}
}
.el-tag {
// margin-right: 10px;
max-width: 110px;
......
......@@ -22,7 +22,7 @@
</span>
</span>
<div class="initPanel" v-if="isFirstShow">
<template v-if="!(merchantModel == 1 && accountLevel == 4)">企业标签为全局标签,员工可在企微APP端客户详情、客户跟进等模块查看和打标签,最多3000个;</template>
<template >企业标签为全局标签,员工可在企微APP端客户详情、客户跟进等模块查看和打标签,最多3000个;</template>
<template v-if="!((merchantModel == 2 && accountLevel == 4) || (merchantModel == 1 && accountLevel == 1))">自店标签为企业商户自有标签,员工可在企微APP端客户跟进等模块查看和打标签,最多3000个;</template>
系统标签为通过大数据算法规则生成的标签
<img src="@/assets/tagsManage/Shape.png" alt="" />
......@@ -80,9 +80,9 @@
</el-select>
<!-- id="tagTipMsgRef" -->
<span class="tagTipMsg" v-if="tagDialogTitle == '添加标签组' && !tagForm.initTagsGroup">
<template v-if="!(merchantModel == 1 && accountLevel == 4)">企业标签</template>
<template v-if="!(merchantModel == 1 && (accountLevel == 2 || accountLevel == 3 || accountLevel==4))">企业标签</template>
<template v-if="!((merchantModel == 2 && accountLevel == 4) || (merchantModel == 1 && accountLevel == 1))">
<template v-if="!(merchantModel == 1 && accountLevel == 4)">和</template>
<template v-if="!(merchantModel == 1 && (accountLevel == 2 || accountLevel == 3 || accountLevel==4))">和</template>
自店标签分别
</template>
最多3000个
......@@ -330,9 +330,9 @@ export default {
// if (this.merchantModel == 1) {
// if (!(this.accountLevel == 1 && this.userType == 1)) this.tagsGroupList.splice(0, 1) //只能创建自店标签
// }
//1.0.1集团下的门店只能创建自店标签
//1.0.1集团下的省代、市代,门店只能创建自店标签
if (this.merchantModel == 1) {
if (this.accountLevel == 4) {
if (this.accountLevel == 2 || this.accountLevel == 3 || this.accountLevel == 4 ) {
this.tagsGroupList.splice(0, 1) //只能创建自店标签
// this.tagsPartFormList[0].options.splice(0, 1)
}
......@@ -424,7 +424,7 @@ export default {
isShowEditBtn(row) {
//集团模式下,只有集团能可以编辑企业,自店,其他只能编辑自店
//单店模式下,仅门店和员工可以编辑
if (row.labelType == '自店标签' && !(this.merchantModel == 1 && this.accountLevel == 4)) {
if (row.labelType == '自店标签' && !(this.merchantModel == 1 && (this.accountLevel == 2 || this.accountLevel == 3 || this.accountLevel == 4) )) {
return false
}
if (this.merchantModel == 1) {
......@@ -493,7 +493,7 @@ export default {
this.tagDialogTitle = '添加标签组'
this.tagForm.tagsForm = ''
this.tagForm.initTagsGroup = 1 //默认改成,企业标签
if (this.merchantModel == 1 && this.accountLevel == 4) {
if (this.merchantModel == 1 && (this.accountLevel == 2 || this.accountLevel == 3 || this.accountLevel == 4)) {
this.tagForm.initTagsGroup = 2
}
......@@ -583,7 +583,7 @@ export default {
if (!this.tagVisible && this.$refs.tagForm) {
this.$refs.tagForm.$children[0].resetFields()
this.tagForm.initTagsGroup = 1
if (this.merchantModel == 1 && this.accountLevel == 4) {
if (this.merchantModel == 1 && (this.accountLevel == 2 || this.accountLevel == 3 || this.accountLevel == 4)) {
this.tagForm.initTagsGroup = 2
}
this.tagForm.tagsName = ''
......@@ -723,8 +723,8 @@ export default {
}
if (singleNum + doubleNum >= 30) {
subLen = subLen1 + subLen2
console.log(subLen1, subLen2, subLen)
console.log(singleNum, singleNum, '单双数')
// console.log(subLen1, subLen2, subLen)
// console.log(singleNum, singleNum, '单双数')
break
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!