Commit ec116ce8 by 无尘

fix: 删除无用的 vue 文件

parent 318ba4c0
...@@ -4,11 +4,11 @@ ...@@ -4,11 +4,11 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2020-07-16 16:36:48 * @Date: 2020-07-16 16:36:48
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2020-07-17 11:23:57 * @LastEditTime: 2020-07-20 14:27:25
--> -->
# 好办 4.0 前端项目 # 好办 4.0 前端项目
> 由于 sass-node 经常出现下载问题,项目中尽量统一使用 less > 由于 `node-sass` 经常出现下载问题,项目中尽量统一使用 less
## Build Setup ## Build Setup
......
<!--
* @Descripttion: 当前组件信息
* @version: 1.0.0
* @Author: 无尘
* @Date: 2019-03-20 14:36:37
* @LastEditors : 无尘
* @LastEditTime : 2019-12-25 09:28:36
-->
<!--
应用公共顶部:
<common-app-top
:appName="appName"
:appIcon="appIcon"
@selectBrandId="selectBrandId">
</common-app-top>
-->
<template>
<div class="app-top-wrap app-detail-wrap">
<div class="my-customer-top">
<div class="my-customer-name">
<span class="app-icon "><img class="" :src="appIcon"/></span><span class="p-l-8">{{ appName }}</span>
</div>
<el-button class="border-radius-18 my-customer-return" @click="returnBack">返回</el-button>
<div v-if="$route.path != '/workSet' && $route.path != '/workGroupSet' && $route.path != '/dayStatistics' && $route.path != '/workGroupSet' && $route.path != '/dayStatistics' && $route.path != '/workTimeManage'" class="my-customer-brand">
<el-tooltip class="item" effect="dark" content="不同品牌的工作台可分别进行管理。点击后切换,可以管理不同品牌下的应用" placement="top-start">
<span class="font-14 color-606266" style="cursor: pointer;">品牌名称<span class="el-icon-info font-12 color-909399 p-l-6"></span> </span>
</el-tooltip>
<el-select class="p-l-10" v-model="activeBrand" placeholder="请选择" @change="changeSelect">
<el-option v-for="item in brandListData" :key="item.brandId" :label="item.name" :value="item.brandId"> </el-option>
</el-select>
</div>
</div>
</div>
</template>
<script>
import errMsg from '@/common/js/error';
import { postRequest } from '@/api/api';
export default {
name: 'common-app-top',
props: {
appName: {
type: String,
default() {
return '';
}
},
appIcon: {
type: String,
default() {
return '';
}
}
},
data() {
return {
projectName: '', // 当前项目名
activeBrand: '',
brandListData: []
};
},
methods: {
/**
* 返回
*/
returnBack() {
let that = this;
that.$router.push('appcenter');
},
/**
* 选择品牌
*/
changeSelect(val) {
let that = this;
let groupId = '';
that.brandListData.forEach(ele => {
if (ele.brandId == val) {
groupId = ele.groupId;
}
});
that.$emit('selectBrandId', val, groupId);
},
/**
* 获取品牌
*/
getBrandData() {
const that = this;
postRequest('/haoban-manage-web/application-brand-list', {})
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
if (!!resData.result && !!resData.result.length) {
that.brandListData = resData.result;
if (!!that.$route.query.brandId) {
that.activeBrand = that.$route.query.brandId;
that.$emit('selectBrandId', that.$route.query.brandId);
return false;
}
that.activeBrand = that.brandListData[0].brandId;
// 由于门店选择组件中没有品牌id ,只有 groupId
that.$emit('selectBrandId', that.brandListData[0].brandId, that.brandListData[0].groupId);
}
return;
}
errMsg.errorMsg(resData);
})
.catch(function(error) {
that.$message.error({
duration: 1000,
message: error.message
});
});
}
},
watch: {
brandId: function(newData, oldData) {
const that = this;
that.getBrandData();
}
},
mounted() {
const that = this;
that.getBrandData();
}
};
</script>
<style type="text/scss" lang="scss" scoped>
.w-500 {
width: 500px;
}
.color-1890ff {
color: #2f54eb;
}
.app-detail-wrap {
.my-customer-top {
position: relative;
height: 43px;
line-height: 43px;
.my-customer-return {
position: absolute;
left: 0px;
bottom: 10px;
width: 78px;
height: 32px;
border-radius: 18px;
}
.my-customer-brand {
position: absolute;
right: 0;
bottom: 18px;
// width: 93px;
height: 32px;
}
.my-customer-name {
width: 200px;
margin: 0 auto;
i {
font-size: 14px;
color: #fff;
}
span {
font-size: 16px;
color: #000;
}
.app-icon {
display: inline-block;
width: 22px;
height: 22px;
line-height: 22px;
text-align: center;
border-radius: 4px;
/* background: -webkit-gradient(linear, right top, left top, from(#7ab6fb), to(#508bfe));
background: -webkit-linear-gradient(right, #7ab6fb, #508bfe);
background: -moz-linear-gradient(right, #7ab6fb, #508bfe);
background: linear-gradient(right, #7ab6fb, #508bfe);
background: -webkit-linear-gradient(right, #7ab6fb, #508bfe); */
img {
display: inline-block;
max-width: 22px;
max-height: 22px;
vertical-align: bottom;
}
}
}
}
}
</style>
<template>
<router-view/>
</template>
<script>
export default {
name: 'module-view'
}
</script>
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2018-10-10 17:21:32 * @Date: 2018-10-10 17:21:32
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2020-07-17 11:15:24 * @LastEditTime: 2020-07-20 14:35:39
--> -->
<template> <template>
<div class="navheader"> <div class="navheader">
...@@ -64,6 +64,13 @@ export default { ...@@ -64,6 +64,13 @@ export default {
}, },
{ {
menuCode: null, menuCode: null,
rightName: '通讯录',
url: '/contactsList',
parentCode: null,
project: 'office'
},
{
menuCode: null,
rightName: '审核中心', rightName: '审核中心',
url: '/unreview?/reviewed/reviewSet', url: '/unreview?/reviewed/reviewSet',
parentCode: null, parentCode: null,
......
...@@ -4,11 +4,12 @@ ...@@ -4,11 +4,12 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2020-07-16 16:37:05 * @Date: 2020-07-16 16:37:05
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2020-07-17 12:13:44 * @LastEditTime: 2020-07-20 14:28:50
*/ */
import 'babel-polyfill'; import 'babel-polyfill';
import '@/styles/reset.less';
import 'element-ui/lib/theme-chalk/index.css'; import 'element-ui/lib/theme-chalk/index.css';
import '@/styles/reset.less';
import '@/styles/font/iconfont.css';
import Vue from 'vue'; import Vue from 'vue';
import VueRouter from 'vue-router'; import VueRouter from 'vue-router';
......
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