Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
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 7a0179d2
authored
Mar 23, 2022
by
wuwx
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v2.0.0' into wuwx_dev_v2.0.0
2 parents
77e0afa2
6822d245
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
134 additions
and
112 deletions
src/api/modules/material.js
src/config/index.js
src/main.js
src/setup/qiankun.js
src/views/friendGroup/components/preview.vue
src/views/friendGroup/friendGroupAdd.vue
src/views/friendGroup/index.vue
src/views/material/addMaterial.vue
src/views/material/components/materialGroup.vue
src/views/material/components/textBox.vue
src/views/material/index.vue
src/views/material/materialDetail.vue
src/views/memberCenter/center.vue
src/views/sop/editSop/editEvent.vue
src/views/sop/sopAnalysis/touchList.vue
src/api/modules/material.js
View file @
7a0179d
import
{
http
}
from
'@/main'
import
{
http
,
http_merchant
}
from
'@/main'
const
defaultPath
=
'marketing.api.material.'
...
...
@@ -151,11 +151,11 @@ const sendDetailPage = params => {
const
findAllDictData
=
params
=>
{
params
.
method
=
'merchants.api.menu.findAllDictData'
return
http
({
url
:
'http://rop-merchant.dev.glsx.com.cn/
rop-merchants/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
return
http
_merchant
({
url
:
'
rop-merchants/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
...
...
src/config/index.js
View file @
7a0179d
...
...
@@ -19,8 +19,8 @@ export const fetchConfig = function (isEnv = true) {
// }
//return window.fetch('https://', {}).then(res => res.json())
// request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' })
return
new
Http
().
get
(
'https://oss-config.test.glsx.com.cn/mock/619c87331072f92988f05a29/marketing/config'
)
// return new Http().get('http://192.168.3.171:7300
/mock/619c87331072f92988f05a29/marketing/config')
//
return new Http().get('https://oss-config.test.glsx.com.cn/mock/619c87331072f92988f05a29/marketing/config')
return
new
Http
().
get
(
'https://oss-config.dev.glsx.com.cn
/mock/619c87331072f92988f05a29/marketing/config'
)
}
export
const
config
=
{
install
(
vue
,
cfg
)
{
...
...
src/main.js
View file @
7a0179d
...
...
@@ -22,3 +22,4 @@ export { bootstrap, mount, unmount } from '@/setup'
export
const
http
=
params
=>
Vue
.
prototype
.
$http
(
params
)
export
const
http2
=
params
=>
Vue
.
prototype
.
$http2
(
params
)
export
const
http_common
=
params
=>
Vue
.
prototype
.
$http_common
(
params
)
export
const
http_merchant
=
params
=>
Vue
.
prototype
.
$http_merchant
(
params
)
src/setup/qiankun.js
View file @
7a0179d
...
...
@@ -15,7 +15,7 @@ Vue.use(ElementUI)
Vue
.
use
(
GLTable
)
Vue
.
use
(
GLFooter
)
export
async
function
bootstrap
({
history
,
common
,
messenger
,
globalState
,
routerBase
})
{
const
{
response
,
request
,
request2
,
sign
,
secret
,
sign_common
,
request_common
}
=
await
fetchConfig
(
false
)
const
{
response
,
request
,
request2
,
sign
,
secret
,
sign_common
,
request_common
,
request_merchant
}
=
await
fetchConfig
(
false
)
Vue
.
prototype
.
$history
=
history
Vue
.
prototype
.
$messenger
=
messenger
Vue
.
prototype
.
$globalState
=
globalState
...
...
@@ -24,6 +24,7 @@ export async function bootstrap({ history, common, messenger, globalState, route
Vue
.
prototype
.
$messageBox
=
messageBox
Vue
.
prototype
.
$http
=
new
common
.
Http
({
response
,
request
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http2
=
new
common
.
Http
({
response
,
request
:
request2
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http_merchant
=
new
common
.
Http
({
response
,
request
:
request_merchant
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http_common
=
new
common
.
Http
({
response
,
signWay
:
"md5"
,
request
:
request_common
,
sign
:
sign_common
,
secret
,
alert
:
ElementUI
.
Message
.
error
,
headers
:
{
TGT
:
globalState
.
session
.
token
}
})
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
// Vue.use(GLButton, { permissions: globalState.permissions || ['1-1-1-1', '2-1-1-1', '3-1-1-1'] })
...
...
src/views/friendGroup/components/preview.vue
View file @
7a0179d
...
...
@@ -38,10 +38,12 @@
<div
class=
"preview-operation"
>
赞 | 评论
</div>
</div>
</div>
<el-dialog
:visible
.
sync=
"videoShow"
:before-close=
"handleClose"
class=
"video-dialog"
>
<div
slot=
"title"
style=
"height: 18px"
></div>
<video
v-if=
"videoShow"
width=
"100%"
height=
"100%"
autoplay
controls
:src=
"this.videoUrl"
></video>
</el-dialog>
<div
class=
"video-dialog"
v-if=
"videoShow"
>
<div
class=
"video-dialog-panel"
>
<div
class=
"video-close"
><i
class=
"el-icon-close"
@
click=
"videoShow = false"
></i></div>
<video
height=
"100%"
autoplay
controls
:src=
"this.videoUrl"
></video>
</div>
</div>
</div>
</template>
...
...
@@ -71,7 +73,7 @@ export default {
previewList
(
val
)
{
if
(
val
.
length
&&
val
[
0
].
attType
==
1
)
{
const
attContent
=
val
[
0
].
attContent
[
0
]
const
htm
=
attContent
.
replace
(
/
\[[\u
4E00-
\u
9FA56
]{1,4}
]/gi
,
function
(
res
)
{
const
htm
=
attContent
.
replace
(
/
\[[\u
4E00-
\u
9FA56
]{1,4}
]/gi
,
function
(
res
)
{
let
word
=
res
.
replace
(
/
\[
|
\]
/gi
,
''
)
const
list
=
emoji
.
flat
(
Infinity
)
let
index
=
parseInt
(
list
.
indexOf
(
word
))
+
1
...
...
@@ -187,6 +189,7 @@ export default {
color
:
#333
;
background-color
:
#fff
;
border-radius
:
4px
;
word-wrap
:
break-word
;
word-break
:
break-all
;
line-height
:
20px
;
/deep/
img
{
...
...
@@ -196,6 +199,7 @@ export default {
}
}
.text
{
width
:
100%
;
font-size
:
12px
;
padding
:
0px
;
margin-bottom
:
6px
;
...
...
@@ -272,13 +276,34 @@ export default {
}
}
.video-dialog
{
/deep/
{
.el-dialog__header
{
border-bottom
:
0px
;
background-color
:
rgb
(
0
,
0
,
0
);
}
.el-dialog__body
{
padding
:
0px
;
z-index
:
2001
;
position
:
fixed
;
top
:
0
;
right
:
0
;
bottom
:
0
;
left
:
0
;
overflow
:
auto
;
background
:
rgba
(
$
color
:
#000000
,
$
alpha
:
0.5
);
&-panel
{
background
:
#000000
;
position
:
absolute
;
top
:
100px
;
left
:
50%
;
transform
:
translateX
(
-50%
);
height
:
calc
(
100%
-
200px
);
width
:
auto
;
box-sizing
:
border-box
;
padding
:
10px
20px
20px
;
overflow
:
hidden
;
.video-close
{
display
:
flex
;
justify-content
:
flex-end
;
height
:
40px
;
i
{
cursor
:
pointer
;
font-size
:
25px
;
color
:
#5850ff
;
}
}
}
}
...
...
src/views/friendGroup/friendGroupAdd.vue
View file @
7a0179d
...
...
@@ -148,7 +148,7 @@ export default {
name
:
'视频'
,
type
:
'video'
,
funName
:
'video'
}
,
}
// {
// id: 4,
// name: '活动',
...
...
@@ -241,7 +241,7 @@ export default {
},
// 查看群发人数
viewMembers
()
{
if
(
!
this
.
basicForm
.
userList
)
{
if
(
!
this
.
basicForm
.
userList
||
this
.
basicForm
.
userList
.
length
==
0
)
{
this
.
$message
({
type
:
'error'
,
message
:
'请选择发表成员'
...
...
@@ -365,7 +365,7 @@ export default {
if
(
item
.
attType
==
1
)
{
const
list
=
emoji
.
flat
(
Infinity
)
const
cutImg
=
item
.
attContent
.
replaceAll
(
'<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/'
,
''
)
const
replaceImg
=
cutImg
.
replace
(
/
(\d){3}
.png">/g
,
function
(
str
)
{
const
replaceImg
=
cutImg
.
replace
(
/
(\d){3}
.png">/g
,
function
(
str
)
{
let
s
=
list
[
parseInt
(
str
.
split
(
'.'
)[
0
])
-
1
]
return
`[
${
s
}
]`
})
...
...
@@ -403,7 +403,9 @@ export default {
const
date
=
new
Date
(
v
).
getTime
()
if
(
date
<
Date
.
now
())
{
this
.
timeOptions
=
{
selectableRange
:
`
${
dayjs
().
add
(
1
,
'm'
).
format
(
'HH:mm'
)}
:00 - 23:59:59`
selectableRange
:
`
${
dayjs
()
.
add
(
1
,
'm'
)
.
format
(
'HH:mm'
)}
:00 - 23:59:59`
}
}
else
{
this
.
timeOptions
=
{
...
...
src/views/friendGroup/index.vue
View file @
7a0179d
...
...
@@ -36,8 +36,8 @@
</div>
</div>
<div
slot=
"sendType"
slot-scope=
"scope"
>
<span
style=
"color: #eb4e4e"
v-if=
"scope.scope.sendType ==
1
"
>
定时发送
</span>
<span
v-if=
"scope.scope.sendType ==
2
"
>
立即发送
</span>
<span
style=
"color: #eb4e4e"
v-if=
"scope.scope.sendType ==
2
"
>
定时发送
</span>
<span
v-if=
"scope.scope.sendType ==
1
"
>
立即发送
</span>
</div>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<el-button
type=
"text"
disabled
v-if=
"scope.scope.status == 2 || scope.scope.status == 1"
>
创建中
</el-button>
...
...
@@ -134,7 +134,8 @@ export default {
{
label
:
'内容'
,
prop
:
'attachmentList'
,
addHtml
:
'attachmentList'
addHtml
:
'attachmentList'
,
width
:
'240'
},
{
label
:
'发布方式'
,
...
...
@@ -322,7 +323,7 @@ export default {
const
time
=
new
Date
().
getTime
()
const
sendTime
=
new
Date
(
row
.
sendTime
).
getTime
()
if
(
sendTime
-
time
<
2
*
60
*
1000
)
{
this
.
$message
.
error
(
'
当前数据已经超时了
'
)
this
.
$message
.
error
(
'
任务临近发送时间,无法取消
'
)
return
}
this
.
$apis
.
friendGroup
...
...
@@ -338,14 +339,6 @@ export default {
// this.$set(this.employeelist[index], 'remindStatus', true)
})
},
handleUpOrDown
(
row
)
{
if
(
row
.
goodsStatus
)
{
this
.
downForm
.
id
=
row
.
id
this
.
dwonVisibleChange
()
return
true
}
this
.
secondConfirm
(
'上架'
,
'是否确认上架该商品?'
,
'proManage'
,
'updateStatusProApi'
,
{
id
:
row
.
id
,
goodsStatus
:
1
})
},
dwonVisibleChange
()
{
this
.
$refs
.
downRef
&&
this
.
$refs
.
downRef
.
clearValidate
()
this
.
isDownVisible
=
!
this
.
isDownVisible
...
...
@@ -358,34 +351,6 @@ export default {
goodsStatus
:
0
}
},
handleDownConfirm
()
{
this
.
$refs
.
downRef
.
validate
(
valid
=>
{
if
(
valid
)
{
this
.
$apis
.
proManage
.
updateStatusProApi
(
this
.
downForm
).
then
(
res
=>
{
this
.
$message
({
message
:
res
.
code
==
'0'
?
'操作成功'
:
res
.
message
,
type
:
res
.
code
==
'0'
?
'success'
:
'error'
})
if
(
res
.
code
==
'0'
)
{
this
.
handleDownClose
()
this
.
handleSearch
()
}
})
}
})
},
// 置顶
handleTop
(
row
)
{
this
.
secondConfirm
(
'置顶'
,
'是否确认置顶该商品?'
,
'proManage'
,
'topProApi'
,
{
id
:
row
.
id
})
},
handleShare
(
row
)
{
this
.
$apis
.
proManage
.
getProShareApi
({
id
:
row
.
id
}).
then
(
res
=>
{
this
.
shareForm
=
res
this
.
handleShareClose
()
})
},
handleShareClose
()
{
this
.
isShareVisible
=
!
this
.
isShareVisible
},
...
...
@@ -395,22 +360,22 @@ export default {
var
item
=
this
[
formName
].
find
(
k
=>
k
.
name
==
refreshSigle
)
var
index
=
this
[
formName
].
findIndex
(
k
=>
k
.
name
==
refreshSigle
)
this
.
$set
(
this
[
formName
][
index
],
'optionList'
,
this
.
$common
.
utils
.
deepClone
(
this
.
baseData
[
item
.
optionsName
]))
//
if (hasAll && this.baseData[item.optionsName].length && this.baseData[item.optionsName][0][this[formName][index].optionLabel] !== '全部') {
//
const temp = {}
// temp[this[formName][index].optionId] = ''
//
temp[this[formName][index].optionLabel] = '全部'
//
this[formName][index].optionList.unshift(temp)
//
}
if
(
hasAll
&&
this
.
baseData
[
item
.
optionsName
].
length
&&
this
.
baseData
[
item
.
optionsName
][
0
][
this
[
formName
][
index
].
optionLabel
]
!==
'全部'
)
{
const
temp
=
{}
temp
[
this
[
formName
][
index
].
optionId
]
=
null
temp
[
this
[
formName
][
index
].
optionLabel
]
=
'全部'
this
[
formName
][
index
].
optionList
.
unshift
(
temp
)
}
}
else
{
this
[
formName
].
forEach
((
item
,
index
)
=>
{
if
(
item
.
type
===
'select'
&&
this
.
baseData
[
item
.
optionsName
].
length
)
{
this
.
$set
(
this
[
formName
][
index
],
'optionList'
,
this
.
$common
.
utils
.
deepClone
(
this
.
baseData
[
item
.
optionsName
]))
//
if (hasAll && this.baseData[item.optionsName].length && this.baseData[item.optionsName][0][this[formName][index].optionLabel] !== '全部') {
//
const temp = {}
// temp[this[formName][index].optionId] = ''
//
temp[this[formName][index].optionLabel] = '全部'
//
this[formName][index].optionList.unshift(temp)
//
}
if
(
hasAll
&&
this
.
baseData
[
item
.
optionsName
].
length
&&
this
.
baseData
[
item
.
optionsName
][
0
][
this
[
formName
][
index
].
optionLabel
]
!==
'全部'
)
{
const
temp
=
{}
temp
[
this
[
formName
][
index
].
optionId
]
=
null
temp
[
this
[
formName
][
index
].
optionLabel
]
=
'全部'
this
[
formName
][
index
].
optionList
.
unshift
(
temp
)
}
}
})
}
...
...
src/views/material/addMaterial.vue
View file @
7a0179d
...
...
@@ -174,7 +174,7 @@
</div>
</el-form>
<SelectLabel
ref=
"selectLabel"
@
tagSelected=
"handleSelect"
:dialogVisible=
"dialogVisible"
></SelectLabel>
<GLFooter>
<GLFooter
class=
"gl-footer"
>
<el-button
@
click=
"onSave"
>
存草稿
</el-button>
<el-button
@
click=
"handleCancel"
class=
"btn-cancle"
>
取消
</el-button>
<el-button
@
click=
"handleSubmit"
type=
"primary"
>
确定
</el-button>
...
...
@@ -816,4 +816,7 @@ export default {
width
:
200px
;
height
:
200px
;
}
.gl-footer
{
z-index
:
999
;
}
</
style
>
\ No newline at end of file
src/views/material/components/materialGroup.vue
View file @
7a0179d
...
...
@@ -61,7 +61,7 @@ export default {
})
})
this
.
eventBus
.
$on
(
'editMaterialGroup'
,
data
=>
{
data
.
businessType
=
data
.
businessType
.
toString
()
//
data.businessType = data.businessType.toString()
this
.
$apis
.
material
.
editMaterialGroup
(
data
).
then
(
res
=>
{
if
(
res
)
{
this
.
getMaterialList
()
...
...
src/views/material/components/textBox.vue
View file @
7a0179d
...
...
@@ -90,4 +90,7 @@ export default {
.w-e-text-container
{
z-index
:
1
!important
;
}
.w-e-toolbar
{
z-index
:
2
!important
;
}
</
style
>
\ No newline at end of file
src/views/material/index.vue
View file @
7a0179d
...
...
@@ -49,9 +49,7 @@
<el-tooltip
effect=
"dark"
placement=
"top"
:content=
"scope.scope.materialContentRpcResponse.materialName"
:disabled=
"scope.scope.materialContentRpcResponse.materialName.length
< 16
"
>
<span>
{{
scope
.
scope
.
materialContentRpcResponse
.
materialName
}}
</span>
</el-tooltip>
<el-popover
placement=
"top"
trigger=
"click"
>
<el-popover
placement=
"top"
trigger=
"click"
>
<div>
<img
class=
"img-plus"
src=
"@/assets/material/car.png"
alt=
""
>
</div>
...
...
@@ -72,11 +70,10 @@
<span
v-if=
"scope.scope.materialType == 3"
>
图文
</span>
</div>
<span
slot=
"auth-button"
slot-scope=
"scope"
>
<
el-button
type=
"text"
@
click=
"handleDetail(scope.scope)"
>
详情
</el-button
>
<
!--
<el-button
type=
"text"
@
click=
"handleDetail(scope.scope)"
>
详情
</el-button>
--
>
<GLButton
type=
"text"
fn=
"详情"
@
click=
"handleDetail(scope.scope)"
>
详情
</GLButton>
<!--
<el-button
type=
"text"
@
click=
"addMaterial(2, scope.scope)"
>
编辑
</el-button>
-->
<GLButton
:size=
"size"
type=
"text"
fn=
"编辑"
@
click=
"addMaterial(2, scope.scope)"
>
编辑
</GLButton>
<!--
<GLButton
:size=
"size"
type=
"text"
fn=
"详情"
class=
"el-icon-plus"
@
click=
"addMaterial(1)"
>
详情
</GLButton>
-->
<el-popover
placement=
"right"
trigger=
"click"
>
<ul>
<li>
...
...
@@ -325,7 +322,7 @@ export default {
let
clientHeight
=
document
.
documentElement
.
clientHeight
let
offTop
=
document
.
querySelector
(
'.tabelList'
).
offsetTop
console
.
log
(
clientHeight
,
offTop
);
this
.
boxHeight
=
clientHeight
-
offTop
-
40
+
'px'
this
.
boxHeight
=
clientHeight
-
offTop
+
'px'
this
.
findAllDictData
(
'business_type'
)
this
.
firstCome
()
this
.
getListApi
()
...
...
@@ -438,10 +435,11 @@ export default {
},
getListApi
()
{
var
params
=
this
.
getParams
()
params
.
pageSize
=
this
.
$refs
.
materialRef
.
page
.
pageSize
,
params
.
pageSize
=
this
.
$refs
.
materialRef
.
page
.
pageSize
params
.
pageNum
=
this
.
$refs
.
materialRef
.
page
.
pageNum
this
.
$apis
.
material
.
materialList
(
params
).
then
(
res
=>
{
this
.
materialTableData
=
res
.
data
console
.
log
(
this
.
materialTableData
,
'sdggfb'
)
this
.
tableTotal
=
res
.
count
})
},
...
...
src/views/material/materialDetail.vue
View file @
7a0179d
...
...
@@ -54,7 +54,7 @@
<div
class=
"content-item-desc"
v-if=
"detailInfo.materialType == 3"
v-html=
"detailInfo.materialUrl"
></div>
</div>
<div
class=
"content-item-image"
>
<img
src=
"@/assets/material/car.png
"
alt=
""
v-if=
"detailInfo.materialType == 3"
/>
<img
:src=
"imgSrc ? imgSrc[1] : '@/assets/material/car.png'
"
alt=
""
v-if=
"detailInfo.materialType == 3"
/>
<img
src=
"@/assets/material/pdf.png"
alt=
""
v-if=
"detailInfo.materialType == 1"
/>
</div>
</div>
...
...
@@ -151,10 +151,6 @@
<div
class=
"phone-content"
>
<h4
class=
"phone-content-title"
>
{{
detailInfo
.
materialName
}}
</h4>
<div
class=
"phone-content-word"
v-if=
"detailInfo.materialType == 3"
v-html=
"detailInfo.materialUrl"
></div>
<div
class=
"phone-content-word"
>
活动时间:2022年3月17日 8:00-23:00
</div>
<div>
<img
src=
"@/assets/material/car.png"
alt=
""
/>
</div>
</div>
</div>
</el-dialog>
...
...
@@ -182,7 +178,8 @@ export default {
selectTime
:
[],
routerInfo
:
''
,
detailInfo
:
{},
overviewInfo
:
{}
overviewInfo
:
{},
imgSrc
:
[]
}
},
mounted
()
{
...
...
@@ -197,7 +194,6 @@ export default {
params
.
id
=
this
.
routerInfo
.
id
params
.
flag
=
0
this
.
$apis
.
material
.
materialDetail
(
params
).
then
(
res
=>
{
console
.
log
(
res
,
'dhakfh'
)
this
.
detailInfo
=
res
if
(
this
.
detailInfo
.
tagJson
)
{
this
.
detailInfo
.
tagJson
=
eval
(
this
.
detailInfo
.
tagJson
)
...
...
@@ -206,6 +202,12 @@ export default {
}
if
(
this
.
detailInfo
.
materialType
==
3
)
{
this
.
detailInfo
.
materialUrl
=
decodeURIComponent
(
this
.
detailInfo
.
materialUrl
)
console
.
log
(
this
.
detailInfo
.
materialUrl
,
'dhakfh'
)
let
html
=
this
.
detailInfo
.
materialUrl
let
imgHtml
=
html
.
match
(
/<img.*
?(?:
>|
\/
>
)
/g
)
// html = html.replace(imgHtml[0],'')
this
.
imgSrc
=
imgHtml
[
0
].
match
(
'<img[^<>]*? src="([^<>]*?)"'
)
console
.
log
(
this
.
imgSrc
[
1
],
'imgimg'
)
}
})
},
...
...
@@ -280,7 +282,7 @@ export default {
display
:
flex
;
.content-item
{
box-sizing
:
border-box
;
width
:
321
px
;
width
:
296
px
;
height
:
117px
;
background
:
#f5f5f5
;
border-radius
:
2px
;
...
...
@@ -438,16 +440,24 @@ export default {
height
:
600px
;
position
:
relative
;
.img-phone
{
height
:
5
00
px
;
height
:
5
58
px
;
width
:
312px
;
position
:
absolute
;
top
:
10
%
;
left
:
2
5%
;
top
:
4
%
;
left
:
1
5%
;
}
.phone-content
{
position
:
absolute
;
top
:
20%
;
left
:
30%
;
top
:
15%
;
left
:
23%
;
width
:
244px
;
height
:
414px
;
overflow
:
auto
;
background-color
:
#fff
;
padding
:
8px
;
box-sizing
:
border-box
;
border-radius
:
13px
;
box-shadow
:
-2px
4px
3px
#ccc
;
&-title
{
width
:
100%
;
height
:
30px
;
...
...
@@ -460,6 +470,7 @@ export default {
}
}
.content-item-image
{
margin-top
:
-5px
;
img
{
width
:
85px
;
height
:
85px
;
...
...
@@ -468,4 +479,8 @@ export default {
.el-tag
{
margin-right
:
4px
;
}
p
{
margin
:
0
!important
;
padding-right
:
10px
;
}
</
style
>
\ No newline at end of file
src/views/memberCenter/center.vue
View file @
7a0179d
This diff is collapsed.
Click to expand it.
src/views/sop/editSop/editEvent.vue
View file @
7a0179d
...
...
@@ -391,6 +391,8 @@ export default {
},
'editForm.object.additionalType'
(
val
)
{
var
idx
=
this
.
editFormDataChannel
.
findIndex
(
item
=>
item
.
name
==
'pushChannelType'
)
this
.
editFormDataChannel
[
idx
].
optionList
[
0
].
isDisabled
=
val
==
'4'
||
!
this
.
condLimitObj
.
hasQw
this
.
editFormDataChannel
[
idx
].
optionList
[
1
].
isDisabled
=
val
==
'4'
||
!
this
.
condLimitObj
.
hasPhone
if
(
this
.
condLimitObj
.
hasQw
)
{
this
.
editFormDataChannel
[
idx
].
optionList
[
2
].
isDisabled
=
[
1
,
2
,
3
].
includes
(
val
)
}
...
...
@@ -400,16 +402,8 @@ export default {
created
()
{
this
.
getDay
(
'weekList'
,
7
)
this
.
getDay
(
'monthList'
,
31
)
console
.
log
(
this
.
condLimitObj
)
// 有企微 - 企业微信、微信朋友圈
// 有手机号 - 短信
var
channelIdx
=
this
.
editFormDataChannel
.
findIndex
(
item
=>
item
.
name
==
'pushChannelType'
)
// 企微
this
.
editFormDataChannel
[
channelIdx
].
optionList
[
0
].
isDisabled
=
!
this
.
condLimitObj
.
hasQw
// 短信
this
.
editFormDataChannel
[
channelIdx
].
optionList
[
1
].
isDisabled
=
!
this
.
condLimitObj
.
hasPhone
// 微信朋友圈
this
.
editFormDataChannel
[
channelIdx
].
optionList
[
2
].
isDisabled
=
!
this
.
condLimitObj
.
hasQw
// console.log(this.condLimitObj)
this
.
limitQwPhone
()
},
mounted
()
{
...
...
@@ -426,6 +420,18 @@ export default {
},
methods
:
{
limitQwPhone
()
{
// 有企微 - 企业微信、微信朋友圈
// 有手机号 - 短信
var
channelIdx
=
this
.
editFormDataChannel
.
findIndex
(
item
=>
item
.
name
==
'pushChannelType'
)
// 企微
this
.
editFormDataChannel
[
channelIdx
].
optionList
[
0
].
isDisabled
=
!
this
.
condLimitObj
.
hasQw
// 短信
this
.
editFormDataChannel
[
channelIdx
].
optionList
[
1
].
isDisabled
=
!
this
.
condLimitObj
.
hasPhone
// 微信朋友圈
this
.
editFormDataChannel
[
channelIdx
].
optionList
[
2
].
isDisabled
=
!
this
.
condLimitObj
.
hasQw
},
getDay
(
attrName
,
day
)
{
let
weekNameList
=
[
'一'
,
'二'
,
'三'
,
'四'
,
'五'
,
'六'
,
'日'
]
for
(
var
i
=
0
;
i
<
day
;
i
++
)
{
...
...
@@ -619,7 +625,7 @@ export default {
.
then
(()
=>
{
this
.
cancelJump
()
})
.
catch
(()
=>
{})
.
catch
(()
=>
{
})
}
else
{
this
.
cancelJump
()
}
...
...
src/views/sop/sopAnalysis/touchList.vue
View file @
7a0179d
...
...
@@ -109,12 +109,15 @@ export default {
label
:
'初次查看事件'
,
prop
:
'firstViewDate'
,
formatter
:
cellValue
=>
{
return
dayjs
(
cellValue
.
firstViewDate
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
||
'未查看'
return
cellValue
.
firstViewDate
?
dayjs
(
cellValue
.
firstViewDate
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
'未查看'
}
},
{
label
:
'查看次数'
,
prop
:
'viewCount'
prop
:
'viewCount'
,
formatter
:
cellValue
=>
{
return
cellValue
.
viewCount
||
'-'
}
}
]
},
...
...
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