Commit 2db06a38 by 无尘

fix: 修改标签和注释

parent c17ed2e4
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-08-28 11:07:46
* @LastEditors: 无尘
* @LastEditTime: 2020-09-14 09:26:32
* @LastEditTime: 2020-09-14 16:09:23
-->
<!--
<edit-visiable :brand-id="brandId" :set-item-id="setItemId" :set-type="setType" :select-mode="selectMode" :range-data="rangeData" @refreshData="refreshData"></edit-visiable>
......
<!--
* @Descripttion: 当前组件信息
* @Descripttion: 限制输入框组件
* @version: 1.0.0
* @Author: 无尘
* @Date: 2019-07-29 20:00:00
* @LastEditors: 无尘
* @LastEditTime: 2020-09-03 18:02:40
* @LastEditTime: 2020-09-15 09:59:34
-->
<!--
限制输入框组件
<limit-input-blur
:input-width="500"
:limit-class="'limit-color'"
......
<!--
* @Descripttion: 当前组件信息
* @Descripttion: 限制输入框组件
* @version: 1.0.0
* @Author: 无尘
* @Date: 2018-12-06 13:44:22
* @LastEditors: 无尘
* @LastEditTime: 2020-09-07 17:17:18
* @LastEditTime: 2020-09-15 10:00:20
-->
<!--
限制输入框组件
<limit-input
:input-width="500"
:limit-class="'limit-color'"
......@@ -94,7 +93,7 @@ export default {
},
methods: {
/**
* @description: 当前函数信息
* @description: 输入
* @param {String} value
* @returns {Boolean}
* @author: 无尘
......@@ -119,6 +118,10 @@ export default {
}
that.$emit('update:inputValue', that.itemValue);
},
/**
* @description: blur
* @author: 无尘
*/
inputBlur() {
const that = this;
that.$emit('update:inputValue', that.itemValue);
......
<!--
* @Descripttion: 当前组件信息
* @Descripttion: 限制文本框组件
* @version: 1.0.0
* @Author: 无尘
* @Date: 2018-12-06 17:25:22
* @LastEditors: 无尘
* @LastEditTime: 2020-09-01 14:00:39
* @LastEditTime: 2020-09-15 10:00:53
-->
<!--
限制文本框组件
<!--=
<limit-textarea
:input-width="500"
:input-value.sync="ruleForm.addressDetail"
......@@ -83,7 +82,7 @@ export default {
},
methods: {
/**
* @description: 当前函数信息
* @description: 输入
* @param {String} value
* @author: 无尘
*/
......@@ -101,6 +100,10 @@ export default {
}
that.$emit('update:inputValue', that.itemValue);
},
/**
* @description: blur
* @author: 无尘
*/
inputBlur() {
const that = this;
that.$emit('update:inputValue', that.itemValue);
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2019-10-21 14:27:29
* @LastEditors: 无尘
* @LastEditTime: 2020-08-28 16:18:33
* @LastEditTime: 2020-09-15 09:55:42
-->
<!--
......@@ -109,9 +109,9 @@ export default {
},
methods: {
/**
* 关闭
* @description: 关闭
* @param {Function} done
*
* @author: 无尘
*/
handleClose(done) {
const that = this;
......@@ -120,18 +120,22 @@ export default {
},
/**
* 取消
* @description: 取消关闭弹窗
* @author: 无尘
*/
customCancel() {
const that = this;
that.hideDialog();
},
hideDialog() {
const that = this;
that.customDialog = false;
that.$emit('hideDetailDialog');
},
/**
* @description: 获取审核详情
* @author: 无尘
*/
getTableData() {
const that = this;
let para = {
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2019-02-19 12:20:38
* @LastEditors: 无尘
* @LastEditTime: 2020-08-18 18:21:52
* @LastEditTime: 2020-09-15 09:56:28
-->
<template>
<div class="custom-dialog-wrap">
......@@ -67,13 +67,14 @@ export default {
that.rightData = that.storeChangeData.afterContent;
},
methods: {
// 关闭
/**
* @description: 关闭弹窗
* @author: 无尘
*/
handleCardClose() {
const that = this;
that.customCancel();
},
// 取消
customCancel() {
const that = this;
that.customDialog = false;
......
<!--
* @Descripttion: 当前组件信息
* @Descripttion: 管理员授权选择门店绑定弹窗
* @version: 1.0.0
* @Author: 无尘
* @Date: 2020-07-21 10:10:57
* @LastEditors: 无尘
* @LastEditTime: 2020-09-09 16:01:23
* @LastEditTime: 2020-09-15 09:57:36
-->
<!--
授权选择门店绑定弹窗
<select-admin-store v-if="setVisible" :enterprise-id="enterpriseId" :select-mode="selectMode" :bind-range="authForm.bindRange" :share-range="authForm.shareRange" :bind-type="bindType" @closeSet="closeSet"></select-admin-store>
import selectAdminStore from '@/components/company/select-admin-store.vue';
-->
......
<!--
* @Descripttion: gic选择分组
* @Descripttion: 添加管理员-选择管理员
* @version: 1.0.0
* @Author: 无尘
* @Date: 2020-07-21 10:10:57
* @LastEditors: 无尘
* @LastEditTime: 2020-09-09 16:00:22
* @LastEditTime: 2020-09-15 09:58:19
-->
<!--
选择管理员
<select-admin :select-admin="selectAdmin" @checkAdmins="checkAdmins"></select-admin>
import selectAdmin from '@/components/set/select-admin.vue';
-->
......
<!--
* @Descripttion: gic选择分组
* @Descripttion: 管理员授权-门店绑定-选择分组(仅展示)
* @version: 1.0.0
* @Author: 无尘
* @Date: 2020-07-21 10:10:57
* @LastEditors: 无尘
* @LastEditTime: 2020-09-09 15:57:35
* @LastEditTime: 2020-09-15 09:58:45
-->
<!--
门店绑定-选择分组(仅展示)
<store-auth-group :company-id="companyId" :store-type="storeType" :select-group="selectGroup"></store-auth-group>
import storeAuthGroup from '@/components/set/store-auth-group.vue';
-->
......
<!--
* @Descripttion: gic选择门店
* @Descripttion: 管理员授权-门店绑定-选择门店(仅展示)
* @version: 1.0.0
* @Author: 无尘
* @Date: 2020-07-21 10:10:57
* @LastEditors: 无尘
* @LastEditTime: 2020-09-09 15:58:27
* @LastEditTime: 2020-09-15 09:59:11
-->
<!--
门店绑定-选择门店(仅展示)
<store-auth-store :company-id="companyId" :store-type="storeType" ></store-auth-store>
import storeAuthStore from '@/components/set/store-auth-store.vue';
-->
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2019-10-10 17:21:32
* @LastEditors: 无尘
* @LastEditTime: 2020-08-18 18:20:11
* @LastEditTime: 2020-09-15 10:08:05
-->
<template>
<div class="nav-header">
......@@ -119,15 +119,17 @@ export default {
},
methods: {
/**
* 首页跳转
* @description: 首页跳转
* @author: 无尘
*/
toIndex() {
const that = this;
that.$router.push('/contactsList');
},
/**
* 路由跳转
* @description: 路由跳转
* @param {Object} menuItem
* @author: 无尘
*/
changeRouter(menuItem) {
const that = this;
......@@ -138,7 +140,7 @@ export default {
window.open(`/haoban-4/#${menuItem.menuUrl}`);
}
}else {
that.setleftData(menuItem);
that.setLeftData(menuItem);
let childRoute = {};
that.roleMenuData.forEach(ele => {
// 如果第一层级下没有菜单,直接跳转
......@@ -153,7 +155,7 @@ export default {
that.$router.push(childRoute.menuUrl);
}
},
setleftData(menuItem) {
setLeftData(menuItem) {
const that = this;
let arr = [];
that.roleMenuData.forEach(ele => {
......@@ -163,8 +165,10 @@ export default {
});
that.$emit('leftData', arr);
},
// 退出登录
/**
* @description: 退出登录
* @author: 无尘
*/
toLoginOut() {
const that = this;
that
......@@ -190,19 +194,9 @@ export default {
})
.catch(() => {});
},
// 触发父组件路由
toRouter(path, name, code) {
const that = this;
let obj = {
path: '/' + path,
name: name
};
that.$emit('toRouterView', obj);
},
/**
* 获取用户信息 --- api
* @description: 获取用户信息 --- api
* @author: 无尘
*/
toLogin() {
const that = this;
......@@ -230,6 +224,12 @@ export default {
});
},
/**
* @description: 处理简单数组-->父子级
* @param {Array} data
* @return {Array}
* @author: 无尘
*/
treeData(data) {
let tree = data.filter(father => {
// 循环所有项
......@@ -247,6 +247,10 @@ export default {
});
return tree;
},
/**
* @description: 获取菜单
* @author: 无尘
*/
getData() {
const that = this;
const para = {};
......@@ -293,7 +297,7 @@ export default {
}
});
}
that.setleftData(menuItem);
that.setLeftData(menuItem);
}
})
.catch(function(error) {
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2019-09-11 18:18:32
* @LastEditors: 无尘
* @LastEditTime: 2020-09-09 15:40:48
* @LastEditTime: 2020-09-15 10:26:41
*/
/**
* @description: 格式化时间
......@@ -13,8 +13,6 @@
* @return {String}
* @author: 无尘
*/
/* 全局过滤器 */
const dateFormat = function(timeSpan, format) {
if (!timeSpan) return '';
timeSpan = timeSpan.toString().length === 10 ? timeSpan * 1000 : timeSpan;
......
/*
* @Descripttion: 当前组件信息
* @Descripttion: emit
* @version: 1.0.0
* @Author: 无尘
* @Date: 2020-07-16 16:37:05
* @LastEditors: 无尘
* @LastEditTime: 2020-08-21 10:37:07
* @LastEditTime: 2020-09-15 10:12:49
*/
'use strict';
/**
* @description: 当前函数信息
* @description: 事件广播
* @param {String} componentName
* @param {String} eventName
* @param {Array} params
......@@ -29,7 +29,7 @@ function _broadcast(componentName, eventName, params) {
export default {
methods: {
/**
* @description: 当前函数信息
* @description: 查找所有父级, 直到找到要找到的父组件, 并在身上触发指定的事件
* @param {String} componentName
* @param {String} eventName
* @param {Array} params
......@@ -51,7 +51,7 @@ export default {
}
},
/**
* @description: 当前函数信息
* @description: 事件广播
* @param {String} componentName
* @param {String} eventName
* @param {Array} params
......
......@@ -4,10 +4,10 @@
* @Author: 无尘
* @Date: 2020-07-17 10:38:29
* @LastEditors: 无尘
* @LastEditTime: 2020-08-21 10:38:52
* @LastEditTime: 2020-09-15 10:27:24
*/
/**
* @description: 当前函数信息
* @description: 加载组件
* @param {String} parantfile
* @param {String} file
* @returns {Function}
......
/*
* @Descripttion: 当前组件信息
* @Descripttion: 路由
* @version: 1.0.0
* @Author: 无尘
* @Date: 2020-07-16 16:37:05
* @LastEditors: 无尘
* @LastEditTime: 2020-09-02 11:26:40
* @LastEditTime: 2020-09-15 10:28:49
*/
import _import from './_import.js';
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2019-03-20 14:36:37
* @LastEditors: 无尘
* @LastEditTime: 2020-09-11 14:45:01
* @LastEditTime: 2020-09-14 15:08:59
-->
<template>
<div class="my-customer-wrap common-set-wrap">
......@@ -45,7 +45,7 @@ export default {
navpath: [
{
name: '首页',
path: '/index'
path: '/app-list'
},
{
name: '我的顾客',
......@@ -56,35 +56,35 @@ export default {
{
tabId: '1',
menuName: '顾客数据维度',
iconUrl: 'iconjichushezhi',
iconUrl: 'iconweidu',
menuUrl: '/data-dimension',
children: []
},
{
tabId: '2',
menuName: '场景人群',
iconUrl: 'icongukeguanliicon',
iconUrl: 'iconrenqun',
menuUrl: '/crowd-scene',
children: []
},
{
tabId: '3',
menuName: '顾客数据',
iconUrl: 'icongukeguanliicon',
menuName: '顾客资料',
iconUrl: 'iconziliaocopy',
menuUrl: '/customer-data-set',
children: []
},
{
tabId: '4',
menuName: '导购标签',
iconUrl: 'icongukeguanliicon',
iconUrl: 'iconbiaoqian',
menuUrl: '/clerk-tag',
children: []
},
{
tabId: '5',
menuName: '顾客分配',
iconUrl: 'icongukeguanliicon',
iconUrl: 'iconfenpei',
menuUrl: '/customer-assign',
children: []
}
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2019-03-20 14:36:37
* @LastEditors: 无尘
* @LastEditTime: 2020-08-18 18:17:13
* @LastEditTime: 2020-09-15 10:35:07
-->
<template>
<div class="my-customer-wrap common-set-wrap">
......@@ -95,10 +95,13 @@ export default {
document.documentElement.style.backgroundColor = '#fff';
},
methods: {
// 处理路由跳转
/**
* @description: 路由跳转
* @param {Object} val
* @author: 无尘
*/
toRouterView(val) {
let that = this;
// 模拟检查数据
const that = this;
// //有两个参数
// {
// name:,
......@@ -109,30 +112,31 @@ export default {
});
},
/**
* 路由跳转
* @param {String} path
* @description: 路由跳转
* @param {String} path
* @author: 无尘
*/
changeRoute(path) {
this.$router.push(path);
},
/**
* 返回 的 brandId
* @param {String} id
* @param {String} groupId
* @description: 返回 的 brandId
* @param {String} id
* @param {String} groupId
* @author: 无尘
*/
selectBrandId(id, groupId) {
let that = this;
const that = this;
that.activeBrand = id;
that.activeGroup = groupId;
},
/**
* 选择后返回tabId,做各路由判断
* @param {Object} item
* @description: 选择后返回tabId,做各路由判断
* @param {Object} item
* @author: 无尘
*/
setSelectTab(item) {
let that = this;
const that = this;
that.activeTab = item.menuUrl;
if (item.target == 1) {
if (item.menuUrl.indexOf('http') != -1) {
......@@ -146,11 +150,12 @@ export default {
},
/**
* 各路由返回 menuUrl
* @param {String} menuUrl
* @description: 各路由返回 menuUrl
* @param {String} menuUrl
* @author: 无尘
*/
showTab(menuUrl) {
let that = this;
const that = this;
that.activeTab = menuUrl;
that.activeSelTab = menuUrl;
that.tabListData.forEach(ele => {
......@@ -174,8 +179,9 @@ export default {
});
},
/**
* 获取左侧数据
* @param {Array} arr
* @description: 获取左侧数据
* @param {Array} arr
* @author: 无尘
**/
leftData(arr) {
const that = this;
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2018-10-10 14:44:45
* @LastEditors: 无尘
* @LastEditTime: 2020-08-18 18:10:09
* @LastEditTime: 2020-09-15 10:32:15
-->
<template>
<div class="review-wrap">
......@@ -64,15 +64,15 @@ export default {
},
methods: {
/**
* 路由跳转
* @param {String} path
* @description: 路由跳转
* @param {String} path
*/
changeRoute(path) {
this.$router.push(path);
},
/**
* 选择后返回menuUrl,做各路由判断
* @param {Object} item
* @description: 选择后返回menuUrl,做各路由判断
* @param {Object} item
*/
setSelectTab(item) {
const that = this;
......@@ -87,10 +87,9 @@ export default {
that.$router.push(item.menuUrl);
}
},
/**
* 各路由返回 menuUrl
* @param {String} menuUrl
* @description: 各路由返回 menuUrl
* @param {String} menuUrl
*/
showTab(menuUrl) {
const that = this;
......@@ -116,7 +115,11 @@ export default {
}
});
},
// 处理路由跳转
/**
* @description: 处理路由跳转
* @param {Object} val
* @author: 无尘
*/
toRouterView(val) {
const that = this;
// 模拟检查数据,有两个参数
......@@ -129,14 +132,18 @@ export default {
});
},
// 折叠事件
/**
* @description:折叠事件
* @param {Boolean} val
* @author: 无尘
*/
collapseTag(val) {
const that = this;
that.collapseFlag = val;
},
/**
* 获取左侧数据
* @param {Array} arr
* @description: 获取左侧数据
* @param {Array} arr
**/
leftData(arr) {
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