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 f5005800
authored
Jun 19, 2023
by
怪兽?别跑
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v3-dev-jiangpengkai' into vue3-master
2 parents
24e77ee8
5fb4c553
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
168 additions
and
89 deletions
vue3-lw-pc/src/api/marketStrategy/journey.js
vue3-lw-pc/src/api/marketStrategy/people.js
vue3-lw-pc/src/components/common/BaiduMap.vue
vue3-lw-pc/src/views/drainageCode/store/add.vue
vue3-lw-pc/src/views/intelligentShortLink/index.vue
vue3-lw-pc/src/api/marketStrategy/journey.js
View file @
f500580
import
request
from
'@/utils/request'
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'
// import { get, post } from '@/plugins/axios'
...
@@ -19,8 +20,8 @@ export function getCrowdPackDetail(id) {
...
@@ -19,8 +20,8 @@ export function getCrowdPackDetail(id) {
// 计划列表查询接口
// 计划列表查询接口
// name 任务名称 String 支持模糊查询
// name 任务名称 String 支持模糊查询
// startDate 开始日期 String
YYYY-MM-DD
// startDate 开始日期 String
yyyy-MM-dd
// endDate 结束日期 String
YYYY-MM-DD
// endDate 结束日期 String
yyyy-MM-dd
// status 状态 number 0:待完善,1:未开始,2:待运行,3:运行中,4:已暂停,5:已停止,6:正常结束,7:异常结束
// status 状态 number 0:待完善,1:未开始,2:待运行,3:运行中,4:已暂停,5:已停止,6:正常结束,7:异常结束
// pageNum 页码 number
// pageNum 页码 number
// pageSize 页大小 number
// pageSize 页大小 number
...
...
vue3-lw-pc/src/api/marketStrategy/people.js
View file @
f500580
...
@@ -84,3 +84,10 @@ export function crowdAnalyse(data) {
...
@@ -84,3 +84,10 @@ export function crowdAnalyse(data) {
params
:
data
,
params
:
data
,
})
})
}
}
export
function
deleteCategory
(
ids
)
{
return
request
({
url
:
base
+
'/strategic/crowd/categoryDel/'
+
ids
,
method
:
'delete'
,
})
}
vue3-lw-pc/src/components/common/BaiduMap.vue
View file @
f500580
...
@@ -5,16 +5,17 @@
...
@@ -5,16 +5,17 @@
:disabled=
"isDetail"
:disabled=
"isDetail"
@
change=
"setChange"
@
change=
"setChange"
v-model=
"form.address"
v-model=
"form.address"
style=
"width: 500px"
style=
"width: 500px
;
"
popper-class=
"autoAddressClass"
popper-class=
"autoAddressClass"
:fetch-suggestions=
"querySearchAsync"
:fetch-suggestions=
"querySearchAsync"
:trigger-on-focus=
"false"
:trigger-on-focus=
"false"
placeholder=
"详细地址"
placeholder=
"详细地址"
clearable
clearable
@
select=
"handleSelect"
>
@
select=
"handleSelect"
>
<template
#
default=
"
{ item }">
<template
#
default=
"
{ item }">
<el-icon-search
class=
"el-icon-search fl mgr10"
/>
<el-icon-search
class=
"el-icon-search fl mgr10"
/>
<div
style=
"overflow: hidden"
>
<div
style=
"overflow: hidden
;
"
>
<div
class=
"title"
>
{{
item
.
title
}}
</div>
<div
class=
"title"
>
{{
item
.
title
}}
</div>
<span
class=
"address ellipsis"
>
{{
item
.
address
}}
</span>
<span
class=
"address ellipsis"
>
{{
item
.
address
}}
</span>
</div>
</div>
...
@@ -28,9 +29,9 @@
...
@@ -28,9 +29,9 @@
</template>
</template>
<
script
>
<
script
>
/* eslint-disable */
/* eslint-disable */
import
loadBMap
from
'@/utils/baiduMap.js'
import
loadBMap
from
'@/utils/baiduMap.js'
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
form
:
{
form
:
{
...
@@ -41,12 +42,12 @@ export default {
...
@@ -41,12 +42,12 @@ export default {
addrPoint
:
{
addrPoint
:
{
// 详细地址经纬度
// 详细地址经纬度
lng
:
0
,
lng
:
0
,
lat
:
0
,
lat
:
0
},
}
},
},
map
:
''
,
// 地图实例
map
:
''
,
// 地图实例
mk
:
''
,
// Marker实例
mk
:
''
,
// Marker实例
locationPoint
:
null
,
locationPoint
:
null
}
}
},
},
props
:
{
props
:
{
...
@@ -57,30 +58,30 @@ export default {
...
@@ -57,30 +58,30 @@ export default {
// address: '', // 详细地址
// address: '', // 详细地址
// longitude: '', // 经度
// longitude: '', // 经度
// latitude: '', // 纬度
// latitude: '', // 纬度
}),
})
},
},
mapWidth
:
{
mapWidth
:
{
type
:
String
,
type
:
String
,
default
:
'500px'
,
default
:
'500px'
},
},
mapHeight
:
{
mapHeight
:
{
type
:
String
,
type
:
String
,
default
:
'300px'
,
default
:
'300px'
},
},
isDetail
:
{
isDetail
:
{
type
:
Boolean
,
type
:
Boolean
,
default
:
false
,
default
:
false
},
},
// 是否只显示地图
// 是否只显示地图
isOnlyShowMap
:
{
isOnlyShowMap
:
{
type
:
Boolean
,
type
:
Boolean
,
default
:
false
,
default
:
false
},
},
},
watch
:
{
watch
:
{
initData
:
{
initData
:
{
handler
(
value
)
{
handler
(
value
)
{
if
(
this
.
initData
.
area
&&
!
this
.
initData
.
address
)
{
if
(
this
.
initData
.
area
&&
!
this
.
initData
.
address
)
{
this
.
form
.
address
=
''
this
.
getPoint
(
this
.
initData
.
area
)
this
.
getPoint
(
this
.
initData
.
area
)
this
.
initMap
()
this
.
initMap
()
}
}
...
@@ -96,8 +97,9 @@ export default {
...
@@ -96,8 +97,9 @@ export default {
this
.
initMap
()
this
.
initMap
()
}
}
},
},
deep
:
true
,
deep
:
true
},
}
}
},
},
async
mounted
()
{
async
mounted
()
{
// 百度地图AK: GeDsF2XGs01U0bUSpFIUCmvyNoYuGC3P
// 百度地图AK: GeDsF2XGs01U0bUSpFIUCmvyNoYuGC3P
...
@@ -172,7 +174,7 @@ export default {
...
@@ -172,7 +174,7 @@ export default {
// alert('您选择的地址没有解析到结果!')
// alert('您选择的地址没有解析到结果!')
}
}
},
},
that
.
getCity
(
str
),
that
.
getCity
(
str
)
)
)
},
},
// 初始化地图
// 初始化地图
...
@@ -182,7 +184,7 @@ export default {
...
@@ -182,7 +184,7 @@ export default {
this
.
map
=
new
BMap
.
Map
(
this
.
$refs
.
bMap
,
{
enableMapClick
:
false
})
this
.
map
=
new
BMap
.
Map
(
this
.
$refs
.
bMap
,
{
enableMapClick
:
false
})
var
point
=
new
BMap
.
Point
(
var
point
=
new
BMap
.
Point
(
this
.
form
.
addrPoint
.
lng
||
117.2334414073489
,
this
.
form
.
addrPoint
.
lng
||
117.2334414073489
,
this
.
form
.
addrPoint
.
lat
||
31.826578293886
,
this
.
form
.
addrPoint
.
lat
||
31.826578293886
)
)
this
.
map
.
centerAndZoom
(
point
,
19
)
this
.
map
.
centerAndZoom
(
point
,
19
)
// 3、设置图像标注并绑定拖拽标注结束后事件
// 3、设置图像标注并绑定拖拽标注结束后事件
...
@@ -193,7 +195,7 @@ export default {
...
@@ -193,7 +195,7 @@ export default {
})
})
// 4、添加(右上角)平移缩放控件
// 4、添加(右上角)平移缩放控件
this
.
map
.
addControl
(
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、添加(左下角)定位控件
// 5、添加(左下角)定位控件
var
geolocationControl
=
new
BMap
.
GeolocationControl
({
anchor
:
BMAP_ANCHOR_BOTTOM_LEFT
})
var
geolocationControl
=
new
BMap
.
GeolocationControl
({
anchor
:
BMAP_ANCHOR_BOTTOM_LEFT
})
...
@@ -230,7 +232,7 @@ export default {
...
@@ -230,7 +232,7 @@ export default {
that
.
locationPoint
=
new
BMap
.
Point
(
117.2334414073489
,
31.826578293886
)
that
.
locationPoint
=
new
BMap
.
Point
(
117.2334414073489
,
31.826578293886
)
}
}
},
},
{
enableHighAccuracy
:
true
},
{
enableHighAccuracy
:
true
}
)
)
}
}
},
},
...
@@ -242,7 +244,10 @@ export default {
...
@@ -242,7 +244,10 @@ export default {
geco
.
getLocation
(
point
,
function
(
res
)
{
geco
.
getLocation
(
point
,
function
(
res
)
{
that
.
mk
.
setPosition
(
point
)
that
.
mk
.
setPosition
(
point
)
that
.
map
.
panTo
(
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
.
form
.
addrPoint
=
point
that
.
onSubmit
()
that
.
onSubmit
()
})
})
...
@@ -261,7 +266,7 @@ export default {
...
@@ -261,7 +266,7 @@ export default {
}
else
{
}
else
{
cb
(
s
)
cb
(
s
)
}
}
},
}
}
}
var
local
=
new
BMap
.
LocalSearch
(
this
.
map
,
options
)
var
local
=
new
BMap
.
LocalSearch
(
this
.
map
,
options
)
local
.
search
(
str
)
local
.
search
(
str
)
...
@@ -336,21 +341,21 @@ export default {
...
@@ -336,21 +341,21 @@ export default {
address
:
''
,
address
:
''
,
addrPoint
:
{
addrPoint
:
{
lng
:
0
,
lng
:
0
,
lat
:
0
,
lat
:
0
},
}
}
}
this
.
onSubmit
()
this
.
onSubmit
()
}
}
},
},
onSubmit
()
{
onSubmit
()
{
this
.
$emit
(
'update'
,
this
.
form
)
this
.
$emit
(
'update'
,
this
.
form
)
},
}
},
}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.autoAddressClass
{
.autoAddressClass
{
li
{
li
{
i.el-icon-search
{
i.el-icon-search
{
margin-top
:
11px
;
margin-top
:
11px
;
...
@@ -369,5 +374,5 @@ export default {
...
@@ -369,5 +374,5 @@ export default {
margin-bottom
:
5px
;
margin-bottom
:
5px
;
}
}
}
}
}
}
</
style
>
</
style
>
vue3-lw-pc/src/views/drainageCode/store/add.vue
View file @
f500580
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
<div>
<div>
<el-form
label-width=
"120px"
label-position=
"right"
ref=
"form"
:rules=
"rule"
:model=
"form"
>
<el-form
label-width=
"120px"
label-position=
"right"
ref=
"form"
:rules=
"rule"
:model=
"form"
>
<div
class=
"g-card"
>
<div
class=
"g-card"
>
<div
class=
"card-title"
style=
"display: inline-block"
>
基础信息
</div>
<div
class=
"card-title"
style=
"display: inline-block
;
"
>
基础信息
</div>
<div
style=
"float: right"
v-if=
"isDetail"
>
<div
style=
"float: right
;
"
v-if=
"isDetail"
>
<el-button
<el-button
type=
"primary"
type=
"primary"
@
click=
"
@
click=
"
...
@@ -11,10 +11,11 @@
...
@@ -11,10 +11,11 @@
path: 'add',
path: 'add',
query: {
query: {
id: $route.query.id,
id: $route.query.id,
obj: encodeURIComponent(JSON.stringify(form))
,
obj: encodeURIComponent(JSON.stringify(form))
}
,
}
})
})
">
"
>
编辑
编辑
</el-button>
</el-button>
</div>
</div>
...
@@ -23,9 +24,10 @@
...
@@ -23,9 +24,10 @@
:disabled=
"isDetail"
:disabled=
"isDetail"
v-model=
"form.storeName"
v-model=
"form.storeName"
placeholder=
"请输入门店名称"
placeholder=
"请输入门店名称"
style=
"width: 400px"
style=
"width: 400px
;
"
show-word-limit
show-word-limit
maxlength=
"30"
/>
maxlength=
"30"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"所属地区"
prop=
"area"
>
<el-form-item
label=
"所属地区"
prop=
"area"
>
<el-cascader
<el-cascader
...
@@ -34,7 +36,8 @@
...
@@ -34,7 +36,8 @@
:props=
"props"
:props=
"props"
:options=
"cityTree"
:options=
"cityTree"
ref=
"tree"
ref=
"tree"
@
change=
"handleTree"
></el-cascader>
@
change=
"handleTree"
></el-cascader>
</el-form-item>
</el-form-item>
<baidu-map
@
update=
"handleChange"
@
point=
"getPoint"
:isDetail=
"isDetail"
:initData=
"form"
></baidu-map>
<baidu-map
@
update=
"handleChange"
@
point=
"getPoint"
:isDetail=
"isDetail"
:initData=
"form"
></baidu-map>
</div>
</div>
...
@@ -47,10 +50,10 @@
...
@@ -47,10 +50,10 @@
<el-button
v-if=
"!isDetail"
icon=
"el-icon-plus"
type=
"primary"
plain
@
click=
"dialogVisibleQr = true"
>
<el-button
v-if=
"!isDetail"
icon=
"el-icon-plus"
type=
"primary"
plain
@
click=
"dialogVisibleQr = true"
>
{{
form
.
shopGuideUrl
?
'编辑'
:
'选择'
}}
员工活码
{{
form
.
shopGuideUrl
?
'编辑'
:
'选择'
}}
员工活码
</el-button>
</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"
>
<ul
class=
"el-upload-list el-upload-list--picture-card"
>
<li
class=
"el-upload-list__item is-success"
>
<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-actions"
>
<span
class=
"el-upload-list__item-delete"
>
<span
class=
"el-upload-list__item-delete"
>
<el-icon-delete
class=
"el-icon-delete"
@
click=
"handleRemove"
></el-icon-delete>
<el-icon-delete
class=
"el-icon-delete"
@
click=
"handleRemove"
></el-icon-delete>
...
@@ -63,7 +66,7 @@
...
@@ -63,7 +66,7 @@
<el-form-item
label=
"门店群活码"
>
<el-form-item
label=
"门店群活码"
>
<div
v-if=
"form.groupCodeUrl"
>
<div
v-if=
"form.groupCodeUrl"
>
<div>
{{
form
.
groupCodeName
}}
</div>
<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>
</div>
<el-button
<el-button
...
@@ -71,7 +74,8 @@
...
@@ -71,7 +74,8 @@
icon=
"el-icon-plus"
icon=
"el-icon-plus"
type=
"primary"
type=
"primary"
plain
plain
@
click=
"dialogVisibleSelectQrCode = true"
>
@
click=
"dialogVisibleSelectQrCode = true"
>
{{
form
.
groupCodeUrl
?
'编辑'
:
'选择'
}}
群活码
{{
form
.
groupCodeUrl
?
'编辑'
:
'选择'
}}
群活码
</el-button>
</el-button>
</el-form-item>
</el-form-item>
...
@@ -83,7 +87,8 @@
...
@@ -83,7 +87,8 @@
active-text=
"启用"
active-text=
"启用"
inactive-text=
"停用"
inactive-text=
"停用"
:active-value=
"0"
:active-value=
"0"
:inactive-value=
"1"
></el-switch>
:inactive-value=
"1"
></el-switch>
</
template
>
</
template
>
<
template
v-else
>
<
template
v-else
>
<el-switch
<el-switch
...
@@ -92,7 +97,8 @@
...
@@ -92,7 +97,8 @@
active-text=
"启用"
active-text=
"启用"
inactive-text=
"停用"
inactive-text=
"停用"
:active-value=
"0"
:active-value=
"0"
:inactive-value=
"1"
></el-switch>
:inactive-value=
"1"
></el-switch>
</
template
>
</
template
>
</el-form-item>
</el-form-item>
</div>
</div>
...
@@ -112,19 +118,20 @@
...
@@ -112,19 +118,20 @@
<SelectQrCode
<SelectQrCode
v-model:visible=
"dialogVisibleSelectQrCode"
v-model:visible=
"dialogVisibleSelectQrCode"
@
success=
"selectedQrCode"
@
success=
"selectedQrCode"
:selected=
"selectedCodeList"
></SelectQrCode>
:selected=
"selectedCodeList"
></SelectQrCode>
<SelectStaffQrCode
v-model:visible=
"dialogVisibleQr"
@
success=
"selectedQr"
></SelectStaffQrCode>
<SelectStaffQrCode
v-model:visible=
"dialogVisibleQr"
@
success=
"selectedQr"
></SelectStaffQrCode>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
BaiduMap
from
'@/components/common/BaiduMap'
import
BaiduMap
from
'@/components/common/BaiduMap'
import
SelectQrCode
from
'@/components/SelectQrCode'
import
SelectQrCode
from
'@/components/SelectQrCode'
import
SelectUser
from
'@/components/SelectUser'
import
SelectUser
from
'@/components/SelectUser'
import
SelectStaffQrCode
from
'@/components/SelectStaffQrCode'
import
SelectStaffQrCode
from
'@/components/SelectStaffQrCode'
import
{
getProCityList
}
from
'@/api/common'
import
{
getProCityList
}
from
'@/api/common'
import
{
addOrUpdateStore
,
storeDetail
}
from
'@/api/drainageCode/store'
import
{
addOrUpdateStore
,
storeDetail
}
from
'@/api/drainageCode/store'
export
default
{
export
default
{
name
:
'store-add'
,
name
:
'store-add'
,
data
()
{
data
()
{
return
{
return
{
...
@@ -132,7 +139,7 @@ export default {
...
@@ -132,7 +139,7 @@ export default {
current
:
{
current
:
{
province
:
''
,
province
:
''
,
city
:
''
,
city
:
''
,
area
:
''
,
area
:
''
},
},
form
:
{
form
:
{
storeState
:
1
,
storeState
:
1
,
...
@@ -149,7 +156,7 @@ export default {
...
@@ -149,7 +156,7 @@ export default {
groupCodeUrl
:
''
,
groupCodeUrl
:
''
,
groupCodeName
:
''
,
groupCodeName
:
''
,
groupCodeId
:
''
,
groupCodeId
:
''
,
shopGuideUrl
:
''
,
shopGuideUrl
:
''
},
},
selectedUserList
:
[],
selectedUserList
:
[],
dialogVisibleSelectUser
:
false
,
dialogVisibleSelectUser
:
false
,
...
@@ -159,27 +166,27 @@ export default {
...
@@ -159,27 +166,27 @@ export default {
cityTree
:
[],
cityTree
:
[],
props
:
{
props
:
{
label
:
'name'
,
label
:
'name'
,
value
:
'name'
,
value
:
'name'
},
},
rule
:
{
rule
:
{
storeName
:
[{
required
:
true
,
message
:
'请输入门店名称'
,
trigger
:
'blur'
}],
storeName
:
[{
required
:
true
,
message
:
'请输入门店名称'
,
trigger
:
'blur'
}],
area
:
[{
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
:
{
props
:
{
isDetail
:
{
isDetail
:
{
type
:
Boolean
,
type
:
Boolean
,
default
:
false
,
default
:
false
},
}
},
},
components
:
{
components
:
{
BaiduMap
,
BaiduMap
,
SelectQrCode
,
SelectQrCode
,
SelectUser
,
SelectUser
,
SelectStaffQrCode
,
SelectStaffQrCode
},
},
methods
:
{
methods
:
{
handleRemove
()
{
handleRemove
()
{
...
@@ -223,6 +230,9 @@ export default {
...
@@ -223,6 +230,9 @@ export default {
},
},
handleTree
(
data
)
{
handleTree
(
data
)
{
this
.
form
.
area
=
this
.
areaArray
.
join
(
''
)
this
.
form
.
area
=
this
.
areaArray
.
join
(
''
)
this
.
form
.
address
=
''
this
.
form
.
longitude
=
''
this
.
form
.
latitude
=
''
},
},
selectedUser
(
data
)
{
selectedUser
(
data
)
{
this
.
selectedUserList
=
data
this
.
selectedUserList
=
data
...
@@ -268,7 +278,7 @@ export default {
...
@@ -268,7 +278,7 @@ export default {
this
.
$confirm
(
`是否确认取消
${
this
.
$route
.
query
.
id
?
'编辑'
:
'新建'
}
?取消后不可恢复,请谨慎操作。`
,
'提示'
,
{
this
.
$confirm
(
`是否确认取消
${
this
.
$route
.
query
.
id
?
'编辑'
:
'新建'
}
?取消后不可恢复,请谨慎操作。`
,
'提示'
,
{
confirmButtonText
:
'确认'
,
confirmButtonText
:
'确认'
,
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
type
:
'warning'
})
})
.
then
(()
=>
{
.
then
(()
=>
{
this
.
$router
.
back
()
this
.
$router
.
back
()
...
@@ -295,7 +305,7 @@ export default {
...
@@ -295,7 +305,7 @@ export default {
this
.
selectedUserList
=
[...
arr
]
this
.
selectedUserList
=
[...
arr
]
// this.$forceUpdate()
// this.$forceUpdate()
}
}
},
}
},
},
created
()
{
created
()
{
getProCityList
({
isExtName
:
true
}).
then
((
res
)
=>
{
getProCityList
({
isExtName
:
true
}).
then
((
res
)
=>
{
...
@@ -311,15 +321,15 @@ export default {
...
@@ -311,15 +321,15 @@ export default {
}
}
})
})
}
}
},
}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.card-title
{
.card-title
{
font-size
:
16px
;
font-size
:
16px
;
font-weight
:
500
;
font-weight
:
500
;
color
:
#333333
;
color
:
#333333
;
margin-bottom
:
20px
;
margin-bottom
:
20px
;
}
}
</
style
>
</
style
>
vue3-lw-pc/src/views/intelligentShortLink/index.vue
View file @
f500580
<
script
>
<
script
>
import
{
getList
,
getAnalysis
,
remove
}
from
'@/api/intelligentShortLink'
import
{
getList
,
getAnalysis
,
remove
}
from
'@/api/intelligentShortLink'
import
{
touchTypeDict
}
from
'./components/mixin'
import
*
as
api
from
'@/api/enterpriseId'
export
default
{
import
{
touchTypeDict
}
from
'./components/mixin'
export
default
{
name
:
''
,
name
:
''
,
components
:
{},
components
:
{},
data
()
{
data
()
{
...
@@ -11,7 +12,7 @@ export default {
...
@@ -11,7 +12,7 @@ export default {
total
:
0
,
total
:
0
,
query
:
{
query
:
{
pageSize
:
10
,
pageSize
:
10
,
pageNum
:
1
,
pageNum
:
1
},
},
touchTypeDict
,
touchTypeDict
,
// dictStatus: Object.freeze({
// dictStatus: Object.freeze({
...
@@ -21,11 +22,14 @@ export default {
...
@@ -21,11 +22,14 @@ export default {
list
:
[],
list
:
[],
ids
:
[],
ids
:
[],
needMoreInfo
:
false
,
dialogVisible
:
false
}
}
},
},
computed
:
{},
computed
:
{},
watch
:
{},
watch
:
{},
created
()
{
created
()
{
this
.
setState
()
this
.
getList
()
this
.
getList
()
this
.
getAnalysis
()
this
.
getAnalysis
()
this
.
$store
.
setBusininessDesc
(
` <div>生成智能短链,一键跳转公众号、小程序、企业微信</div> `
)
this
.
$store
.
setBusininessDesc
(
` <div>生成智能短链,一键跳转公众号、小程序、企业微信</div> `
)
...
@@ -37,6 +41,23 @@ export default {
...
@@ -37,6 +41,23 @@ export default {
this
.
clipboard
.
destroy
()
this
.
clipboard
.
destroy
()
},
},
methods
:
{
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
()
{
getAnalysis
()
{
this
.
loading
=
true
this
.
loading
=
true
getAnalysis
()
getAnalysis
()
...
@@ -45,39 +66,39 @@ export default {
...
@@ -45,39 +66,39 @@ export default {
{
{
title
:
'访问总数(pv)'
,
title
:
'访问总数(pv)'
,
tips
:
'短链页面访问的总次数'
,
tips
:
'短链页面访问的总次数'
,
value
:
data
.
pvTotalCount
,
value
:
data
.
pvTotalCount
},
},
{
{
title
:
'访问总人数(uv)'
,
title
:
'访问总人数(uv)'
,
tips
:
'短链页面访问的独立IP数'
,
tips
:
'短链页面访问的独立IP数'
,
value
:
data
.
uvTotalCount
,
value
:
data
.
uvTotalCount
},
},
{
{
title
:
'小程序打开数'
,
title
:
'小程序打开数'
,
tips
:
'小程序成功打开的总次数'
,
tips
:
'小程序成功打开的总次数'
,
value
:
data
.
openTotalCount
,
value
:
data
.
openTotalCount
},
},
{
{
title
:
'今日访问总数(pv)'
,
title
:
'今日访问总数(pv)'
,
tips
:
'今日短链页面访问的总次数'
,
tips
:
'今日短链页面访问的总次数'
,
value
:
data
.
pvTodayCount
,
value
:
data
.
pvTodayCount
,
title1
:
'较昨日'
,
title1
:
'较昨日'
,
value1
:
data
.
pvDiff
,
value1
:
data
.
pvDiff
},
},
{
{
title
:
'今日访问总人数(uv)'
,
title
:
'今日访问总人数(uv)'
,
tips
:
'今日短链页面访问的独立IP数'
,
tips
:
'今日短链页面访问的独立IP数'
,
value
:
data
.
uvTodayCount
,
value
:
data
.
uvTodayCount
,
title1
:
'较昨日'
,
title1
:
'较昨日'
,
value1
:
data
.
uvDiff
,
value1
:
data
.
uvDiff
},
},
{
{
title
:
'今日小程序打开数'
,
title
:
'今日小程序打开数'
,
tips
:
'今日小程序成功打开的总次数'
,
tips
:
'今日小程序成功打开的总次数'
,
value
:
data
.
openTodayCount
,
value
:
data
.
openTodayCount
,
title1
:
'较昨日'
,
title1
:
'较昨日'
,
value1
:
data
.
openDiff
,
value1
:
data
.
openDiff
},
}
]
]
})
})
.
catch
((
e
)
=>
{
.
catch
((
e
)
=>
{
...
@@ -105,15 +126,23 @@ export default {
...
@@ -105,15 +126,23 @@ export default {
this
.
getList
(
1
)
this
.
getList
(
1
)
},
},
goRoute
(
row
=
{},
detail
)
{
goRoute
(
row
=
{},
detail
)
{
if
(
this
.
needMoreInfo
)
{
this
.
dialogVisible
=
true
return
}
let
{
id
}
=
row
let
{
id
}
=
row
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'./'
+
(
detail
||
'addEdit'
),
path
:
'./'
+
(
detail
||
'addEdit'
),
query
:
{
id
},
query
:
{
id
}
})
})
},
},
remove
(
id
)
{
remove
(
id
)
{
const
ids
=
id
||
this
.
ids
+
''
const
ids
=
id
||
this
.
ids
+
''
this
.
$confirm
(
'是否确认删除吗?'
,
'警告'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
})
this
.
$confirm
(
'是否确认删除吗?'
,
'警告'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
})
.
then
(
function
()
{
.
then
(
function
()
{
return
remove
(
ids
)
return
remove
(
ids
)
})
})
...
@@ -121,9 +150,9 @@ export default {
...
@@ -121,9 +150,9 @@ export default {
this
.
getList
()
this
.
getList
()
this
.
msgSuccess
(
'删除成功'
)
this
.
msgSuccess
(
'删除成功'
)
})
})
},
}
},
}
}
}
</
script
>
</
script
>
<
template
>
<
template
>
...
@@ -140,7 +169,8 @@ export default {
...
@@ -140,7 +169,8 @@ export default {
v-for=
"(item, index) in touchTypeDict"
v-for=
"(item, index) in touchTypeDict"
:key=
"index"
:key=
"index"
:label=
"item.allName"
:label=
"item.allName"
:value=
"+index"
></el-option>
:value=
"+index"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<!--
<el-form-item
label=
""
prop=
"status"
>
<!--
<el-form-item
label=
""
prop=
"status"
>
...
@@ -172,7 +202,8 @@ export default {
...
@@ -172,7 +202,8 @@ export default {
<el-icon-copy-document
<el-icon-copy-document
class=
"el-icon-copy-document copy-btn cp ml20"
class=
"el-icon-copy-document copy-btn cp ml20"
title=
"复制"
title=
"复制"
:data-clipboard-text=
"row.shortLink"
></el-icon-copy-document>
:data-clipboard-text=
"row.shortLink"
></el-icon-copy-document>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<!-- <el-table-column label="状态" align="center" prop="status">
<!-- <el-table-column label="状态" align="center" prop="status">
...
@@ -188,14 +219,39 @@ export default {
...
@@ -188,14 +219,39 @@ export default {
</el-table-column>
</el-table-column>
</el-table>
</el-table>
<pagination
:total=
"total"
v-model:page=
"query.pageNum"
v-model:limit=
"query.pageSize"
@
pagination=
"getList()"
/>
<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>
</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>
</div>
</template>
</template>
<
style
lang=
"scss"
scoped
>
<
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
{
&:hover
{
color
:
var
(
--color
);
color
:
var
(
--color
);
}
}
}
}
</
style
>
</
style
>
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