Commit 9abb2851 by 无尘

fix: 修改标签分类

parent 8b5a091b
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2020-09-01 11:09:16 * @Date: 2020-09-01 11:09:16
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2020-09-07 16:12:08 * @LastEditTime: 2020-09-07 17:11:32
--> -->
<!-- <!--
<tag-classify-list :tag-list="tagList" :current-classify-id="currentClassifyId" :brand-id="brandId" @refreshClassify="refreshClassify" @changeClass="changeClass"></tag-classify-list> <tag-classify-list :tag-list="tagList" :current-classify-id="currentClassifyId" :brand-id="brandId" @refreshClassify="refreshClassify" @changeClass="changeClass"></tag-classify-list>
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<ul class="tag-classify-body"> <ul class="tag-classify-body">
<li :class="['tag-classify-item', { active: currentClassifyId == item.categoryId }]" v-for="(item, index) in tagList" :key="item.categoryId+index" @click="changeClassify(index, item)"> <li :class="['tag-classify-item', { active: currentClassifyId == item.categoryId }]" v-for="(item, index) in tagList" :key="item.categoryId+index" @click="changeClassify(index, item)">
<span class="tag-classify-name">{{ item.categoryName || '--' }}</span> <span class="tag-classify-name">{{ item.categoryName || '--' }}</span>
<el-dropdown placement="bottom-start"> <el-dropdown class="tag-classify-drop" placement="bottom-start">
<i class="iconfont icongengduo edit-icon"></i> <i class="iconfont icongengduo edit-icon"></i>
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
<el-dropdown-item @click.native="toEditClassify(index, item)">编辑</el-dropdown-item> <el-dropdown-item @click.native="toEditClassify(index, item)">编辑</el-dropdown-item>
...@@ -141,12 +141,17 @@ export default { ...@@ -141,12 +141,17 @@ export default {
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.tag-classify-drop {
.el-dropdown-menu__item {
padding: 0 30px;
}
}
.tag-classify-body { .tag-classify-body {
.tag-classify-item { .tag-classify-item {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
padding: 5px 10px 5px 30px; padding: 5px 10px 5px 20px;
font-size: 14px; font-size: 14px;
font-weight: 400; font-weight: 400;
line-height: 20px; line-height: 20px;
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2020-08-28 16:51:22 * @Date: 2020-08-28 16:51:22
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2020-09-07 16:44:48 * @LastEditTime: 2020-09-07 16:56:30
--> -->
<template> <template>
...@@ -199,6 +199,7 @@ export default { ...@@ -199,6 +199,7 @@ export default {
* @description: 编辑标签 * @description: 编辑标签
* @param {Number} index * @param {Number} index
* @param {Object} row * @param {Object} row
* @author: 无尘
*/ */
toEditTag(index, row) { toEditTag(index, row) {
const that = this; const that = this;
...@@ -232,6 +233,7 @@ export default { ...@@ -232,6 +233,7 @@ export default {
* @description: 编辑可见范围 * @description: 编辑可见范围
* @param {Number} index * @param {Number} index
* @param {Object} row * @param {Object} row
* @author: 无尘
*/ */
toEditVisiable(index, row) { toEditVisiable(index, row) {
const that = this; const that = this;
...@@ -257,6 +259,7 @@ export default { ...@@ -257,6 +259,7 @@ export default {
}, },
/** /**
* @description: 编辑后刷新数据 * @description: 编辑后刷新数据
* @author: 无尘
*/ */
refreshTagData() { refreshTagData() {
const that = this; const that = this;
...@@ -266,6 +269,7 @@ export default { ...@@ -266,6 +269,7 @@ export default {
* @description: 删除标签 * @description: 删除标签
* @param {Number} index * @param {Number} index
* @param {Object} row * @param {Object} row
* @author: 无尘
*/ */
toDelTag(index, row) { toDelTag(index, row) {
const that = this; const that = this;
...@@ -303,13 +307,15 @@ export default { ...@@ -303,13 +307,15 @@ export default {
}, },
/** /**
* @description: 搜索输入 * @description: 搜索输入
* @author: 无尘
*/ */
toInput: _debounce(function() { toInput: _debounce(function() {
const that = this; const that = this;
that.getTableList(); that.getTableList();
}, 500), }, 300),
/** /**
* @description: 搜索清除 * @description: 搜索清除
* @author: 无尘
*/ */
clearInput() { clearInput() {
const that = this; const that = this;
...@@ -317,6 +323,7 @@ export default { ...@@ -317,6 +323,7 @@ export default {
}, },
/** /**
* @description: 获取列表数据 * @description: 获取列表数据
* @author: 无尘
*/ */
getTableList() { getTableList() {
const that = this; const that = this;
...@@ -338,6 +345,7 @@ export default { ...@@ -338,6 +345,7 @@ export default {
}, },
/** /**
* @description: 获取分类数据 * @description: 获取分类数据
* @author: 无尘
*/ */
getClassifyList() { getClassifyList() {
const that = this; const that = this;
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2019-03-20 14:36:37 * @Date: 2019-03-20 14:36:37
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2020-08-31 14:11:12 * @LastEditTime: 2020-09-07 16:57:51
--> -->
<template> <template>
<div class="contacts-wrap common-set-wrap"> <div class="contacts-wrap common-set-wrap">
...@@ -124,7 +124,8 @@ export default { ...@@ -124,7 +124,8 @@ export default {
}, },
methods: { methods: {
/** /**
* 获取同步状态 * @description: 获取同步状态
* @author: 无尘
*/ */
getSyncStatus() { getSyncStatus() {
const that = this; const that = this;
...@@ -144,15 +145,17 @@ export default { ...@@ -144,15 +145,17 @@ export default {
}); });
}, },
/** /**
* 选中搜索的部门 * @description: 选中搜索的部门
* @param {Object} item * @param {Object} item
* @author: 无尘
*/ */
selectSearch(item) { selectSearch(item) {
const that = this; const that = this;
that.departObj = item; that.departObj = item;
}, },
/** /**
* 刷新企业成员 * @description: 刷新企业成员
* @author: 无尘
*/ */
toRefreshMember: _debounce(function() { toRefreshMember: _debounce(function() {
const that = this; const that = this;
...@@ -176,8 +179,9 @@ export default { ...@@ -176,8 +179,9 @@ export default {
}, 500), }, 500),
/** /**
* 点击 tree 数据 * @description: 点击 tree 数据
* @param {Object} data * @param {Object} data
* @author: 无尘
*/ */
resetCheckData(data) { resetCheckData(data) {
const that = this; const that = this;
...@@ -197,8 +201,9 @@ export default { ...@@ -197,8 +201,9 @@ export default {
}, },
/** /**
* 点击子部门触发 * @description: 点击子部门触发
* @param {Object} obj * @param {Object} obj
* @author: 无尘
*/ */
async changeDepart(obj) { async changeDepart(obj) {
const that = this; const that = this;
...@@ -220,8 +225,9 @@ export default { ...@@ -220,8 +225,9 @@ export default {
}, },
/** /**
* 修改部门名称触发 * @description: 修改部门名称触发
* @param {String} name * @param {String} name
* @author: 无尘
*/ */
resetData(name) { resetData(name) {
const that = this; const that = this;
...@@ -230,7 +236,8 @@ export default { ...@@ -230,7 +236,8 @@ export default {
}, },
/** /**
* 组织架构管理 * @description: 组织架构管理
* @author: 无尘
*/ */
toManage() { toManage() {
const that = this; const that = this;
...@@ -238,8 +245,9 @@ export default { ...@@ -238,8 +245,9 @@ export default {
}, },
/** /**
* 每次选中一个树中节点,把当前数据返回, * 每次选中一个树中节点,把当前数据返回,
* 获取选中部门/门店数据 * @description: 获取选中部门/门店数据
* @param {Object} obj * @param {Object} obj
* @author: 无尘
*/ */
getSelectData(obj) { getSelectData(obj) {
const that = this; const that = this;
...@@ -252,16 +260,18 @@ export default { ...@@ -252,16 +260,18 @@ export default {
that.departObj = obj; that.departObj = obj;
}, },
/** /**
* 路由跳转 * @description: 路由跳转
* @param {String} path * @param {String} path
* @author: 无尘
*/ */
changeRoute(path) { changeRoute(path) {
this.$router.push(path); this.$router.push(path);
}, },
/** /**
* 输入 * @description: 输入
* @param {Object} e * @param {Object} e
* @param {String} value * @param {String} value
* @author: 无尘
*/ */
toInput: _debounce(function(e, value) { toInput: _debounce(function(e, value) {
const that = this; const that = this;
...@@ -277,7 +287,8 @@ export default { ...@@ -277,7 +287,8 @@ export default {
that.searchData = []; that.searchData = [];
}, },
/** /**
* 获取搜索数据 * @description:获取搜索数据
* @author: 无尘
*/ */
getSearchData() { getSearchData() {
const that = this; const that = this;
...@@ -305,7 +316,8 @@ export default { ...@@ -305,7 +316,8 @@ export default {
return tree; return tree;
}, },
/** /**
* 获取列表数据 * @description: 获取列表数据
* @author: 无尘
*/ */
getTableList() { getTableList() {
const that = this; const that = this;
......
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