Commit a373d528 by 无尘

fix: 修改门店标签接口

parent f82b1e45
...@@ -4,14 +4,13 @@ ...@@ -4,14 +4,13 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2020-07-24 12:19:48 * @Date: 2020-07-24 12:19:48
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2020-11-17 13:46:07 * @LastEditTime: 2020-11-20 15:47:57
*/ */
import getFetch from './get-fetch.js'; import getFetch from './get-fetch.js';
let api = { let api = {
getAuthEnterprise: '/auth-enterprise-list', // 获取授权商户列表 getAuthEnterprise: '/auth-enterprise-list', // 获取授权商户列表
getGroupList: '/department-list', // 获取 gic 分组列表 getGroupList: '/department-list', // 获取 gic 分组列表
getTagList: '/', // 获取标签
getStoreList: '/store-list', // 获取 gic 门店 getStoreList: '/store-list', // 获取 gic 门店
getAuthDetail: '/enterprise-auth-detail', // 获取授权详情(编辑时获取信息) getAuthDetail: '/enterprise-auth-detail', // 获取授权详情(编辑时获取信息)
getAuditLog: '/enterprise-auth-audit-list', // 获取审核日志 getAuditLog: '/enterprise-auth-audit-list', // 获取审核日志
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2020-11-09 10:15:36 * @Date: 2020-11-09 10:15:36
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2020-11-20 15:02:45 * @LastEditTime: 2020-11-20 15:48:04
*/ */
import getFetch from './get-fetch.js'; import getFetch from './get-fetch.js';
...@@ -55,6 +55,7 @@ let api = { ...@@ -55,6 +55,7 @@ let api = {
method: 'post', method: 'post',
useFormData: true useFormData: true
}, },
getTagList: '/setting/list-store-tag', // 获取标签
}; };
api = getFetch(api, '/hb-app-performance-web'); api = getFetch(api, '/hb-app-performance-web');
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2020-02-08 10:27:21 * @Date: 2020-02-08 10:27:21
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2020-11-17 13:49:40 * @LastEditTime: 2020-11-20 15:49:00
--> -->
<!-- <!--
选择门店分组组件: 选择门店分组组件:
...@@ -27,8 +27,8 @@ ...@@ -27,8 +27,8 @@
<div class="el-select-dropdown__wrap el-scrollbar__wrap" style="margin-bottom: -5px; margin-right: -5px;"> <div class="el-select-dropdown__wrap el-scrollbar__wrap" style="margin-bottom: -5px; margin-right: -5px;">
<el-checkbox-group v-model="dailyRuleForm.tags" @change="handleStoresChange"> <el-checkbox-group v-model="dailyRuleForm.tags" @change="handleStoresChange">
<ul class="el-scrollbar__view el-select-dropdown__list"> <ul class="el-scrollbar__view el-select-dropdown__list">
<li class="el-select-dropdown__item" v-for="item in tags" :key="item.tagId"> <li class="el-select-dropdown__item" v-for="item in tags" :key="item.storeTagId">
<el-checkbox :label="item.tagId">{{ item.tagName }}</el-checkbox> <el-checkbox :label="item.storeTagId">{{ item.storeTagName }}</el-checkbox>
</li> </li>
<li v-if="!tags.length" class="text-center el-select-dropdown__item"><span>暂无门店标签</span></li> <li v-if="!tags.length" class="text-center el-select-dropdown__item"><span>暂无门店标签</span></li>
</ul> </ul>
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
<span style="display:block"> <span style="display:block">
<template v-for="(item, index) in selectTags"> <template v-for="(item, index) in selectTags">
<span class="el-tag el-tag--info el-tag--small" :key="index + 'tag'"> <span class="el-tag el-tag--info el-tag--small" :key="index + 'tag'">
<span class="el-select__tags-text">{{ item.tagName }}</span> <span class="el-select__tags-text">{{ item.storeTagName }}</span>
<i class="el-tag__close el-icon-close" @click.stop="delDepart(index, selectTags)"></i> <i class="el-tag__close el-icon-close" @click.stop="delDepart(index, selectTags)"></i>
</span> </span>
</template> </template>
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
</el-popover> </el-popover>
</template> </template>
<script> <script>
import fetch from '@/api/merchant-auth.js'; import fetch from '@/api/target-manage-app.js';
const { getTagList } = fetch; const { getTagList } = fetch;
// import errMsg from '@/common/js/error'; // import errMsg from '@/common/js/error';
// import { _debounce } from '@/common/js/public'; // import { _debounce } from '@/common/js/public';
...@@ -104,7 +104,7 @@ export default { ...@@ -104,7 +104,7 @@ export default {
} }
if (!!that.selectData.length) { if (!!that.selectData.length) {
that.selectTags = JSON.parse(JSON.stringify(that.selectData)); that.selectTags = JSON.parse(JSON.stringify(that.selectData));
that.dailyRuleForm.tags = that.selectData.map(ele => ele.tagId); that.dailyRuleForm.tags = that.selectData.map(ele => ele.storeTagId);
} else { } else {
that.dailyRuleForm.tags = []; that.dailyRuleForm.tags = [];
that.selectTags = []; that.selectTags = [];
...@@ -121,7 +121,7 @@ export default { ...@@ -121,7 +121,7 @@ export default {
const that = this; const that = this;
let arr = []; let arr = [];
that.tags.forEach(ele => { that.tags.forEach(ele => {
if (value.includes(ele.tagId)) { if (value.includes(ele.storeTagId)) {
arr.push(ele); arr.push(ele);
} }
}); });
...@@ -176,7 +176,7 @@ export default { ...@@ -176,7 +176,7 @@ export default {
const that = this; const that = this;
if (!!newData.length) { if (!!newData.length) {
that.selectTags = JSON.parse(JSON.stringify(newData)); that.selectTags = JSON.parse(JSON.stringify(newData));
that.dailyRuleForm.tags = newData.map(ele => ele.tagId); that.dailyRuleForm.tags = newData.map(ele => ele.storeTagId);
} else { } else {
that.dailyRuleForm.tags = []; that.dailyRuleForm.tags = [];
that.selectTags = []; that.selectTags = [];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment