Commit 5faad80e by 李长胜

修改集团省代市代权限

1 parent 6bdeed38
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
</template> </template>
<script> <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' import url from '@/assets/clientDataOverview/nodata.png'
export default { export default {
name: 'clientManage', name: 'clientManage',
...@@ -299,7 +299,7 @@ export default { ...@@ -299,7 +299,7 @@ export default {
// } // }
this.$refs.clientManage.data.length ? (this.$refs.clientManage.tableHeightValues = '') : this.$refs.clientManage.setTableHeightFun() this.$refs.clientManage.data.length ? (this.$refs.clientManage.tableHeightValues = '') : this.$refs.clientManage.setTableHeightFun()
}, },
getParams(){ getParams() {
var params = JSON.parse(JSON.stringify(this.searchForm)) var params = JSON.parse(JSON.stringify(this.searchForm))
if (params.daterange) { if (params.daterange) {
params.beginTime = this.searchForm.daterange[0] params.beginTime = this.searchForm.daterange[0]
...@@ -360,7 +360,7 @@ export default { ...@@ -360,7 +360,7 @@ export default {
return curElement.label return curElement.label
}, },
//导出 //导出
handleExport(){ handleExport() {
var params = this.getParams() var params = this.getParams()
clientManageExportApi(params).then(res => { clientManageExportApi(params).then(res => {
this.$Utils.exportFn(res) this.$Utils.exportFn(res)
...@@ -460,6 +460,9 @@ export default { ...@@ -460,6 +460,9 @@ export default {
&-tag { &-tag {
display: inline-block; display: inline-block;
} }
// /deep/ .entmicro-tag + .entmicro-tag {
// margin-bottom: 4px;
// }
&-hover { &-hover {
max-height: 214px; max-height: 214px;
overflow: auto; overflow: auto;
...@@ -470,6 +473,7 @@ export default { ...@@ -470,6 +473,7 @@ export default {
} }
} }
} }
.el-tag { .el-tag {
// margin-right: 10px; // margin-right: 10px;
max-width: 110px; max-width: 110px;
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
</span> </span>
</span> </span>
<div class="initPanel" v-if="isFirstShow"> <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> <template v-if="!((merchantModel == 2 && accountLevel == 4) || (merchantModel == 1 && accountLevel == 1))">自店标签为企业商户自有标签,员工可在企微APP端客户跟进等模块查看和打标签,最多3000个;</template>
系统标签为通过大数据算法规则生成的标签 系统标签为通过大数据算法规则生成的标签
<img src="@/assets/tagsManage/Shape.png" alt="" /> <img src="@/assets/tagsManage/Shape.png" alt="" />
...@@ -80,9 +80,9 @@ ...@@ -80,9 +80,9 @@
</el-select> </el-select>
<!-- id="tagTipMsgRef" --> <!-- id="tagTipMsgRef" -->
<span class="tagTipMsg" v-if="tagDialogTitle == '添加标签组' && !tagForm.initTagsGroup"> <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 == 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> </template>
最多3000个 最多3000个
...@@ -330,9 +330,9 @@ export default { ...@@ -330,9 +330,9 @@ export default {
// if (this.merchantModel == 1) { // if (this.merchantModel == 1) {
// if (!(this.accountLevel == 1 && this.userType == 1)) this.tagsGroupList.splice(0, 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.merchantModel == 1) {
if (this.accountLevel == 4) { if (this.accountLevel == 2 || this.accountLevel == 3 || this.accountLevel == 4 ) {
this.tagsGroupList.splice(0, 1) //只能创建自店标签 this.tagsGroupList.splice(0, 1) //只能创建自店标签
// this.tagsPartFormList[0].options.splice(0, 1) // this.tagsPartFormList[0].options.splice(0, 1)
} }
...@@ -424,7 +424,7 @@ export default { ...@@ -424,7 +424,7 @@ export default {
isShowEditBtn(row) { 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 return false
} }
if (this.merchantModel == 1) { if (this.merchantModel == 1) {
...@@ -493,7 +493,7 @@ export default { ...@@ -493,7 +493,7 @@ export default {
this.tagDialogTitle = '添加标签组' this.tagDialogTitle = '添加标签组'
this.tagForm.tagsForm = '' this.tagForm.tagsForm = ''
this.tagForm.initTagsGroup = 1 //默认改成,企业标签 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.initTagsGroup = 2
} }
...@@ -583,7 +583,7 @@ export default { ...@@ -583,7 +583,7 @@ export default {
if (!this.tagVisible && this.$refs.tagForm) { if (!this.tagVisible && this.$refs.tagForm) {
this.$refs.tagForm.$children[0].resetFields() this.$refs.tagForm.$children[0].resetFields()
this.tagForm.initTagsGroup = 1 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.initTagsGroup = 2
} }
this.tagForm.tagsName = '' this.tagForm.tagsName = ''
...@@ -723,8 +723,8 @@ export default { ...@@ -723,8 +723,8 @@ export default {
} }
if (singleNum + doubleNum >= 30) { if (singleNum + doubleNum >= 30) {
subLen = subLen1 + subLen2 subLen = subLen1 + subLen2
console.log(subLen1, subLen2, subLen) // console.log(subLen1, subLen2, subLen)
console.log(singleNum, singleNum, '单双数') // console.log(singleNum, singleNum, '单双数')
break break
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!