Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 5a248ec9
authored
Jun 19, 2023
by
ext.wangyuman1
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
朋友圈模块
2 parents
1f110bd8
f5005800
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
75 changed files
with
401 additions
and
316 deletions
README.md
vue3-lw-pc/env.js
vue3-lw-pc/public/static/css/common.css
vue3-lw-pc/public/static/css/var.css
vue3-lw-pc/src/api/marketStrategy/journey.js
vue3-lw-pc/src/api/marketStrategy/people.js
vue3-lw-pc/src/components/ChatContent.vue
vue3-lw-pc/src/components/ContentCenter/AddMaterial.vue
vue3-lw-pc/src/components/ContentCenter/PreviewInPhone.vue
vue3-lw-pc/src/components/Pagination.vue
vue3-lw-pc/src/components/TextareaExtend.vue
vue3-lw-pc/src/components/Upload.vue
vue3-lw-pc/src/components/common/BaiduMap.vue
vue3-lw-pc/src/config.js
vue3-lw-pc/src/directive/permission/hasPermi.js
vue3-lw-pc/src/directive/permission/hasRole.js
vue3-lw-pc/src/directive/preventReClick.js
vue3-lw-pc/src/layout/components/Sidebar/index.vue
vue3-lw-pc/src/layout/components/TagsView/index.vue
vue3-lw-pc/src/layout/components/TopBar/Logo.vue
vue3-lw-pc/src/layout/components/TopBar/TopMenu.vue
vue3-lw-pc/src/layout/components/TopBar/index.vue
vue3-lw-pc/src/layout/index.vue
vue3-lw-pc/src/layout/visitor.vue
vue3-lw-pc/src/main.js
vue3-lw-pc/src/stores/index.js
vue3-lw-pc/src/styles/element-ui.scss
vue3-lw-pc/src/styles/index.scss
vue3-lw-pc/src/utils/baiduMap.js
vue3-lw-pc/src/utils/permission.js
vue3-lw-pc/src/utils/request.js
vue3-lw-pc/src/views/application/shortLinkPopularize/components/IdentityAttachment.vue
vue3-lw-pc/src/views/contentCenter/basicMaterial/applet.vue
vue3-lw-pc/src/views/contentCenter/basicMaterial/detail.vue
vue3-lw-pc/src/views/contentCenter/basicMaterial/image.vue
vue3-lw-pc/src/views/contentCenter/basicMaterial/imageText.vue
vue3-lw-pc/src/views/contentCenter/components/PosterAdd.vue
vue3-lw-pc/src/views/contentCenter/corporateScripts/Material.vue
vue3-lw-pc/src/views/contentCenter/corporateScripts/Statistics.vue
vue3-lw-pc/src/views/contentCenter/corporateScripts/index.vue
vue3-lw-pc/src/views/contentCenter/serviceScripts/Material.vue
vue3-lw-pc/src/views/contentCenter/serviceScripts/Statistics.vue
vue3-lw-pc/src/views/contentCenter/serviceScripts/index.vue
vue3-lw-pc/src/views/contentCenter/templateGroup/index.vue
vue3-lw-pc/src/views/contentCenter/templateSop/index.vue
vue3-lw-pc/src/views/contentCenter/trackMaterial/article.vue
vue3-lw-pc/src/views/contentCenter/trackMaterial/detail.vue
vue3-lw-pc/src/views/contentCenter/trackMaterial/file.vue
vue3-lw-pc/src/views/contentCenter/trackMaterial/poster.vue
vue3-lw-pc/src/views/contentCenter/trackMaterial/video.vue
vue3-lw-pc/src/views/conversation/content/component/chatList.vue
vue3-lw-pc/src/views/conversation/content/component/chatListClassTab.vue
vue3-lw-pc/src/views/conversation/content/index.vue
vue3-lw-pc/src/views/conversation/quality/component/chatList.vue
vue3-lw-pc/src/views/customerManage/customer/infoTab.vue
vue3-lw-pc/src/views/customerManage/lossRemind.vue
vue3-lw-pc/src/views/drainageCode/components/IdentityAttachment.vue
vue3-lw-pc/src/views/drainageCode/highSeas/index.vue
vue3-lw-pc/src/views/drainageCode/highSeas/statistics.vue
vue3-lw-pc/src/views/drainageCode/pullNews/cardTable.vue
vue3-lw-pc/src/views/drainageCode/pullNews/liveCodeInfo.vue
vue3-lw-pc/src/views/drainageCode/pullNews/pullNews.vue
vue3-lw-pc/src/views/drainageCode/smartForms/build/DraggableItem.vue
vue3-lw-pc/src/views/drainageCode/smartForms/build/RightPanel.vue
vue3-lw-pc/src/views/drainageCode/smartForms/build/formsDetail.vue
vue3-lw-pc/src/views/drainageCode/smartForms/build/index.vue
vue3-lw-pc/src/views/drainageCode/staff/add.vue
vue3-lw-pc/src/views/drainageCode/staff/detail.vue
vue3-lw-pc/src/views/drainageCode/store/add.vue
vue3-lw-pc/src/views/enterpriseManage/roles/index.vue
vue3-lw-pc/src/views/error/401.vue
vue3-lw-pc/src/views/error/404.vue
vue3-lw-pc/src/views/intelligentShortLink/index.vue
vue3-lw-pc/src/views/redPacketTool/enterprisePacket.vue
vue3-lw-pc/src/views/system/user/profile/userAvatar.vue
README.md
View file @
5a248ec
**本仓库为 LinkWeChat 的前端源码库,具体说明及后端库请移步至 [LinkWeChat](https://gitee.com/LinkWeChat/link-wechat) 查看。**
**本仓库为 LinkWeChat 的前端源码库,具体项目说明及后端库请移步至 [LinkWeChat](https://gitee.com/LinkWeChat/link-wechat) 查看。**
## 更新日志
### v5.0.0
2023.
06.16
1.
pc 管理端由 vue cli + vue2 生态 升级为 vite+vue3 生态版本,同时 vue3-master 替换 master 成为默认分支
2.
v4.8 是当前、同时也是最后一个 v4.x 的次级版本更新。 pc 管理端 vue2 版本由此 2023.06.16 日进入维护状态,并持续到 vue2 官方生命周期终止,即 2023 年 12 月 31 日。在此期间,将会提供必要的 bug 修复和安全修复,但不再提供新功能特性。在此之后,v4 在已有的分发渠道中仍然可用,但不再进行更新,包括对安全问题和浏览器兼容性问题的修复等。
3.
考虑移动端 vue3 生态的兼容性,小程序端和移动 web 端暂不升级 vue3,且暂无升级计划
4.
优化系统性能,部分 UI 和交互体验
vue3-lw-pc/env.js
View file @
5a248ec
...
...
@@ -14,7 +14,7 @@ const envs = {
},
test
:
{
DOMAIN
:
'https://demo.linkwechat.net'
,
BASE_URL
:
'/
vue3/
'
,
// 路由基础路径
BASE_URL
:
'/'
,
// 路由基础路径
BASE_API
:
'https://demo.linkwechat.net/linkwechat-api'
,
SYSTEM_API
:
'/linkwechat-api'
,
VIEW_URL
:
'https://saas.pardigital.cn/file-view/onlinePreview?url='
,
...
...
@@ -23,7 +23,7 @@ const envs = {
},
production
:
{
DOMAIN
:
'https://demo.linkwechat.net'
,
BASE_URL
:
'/
vue3/
'
,
// 路由基础路径
BASE_URL
:
'/'
,
// 路由基础路径
BASE_API
:
'https://demo.linkwechat.net/linkwechat-api'
,
VIEW_URL
:
'https://saas.pardigital.cn/file-view/onlinePreview?url='
,
SYSTEM_API
:
'/linkwechat-api'
,
...
...
vue3-lw-pc/public/static/css/common.css
View file @
5a248ec
...
...
@@ -359,14 +359,14 @@ li {
}
/* 暗黑模式 Dark mode */
/*
@media (prefers-color-scheme: dark) {
@media
(
prefers-color-scheme
:
dark
)
{
body
,
img
,
video
{
filter: invert(1) hue-rotate(180deg);
filter
:
invert
(
1
)
brightness
(
1.5
)
hue-rotate
(
180deg
);
}
不使用暗黑模式
/* 不使用暗黑模式 */
.no-dark
{
position
:
relative
;
}
...
...
@@ -376,6 +376,6 @@ li {
display
:
block
;
height
:
100%
;
width
:
100%
;
backdrop-filter: invert(1) hue-rotate(180deg);
backdrop-filter
:
invert
(
1
)
brightness
(
1.5
)
hue-rotate
(
180deg
);
}
}
*/
}
vue3-lw-pc/public/static/css/var.css
View file @
5a248ec
...
...
@@ -10,12 +10,15 @@ html {
--color-success
:
#07c160
;
--color-warning
:
#faad14
;
--color-danger
:
#eb5e12
;
--border-radius
:
8px
;
/* 常规圆角 */
--border-radius-small
:
4px
;
/* 小圆角 */
--border-radius-big
:
16px
;
/* 大圆角 */
--card-margin
:
16px
;
/* 卡片间距 */
--top-nav-heght
:
64px
;
/* 顶部导航条高度 */
--font-black
:
#1d2129
;
/* 通用字体黑色 */
--font-white
:
#fff
;
/* 通用字体白色 */
}
/* 项目定制原子类 */
...
...
vue3-lw-pc/src/api/marketStrategy/journey.js
View file @
5a248ec
import
request
from
'@/utils/request'
const
service
=
window
.
lwConfig
.
services
.
system
+
window
.
lwConfig
.
services
.
wecom
+
'/strategic/journey'
const
service
=
window
.
lwConfig
.
services
.
system
+
window
.
lwConfig
.
services
.
wecom
+
'/strategic/journey'
// import { get, post } from '@/plugins/axios'
...
...
@@ -19,8 +20,8 @@ export function getCrowdPackDetail(id) {
// 计划列表查询接口
// name 任务名称 String 支持模糊查询
// startDate 开始日期 String
YYYY-MM-DD
// endDate 结束日期 String
YYYY-MM-DD
// startDate 开始日期 String
yyyy-MM-dd
// endDate 结束日期 String
yyyy-MM-dd
// status 状态 number 0:待完善,1:未开始,2:待运行,3:运行中,4:已暂停,5:已停止,6:正常结束,7:异常结束
// pageNum 页码 number
// pageSize 页大小 number
...
...
vue3-lw-pc/src/api/marketStrategy/people.js
View file @
5a248ec
...
...
@@ -84,3 +84,10 @@ export function crowdAnalyse(data) {
params
:
data
,
})
}
export
function
deleteCategory
(
ids
)
{
return
request
({
url
:
base
+
'/strategic/crowd/categoryDel/'
+
ids
,
method
:
'delete'
,
})
}
vue3-lw-pc/src/components/ChatContent.vue
View file @
5a248ec
...
...
@@ -14,7 +14,7 @@ export default {
default
:
()
=>
({}),
},
},
components
:
{
Voice
},
components
:
{
Voice
,
BaiduMap
:
defineAsyncComponent
(()
=>
import
(
'@/components/common/BaiduMap'
))
},
data
()
{
return
{}
},
...
...
@@ -108,17 +108,13 @@ export default {
</video>
</
template
>
<div
v-else-if=
"message.msgType === 'location'"
class=
"msgtypecard"
>
<div
class=
"card-content"
style=
"height: 100%; width: 100%"
>
<el-amap
ref=
"map"
vid=
"amapDemo"
:center=
"[JSON.parse(message.contact).longitude, JSON.parse(message.contact).latitude]"
:zoom=
"14"
class=
"amap-demo"
style=
"height: 120px; width: 250px; pointer-events: none"
>
<el-amap-marker
:position=
"[JSON.parse(message.contact).longitude, JSON.parse(message.contact).latitude]"
></el-amap-marker>
</el-amap>
<div
class=
"card-content"
>
<BaiduMap
isDetail
isOnlyShowMap
mapWidth=
"300px"
mapHeight=
"120px"
:initData=
"JSON.parse(message.contact)"
></BaiduMap>
</div>
<div
class=
"card-foot"
>
{{ content }}
</div>
</div>
...
...
@@ -193,7 +189,7 @@ export default {
}
.message-right
{
@extend
.mes;
color
:
#fff
;
color
:
var
(
--font-white
,
#fff
)
;
margin-right
:
10px
;
background-color
:
var
(
--color
);
border-top-right-radius
:
0
;
...
...
@@ -234,6 +230,7 @@ export default {
line-height
:
1.5
;
//
text-indent
:
10px
;
color
:
#333
;
z-index
:
-1
;
.card--link-title
{
font-size
:
15px
;
font-weight
:
500
;
...
...
vue3-lw-pc/src/components/ContentCenter/AddMaterial.vue
View file @
5a248ec
...
...
@@ -28,8 +28,7 @@
<el-cascader
v-model=
"talkForm.categoryId"
:options=
"treeData[0].children"
:props=
"groupProps"
></el-cascader>
:props=
"groupProps"
></el-cascader>
</el-form-item>
<el-form-item
label=
"话术标题"
...
...
@@ -112,8 +111,7 @@
'后重新尝试'
"
placement=
"top-start"
:disabled=
"talkList.length < maxlength"
>
:disabled=
"talkList.length < maxlength"
>
<
template
#
reference
>
<el-dropdown
@
command=
"moveGroup"
...
...
@@ -168,14 +166,12 @@
'后重新尝试'
"
placement=
"top-start"
:disabled=
"talkList.length < maxlength"
>
:disabled=
"talkList.length < maxlength"
>
<
template
#
reference
>
<div
class=
"ml20"
>
<el-button
@
click=
"choseCenter"
:disabled=
"talkList.length > maxlength || talkList.length === maxlength"
>
:disabled=
"talkList.length > maxlength || talkList.length === maxlength"
>
从素材中心选择
</el-button>
</div>
...
...
@@ -232,8 +228,7 @@
@
dialogClose=
"dialogClose"
:materialTalkList=
"talkList"
:moduleType=
"moduleType"
:maxlength=
"maxlength"
/>
:maxlength=
"maxlength"
/>
<!-- 模板库 -->
<el-dialog
:title=
"otherType === 2 ? '选择群发模板' : '选择欢迎语模板'"
...
...
@@ -241,8 +236,7 @@
width=
"60%"
append-to-body
:close-on-click-modal=
"false"
v-if=
"welcomVisible"
>
v-if=
"welcomVisible"
>
<TemplateLibrary
@
changeObj=
"changeObj"
:isGroup=
"otherType === 2"
/>
<
template
#
footer
>
<div
class=
"dialog-footer"
>
...
...
@@ -267,8 +261,7 @@
:defaultValues=
"selectedUserList"
v-model:visible=
"dialogVisibleSelectUser"
title=
"选择使用员工"
@
success=
"selectedUser"
></SelectUser>
@
success=
"selectedUser"
></SelectUser>
</div>
</template>
...
...
@@ -915,12 +908,12 @@ export default {
}
}
::v-deep
.el-button.is-disabled
{
color
:
#fff
;
color
:
var
(
--font-white
,
#fff
)
;
background-color
:
#cccccc
;
border-color
:
#cccccc
;
}
::v-deep
.el-dropdown
[
disabled
]
{
color
:
#fff
;
color
:
var
(
--font-white
,
#fff
)
;
background-color
:
#cccccc
;
border-color
:
#cccccc
;
}
...
...
vue3-lw-pc/src/components/ContentCenter/PreviewInPhone.vue
View file @
5a248ec
...
...
@@ -242,7 +242,7 @@ export default {
border-radius
:
4px
;
.red-text
{
font-size
:
14px
;
color
:
#fff
;
color
:
var
(
--font-white
,
#fff
)
;
margin-left
:
56px
;
width
:
98px
;
white-space
:
nowrap
;
//
强制一行
...
...
vue3-lw-pc/src/components/Pagination.vue
View file @
5a248ec
...
...
@@ -2,7 +2,7 @@
<div
class=
"pagination-container"
ref=
"pagination"
v-if=
"
$attrs['hide-on-single-page'] === false
|| $attrs.total > limit"
>
v-if=
"
['false', 'undefined'].includes($attrs['hide-on-single-page'] + '')
|| $attrs.total > limit"
>
<el-pagination
v-bind=
"$attrs"
:background=
"background"
...
...
vue3-lw-pc/src/components/TextareaExtend.vue
View file @
5a248ec
...
...
@@ -2,6 +2,7 @@
<
script
>
export
default
{
name
:
''
,
inheritAttrs
:
false
,
props
:
{
modelValue
:
''
,
// ['emoji','insertCustomerNickName']
...
...
@@ -42,6 +43,7 @@ export default {
</
script
>
<
template
>
<div>
<el-input
ref=
"textarea"
v-model=
"proxyValue"
type=
"textarea"
v-bind=
"$attrs"
></el-input>
<div
class=
"mt10"
>
<SelectEmoji
v-if=
"toolbar.includes('emoji')"
@
select=
"insertContent"
>
...
...
@@ -55,6 +57,7 @@ export default {
插入客户昵称
</el-button>
</div>
</div>
</template>
<
style
lang=
"scss"
scoped
>
...
...
vue3-lw-pc/src/components/Upload.vue
View file @
5a248ec
...
...
@@ -716,7 +716,7 @@ export default {
width
:
300px
;
height
:
150px
;
box-sizing
:
border-box
;
color
:
#fff
;
color
:
var
(
--font-white
,
#fff
)
;
background-color
:
#000
;
position
:
relative
;
padding
:
0
;
...
...
@@ -750,7 +750,7 @@ export default {
top
:
0
;
cursor
:
pointer
;
text-align
:
center
;
color
:
#fff
;
color
:
var
(
--font-white
,
#fff
)
;
opacity
:
0
;
font-size
:
20px
;
transition
:
opacity
0.3s
;
...
...
vue3-lw-pc/src/components/common/BaiduMap.vue
View file @
5a248ec
<
template
>
<div>
<el-form-item
label=
"详细地址"
prop=
"address"
>
<el-form-item
label=
"详细地址"
prop=
"address"
v-if=
"!isOnlyShowMap"
>
<el-autocomplete
:disabled=
"isDetail"
@
change=
"setChange"
v-model=
"form.address"
style=
"width: 500px"
style=
"width: 500px
;
"
popper-class=
"autoAddressClass"
:fetch-suggestions=
"querySearchAsync"
:trigger-on-focus=
"false"
placeholder=
"详细地址"
clearable
@
select=
"handleSelect"
>
@
select=
"handleSelect"
>
<template
#
default=
"
{ item }">
<el-icon-search
class=
"el-icon-search fl mgr10"
/>
<div
style=
"overflow: hidden"
>
<div
style=
"overflow: hidden
;
"
>
<div
class=
"title"
>
{{
item
.
title
}}
</div>
<span
class=
"address ellipsis"
>
{{
item
.
address
}}
</span>
</div>
</
template
>
</el-autocomplete>
</el-form-item>
<el-form-item
label=
""
>
<div
id=
"map-container"
style=
"width: 500px; height: 300px
"
/>
<el-form-item
label=
""
:label-width=
"isOnlyShowMap ? 0 : ''"
:style=
"isOnlyShowMap && 'margin-bottom: 0'"
>
<div
ref=
"bMap"
:style=
"{ width: mapWidth, height: mapHeight }
"
/>
</el-form-item>
</div>
</template>
<
script
>
/* eslint-disable */
import
loadBMap
from
'@/utils/baiduMap.js'
export
default
{
/* eslint-disable */
import
loadBMap
from
'@/utils/baiduMap.js'
export
default
{
data
()
{
return
{
form
:
{
...
...
@@ -41,28 +42,46 @@ export default {
addrPoint
:
{
// 详细地址经纬度
lng
:
0
,
lat
:
0
,
},
lat
:
0
}
},
map
:
''
,
// 地图实例
mk
:
''
,
// Marker实例
locationPoint
:
null
,
locationPoint
:
null
}
},
props
:
{
initData
:
{
type
:
Object
,
default
:
()
=>
{},
default
:
()
=>
({
// area: '', // 省市区
// address: '', // 详细地址
// longitude: '', // 经度
// latitude: '', // 纬度
})
},
mapWidth
:
{
type
:
String
,
default
:
'500px'
},
mapHeight
:
{
type
:
String
,
default
:
'300px'
},
isDetail
:
{
type
:
Boolean
,
default
:
false
,
default
:
false
},
// 是否只显示地图
isOnlyShowMap
:
{
type
:
Boolean
,
default
:
false
},
watch
:
{
initData
:
{
handler
(
value
)
{
if
(
this
.
initData
.
area
&&
!
this
.
initData
.
address
)
{
this
.
form
.
address
=
''
this
.
getPoint
(
this
.
initData
.
area
)
this
.
initMap
()
}
...
...
@@ -78,12 +97,13 @@ export default {
this
.
initMap
()
}
},
deep
:
true
,
},
deep
:
true
}
}
},
async
mounted
()
{
// 百度地图AK: GeDsF2XGs01U0bUSpFIUCmvyNoYuGC3P
await
loadBMap
(
'GeDsF2XGs01U0bUSpFIUCmvyNoYuGC3P'
)
// 加载引入BMap
await
loadBMap
(
)
// 加载引入BMap
if
(
this
.
initData
.
address
)
{
this
.
form
.
address
=
this
.
initData
.
address
if
(
this
.
initData
.
longitude
&&
this
.
initData
.
latitude
)
{
...
...
@@ -154,17 +174,17 @@ export default {
// alert('您选择的地址没有解析到结果!')
}
},
that
.
getCity
(
str
),
that
.
getCity
(
str
)
)
},
// 初始化地图
initMap
()
{
var
that
=
this
// 1、挂载地图
this
.
map
=
new
BMap
.
Map
(
'map-container'
,
{
enableMapClick
:
false
})
this
.
map
=
new
BMap
.
Map
(
this
.
$refs
.
bMap
,
{
enableMapClick
:
false
})
var
point
=
new
BMap
.
Point
(
this
.
form
.
addrPoint
.
lng
||
117.2334414073489
,
this
.
form
.
addrPoint
.
lat
||
31.826578293886
,
this
.
form
.
addrPoint
.
lat
||
31.826578293886
)
this
.
map
.
centerAndZoom
(
point
,
19
)
// 3、设置图像标注并绑定拖拽标注结束后事件
...
...
@@ -175,7 +195,7 @@ export default {
})
// 4、添加(右上角)平移缩放控件
this
.
map
.
addControl
(
new
BMap
.
NavigationControl
({
anchor
:
BMAP_ANCHOR_TOP_RIGHT
,
type
:
BMAP_NAVIGATION_CONTROL_SMALL
}),
new
BMap
.
NavigationControl
({
anchor
:
BMAP_ANCHOR_TOP_RIGHT
,
type
:
BMAP_NAVIGATION_CONTROL_SMALL
})
)
// 5、添加(左下角)定位控件
var
geolocationControl
=
new
BMap
.
GeolocationControl
({
anchor
:
BMAP_ANCHOR_BOTTOM_LEFT
})
...
...
@@ -212,7 +232,7 @@ export default {
that
.
locationPoint
=
new
BMap
.
Point
(
117.2334414073489
,
31.826578293886
)
}
},
{
enableHighAccuracy
:
true
},
{
enableHighAccuracy
:
true
}
)
}
},
...
...
@@ -224,7 +244,10 @@ export default {
geco
.
getLocation
(
point
,
function
(
res
)
{
that
.
mk
.
setPosition
(
point
)
that
.
map
.
panTo
(
point
)
that
.
form
.
address
=
that
.
splitName
(
res
.
address
)
that
.
form
.
address
=
res
.
addressComponents
.
street
+
res
.
addressComponents
.
streetNumber
that
.
form
.
province
=
res
.
addressComponents
.
province
that
.
form
.
city
=
res
.
addressComponents
.
city
that
.
form
.
area
=
res
.
addressComponents
.
district
that
.
form
.
addrPoint
=
point
that
.
onSubmit
()
})
...
...
@@ -243,7 +266,7 @@ export default {
}
else
{
cb
(
s
)
}
},
}
}
var
local
=
new
BMap
.
LocalSearch
(
this
.
map
,
options
)
local
.
search
(
str
)
...
...
@@ -318,21 +341,21 @@ export default {
address
:
''
,
addrPoint
:
{
lng
:
0
,
lat
:
0
,
},
lat
:
0
}
}
this
.
onSubmit
()
}
},
onSubmit
()
{
this
.
$emit
(
'update'
,
this
.
form
)
},
},
}
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.autoAddressClass
{
.autoAddressClass
{
li
{
i.el-icon-search
{
margin-top
:
11px
;
...
...
@@ -351,5 +374,5 @@ export default {
margin-bottom
:
5px
;
}
}
}
}
</
style
>
vue3-lw-pc/src/config.js
View file @
5a248ec
...
...
@@ -28,6 +28,7 @@ const common = {
DEFAULT_H5_WORDE
:
env
.
DOMAIN
+
'/static/WORD.png'
,
DEFAULT_H5_PPT
:
env
.
DOMAIN
+
'/static/PPT.png'
,
PRIVIEW_URL
:
env
.
VIEW_URL
,
BAIDU_MAP_KEY
:
'GeDsF2XGs01U0bUSpFIUCmvyNoYuGC3P'
,
// 百度地图key
MICRO_APPS
:
{
store
:
{
...
...
@@ -42,7 +43,7 @@ const common = {
// 以下仅用于系统信息展示,不作为项目变量使用,请勿在代码中使用
const
project
=
{
_version
:
'v5.0.0-rc.2
'
,
// 当前版本信息
// _version: 'v5.0.0
', // 当前版本信息
_packDateTime
:
__PACK_DATETIME__
,
// 打包时间
_env
:
process
.
env
.
VUE_APP_ENV
,
// 前端系统环境模式
}
...
...
vue3-lw-pc/src/directive/permission/hasPermi.js
View file @
5a248ec
...
...
@@ -2,13 +2,13 @@
* 操作权限处理
*/
import
store
from
'@/stores'
import
store
s
from
'@/stores'
export
default
{
inser
ted
(
el
,
binding
,
vnode
)
{
moun
ted
(
el
,
binding
,
vnode
)
{
const
{
value
}
=
binding
const
all_permission
=
'*:*:*'
const
permissions
=
store
&&
store
.
permissions
const
permissions
=
store
s
()
&&
stores
()
.
permissions
if
(
value
&&
value
instanceof
Array
&&
value
.
length
>
0
)
{
const
permissionFlag
=
value
...
...
vue3-lw-pc/src/directive/permission/hasRole.js
View file @
5a248ec
...
...
@@ -2,13 +2,13 @@
* 角色权限处理
*/
import
store
from
'@/stores'
import
store
s
from
'@/stores'
export
default
{
inser
ted
(
el
,
binding
,
vnode
)
{
moun
ted
(
el
,
binding
,
vnode
)
{
const
{
value
}
=
binding
const
super_admin
=
'admin'
const
roles
=
store
&&
store
.
roles
const
roles
=
store
s
()
&&
stores
()
.
roles
if
(
value
&&
value
instanceof
Array
&&
value
.
length
>
0
)
{
const
roleFlag
=
value
...
...
vue3-lw-pc/src/directive/preventReClick.js
View file @
5a248ec
...
...
@@ -3,7 +3,7 @@
* 使用 <div @click="search" v-preventReClick="1000">搜索</div>
*/
export
default
{
inser
ted
(
el
,
binding
)
{
moun
ted
(
el
,
binding
)
{
el
.
addEventListener
(
'click'
,
()
=>
{
el
.
style
.
pointerEvents
=
'none'
setTimeout
(()
=>
{
...
...
vue3-lw-pc/src/layout/components/Sidebar/index.vue
View file @
5a248ec
...
...
@@ -70,7 +70,7 @@
<
script
>
import
{
mapState
}
from
'pinia'
import
{
appStore
}
from
'@/stores'
import
stores
from
'@/stores'
import
SidebarItem
from
'./SidebarItem'
...
...
@@ -78,7 +78,7 @@ export default {
components
:
{
SidebarItem
},
computed
:
{
// ...mapState(['settings']),
...
mapState
(
appStore
,
[
'permission_routes'
,
'sidebarRouters'
,
'sidebar'
]),
...
mapState
(
stores
,
[
'permission_routes'
,
'sidebarRouters'
,
'sidebar'
]),
activeMenu
()
{
const
route
=
this
.
$route
const
{
meta
,
path
}
=
route
...
...
@@ -187,7 +187,7 @@ export default {
background
:
linear-gradient
(
to
right
,
var
(
--color
)
0%
,
var
(
--color-sub
)
100%
);
box-shadow
:
0px
13px
16px
0px
rgba
(
7
,
168
,
85
,
0.2
);
border-radius
:
8px
;
color
:
#fff
!important
;
color
:
var
(
--font-white
,
#fff
)
!important
;
z-index
:
1
;
}
...
...
@@ -251,7 +251,7 @@ export default {
}
.card
{
//
color
:
#fff
;
//
color
:
var
(
--font-white
,
#fff
)
;
//
padding
:
20px
;
//
background
:
linear-gradient
(
315deg
,
#07c160
0%
,
#90de45
100%
);
//
box-shadow
:
0px
15px
20px
0px
rgba
(
64
,
64
,
64
,
0.12
);
...
...
vue3-lw-pc/src/layout/components/TagsView/index.vue
View file @
5a248ec
...
...
@@ -236,7 +236,7 @@ export default {
}
&
.active
{
background-color
:
#42b983
;
color
:
#fff
;
color
:
var
(
--font-white
,
#fff
)
;
border-color
:
#42b983
;
&::before
{
content
:
''
;
...
...
@@ -294,7 +294,7 @@ export default {
}
&
:hover
{
background-color
:
#b4bccc
;
color
:
#fff
;
color
:
var
(
--font-white
,
#fff
)
;
}
}
}
...
...
vue3-lw-pc/src/layout/components/TopBar/Logo.vue
View file @
5a248ec
...
...
@@ -56,7 +56,7 @@ export default {
&
.sidebar-title
{
display
:
inline-block
;
margin
:
0
;
color
:
#fff
;
color
:
var
(
--font-white
,
#fff
)
;
font-weight
:
600
;
line-height
:
50px
;
font-size
:
14px
;
...
...
vue3-lw-pc/src/layout/components/TopBar/TopMenu.vue
View file @
5a248ec
...
...
@@ -116,10 +116,11 @@ export default {
//
}
//
}
.el-menu--horizontal
{
background-color
:
transparent
;
background-color
:
initial
;
border
:
none
;
white-space
:
nowrap
;
flex
:
1
1
1200px
;
z-index
:
0
;
&
>
.el-menu-item
{
height
:
38px
!important
;
line-height
:
38px
!important
;
...
...
@@ -151,8 +152,8 @@ export default {
&::after
{
opacity
:
1
;
}
background-color
:
transparent
;
color
:
#fff
;
background-color
:
initial
;
color
:
var
(
--font-white
,
#fff
)
;
}
}
}
...
...
@@ -160,7 +161,7 @@ export default {
&
>
.el-menu-item.is-active
,
&
>
.el-submenu.is-active
.el-submenu__title
{
@extend
.g-bg-lg;
color
:
#fff
!important
;
color
:
var
(
--font-white
,
#fff
)
!important
;
border
:
0
;
}
...
...
vue3-lw-pc/src/layout/components/TopBar/index.vue
View file @
5a248ec
...
...
@@ -115,7 +115,7 @@
import
Settings
from
'./Settings'
import
{
isExternal
}
from
'@/utils/validate'
import
{
mapState
}
from
'pinia'
import
{
appStore
}
from
'@/stores'
import
stores
from
'@/stores'
import
Logo
from
'./Logo'
// import { getCustomerServiceQrUrl } from "@/api/login";
...
...
@@ -138,7 +138,7 @@ export default {
Settings
,
},
computed
:
{
...
mapState
(
appStore
,
[
'avatar'
,
'name'
,
'permission_routes'
]),
...
mapState
(
stores
,
[
'avatar'
,
'name'
,
'permission_routes'
]),
},
mounted
()
{
// console.log(this.permission_routes)
...
...
@@ -316,12 +316,12 @@ export default {
//
background
:
#fff
;
//
color
:
var
(
--color
);
.contact-us-icon
{
color
:
#fff
;
color
:
var
(
--font-white
,
#fff
)
;
//
color
:
inherit
;
font-size
:
30px
;
}
//
&
:hover
{
//
color
:
#fff
;
//
color
:
var
(
--font-white
,
#fff
)
;
//
background
:
linear-gradient
(
225deg
,
var
(
--color-sub
)
0%
,
var
(
--color
)
100%
);
//
transition
:
all
0.3s
;
//
}
...
...
vue3-lw-pc/src/layout/index.vue
View file @
5a248ec
<
template
>
<div
:class=
"classObj"
class=
"app-wrapper"
>
<div
class=
"top-wrap
no-dark
"
>
<div
class=
"top-wrap"
>
<TopBar
/>
</div>
<div
class=
"main-wrap"
>
...
...
@@ -28,7 +28,7 @@ import CustomerService from './components/CustomerService'
import
ResizeMixin
from
'./mixin/ResizeHandler'
import
{
mapState
}
from
'pinia'
import
{
appStore
}
from
'@/stores'
import
stores
from
'@/stores'
export
default
{
name
:
'Layout'
,
...
...
@@ -43,7 +43,7 @@ export default {
mixins
:
[
ResizeMixin
],
computed
:
{
// ...mapGetters(['sidebar', 'avatar', 'device']),
...
mapState
(
appStore
,
{
...
mapState
(
stores
,
{
sidebar
:
(
state
)
=>
state
.
app
.
sidebar
,
device
:
(
state
)
=>
state
.
app
.
device
,
showSettings
:
(
state
)
=>
state
.
settings
.
showSettings
,
...
...
@@ -100,6 +100,7 @@ export default {
}
.top-wrap
{
height
:
var
(
--top-nav-heght
);
background
:
#fff
;
}
.main-wrap
{
...
...
vue3-lw-pc/src/layout/visitor.vue
View file @
5a248ec
...
...
@@ -91,7 +91,7 @@ export default {
left
:
50%
;
transform
:
translateX
(
-50%
);
text-align
:
center
;
//
color
:
#fff
;
//
color
:
var
(
--font-white
,
#fff
)
;
font-family
:
Arial
;
font-size
:
12px
;
letter-spacing
:
1px
;
...
...
vue3-lw-pc/src/main.js
View file @
5a248ec
...
...
@@ -99,45 +99,27 @@ Object.assign(app.config.globalProperties, methods, {
// app.use(AudioPlayer)
import
Driver
from
'driver.js'
import
'driver.js/dist/driver.min.css'
app
.
config
.
globalProperties
.
$driver
=
new
Driver
({
className
:
'scoped-class'
,
allowClose
:
false
,
//禁止点击外部关闭
doneBtnText
:
'完成'
,
// 完成按钮标题
closeBtnText
:
'关闭'
,
// 关闭按钮标题
stageBackground
:
'#fff'
,
// 引导对话的背景色
nextBtnText
:
'下一步'
,
// 下一步按钮标题
prevBtnText
:
'上一步'
,
// 上一步按钮标题
keyboardControl
:
false
,
// 禁止键盘控制
// showButtons:false
})
import
VueAMap
,
{
initAMapApiLoader
}
from
'@vuemap/vue-amap'
import
'@vuemap/vue-amap/dist/style.css'
app
.
use
(
VueAMap
)
initAMapApiLoader
({
key
:
'32396af00cd726deed804cf5b63ed2d8'
,
plugin
:
[
'AMap.Autocomplete'
,
'AMap.PlaceSearch'
,
'AMap.Scale'
,
'AMap.OverView'
,
'AMap.ToolBar'
,
'AMap.MapType'
,
'AMap.PolyEditor'
,
'AMap.CircleEditor'
,
],
})
// import Driver from 'driver.js'
// import 'driver.js/dist/driver.min.css'
// app.config.globalProperties.$driver = new Driver({
// className: 'scoped-class',
// allowClose: false, //禁止点击外部关闭
// doneBtnText: '完成', // 完成按钮标题
// closeBtnText: '关闭', // 关闭按钮标题
// stageBackground: '#fff', // 引导对话的背景色
// nextBtnText: '下一步', // 下一步按钮标题
// prevBtnText: '上一步', // 上一步按钮标题
// keyboardControl: false, // 禁止键盘控制
// // showButtons:false
// })
import
directive
from
'./directive'
app
.
use
(
directive
)
// import { createPinia, defineStore } from 'pinia'
import
store
,
{
stores
}
from
'@/stores'
import
stores
,
{
store
}
from
'@/stores'
app
.
use
(
store
s
)
app
.
use
(
store
)
app
.
use
(
router
)
app
.
config
.
globalProperties
.
$store
=
store
()
app
.
config
.
globalProperties
.
$store
=
store
s
()
app
.
mount
(
'#app'
)
vue3-lw-pc/src/stores/index.js
View file @
5a248ec
...
...
@@ -6,9 +6,9 @@ import permission from './modules/permission'
import
settings
from
'./modules/settings'
import
getters
from
'./getters'
export
const
store
s
=
createPinia
()
export
const
store
=
createPinia
()
export
const
appStore
=
defineStore
(
'app'
,
{
export
default
defineStore
(
'app'
,
{
state
:
()
=>
({
app
:
{
...
app
.
state
},
user
:
{
...
user
.
state
},
...
...
@@ -25,5 +25,3 @@ export const appStore = defineStore('app', {
},
getters
,
})
export
default
appStore
vue3-lw-pc/src/styles/element-ui.scss
View file @
5a248ec
...
...
@@ -32,7 +32,7 @@
}
// .el-message-box__btns {
// .el-button--default.el-button--primary {
// color:
#fff
;
// color:
var(--font-white, #fff)
;
// }
// }
.el-button
{
...
...
@@ -59,18 +59,18 @@
.el-button--cyan
:active
{
background
:
#20b2aa
;
border-color
:
#20b2aa
;
color
:
#ffffff
;
color
:
var
(
--
font-white
,
#fff
)
;
}
.el-button--cyan
:focus
,
.el-button--cyan
:hover
{
background
:
#48d1cc
;
border-color
:
#48d1cc
;
color
:
#ffffff
;
color
:
var
(
--
font-white
,
#fff
)
;
}
.el-button--cyan
{
background-color
:
#20b2aa
;
border-color
:
#20b2aa
;
color
:
#ffffff
;
color
:
var
(
--
font-white
,
#fff
)
;
}
// .el-input.el-input--small {
...
...
@@ -496,7 +496,7 @@
color
:
#86909c
;
// 标题颜色
}
.el-step__head.is-process
{
color
:
#fff
;
// 数字颜色
color
:
var
(
--
font-white
,
#fff
)
;
// 数字颜色
.el-step__icon.is-text
{
background
:
var
(
--
color
);
}
...
...
vue3-lw-pc/src/styles/index.scss
View file @
5a248ec
...
...
@@ -84,7 +84,7 @@ div:focus {
/* 拖拽列样式 */
.sortable-ghost
{
opacity
:
0
.8
;
color
:
#fff
!
important
;
color
:
var
(
--
font-white
,
#fff
)
!
important
;
background
:
#42b983
!
important
;
}
...
...
@@ -203,7 +203,7 @@ div:focus {
&
card-blue-wrap
{
display
:
flex
;
.card-blue
{
color
:
#fff
;
color
:
var
(
--
font-white
,
#fff
)
;
width
:
200px
;
height
:
90px
;
background
:
linear-gradient
(
90deg
,
#3c89f0
0%
,
#1364f4
100%
);
...
...
vue3-lw-pc/src/utils/baiduMap.js
View file @
5a248ec
...
...
@@ -2,19 +2,18 @@
* 动态加载百度地图api函数
* @param {String} ak 百度地图AK,必传
*/
export
default
function
loadBMap
(
ak
)
{
return
new
Promise
(
function
(
resolve
,
reject
)
{
export
default
function
loadBMap
()
{
return
new
Promise
(
function
(
resolve
,
reject
)
{
if
(
typeof
window
.
BMap
!==
'undefined'
)
{
resolve
(
window
.
BMap
)
return
true
}
window
.
onBMapCallback
=
function
()
{
window
.
onBMapCallback
=
function
()
{
resolve
(
window
.
BMap
)
}
let
script
=
document
.
createElement
(
'script'
)
script
.
type
=
'text/javascript'
script
.
src
=
'https://api.map.baidu.com/api?v=3.0&ak='
+
ak
+
'&callback=onBMapCallback'
script
.
src
=
'https://api.map.baidu.com/api?v=3.0&ak='
+
window
.
lwConfig
.
BAIDU_MAP_KEY
+
'&callback=onBMapCallback'
script
.
onerror
=
reject
document
.
head
.
appendChild
(
script
)
})
...
...
vue3-lw-pc/src/utils/permission.js
View file @
5a248ec
import
store
from
'@/stores'
import
store
s
from
'@/stores'
/**
* 字符权限校验
...
...
@@ -7,7 +7,7 @@ import store from '@/stores'
*/
export
function
checkPermi
(
value
)
{
if
(
value
&&
value
instanceof
Array
&&
value
.
length
>
0
)
{
const
permissions
=
store
&&
store
.
permissions
const
permissions
=
store
s
()
&&
stores
()
.
permissions
const
permissionDatas
=
value
const
hasPermission
=
permissions
.
some
((
permission
)
=>
{
...
...
vue3-lw-pc/src/utils/request.js
View file @
5a248ec
import
axios
from
'axios'
import
{
ElNotification
as
Notification
,
ElMessageBox
as
MessageBox
,
ElMessage
as
Message
}
from
'element-plus'
import
_store
from
'@/stores'
import
stores
from
'@/stores'
import
{
getToken
,
setToken
}
from
'@/utils/auth'
import
errorCode
from
'@/utils/errorCode'
...
...
@@ -34,7 +34,7 @@ service.interceptors.request.use(
// 响应拦截器
service
.
interceptors
.
response
.
use
(
(
res
)
=>
{
let
store
=
_store
()
let
store
=
stores
()
// 未设置状态码则默认成功状态
const
code
=
res
.
data
.
code
||
200
// 获取错误信息
...
...
vue3-lw-pc/src/views/application/shortLinkPopularize/components/IdentityAttachment.vue
View file @
5a248ec
...
...
@@ -806,12 +806,12 @@ export default {
}
}
::v-deep
.el-button.is-disabled
{
color
:
#fff
;
color
:
var
(
--font-white
,
#fff
)
;
background-color
:
#cccccc
;
border-color
:
#cccccc
;
}
::v-deep
.el-dropdown
[
disabled
]
{
color
:
#fff
;
color
:
var
(
--font-white
,
#fff
)
;
background-color
:
#cccccc
;
border-color
:
#cccccc
;
}
...
...
vue3-lw-pc/src/views/contentCenter/basicMaterial/applet.vue
View file @
5a248ec
...
...
@@ -96,7 +96,7 @@ export default {
left
:
0
;
top
:
0
;
text-align
:
center
;
color
:
#fff
;
color
:
var
(
--font-white
,
#fff
)
;
opacity
:
0
;
font-size
:
20px
;
background-color
:
rgba
(
0
,
0
,
0
,
0.5
);
...
...
vue3-lw-pc/src/views/contentCenter/basicMaterial/detail.vue
View file @
5a248ec
...
...
@@ -530,7 +530,7 @@ export default {
.group
{
font-size
:
12px
;
background
:
var
(
--color
);
color
:
#fff
;
color
:
var
(
--font-white
,
#fff
)
;
display
:
block
;
padding
:
0
5px
;
height
:
24px
;
...
...
vue3-lw-pc/src/views/contentCenter/basicMaterial/image.vue
View file @
5a248ec
...
...
@@ -111,7 +111,7 @@ export default {
justify-content
:
space-between
;
.icon-action
{
font-size
:
14px
;
color
:
#fff
;
color
:
var
(
--font-white
,
#fff
)
;
}
}
}
...
...
@@ -172,7 +172,7 @@ export default {
//
left
:
0
;
//
top
:
0
;
//
text-align
:
center
;
//
color
:
#fff
;
//
color
:
var
(
--font-white
,
#fff
)
;
//
opacity
:
0
;
//
font-size
:
20px
;
//
background-color
:
rgba
(
0
,
0
,
0
,
0.5
);
...
...
vue3-lw-pc/src/views/contentCenter/basicMaterial/imageText.vue
View file @
5a248ec
...
...
@@ -85,7 +85,7 @@ export default {
left
:
0
;
top
:
0
;
text-align
:
center
;
color
:
#fff
;
color
:
var
(
--font-white
,
#fff
)
;
opacity
:
0
;
font-size
:
20px
;
background-color
:
rgba
(
0
,
0
,
0
,
0.5
);
...
...
vue3-lw-pc/src/views/contentCenter/components/PosterAdd.vue
View file @
5a248ec
...
...
@@ -1011,7 +1011,7 @@ export default {
cursor
:
pointer
;
z-index
:
9
;
font-size
:
24px
;
color
:
#fff
;
color
:
var
(
--font-white
,
#fff
)
;
display
:
none
;
background
:
#0279de
;
width
:
24px
;
...
...
vue3-lw-pc/src/views/contentCenter/corporateScripts/Material.vue
View file @
5a248ec
...
...
@@ -78,7 +78,7 @@ export default {
.group
{
font-size
:
12px
;
background
:
var
(
--color
);
color
:
#fff
;
color
:
var
(
--font-white
,
#fff
)
;
display
:
block
;
padding
:
0
5px
;
height
:
24px
;
...
...
vue3-lw-pc/src/views/contentCenter/corporateScripts/Statistics.vue
View file @
5a248ec
...
...
@@ -191,7 +191,7 @@ export default {
.group
{
font-size
:
12px
;
background
:
var
(
--color
);
color
:
#fff
;
color
:
var
(
--font-white
,
#fff
)
;
display
:
block
;
padding
:
0
5px
;
height
:
24px
;
...
...
vue3-lw-pc/src/views/contentCenter/corporateScripts/index.vue
View file @
5a248ec
...
...
@@ -160,7 +160,7 @@ export default {
left
:
0
;
top
:
0
;
text-align
:
center
;
color
:
#fff
;
color
:
var
(
--font-white
,
#fff
)
;
opacity
:
0
;
font-size
:
20px
;
background-color
:
rgba
(
0
,
0
,
0
,
0.5
);
...
...
vue3-lw-pc/src/views/contentCenter/serviceScripts/Material.vue
View file @
5a248ec
...
...
@@ -79,7 +79,7 @@ export default {
.group
{
font-size
:
12px
;
background
:
var
(
--color
);
color
:
#fff
;
color
:
var
(
--font-white
,
#fff
)
;
display
:
block
;
padding
:
0
5px
;
height
:
24px
;
...
...
vue3-lw-pc/src/views/contentCenter/serviceScripts/Statistics.vue
View file @
5a248ec
...
...
@@ -189,7 +189,7 @@ export default {
.group
{
font-size
:
12px
;
background
:
var
(
--color
);
color
:
#fff
;
color
:
var
(
--font-white
,
#fff
)
;
display
:
block
;
padding
:
0
5px
;
height
:
24px
;
...
...
vue3-lw-pc/src/views/contentCenter/serviceScripts/index.vue
View file @
5a248ec
...
...
@@ -160,7 +160,7 @@ export default {
left
:
0
;
top
:
0
;
text-align
:
center
;
color
:
#fff
;
color
:
var
(
--font-white
,
#fff
)
;
opacity
:
0
;
font-size
:
20px
;
background-color
:
rgba
(
0
,
0
,
0
,
0.5
);
...
...
vue3-lw-pc/src/views/contentCenter/templateGroup/index.vue
View file @
5a248ec
...
...
@@ -99,7 +99,7 @@ export default {
left
:
0
;
top
:
0
;
text-align
:
center
;
color
:
#fff
;
color
:
var
(
--font-white
,
#fff
)
;
opacity
:
0
;
font-size
:
20px
;
background-color
:
rgba
(
0
,
0
,
0
,
0.5
);
...
...
vue3-lw-pc/src/views/contentCenter/templateSop/index.vue
View file @
5a248ec
...
...
@@ -94,7 +94,7 @@ export default {
left
:
0
;
top
:
0
;
text-align
:
center
;
color
:
#fff
;
color
:
var
(
--font-white
,
#fff
)
;
opacity
:
0
;
font-size
:
20px
;
background-color
:
rgba
(
0
,
0
,
0
,
0.5
);
...
...
vue3-lw-pc/src/views/contentCenter/trackMaterial/article.vue
View file @
5a248ec
...
...
@@ -117,7 +117,7 @@ export default {
left
:
0
;
top
:
0
;
text-align
:
center
;
color
:
#fff
;
color
:
var
(
--font-white
,
#fff
)
;
opacity
:
0
;
font-size
:
20px
;
background-color
:
rgba
(
0
,
0
,
0
,
0.5
);
...
...
vue3-lw-pc/src/views/contentCenter/trackMaterial/detail.vue
View file @
5a248ec
...
...
@@ -617,7 +617,7 @@ export default {
.group
{
font-size
:
12px
;
background
:
var
(
--color
);
color
:
#fff
;
color
:
var
(
--font-white
,
#fff
)
;
display
:
block
;
padding
:
0
5px
;
height
:
24px
;
...
...
vue3-lw-pc/src/views/contentCenter/trackMaterial/file.vue
View file @
5a248ec
...
...
@@ -150,7 +150,7 @@ export default {
left
:
0
;
top
:
0
;
text-align
:
center
;
color
:
#fff
;
color
:
var
(
--font-white
,
#fff
)
;
opacity
:
0
;
font-size
:
20px
;
background-color
:
rgba
(
0
,
0
,
0
,
0.5
);
...
...
vue3-lw-pc/src/views/contentCenter/trackMaterial/poster.vue
View file @
5a248ec
<
script
>
import
MaPage
from
'@/views/contentCenter/components/MaPage'
import
PicTitContent
from
'@/views/contentCenter/components/PicTitContent'
import
{
tsThisType
}
from
'@babel/types'
export
default
{
import
MaPage
from
'@/views/contentCenter/components/MaPage'
import
PicTitContent
from
'@/views/contentCenter/components/PicTitContent'
import
{
tsThisType
}
from
'@babel/types'
export
default
{
name
:
'MImageText'
,
components
:
{
MaPage
,
PicTitContent
},
data
()
{
...
...
@@ -11,7 +11,7 @@
ids
:
[],
// 选中数组
dialogVisible
:
false
,
currentType
:
0
,
poster
:
''
poster
:
''
,
}
},
watch
:
{},
...
...
@@ -38,35 +38,35 @@
path
:
'/customerMaintain/groupMessage/record/add'
,
query
:
{
posterId
:
this
.
poster
.
id
,
chatType
:
1
}
chatType
:
1
,
},
})
}
else
if
(
this
.
currentType
==
1
)
{
this
.
$router
.
push
({
path
:
'/customerMaintain/groupMessage/record/add'
,
query
:
{
posterId
:
this
.
poster
.
id
,
chatType
:
2
}
chatType
:
2
,
},
})
}
else
if
(
this
.
currentType
==
2
)
{
this
.
$router
.
push
({
path
:
'/customerMaintain/friendCircle/publish'
,
query
:
{
posterId
:
this
.
poster
.
id
}
posterId
:
this
.
poster
.
id
,
},
})
}
else
{
this
.
$router
.
push
({
path
:
'/enterpriseManage/internalCollaborate/appManage'
,
query
:
{
posterId
:
this
.
poster
.
materialUrl
}
posterId
:
this
.
poster
.
materialUrl
,
},
})
}
}
}
}
},
},
}
</
script
>
<
template
>
...
...
@@ -223,7 +223,7 @@
</template>
<
style
lang=
"scss"
scoped
>
.unit
{
.unit
{
margin
:
0
auto
;
display
:
flex
;
flex-wrap
:
wrap
;
...
...
@@ -269,8 +269,8 @@
border
:
1px
solid
rgba
(
7
,
193
,
96
,
1
);
background-color
:
rgba
(
7
,
193
,
96
,
0.09019607843137255
);
}
}
.img-wrap
{
}
.img-wrap
{
position
:
relative
;
height
:
0
;
padding
:
70%
0
0
0
;
...
...
@@ -278,15 +278,15 @@
&:hover
.actions
{
opacity
:
1
;
}
}
.actions
{
}
.actions
{
position
:
absolute
;
width
:
100%
;
height
:
50px
;
left
:
0
;
top
:
0
;
text-align
:
center
;
color
:
#fff
;
color
:
var
(
--font-white
,
#fff
)
;
opacity
:
0
;
font-size
:
20px
;
background-color
:
rgba
(
0
,
0
,
0
,
0.5
);
...
...
@@ -294,9 +294,9 @@
.el-icon-EditPen
{
margin-right
:
20px
;
}
}
.el-image
{
}
.el-image
{
width
:
80px
;
height
:
80px
;
}
}
</
style
>
vue3-lw-pc/src/views/contentCenter/trackMaterial/video.vue
View file @
5a248ec
...
...
@@ -138,7 +138,7 @@ export default {
left
:
0
;
top
:
0
;
text-align
:
center
;
color
:
#fff
;
color
:
var
(
--font-white
,
#fff
)
;
opacity
:
0
;
font-size
:
20px
;
background-color
:
rgba
(
0
,
0
,
0
,
0.5
);
...
...
vue3-lw-pc/src/views/conversation/content/component/chatList.vue
View file @
5a248ec
...
...
@@ -89,7 +89,7 @@ export default {
text-align
:
center
;
line-height
:
50px
;
font-size
:
20px
;
color
:
#fff
;
color
:
var
(
--font-white
,
#fff
)
;
cursor
:
pointer
;
font-size
:
43px
;
}
...
...
vue3-lw-pc/src/views/conversation/content/component/chatListClassTab.vue
View file @
5a248ec
...
...
@@ -209,7 +209,7 @@ export default {
<
style
lang=
"scss"
scoped
>
.list
{
height
:
calc
(
100vh
-
42
0px
);
height
:
calc
(
100vh
-
37
0px
);
margin-top
:
10px
;
background
:
white
;
overflow-y
:
scroll
;
...
...
vue3-lw-pc/src/views/conversation/content/index.vue
View file @
5a248ec
<
template
>
<div
class=
"content"
>
<div
class=
"content"
style=
"margin-top: -13px"
>
<el-tabs
v-model=
"activeName"
>
<el-tab-pane
label=
"员工检索"
name=
"1"
>
<employee></employee>
...
...
@@ -14,21 +14,21 @@
</div>
</
template
>
<
script
>
import
employee
from
'./employee.vue'
import
user
from
'./customer.vue'
import
global
from
'./global.vue'
export
default
{
import
employee
from
'./employee.vue'
import
user
from
'./customer.vue'
import
global
from
'./global.vue'
export
default
{
components
:
{
employee
,
user
,
global
},
data
()
{
return
{
activeName
:
'1'
activeName
:
'1'
,
}
},
methods
:
{}
}
methods
:
{},
}
</
script
>
<
style
lang=
"scss"
scoped
>
::v-deep
.pd15
{
::v-deep
.pd15
{
padding
:
15px
;
}
}
</
style
>
vue3-lw-pc/src/views/conversation/quality/component/chatList.vue
View file @
5a248ec
...
...
@@ -100,7 +100,7 @@ export default {
text-align
:
center
;
line-height
:
50px
;
font-size
:
20px
;
color
:
#fff
;
color
:
var
(
--font-white
,
#fff
)
;
cursor
:
pointer
;
font-size
:
43px
;
}
...
...
vue3-lw-pc/src/views/customerManage/customer/infoTab.vue
View file @
5a248ec
...
...
@@ -166,7 +166,7 @@ export default {
},
// 根据生日计算年龄
jsGetAge
(
strBirthday
)
{
if
(
strBirthday
===
null
)
{
if
(
!
strBirthday
)
{
return
'无'
}
let
returnAge
...
...
@@ -282,7 +282,7 @@ export default {
<el-row
class=
"baseinfo-row"
v-else-if=
"item.labelVal == 'age'"
>
<!-- 年龄 -->
<el-col
:span=
"6"
>
{{
item
.
labelName
}}
</el-col>
<el-col
:span=
"18"
>
{{
jsGetAge
(
portrayalSum
.
b
k
irthday
)
}}
</el-col>
<el-col
:span=
"18"
>
{{
jsGetAge
(
portrayalSum
.
birthday
)
}}
</el-col>
</el-row>
<el-row
class=
"baseinfo-row"
v-else-if=
"item.labelVal == 'birthday'"
>
<!-- 生日 -->
...
...
@@ -453,7 +453,7 @@ export default {
line-height
:
24px
;
padding
:
0
5px
;
margin-right
:
10px
;
color
:
#fff
;
color
:
var
(
--font-white
,
#fff
)
;
border-radius
:
var
(
--border-radius-small
);
}
.el-card
{
...
...
@@ -476,7 +476,7 @@ export default {
}
&
.active
{
background
:
var
(
--color
);
color
:
#fff
;
color
:
var
(
--font-white
,
#fff
)
;
}
}
}
...
...
vue3-lw-pc/src/views/customerManage/lossRemind.vue
View file @
5a248ec
...
...
@@ -256,7 +256,11 @@ export default {
<
/el-table-column
>
<
el
-
table
-
column
prop
=
"address"
label
=
"标签"
align
=
"center"
>
<
template
#
default
=
"
{
row
}
">
<el-tag type="
info
" v-for="
(
unit
,
unique
)
in
row
?.
tagNames
.
split
(
','
)
" :key="
unique
"
>
{{
unit
}}
<
/el-tag
>
<div v-if="
row
.
tagNames
">
<TagEllipsis :list="
row
.
tagNames
?.
split
(
','
)
"></TagEllipsis>
</div>
<span v-else>无标签</span>
<!-- <el-tag type="
info
" v-for="
(
unit
,
unique
)
in
row
?.
tagNames
?.
split
(
','
)
" :key="
unique
"
>
{{
unit
}}
<
/el-tag> --
>
<!--
<
div
v
-
for
=
"(item, index) in row.weFlowerCustomerRels"
:
key
=
"index"
>
<
el
-
tag
type
=
"info"
v
-
for
=
"(unit, unique) in item.weFlowerCustomerTagRels"
:
key
=
"unique"
>
{{
...
...
vue3-lw-pc/src/views/drainageCode/components/IdentityAttachment.vue
View file @
5a248ec
...
...
@@ -836,12 +836,12 @@ export default {
}
}
::v-deep
.el-button.is-disabled
{
color
:
#fff
;
color
:
var
(
--font-white
,
#fff
)
;
background-color
:
#cccccc
;
border-color
:
#cccccc
;
}
::v-deep
.el-dropdown
[
disabled
]
{
color
:
#fff
;
color
:
var
(
--font-white
,
#fff
)
;
background-color
:
#cccccc
;
border-color
:
#cccccc
;
}
...
...
vue3-lw-pc/src/views/drainageCode/highSeas/index.vue
View file @
5a248ec
...
...
@@ -500,14 +500,14 @@ export default {
font-size
:
14px
;
font-weight
:
400
;
color
:
#ffffff
;
color
:
var
(
--font-white
,
#fff
)
;
}
.value
{
margin-top
:
5px
;
font-size
:
18px
;
font-weight
:
400
;
color
:
#ffffff
;
color
:
var
(
--font-white
,
#fff
)
;
}
}
...
...
vue3-lw-pc/src/views/drainageCode/highSeas/statistics.vue
View file @
5a248ec
...
...
@@ -189,7 +189,7 @@ export default {
font-size
:
14px
;
font-weight
:
400
;
color
:
#ffffff
;
color
:
var
(
--font-white
,
#fff
)
;
}
.value
{
...
...
@@ -197,7 +197,7 @@ export default {
font-size
:
18px
;
font-weight
:
400
;
color
:
#ffffff
;
color
:
var
(
--font-white
,
#fff
)
;
}
}
</
style
>
vue3-lw-pc/src/views/drainageCode/pullNews/cardTable.vue
View file @
5a248ec
...
...
@@ -270,7 +270,7 @@ export default {
width
:
175px
;
height
:
75px
;
padding
:
20px
10px
0
54px
;
color
:
#fff
;
color
:
var
(
--font-white
,
#fff
)
;
line-height
:
1.15
;
font-size
:
14px
;
font-weight
:
500
;
...
...
vue3-lw-pc/src/views/drainageCode/pullNews/liveCodeInfo.vue
View file @
5a248ec
...
...
@@ -395,7 +395,7 @@ export default {
width
:
175px
;
height
:
75px
;
padding
:
20px
10px
0
54px
;
color
:
#fff
;
color
:
var
(
--font-white
,
#fff
)
;
line-height
:
1.15
;
font-size
:
14px
;
font-weight
:
500
;
...
...
vue3-lw-pc/src/views/drainageCode/pullNews/pullNews.vue
View file @
5a248ec
...
...
@@ -445,7 +445,7 @@ export default {
width
:
175px
;
height
:
75px
;
padding
:
20px
10px
0
54px
;
color
:
#fff
;
color
:
var
(
--font-white
,
#fff
)
;
line-height
:
1.15
;
font-size
:
14px
;
font-weight
:
500
;
...
...
vue3-lw-pc/src/views/drainageCode/smartForms/build/DraggableItem.vue
View file @
5a248ec
...
...
@@ -55,7 +55,7 @@ const layouts = {
<
div
>
{
element
.
url
}
<
/div
>
<
div
// 无图片时,占位提示
domPropsI
nnerHTML
=
{
i
nnerHTML
=
{
element
.
formCodeId
==
1
&&
!
element
.
src
?
'<div class="no-image">请在右侧控件设置中添加需要展示的图片</div>'
:
''
...
...
@@ -231,7 +231,7 @@ $selectedColor: #f6f7ff;
background
:
#fff
;
&:hover
{
background
:
var
(
--color
);
color
:
#fff
;
color
:
var
(
--font-white
,
#fff
)
;
}
}
&
>
.drawing-item-delete
{
...
...
@@ -241,7 +241,7 @@ $selectedColor: #f6f7ff;
background
:
#fff
;
&:hover
{
background
:
#f56c6c
;
color
:
#fff
;
color
:
var
(
--font-white
,
#fff
)
;
}
}
}
...
...
vue3-lw-pc/src/views/drainageCode/smartForms/build/RightPanel.vue
View file @
5a248ec
...
...
@@ -950,7 +950,7 @@ export default {
border-radius
:
0
0
6px
0
;
text-align
:
center
;
line-height
:
26px
;
color
:
#fff
;
color
:
var
(
--font-white
,
#fff
)
;
font-size
:
18px
;
}
.node-label
{
...
...
vue3-lw-pc/src/views/drainageCode/smartForms/build/formsDetail.vue
View file @
5a248ec
...
...
@@ -936,7 +936,7 @@ export default {
background-color
:
var
(
--color
);
text-align
:
center
;
padding
:
13px
30px
;
color
:
#fff
;
color
:
var
(
--font-white
,
#fff
)
;
}
::v-deep
.form3
.el-scrollbar__wrap
{
...
...
vue3-lw-pc/src/views/drainageCode/smartForms/build/index.vue
View file @
5a248ec
...
...
@@ -578,7 +578,7 @@ export default {
.el-tabs__item.is-active
{
background
:
#1e1e1e
;
border-bottom-color
:
#1e1e1e
!important
;
color
:
#fff
;
color
:
var
(
--font-white
,
#fff
)
;
}
.el-icon-EditPen
{
color
:
#f1fa8c
;
...
...
@@ -626,7 +626,7 @@ export default {
line-height
:
16px
;
background
:
rgba
(
0
,
0
,
0
,
0.2
);
border-radius
:
50%
;
color
:
#fff
;
color
:
var
(
--font-white
,
#fff
)
;
text-align
:
center
;
z-index
:
1
;
cursor
:
pointer
;
...
...
@@ -937,7 +937,7 @@ $selectedColor: #f6f7ff;
background
:
#fff
;
&:hover
{
background
:
var
(
--color
);
color
:
#fff
;
color
:
var
(
--font-white
,
#fff
)
;
}
}
&
>
.drawing-item-delete
{
...
...
@@ -947,7 +947,7 @@ $selectedColor: #f6f7ff;
background
:
#fff
;
&:hover
{
background
:
#f56c6c
;
color
:
#fff
;
color
:
var
(
--font-white
,
#fff
)
;
}
}
}
...
...
vue3-lw-pc/src/views/drainageCode/staff/add.vue
View file @
5a248ec
This diff is collapsed.
Click to expand it.
vue3-lw-pc/src/views/drainageCode/staff/detail.vue
View file @
5a248ec
...
...
@@ -8,7 +8,7 @@
<el-form
label-position=
"right"
label-width=
"100px"
>
<el-form-item
style=
"margin-bottom: 10px"
label=
"活码名称"
>
{{
form
.
name
}}
</el-form-item>
<el-form-item
style=
"margin-bottom: 10px"
label=
"活码分组"
>
{{
form
.
qrGroupName
}}
</el-form-item>
<el-form-item
style=
"margin-bottom: 10px"
label=
"自动通过
标签
"
>
<el-form-item
style=
"margin-bottom: 10px"
label=
"自动通过
好友
"
>
<el-switch
:value=
"form.autoAdd"
:active-value=
"1"
:inactive-value=
"0"
disabled
></el-switch>
</el-form-item>
<el-form-item
style=
"margin-bottom: 10px"
label=
"新客户标签"
>
...
...
vue3-lw-pc/src/views/drainageCode/store/add.vue
View file @
5a248ec
...
...
@@ -2,8 +2,8 @@
<div>
<el-form
label-width=
"120px"
label-position=
"right"
ref=
"form"
:rules=
"rule"
:model=
"form"
>
<div
class=
"g-card"
>
<div
class=
"card-title"
style=
"display: inline-block"
>
基础信息
</div>
<div
style=
"float: right"
v-if=
"isDetail"
>
<div
class=
"card-title"
style=
"display: inline-block
;
"
>
基础信息
</div>
<div
style=
"float: right
;
"
v-if=
"isDetail"
>
<el-button
type=
"primary"
@
click=
"
...
...
@@ -11,10 +11,11 @@
path: 'add',
query: {
id: $route.query.id,
obj: encodeURIComponent(JSON.stringify(form))
,
}
,
obj: encodeURIComponent(JSON.stringify(form))
}
})
">
"
>
编辑
</el-button>
</div>
...
...
@@ -23,9 +24,10 @@
:disabled=
"isDetail"
v-model=
"form.storeName"
placeholder=
"请输入门店名称"
style=
"width: 400px"
style=
"width: 400px
;
"
show-word-limit
maxlength=
"30"
/>
maxlength=
"30"
/>
</el-form-item>
<el-form-item
label=
"所属地区"
prop=
"area"
>
<el-cascader
...
...
@@ -34,7 +36,8 @@
:props=
"props"
:options=
"cityTree"
ref=
"tree"
@
change=
"handleTree"
></el-cascader>
@
change=
"handleTree"
></el-cascader>
</el-form-item>
<baidu-map
@
update=
"handleChange"
@
point=
"getPoint"
:isDetail=
"isDetail"
:initData=
"form"
></baidu-map>
</div>
...
...
@@ -47,10 +50,10 @@
<el-button
v-if=
"!isDetail"
icon=
"el-icon-plus"
type=
"primary"
plain
@
click=
"dialogVisibleQr = true"
>
{{
form
.
shopGuideUrl
?
'编辑'
:
'选择'
}}
员工活码
</el-button>
<div
style=
"margin-top: 10px"
v-if=
"form.shopGuideUrl"
>
<div
style=
"margin-top: 10px
;
"
v-if=
"form.shopGuideUrl"
>
<ul
class=
"el-upload-list el-upload-list--picture-card"
>
<li
class=
"el-upload-list__item is-success"
>
<img
style=
"width: 100%; height: 100%"
:src=
"form.shopGuideUrl"
/>
<img
style=
"width: 100%; height: 100%
;
"
:src=
"form.shopGuideUrl"
/>
<span
class=
"el-upload-list__item-actions"
>
<span
class=
"el-upload-list__item-delete"
>
<el-icon-delete
class=
"el-icon-delete"
@
click=
"handleRemove"
></el-icon-delete>
...
...
@@ -63,7 +66,7 @@
<el-form-item
label=
"门店群活码"
>
<div
v-if=
"form.groupCodeUrl"
>
<div>
{{
form
.
groupCodeName
}}
</div>
<img
style=
"height: 80px; width: 80px; margin-top: 5px"
:src=
"form.groupCodeUrl"
/>
<img
style=
"height: 80px; width: 80px; margin-top: 5px
;
"
:src=
"form.groupCodeUrl"
/>
</div>
<el-button
...
...
@@ -71,7 +74,8 @@
icon=
"el-icon-plus"
type=
"primary"
plain
@
click=
"dialogVisibleSelectQrCode = true"
>
@
click=
"dialogVisibleSelectQrCode = true"
>
{{
form
.
groupCodeUrl
?
'编辑'
:
'选择'
}}
群活码
</el-button>
</el-form-item>
...
...
@@ -83,7 +87,8 @@
active-text=
"启用"
inactive-text=
"停用"
:active-value=
"0"
:inactive-value=
"1"
></el-switch>
:inactive-value=
"1"
></el-switch>
</
template
>
<
template
v-else
>
<el-switch
...
...
@@ -92,7 +97,8 @@
active-text=
"启用"
inactive-text=
"停用"
:active-value=
"0"
:inactive-value=
"1"
></el-switch>
:inactive-value=
"1"
></el-switch>
</
template
>
</el-form-item>
</div>
...
...
@@ -112,19 +118,20 @@
<SelectQrCode
v-model:visible=
"dialogVisibleSelectQrCode"
@
success=
"selectedQrCode"
:selected=
"selectedCodeList"
></SelectQrCode>
:selected=
"selectedCodeList"
></SelectQrCode>
<SelectStaffQrCode
v-model:visible=
"dialogVisibleQr"
@
success=
"selectedQr"
></SelectStaffQrCode>
</div>
</template>
<
script
>
import
BaiduMap
from
'@/components/common/BaiduMap'
import
SelectQrCode
from
'@/components/SelectQrCode'
import
SelectUser
from
'@/components/SelectUser'
import
SelectStaffQrCode
from
'@/components/SelectStaffQrCode'
import
BaiduMap
from
'@/components/common/BaiduMap'
import
SelectQrCode
from
'@/components/SelectQrCode'
import
SelectUser
from
'@/components/SelectUser'
import
SelectStaffQrCode
from
'@/components/SelectStaffQrCode'
import
{
getProCityList
}
from
'@/api/common'
import
{
addOrUpdateStore
,
storeDetail
}
from
'@/api/drainageCode/store'
export
default
{
import
{
getProCityList
}
from
'@/api/common'
import
{
addOrUpdateStore
,
storeDetail
}
from
'@/api/drainageCode/store'
export
default
{
name
:
'store-add'
,
data
()
{
return
{
...
...
@@ -132,7 +139,7 @@ export default {
current
:
{
province
:
''
,
city
:
''
,
area
:
''
,
area
:
''
},
form
:
{
storeState
:
1
,
...
...
@@ -149,7 +156,7 @@ export default {
groupCodeUrl
:
''
,
groupCodeName
:
''
,
groupCodeId
:
''
,
shopGuideUrl
:
''
,
shopGuideUrl
:
''
},
selectedUserList
:
[],
dialogVisibleSelectUser
:
false
,
...
...
@@ -159,27 +166,27 @@ export default {
cityTree
:
[],
props
:
{
label
:
'name'
,
value
:
'name'
,
value
:
'name'
},
rule
:
{
storeName
:
[{
required
:
true
,
message
:
'请输入门店名称'
,
trigger
:
'blur'
}],
area
:
[{
required
:
true
,
message
:
'请选择所属地区'
,
trigger
:
'blur'
}],
address
:
[{
required
:
true
,
message
:
'请选择详细地址'
,
trigger
:
'blur'
}],
address
:
[{
required
:
true
,
message
:
'请选择详细地址'
,
trigger
:
'blur'
}]
},
dialogVisibleQr
:
false
,
dialogVisibleQr
:
false
}
},
props
:
{
isDetail
:
{
type
:
Boolean
,
default
:
false
,
},
default
:
false
}
},
components
:
{
BaiduMap
,
SelectQrCode
,
SelectUser
,
SelectStaffQrCode
,
SelectStaffQrCode
},
methods
:
{
handleRemove
()
{
...
...
@@ -223,6 +230,9 @@ export default {
},
handleTree
(
data
)
{
this
.
form
.
area
=
this
.
areaArray
.
join
(
''
)
this
.
form
.
address
=
''
this
.
form
.
longitude
=
''
this
.
form
.
latitude
=
''
},
selectedUser
(
data
)
{
this
.
selectedUserList
=
data
...
...
@@ -268,7 +278,7 @@ export default {
this
.
$confirm
(
`是否确认取消
${
this
.
$route
.
query
.
id
?
'编辑'
:
'新建'
}
?取消后不可恢复,请谨慎操作。`
,
'提示'
,
{
confirmButtonText
:
'确认'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
type
:
'warning'
})
.
then
(()
=>
{
this
.
$router
.
back
()
...
...
@@ -295,7 +305,7 @@ export default {
this
.
selectedUserList
=
[...
arr
]
// this.$forceUpdate()
}
},
}
},
created
()
{
getProCityList
({
isExtName
:
true
}).
then
((
res
)
=>
{
...
...
@@ -311,15 +321,15 @@ export default {
}
})
}
},
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.card-title
{
.card-title
{
font-size
:
16px
;
font-weight
:
500
;
color
:
#333333
;
margin-bottom
:
20px
;
}
}
</
style
>
vue3-lw-pc/src/views/enterpriseManage/roles/index.vue
View file @
5a248ec
...
...
@@ -53,7 +53,7 @@
</el-form>
</div>
<div
class=
"g-footer-sticky bottom"
v-if=
"roles[activeIndex]"
>
<
!-- <el-button plain type="danger">删除</el-button> --
>
<
el-button
plain
type=
"danger"
@
click=
"deleteFn"
>
删除
</el-button
>
<el-button
type=
"primary"
@
click=
"edtiFn"
>
编辑
</el-button>
</div>
</div>
...
...
vue3-lw-pc/src/views/error/401.vue
View file @
5a248ec
...
...
@@ -57,7 +57,7 @@ export default {
margin
:
100px
auto
;
.pan-back-btn
{
background
:
#008489
;
color
:
#fff
;
color
:
var
(
--font-white
,
#fff
)
;
border
:
none
!important
;
}
.pan-gif
{
...
...
vue3-lw-pc/src/views/error/404.vue
View file @
5a248ec
...
...
@@ -2,44 +2,39 @@
<div
class=
"wscn-http404-container"
>
<div
class=
"wscn-http404"
>
<div
class=
"pic-404"
>
<img
class=
"pic-404__parent"
src=
"@/assets/404_images/404.png"
alt=
"404"
>
<img
class=
"pic-404__child left"
src=
"@/assets/404_images/404_cloud.png"
alt=
"404"
>
<img
class=
"pic-404__child mid"
src=
"@/assets/404_images/404_cloud.png"
alt=
"404"
>
<img
class=
"pic-404__child right"
src=
"@/assets/404_images/404_cloud.png"
alt=
"404"
>
<img
class=
"pic-404__parent"
src=
"@/assets/404_images/404.png"
alt=
"404"
/
>
<img
class=
"pic-404__child left"
src=
"@/assets/404_images/404_cloud.png"
alt=
"404"
/
>
<img
class=
"pic-404__child mid"
src=
"@/assets/404_images/404_cloud.png"
alt=
"404"
/
>
<img
class=
"pic-404__child right"
src=
"@/assets/404_images/404_cloud.png"
alt=
"404"
/
>
</div>
<div
class=
"bullshit"
>
<div
class=
"bullshit__oops"
>
404错误!
</div>
<div
class=
"bullshit__oops"
>
404错误!
</div>
<div
class=
"bullshit__headline"
>
{{
message
}}
</div>
<div
class=
"bullshit__info"
>
对不起,您正在寻找的页面不存在。尝试检查URL的错误,然后按浏览器上的刷新按钮或尝试在我们的应用程序中找到其他内容。
</div>
<router-link
to=
"/"
class=
"bullshit__return-home"
>
返回首页
</router-link>
<router-link
to=
"/"
class=
"bullshit__return-home"
>
返回首页
</router-link>
</div>
</div>
</div>
</
template
>
<
script
>
export
default
{
name
:
'Page404'
,
computed
:
{
message
()
{
return
'找不到网页!'
}
}
}
,
}
,
}
</
script
>
<
style
lang=
"scss"
scoped
>
.wscn-http404-container
{
transform
:
translate
(
-50%
,
-50%
);
.wscn-http404-container
{
transform
:
translate
(
-50%
,
-50%
);
position
:
absolute
;
top
:
40%
;
left
:
50%
;
...
...
@@ -208,7 +203,7 @@ export default {
background
:
#1482f0
;
border-radius
:
100px
;
text-align
:
center
;
color
:
#ffffff
;
color
:
var
(
--font-white
,
#fff
)
;
opacity
:
0
;
font-size
:
14px
;
line-height
:
36px
;
...
...
vue3-lw-pc/src/views/intelligentShortLink/index.vue
View file @
5a248ec
<
script
>
import
{
getList
,
getAnalysis
,
remove
}
from
'@/api/intelligentShortLink'
import
{
touchTypeDict
}
from
'./components/mixin'
export
default
{
import
{
getList
,
getAnalysis
,
remove
}
from
'@/api/intelligentShortLink'
import
*
as
api
from
'@/api/enterpriseId'
import
{
touchTypeDict
}
from
'./components/mixin'
export
default
{
name
:
''
,
components
:
{},
data
()
{
...
...
@@ -11,7 +12,7 @@ export default {
total
:
0
,
query
:
{
pageSize
:
10
,
pageNum
:
1
,
pageNum
:
1
},
touchTypeDict
,
// dictStatus: Object.freeze({
...
...
@@ -21,11 +22,14 @@ export default {
list
:
[],
ids
:
[],
needMoreInfo
:
false
,
dialogVisible
:
false
}
},
computed
:
{},
watch
:
{},
created
()
{
this
.
setState
()
this
.
getList
()
this
.
getAnalysis
()
this
.
$store
.
setBusininessDesc
(
` <div>生成智能短链,一键跳转公众号、小程序、企业微信</div> `
)
...
...
@@ -37,6 +41,23 @@ export default {
this
.
clipboard
.
destroy
()
},
methods
:
{
cancelFn
()
{
this
.
needMoreInfo
=
false
this
.
dialogVisible
=
false
this
.
goRoute
()
},
gotoSetting
()
{
this
.
$router
.
push
({
path
:
'/enterpriseManage/enterpriseWechat'
})
},
setState
()
{
api
.
getDetail
().
then
((
res
)
=>
{
if
(
!
res
.
data
.
wxAppletOriginalId
||
!
res
.
data
.
miniAppId
||
!
res
.
data
.
miniSecret
)
{
this
.
needMoreInfo
=
true
}
})
},
getAnalysis
()
{
this
.
loading
=
true
getAnalysis
()
...
...
@@ -45,39 +66,39 @@ export default {
{
title
:
'访问总数(pv)'
,
tips
:
'短链页面访问的总次数'
,
value
:
data
.
pvTotalCount
,
value
:
data
.
pvTotalCount
},
{
title
:
'访问总人数(uv)'
,
tips
:
'短链页面访问的独立IP数'
,
value
:
data
.
uvTotalCount
,
value
:
data
.
uvTotalCount
},
{
title
:
'小程序打开数'
,
tips
:
'小程序成功打开的总次数'
,
value
:
data
.
openTotalCount
,
value
:
data
.
openTotalCount
},
{
title
:
'今日访问总数(pv)'
,
tips
:
'今日短链页面访问的总次数'
,
value
:
data
.
pvTodayCount
,
title1
:
'较昨日'
,
value1
:
data
.
pvDiff
,
value1
:
data
.
pvDiff
},
{
title
:
'今日访问总人数(uv)'
,
tips
:
'今日短链页面访问的独立IP数'
,
value
:
data
.
uvTodayCount
,
title1
:
'较昨日'
,
value1
:
data
.
uvDiff
,
value1
:
data
.
uvDiff
},
{
title
:
'今日小程序打开数'
,
tips
:
'今日小程序成功打开的总次数'
,
value
:
data
.
openTodayCount
,
title1
:
'较昨日'
,
value1
:
data
.
openDiff
,
},
value1
:
data
.
openDiff
}
]
})
.
catch
((
e
)
=>
{
...
...
@@ -105,15 +126,23 @@ export default {
this
.
getList
(
1
)
},
goRoute
(
row
=
{},
detail
)
{
if
(
this
.
needMoreInfo
)
{
this
.
dialogVisible
=
true
return
}
let
{
id
}
=
row
this
.
$router
.
push
({
path
:
'./'
+
(
detail
||
'addEdit'
),
query
:
{
id
},
query
:
{
id
}
})
},
remove
(
id
)
{
const
ids
=
id
||
this
.
ids
+
''
this
.
$confirm
(
'是否确认删除吗?'
,
'警告'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
})
this
.
$confirm
(
'是否确认删除吗?'
,
'警告'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
})
.
then
(
function
()
{
return
remove
(
ids
)
})
...
...
@@ -121,9 +150,9 @@ export default {
this
.
getList
()
this
.
msgSuccess
(
'删除成功'
)
})
},
},
}
}
}
}
</
script
>
<
template
>
...
...
@@ -140,7 +169,8 @@ export default {
v-for=
"(item, index) in touchTypeDict"
:key=
"index"
:label=
"item.allName"
:value=
"+index"
></el-option>
:value=
"+index"
></el-option>
</el-select>
</el-form-item>
<!--
<el-form-item
label=
""
prop=
"status"
>
...
...
@@ -172,7 +202,8 @@ export default {
<el-icon-copy-document
class=
"el-icon-copy-document copy-btn cp ml20"
title=
"复制"
:data-clipboard-text=
"row.shortLink"
></el-icon-copy-document>
:data-clipboard-text=
"row.shortLink"
></el-icon-copy-document>
</
template
>
</el-table-column>
<!-- <el-table-column label="状态" align="center" prop="status">
...
...
@@ -188,14 +219,39 @@ export default {
</el-table-column>
</el-table>
<pagination
:total=
"total"
v-model:page=
"query.pageNum"
v-model:limit=
"query.pageSize"
@
pagination=
"getList()"
/>
<
template
v-if=
"!list.length"
>
<div
class=
"tips"
>
智能短链需要先配置短链小程序,否则无法正常使用,
<a
class=
"link"
@
click=
"gotoSetting"
>
去配置
</a>
</div>
</
template
>
</div>
<el-dialog
title=
"提示"
:close-on-click-modal=
"false"
:show-close=
"false"
v-model=
"dialogVisible"
width=
"auto"
>
<div
style=
"text-align: center;"
>
智能短链需要先配置短链小程序,否则无法正常使用。
</div>
<
template
#
footer
>
<span
class=
"dialog-footer"
>
<el-button
@
click=
"cancelFn"
>
继续新建
</el-button>
<el-button
type=
"primary"
@
click=
"gotoSetting"
>
去配置
</el-button>
</span>
</
template
>
</el-dialog>
</div>
</template>
<
style
lang=
"scss"
scoped
>
.el-icon-copy-document
{
.tips
{
margin-top
:
30px
;
text-align
:
center
;
color
:
#999999
;
}
.link
{
color
:
var
(
--color
);
border-bottom
:
1px
solid
var
(
--color
);
}
.el-icon-copy-document
{
&:hover
{
color
:
var
(
--color
);
}
}
}
</
style
>
vue3-lw-pc/src/views/redPacketTool/enterprisePacket.vue
View file @
5a248ec
...
...
@@ -374,7 +374,7 @@ export default {
width
:
175
px
;
height
:
75
px
;
padding
:
20
px
10
px
0
54
px
;
color
:
#
fff
;
color
:
var
(
--
font
-
white
,
#
fff
)
;
line
-
height
:
1.15
;
font
-
size
:
14
px
;
font
-
weight
:
500
;
...
...
vue3-lw-pc/src/views/system/user/profile/userAvatar.vue
View file @
5a248ec
...
...
@@ -53,7 +53,7 @@
</
template
>
<
script
>
import
store
from
'@/stores'
import
store
s
from
'@/stores'
import
'vue-cropper/dist/index.css'
import
{
VueCropper
}
from
'vue-cropper'
import
{
uploadAvatar
}
from
'@/api/system/user'
...
...
@@ -75,7 +75,7 @@ export default {
title
:
'修改头像'
,
options
:
{
outputType
:
'png'
,
// 裁剪生成图片的格式 jpeg, png, webp
img
:
store
().
avatar
,
//裁剪图片的地址
img
:
store
s
().
avatar
,
//裁剪图片的地址
autoCrop
:
true
,
// 是否默认生成截图框
autoCropWidth
:
200
,
// 默认生成截图框宽度
autoCropHeight
:
200
,
// 默认生成截图框高度
...
...
@@ -129,7 +129,7 @@ export default {
if
(
response
.
code
===
200
)
{
this
.
open
=
false
this
.
options
.
img
=
response
.
imgUrl
store
.
avatar
=
this
.
options
.
img
store
s
.
avatar
=
this
.
options
.
img
this
.
msgSuccess
(
'修改成功'
)
}
this
.
visible
=
false
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment