Commit a1ac115f by 无尘

fix: 修改标签接口

parent 9a0d0b74
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-08-27 09:29:13
* @LastEditors: 无尘
* @LastEditTime: 2020-09-04 15:34:02
* @LastEditTime: 2020-09-07 15:41:07
*/
import getFetch from './get-fetch.js';
......@@ -91,7 +91,13 @@ let api = {
},
// 导购标签
getTagClassify: '/tag-category-list', // 获取导购标签分类
addClassify: '/tag-category-add', // 新增分类
addClassify: {
// 新增分类
url: '/tag-category-add',
method: 'post',
useFormData: true,
useIntercept: false
},
delClassify: {
// 删除分类
url: '/tag-category-del',
......@@ -100,9 +106,21 @@ let api = {
useIntercept: false
},
getClerkTag: '/member-tag-list', // 获取导购标签
addClerkTag: '/member-tag-add', // 新增导购标签
addClerkTag: {
// 新增导购标签
url: '/member-tag-add',
method: 'post',
useFormData: true,
useIntercept: false
},
getTagDetail: '/member-tag-detail', // 获取标签详情
editClerkTag: '/member-tag-edit', // 编辑导购标签
editClerkTag: {
// 编辑导购标签
url: '/member-tag-edit',
method: 'post',
useFormData: true,
useIntercept: false
},
delClerkTag: {
// 删除导购标签
url: '/',
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-09-01 11:09:16
* @LastEditors: 无尘
* @LastEditTime: 2020-09-07 15:34:27
* @LastEditTime: 2020-09-07 15:45:50
-->
<!--
<tag-classify-list :tag-list="tagList" :current-classify-id="currentClassifyId" :brand-id="brandId" @refreshClassify="refreshClassify" @changeClass="changeClass"></tag-classify-list>
......@@ -18,8 +18,8 @@
<el-dropdown placement="bottom-start">
<i class="iconfont icongengduo edit-icon"></i>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item @click="toEditClassify(index, item)">编辑</el-dropdown-item>
<el-dropdown-item @click="toDelClassify(index, item)">删除</el-dropdown-item>
<el-dropdown-item @click.native="toEditClassify(index, item)">编辑</el-dropdown-item>
<el-dropdown-item @click.native="toDelClassify(index, item)">删除</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</li>
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-08-28 16:51:22
* @LastEditors: 无尘
* @LastEditTime: 2020-09-07 15:33:24
* @LastEditTime: 2020-09-07 15:38:09
-->
<template>
......@@ -105,7 +105,9 @@ export default {
mounted() {
const that = this;
that.$emit('showTab', '/clerk-tag');
that.getClassifyList();
if (that.brandId) {
that.getClassifyList();
}
},
// methods
methods: {
......
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