Commit 712f44f5 by xinla

--no commit message

1 parent eea5626e
......@@ -23,4 +23,9 @@ const envs = {
}
const env = envs[process.env.VUE_APP_ENV || process.env.NODE_ENV]
try {
window.lwConfig = Object.assign(env, window.lwConfig || {})
} catch (error) {
console.log(error)
}
module.exports = env
// 用于无打包配置,会覆盖系统相关配置
// window.lwConfig = {
// DOMAIN: 'http://demo.linkwechat.cn',
// BASE_URL: '/', // 路由基础路径
// BASE_API: 'http://demo.linkwechat.cn/prod-api',
// SYSTEM_API: '/prod-api',
// KF_API: '/prod-kf',
// }
window.lwConfig = {
SYSTEM_NAME: 'LinkWeChat',
SYSTEM_NAME_ALL: 'LinkWechat 企业微信SCRM',
COMPANY_NAME: '仟微科技',
COMPANY_NAME_ALL: '仟微科技',
LOGO_DARK_URL: 'http://demo.linkwechat.cn/public/logo_dark_url.png',
LOGO_LIGHT_URL: 'http://demo.linkwechat.cn/public/logo_light_url.png',
LOGO_TEXT_DARK_URL: 'http://demo.linkwechat.cn/public/logo_text_dark_url.png',
LOGO_TEXT_LIGHT_URL: 'http://demo.linkwechat.cn/public/logo_text_light_url.png',
COPYRIGHT: 'Copyright © 2018-2021 LinkWeChat All Rights Reserved.',
// DOMAIN: 'http://demo.linkwechat.cn',
// BASE_URL: '/', // 路由基础路径
// BASE_API: 'http://demo.linkwechat.cn/prod-api',
// SYSTEM_API: '/prod-api',
// KF_API: '/prod-kf',
}
......@@ -33,7 +33,7 @@ export default {
<template>
<div class="preview ac">
<div class="top">小微</div>
<div class="small">仟微科技-企微</div>
<div class="small">{{ lwConfig.COMPANY_NAME }}-企微</div>
<div class="time">凌晨2:20</div>
<ul class="msg-ul">
<li class="flex msg-li">
......@@ -50,7 +50,7 @@ export default {
size="small"
:src="require('@/assets/image/profile.jpg')"
></el-avatar>
<div class="msg" style="line-height: 0; padding: 5px;">
<div class="msg" style="line-height: 0; padding: 5px">
<slot></slot>
</div>
</li>
......@@ -70,7 +70,7 @@ export default {
size="small"
:src="require('@/assets/image/profile.jpg')"
></el-avatar>
<div class="msg" style="line-height: 0; padding: 5px;">
<div class="msg" style="line-height: 0; padding: 5px">
<slot name="image" v-bind:image="image"></slot>
</div>
</li>
......
import { getToken } from '@/utils/auth'
import env from '../env'
window.lwConfig = Object.assign(env, window.lwConfig || {})
window.CONFIG = {
/**
* 是否系统布局配置
......
......@@ -14,7 +14,7 @@
<div class="main-container">
<div v-show="$route.name !== '首页'">
<hamburger id="hamburger-container" class="hamburger-container" />
<span class="slogan">仟微科技 |</span>
<span class="slogan">{{ lwConfig.COMPANY_NAME }} |</span>
<breadcrumb id="breadcrumb-container" class="breadcrumb-container" />
</div>
......@@ -51,7 +51,7 @@ export default {
RightPanel,
Settings,
Sidebar,
TagsView
TagsView,
},
mixins: [ResizeMixin],
computed: {
......@@ -59,7 +59,7 @@ export default {
...mapState({
sidebar: (state) => state.app.sidebar,
device: (state) => state.app.device,
showSettings: (state) => state.settings.showSettings
showSettings: (state) => state.settings.showSettings,
// needTagsView: (state) => state.settings.tagsView,
// fixedHeader: (state) => state.settings.fixedHeader,
}),
......@@ -68,15 +68,15 @@ export default {
hideSidebar: !this.sidebar.opened || this.$route.path == '/index',
openSidebar: this.sidebar.opened && this.$route.path !== '/index',
withoutAnimation: this.sidebar.withoutAnimation,
mobile: this.device === 'mobile'
mobile: this.device === 'mobile',
}
}
},
},
methods: {
handleClickOutside() {
this.$store.dispatch('app/closeSideBar', { withoutAnimation: false })
}
}
},
},
}
</script>
......
import Vue from 'vue'
// require('promise.prototype.finally').shim()
import '../env'
import Cookies from 'js-cookie'
......@@ -9,14 +10,14 @@ import Element from 'element-ui'
import './styles/element-variables.scss'
Vue.use(Element, {
size: Cookies.get('size') || 'small' // set element-ui default size
size: Cookies.get('size') || 'small', // set element-ui default size
})
import '@/styles/common.scss' // common css
import '@/styles/index.scss' // global css
import 'video.js/dist/video-js.css'
import config from '@/config'
import '@/config'
import App from './App'
import store from './store'
import router from './router'
......@@ -32,7 +33,7 @@ import {
selectDictLabel,
selectDictLabels,
download,
handleTree
handleTree,
} from '@/utils/common'
import Pagination from '@/components/Pagination'
......@@ -62,6 +63,7 @@ Vue.prototype.selectDictLabel = selectDictLabel
Vue.prototype.selectDictLabels = selectDictLabels
Vue.prototype.download = download
Vue.prototype.handleTree = handleTree
Vue.prototype.lwConfig = window.lwConfig
Vue.prototype.msgSuccess = function (msg) {
this.$message({ showClose: true, message: msg, type: 'success' })
......@@ -97,9 +99,9 @@ VueAMap.initAMapApiLoader({
'AMap.ToolBar',
'AMap.MapType',
'AMap.PolyEditor',
'AMap.CircleEditor'
'AMap.CircleEditor',
],
v: '1.4.4'
v: '1.4.4',
})
/**
......@@ -117,5 +119,5 @@ new Vue({
el: '#app',
router,
store,
render: (h) => h(App)
render: (h) => h(App),
})
......@@ -159,7 +159,7 @@
<div class="inedx_r_top_t">
<p class="p1">{{ $store.state.user.companyName }},欢迎登陆本系统</p>
<p class="p2">登录时间:{{ parseTime(new Date()) }}</p>
<p class="p1 p3 margint20">LinkWechat 企业微信SCRM</p>
<p class="p1 p3 margint20">{{ lwConfig.SYSTEM_NAME_ALL }}</p>
<p class="p2 p4">
版本信息:开源
<span class="fr">可用期限:永久</span>
......@@ -243,56 +243,56 @@ export default {
{
name: '企业客户',
url: '/customerManage/customer',
img: require('@/assets/index/kehgl.png')
img: require('@/assets/index/kehgl.png'),
},
{
name: '员工活码',
url: '/drainageCode/staff',
img: require('@/assets/index/neircd.png')
img: require('@/assets/index/neircd.png'),
},
{
name: '新增群发',
url: '/customerMaintain/groupMessage/add',
img: require('@/assets/index/renwb.png')
img: require('@/assets/index/renwb.png'),
},
{
name: '任务宝',
url: '/application/taskGroup',
img: require('@/assets/index/xiaoxqf.png')
img: require('@/assets/index/xiaoxqf.png'),
},
{
name: '新客拉群',
url: '/communityOperating/newCustomer',
img: require('@/assets/index/yuanghm.png')
img: require('@/assets/index/yuanghm.png'),
},
{
name: '素材中心',
url: '/customerMaintain/material',
img: require('@/assets/index/zidgl.png')
img: require('@/assets/index/zidgl.png'),
},
{
name: '关键词群',
url: '/communityOperating/keywords',
img: require('@/assets/index/yuanghm.png')
img: require('@/assets/index/yuanghm.png'),
},
{
name: '会话存档',
url: '/riskControl/conversation/content',
img: require('@/assets/index/zidgl.png')
}
img: require('@/assets/index/zidgl.png'),
},
],
table: {
userCount: 0,
customerCount: 0,
groupCount: 0,
groupMemberCount: 0
groupMemberCount: 0,
},
erchatsTable: {},
allData: {},
time: '昨天',
uptime: '',
timeType: 'today',
durationCount: 2600
durationCount: 2600,
}
},
mounted() {
......@@ -308,7 +308,7 @@ export default {
let json = {
today: '昨天',
week: '上周',
month: '上月'
month: '上月',
}
this.time = json[type]
this.erchatsTable = this.allData[type]
......@@ -341,7 +341,7 @@ export default {
arr1: [],
arr2: [],
arr3: [],
xData: []
xData: [],
}
let series = []
this.erchatsTable.dataList.forEach((a) => {
......@@ -367,8 +367,8 @@ export default {
// }
// },
textStyle: {
color: '#fff' // 主标题文字的颜色。
}
color: '#fff', // 主标题文字的颜色。
},
})
}
this.drawLine(data.xData, series)
......@@ -386,16 +386,16 @@ export default {
charts.setOption({
color: ['#088AEE', '#E74E59', '#14BF48', '#FA7216'],
tooltip: {
trigger: 'axis'
trigger: 'axis',
},
legend: {
data: ['新增客户数', '新增客群数', '群新增人数', '流失客户数']
data: ['新增客户数', '新增客群数', '群新增人数', '流失客户数'],
},
grid: {
left: '3%',
right: '4%',
bottom: '3%',
containLabel: true
containLabel: true,
},
xAxis: {
type: 'category',
......@@ -403,19 +403,19 @@ export default {
data: xData,
axisLine: {
lineStyle: {
color: '#ccc'
}
}
color: '#ccc',
},
},
},
yAxis: {
type: 'value',
axisLine: {
lineStyle: {
color: '#ccc'
}
}
color: '#ccc',
},
},
},
series
series,
})
},
refresh() {
......@@ -440,8 +440,8 @@ export default {
} else {
return '-'
}
}
}
},
},
}
</script>
<style lang="scss" scoped>
......
......@@ -16,7 +16,7 @@ export default {
createBy: '', // 创建人
keywords: '', // 关键词
beginTime: '', // 创建开始时间
endTime: '' // 创建结束时间
endTime: '', // 创建结束时间
},
queryCreateByName: '',
dateRange: [], // 添加日期
......@@ -27,7 +27,7 @@ export default {
dialogHowToConfig: false,
disabled: false,
loading: false,
clipboard: null
clipboard: null,
}
},
watch: {
......@@ -39,7 +39,7 @@ export default {
} else {
;[this.query.beginTime, this.query.endTime] = dateRange
}
}
},
},
created() {
this.getList(1)
......@@ -57,7 +57,7 @@ export default {
this.$notify({
title: '成功',
message: '链接已复制到剪切板,可粘贴。',
type: 'success'
type: 'success',
})
})
......@@ -88,7 +88,7 @@ export default {
goRoute(id) {
this.$router.push({
path: 'keywordsAev',
query: { id: id }
query: { id: id },
})
},
// 重置查询参数
......@@ -105,7 +105,7 @@ export default {
this.$confirm('确认删除当前数据?删除操作无法撤销,请谨慎操作。', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
type: 'warning',
})
.then(() => {
const ids = this.multiSelect.map((t) => t.taskId)
......@@ -124,7 +124,7 @@ export default {
this.$confirm('确认删除当前数据?删除操作无法撤销,请谨慎操作。', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
type: 'warning',
})
.then(() => {
remove(id + '').then((res) => {
......@@ -154,8 +154,8 @@ export default {
// 处理多选
handleSelectionChange(val) {
this.multiSelect = val
}
}
},
},
}
</script>
......@@ -311,13 +311,14 @@ export default {
title="配置方法"
:visible.sync="dialogHowToConfig"
width="500px"
style="margin-bottom: 7vh;"
style="margin-bottom: 7vh"
:close-on-click-modal="false"
>
<div class="help">
<div class="step">
<p>
1、登录企业微信官方后台,进入应用管理,点击 LinkWeChat,再点击【配置到聊天工具栏】。
1、登录企业微信官方后台,进入应用管理,点击
{{ lwConfig.SYSTEM_NAME }},再点击【配置到聊天工具栏】。
</p>
<el-image :src="require('@/assets/example/keywordHelp1.png')"></el-image>
</div>
......@@ -326,16 +327,12 @@ export default {
<el-image :src="require('@/assets/example/keywordHelp2.png')"></el-image>
</div>
<div class="step">
<p>
3、点击【配置页面】后,在弹窗中,输入页面名称及链接,并确定即可。进入配置页面。
</p>
<p>3、点击【配置页面】后,在弹窗中,输入页面名称及链接,并确定即可。进入配置页面。</p>
<el-image :src="require('@/assets/example/keywordHelp3.png')"></el-image>
</div>
</div>
<div slot="footer">
<el-button type="primary" @click="dialogHowToConfig = false">
我知道了
</el-button>
<el-button type="primary" @click="dialogHowToConfig = false"> 我知道了 </el-button>
</div>
</el-dialog>
</div>
......
......@@ -6,7 +6,7 @@
<img class="login-bg3" src="@/assets/image/login_bg3.png" alt="" />
<div class="login-form-wrap">
<el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form">
<h3 class="title">LinkWeChat</h3>
<h3 class="title">{{ lwConfig.SYSTEM_NAME }}</h3>
<el-form-item prop="username">
<el-input
v-model="loginForm.username"
......@@ -80,7 +80,7 @@
<!-- 底部 -->
<div class="el-login-footer">
<span>Copyright © 2018-2021 LinkWeChat All Rights Reserved.</span>
<span>{{ lwConfig.COPYRIGHT }}</span>
</div>
<!-- <el-dialog
......
......@@ -159,7 +159,7 @@
<div class="inedx_r_top_t">
<p class="p1">{{ $store.state.user.companyName }},欢迎登陆本系统</p>
<p class="p2">登录时间:{{ parseTime(new Date()) }}</p>
<p class="p1 p3 margint20">LinkWechat 企业微信SCRM</p>
<p class="p1 p3 margint20">{{ lwConfig.SYSTEM_NAME_ALL }}</p>
<p class="p2 p4">
版本信息:开源
<span class="fr">可用期限:永久</span>
......@@ -239,56 +239,56 @@ export default {
{
name: '企业客户',
url: '/customerManage/customer',
img: require('@/assets/index/kehgl.png')
img: require('@/assets/index/kehgl.png'),
},
{
name: '员工活码',
url: '/drainageCode/staff',
img: require('@/assets/index/neircd.png')
img: require('@/assets/index/neircd.png'),
},
{
name: '新增群发',
url: '/customerMaintain/groupMessage/add',
img: require('@/assets/index/renwb.png')
img: require('@/assets/index/renwb.png'),
},
{
name: '任务宝',
url: '/application/taskGroup',
img: require('@/assets/index/xiaoxqf.png')
img: require('@/assets/index/xiaoxqf.png'),
},
{
name: '新客拉群',
url: '/communityOperating/newCustomer',
img: require('@/assets/index/yuanghm.png')
img: require('@/assets/index/yuanghm.png'),
},
{
name: '素材中心',
url: '/customerMaintain/material',
img: require('@/assets/index/zidgl.png')
img: require('@/assets/index/zidgl.png'),
},
{
name: '关键词群',
url: '/communityOperating/keywords',
img: require('@/assets/index/yuanghm.png')
img: require('@/assets/index/yuanghm.png'),
},
{
name: '会话存档',
url: '/riskControl/conversation/content',
img: require('@/assets/index/zidgl.png')
}
img: require('@/assets/index/zidgl.png'),
},
],
table: {
userCount: 0,
customerCount: 0,
groupCount: 0,
groupMemberCount: 0
groupMemberCount: 0,
},
erchatsTable: {},
allData: {},
time: '昨天',
uptime: '',
timeType: 'today',
durationCount: 2600
durationCount: 2600,
}
},
mounted() {
......@@ -304,7 +304,7 @@ export default {
let json = {
today: '昨天',
week: '上周',
month: '上月'
month: '上月',
}
this.time = json[type]
this.erchatsTable = this.allData[type]
......@@ -337,7 +337,7 @@ export default {
arr1: [],
arr2: [],
arr3: [],
xData: []
xData: [],
}
let series = []
this.erchatsTable.dataList.forEach((a) => {
......@@ -363,8 +363,8 @@ export default {
// }
// },
textStyle: {
color: '#fff' // 主标题文字的颜色。
}
color: '#fff', // 主标题文字的颜色。
},
})
}
this.drawLine(data.xData, series)
......@@ -382,16 +382,16 @@ export default {
charts.setOption({
color: ['#088AEE', '#E74E59', '#14BF48', '#FA7216'],
tooltip: {
trigger: 'axis'
trigger: 'axis',
},
legend: {
data: ['新增客户数', '新增客群数', '群新增人数', '流失客户数']
data: ['新增客户数', '新增客群数', '群新增人数', '流失客户数'],
},
grid: {
left: '3%',
right: '4%',
bottom: '3%',
containLabel: true
containLabel: true,
},
xAxis: {
type: 'category',
......@@ -399,19 +399,19 @@ export default {
data: xData,
axisLine: {
lineStyle: {
color: '#ccc'
}
}
color: '#ccc',
},
},
},
yAxis: {
type: 'value',
axisLine: {
lineStyle: {
color: '#ccc'
}
}
color: '#ccc',
},
},
},
series
series,
})
},
refresh() {
......@@ -436,8 +436,8 @@ export default {
} else {
return '-'
}
}
}
},
},
}
</script>
<style lang="scss" scoped>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!