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.'
const
defaultPath
=
'marketing.api.material.'
...
@@ -151,11 +151,11 @@ const sendDetailPage = params => {
...
@@ -151,11 +151,11 @@ const sendDetailPage = params => {
const
findAllDictData
=
params
=>
{
const
findAllDictData
=
params
=>
{
params
.
method
=
'merchants.api.menu.findAllDictData'
params
.
method
=
'merchants.api.menu.findAllDictData'
return
http
({
return
http
_merchant
({
url
:
'http://rop-merchant.dev.glsx.com.cn/
rop-merchants/router'
,
url
:
'
rop-merchants/router'
,
method
:
'POST'
,
method
:
'POST'
,
data
:
params
,
data
:
params
,
sign
:
true
sign
:
true
})
})
}
}
...
...
src/config/index.js
View file @
7a0179d
...
@@ -19,8 +19,8 @@ export const fetchConfig = function (isEnv = true) {
...
@@ -19,8 +19,8 @@ export const fetchConfig = function (isEnv = true) {
// }
// }
//return window.fetch('https://', {}).then(res => res.json())
//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' })
// 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('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.dev.glsx.com.cn
/mock/619c87331072f92988f05a29/marketing/config'
)
}
}
export
const
config
=
{
export
const
config
=
{
install
(
vue
,
cfg
)
{
install
(
vue
,
cfg
)
{
...
...
src/main.js
View file @
7a0179d
...
@@ -22,3 +22,4 @@ export { bootstrap, mount, unmount } from '@/setup'
...
@@ -22,3 +22,4 @@ export { bootstrap, mount, unmount } from '@/setup'
export
const
http
=
params
=>
Vue
.
prototype
.
$http
(
params
)
export
const
http
=
params
=>
Vue
.
prototype
.
$http
(
params
)
export
const
http2
=
params
=>
Vue
.
prototype
.
$http2
(
params
)
export
const
http2
=
params
=>
Vue
.
prototype
.
$http2
(
params
)
export
const
http_common
=
params
=>
Vue
.
prototype
.
$http_common
(
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)
...
@@ -15,7 +15,7 @@ Vue.use(ElementUI)
Vue
.
use
(
GLTable
)
Vue
.
use
(
GLTable
)
Vue
.
use
(
GLFooter
)
Vue
.
use
(
GLFooter
)
export
async
function
bootstrap
({
history
,
common
,
messenger
,
globalState
,
routerBase
})
{
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
.
$history
=
history
Vue
.
prototype
.
$messenger
=
messenger
Vue
.
prototype
.
$messenger
=
messenger
Vue
.
prototype
.
$globalState
=
globalState
Vue
.
prototype
.
$globalState
=
globalState
...
@@ -24,6 +24,7 @@ export async function bootstrap({ history, common, messenger, globalState, route
...
@@ -24,6 +24,7 @@ export async function bootstrap({ history, common, messenger, globalState, route
Vue
.
prototype
.
$messageBox
=
messageBox
Vue
.
prototype
.
$messageBox
=
messageBox
Vue
.
prototype
.
$http
=
new
common
.
Http
({
response
,
request
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
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
.
$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
.
$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.prototype.$setGlobalState = globalState.actions.setGlobalState
// Vue.use(GLButton, { permissions: globalState.permissions || ['1-1-1-1', '2-1-1-1', '3-1-1-1'] })
// 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 @@
...
@@ -38,10 +38,12 @@
<div
class=
"preview-operation"
>
赞 | 评论
</div>
<div
class=
"preview-operation"
>
赞 | 评论
</div>
</div>
</div>
</div>
</div>
<el-dialog
:visible
.
sync=
"videoShow"
:before-close=
"handleClose"
class=
"video-dialog"
>
<div
class=
"video-dialog"
v-if=
"videoShow"
>
<div
slot=
"title"
style=
"height: 18px"
></div>
<div
class=
"video-dialog-panel"
>
<video
v-if=
"videoShow"
width=
"100%"
height=
"100%"
autoplay
controls
:src=
"this.videoUrl"
></video>
<div
class=
"video-close"
><i
class=
"el-icon-close"
@
click=
"videoShow = false"
></i></div>
</el-dialog>
<video
height=
"100%"
autoplay
controls
:src=
"this.videoUrl"
></video>
</div>
</div>
</div>
</div>
</template>
</template>
...
@@ -71,7 +73,7 @@ export default {
...
@@ -71,7 +73,7 @@ export default {
previewList
(
val
)
{
previewList
(
val
)
{
if
(
val
.
length
&&
val
[
0
].
attType
==
1
)
{
if
(
val
.
length
&&
val
[
0
].
attType
==
1
)
{
const
attContent
=
val
[
0
].
attContent
[
0
]
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
,
''
)
let
word
=
res
.
replace
(
/
\[
|
\]
/gi
,
''
)
const
list
=
emoji
.
flat
(
Infinity
)
const
list
=
emoji
.
flat
(
Infinity
)
let
index
=
parseInt
(
list
.
indexOf
(
word
))
+
1
let
index
=
parseInt
(
list
.
indexOf
(
word
))
+
1
...
@@ -187,6 +189,7 @@ export default {
...
@@ -187,6 +189,7 @@ export default {
color
:
#333
;
color
:
#333
;
background-color
:
#fff
;
background-color
:
#fff
;
border-radius
:
4px
;
border-radius
:
4px
;
word-wrap
:
break-word
;
word-break
:
break-all
;
word-break
:
break-all
;
line-height
:
20px
;
line-height
:
20px
;
/deep/
img
{
/deep/
img
{
...
@@ -196,6 +199,7 @@ export default {
...
@@ -196,6 +199,7 @@ export default {
}
}
}
}
.text
{
.text
{
width
:
100%
;
font-size
:
12px
;
font-size
:
12px
;
padding
:
0px
;
padding
:
0px
;
margin-bottom
:
6px
;
margin-bottom
:
6px
;
...
@@ -272,13 +276,34 @@ export default {
...
@@ -272,13 +276,34 @@ export default {
}
}
}
}
.video-dialog
{
.video-dialog
{
/deep/
{
z-index
:
2001
;
.el-dialog__header
{
position
:
fixed
;
border-bottom
:
0px
;
top
:
0
;
background-color
:
rgb
(
0
,
0
,
0
);
right
:
0
;
}
bottom
:
0
;
.el-dialog__body
{
left
:
0
;
padding
:
0px
;
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 {
...
@@ -148,7 +148,7 @@ export default {
name
:
'视频'
,
name
:
'视频'
,
type
:
'video'
,
type
:
'video'
,
funName
:
'video'
funName
:
'video'
}
,
}
// {
// {
// id: 4,
// id: 4,
// name: '活动',
// name: '活动',
...
@@ -241,7 +241,7 @@ export default {
...
@@ -241,7 +241,7 @@ export default {
},
},
// 查看群发人数
// 查看群发人数
viewMembers
()
{
viewMembers
()
{
if
(
!
this
.
basicForm
.
userList
)
{
if
(
!
this
.
basicForm
.
userList
||
this
.
basicForm
.
userList
.
length
==
0
)
{
this
.
$message
({
this
.
$message
({
type
:
'error'
,
type
:
'error'
,
message
:
'请选择发表成员'
message
:
'请选择发表成员'
...
@@ -365,7 +365,7 @@ export default {
...
@@ -365,7 +365,7 @@ export default {
if
(
item
.
attType
==
1
)
{
if
(
item
.
attType
==
1
)
{
const
list
=
emoji
.
flat
(
Infinity
)
const
list
=
emoji
.
flat
(
Infinity
)
const
cutImg
=
item
.
attContent
.
replaceAll
(
'<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/'
,
''
)
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
]
let
s
=
list
[
parseInt
(
str
.
split
(
'.'
)[
0
])
-
1
]
return
`[
${
s
}
]`
return
`[
${
s
}
]`
})
})
...
@@ -403,7 +403,9 @@ export default {
...
@@ -403,7 +403,9 @@ export default {
const
date
=
new
Date
(
v
).
getTime
()
const
date
=
new
Date
(
v
).
getTime
()
if
(
date
<
Date
.
now
())
{
if
(
date
<
Date
.
now
())
{
this
.
timeOptions
=
{
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
{
}
else
{
this
.
timeOptions
=
{
this
.
timeOptions
=
{
...
...
src/views/friendGroup/index.vue
View file @
7a0179d
...
@@ -36,8 +36,8 @@
...
@@ -36,8 +36,8 @@
</div>
</div>
</div>
</div>
<div
slot=
"sendType"
slot-scope=
"scope"
>
<div
slot=
"sendType"
slot-scope=
"scope"
>
<span
style=
"color: #eb4e4e"
v-if=
"scope.scope.sendType ==
1
"
>
定时发送
</span>
<span
style=
"color: #eb4e4e"
v-if=
"scope.scope.sendType ==
2
"
>
定时发送
</span>
<span
v-if=
"scope.scope.sendType ==
2
"
>
立即发送
</span>
<span
v-if=
"scope.scope.sendType ==
1
"
>
立即发送
</span>
</div>
</div>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<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>
<el-button
type=
"text"
disabled
v-if=
"scope.scope.status == 2 || scope.scope.status == 1"
>
创建中
</el-button>
...
@@ -134,7 +134,8 @@ export default {
...
@@ -134,7 +134,8 @@ export default {
{
{
label
:
'内容'
,
label
:
'内容'
,
prop
:
'attachmentList'
,
prop
:
'attachmentList'
,
addHtml
:
'attachmentList'
addHtml
:
'attachmentList'
,
width
:
'240'
},
},
{
{
label
:
'发布方式'
,
label
:
'发布方式'
,
...
@@ -322,7 +323,7 @@ export default {
...
@@ -322,7 +323,7 @@ export default {
const
time
=
new
Date
().
getTime
()
const
time
=
new
Date
().
getTime
()
const
sendTime
=
new
Date
(
row
.
sendTime
).
getTime
()
const
sendTime
=
new
Date
(
row
.
sendTime
).
getTime
()
if
(
sendTime
-
time
<
2
*
60
*
1000
)
{
if
(
sendTime
-
time
<
2
*
60
*
1000
)
{
this
.
$message
.
error
(
'
当前数据已经超时了
'
)
this
.
$message
.
error
(
'
任务临近发送时间,无法取消
'
)
return
return
}
}
this
.
$apis
.
friendGroup
this
.
$apis
.
friendGroup
...
@@ -338,14 +339,6 @@ export default {
...
@@ -338,14 +339,6 @@ export default {
// this.$set(this.employeelist[index], 'remindStatus', true)
// 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
()
{
dwonVisibleChange
()
{
this
.
$refs
.
downRef
&&
this
.
$refs
.
downRef
.
clearValidate
()
this
.
$refs
.
downRef
&&
this
.
$refs
.
downRef
.
clearValidate
()
this
.
isDownVisible
=
!
this
.
isDownVisible
this
.
isDownVisible
=
!
this
.
isDownVisible
...
@@ -358,34 +351,6 @@ export default {
...
@@ -358,34 +351,6 @@ export default {
goodsStatus
:
0
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
()
{
handleShareClose
()
{
this
.
isShareVisible
=
!
this
.
isShareVisible
this
.
isShareVisible
=
!
this
.
isShareVisible
},
},
...
@@ -395,22 +360,22 @@ export default {
...
@@ -395,22 +360,22 @@ export default {
var
item
=
this
[
formName
].
find
(
k
=>
k
.
name
==
refreshSigle
)
var
item
=
this
[
formName
].
find
(
k
=>
k
.
name
==
refreshSigle
)
var
index
=
this
[
formName
].
findIndex
(
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
]))
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] !== '全部') {
if
(
hasAll
&&
this
.
baseData
[
item
.
optionsName
].
length
&&
this
.
baseData
[
item
.
optionsName
][
0
][
this
[
formName
][
index
].
optionLabel
]
!==
'全部'
)
{
//
const temp = {}
const
temp
=
{}
// temp[this[formName][index].optionId] = ''
temp
[
this
[
formName
][
index
].
optionId
]
=
null
//
temp[this[formName][index].optionLabel] = '全部'
temp
[
this
[
formName
][
index
].
optionLabel
]
=
'全部'
//
this[formName][index].optionList.unshift(temp)
this
[
formName
][
index
].
optionList
.
unshift
(
temp
)
//
}
}
}
else
{
}
else
{
this
[
formName
].
forEach
((
item
,
index
)
=>
{
this
[
formName
].
forEach
((
item
,
index
)
=>
{
if
(
item
.
type
===
'select'
&&
this
.
baseData
[
item
.
optionsName
].
length
)
{
if
(
item
.
type
===
'select'
&&
this
.
baseData
[
item
.
optionsName
].
length
)
{
this
.
$set
(
this
[
formName
][
index
],
'optionList'
,
this
.
$common
.
utils
.
deepClone
(
this
.
baseData
[
item
.
optionsName
]))
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] !== '全部') {
if
(
hasAll
&&
this
.
baseData
[
item
.
optionsName
].
length
&&
this
.
baseData
[
item
.
optionsName
][
0
][
this
[
formName
][
index
].
optionLabel
]
!==
'全部'
)
{
//
const temp = {}
const
temp
=
{}
// temp[this[formName][index].optionId] = ''
temp
[
this
[
formName
][
index
].
optionId
]
=
null
//
temp[this[formName][index].optionLabel] = '全部'
temp
[
this
[
formName
][
index
].
optionLabel
]
=
'全部'
//
this[formName][index].optionList.unshift(temp)
this
[
formName
][
index
].
optionList
.
unshift
(
temp
)
//
}
}
}
}
})
})
}
}
...
...
src/views/material/addMaterial.vue
View file @
7a0179d
...
@@ -174,7 +174,7 @@
...
@@ -174,7 +174,7 @@
</div>
</div>
</el-form>
</el-form>
<SelectLabel
ref=
"selectLabel"
@
tagSelected=
"handleSelect"
:dialogVisible=
"dialogVisible"
></SelectLabel>
<SelectLabel
ref=
"selectLabel"
@
tagSelected=
"handleSelect"
:dialogVisible=
"dialogVisible"
></SelectLabel>
<GLFooter>
<GLFooter
class=
"gl-footer"
>
<el-button
@
click=
"onSave"
>
存草稿
</el-button>
<el-button
@
click=
"onSave"
>
存草稿
</el-button>
<el-button
@
click=
"handleCancel"
class=
"btn-cancle"
>
取消
</el-button>
<el-button
@
click=
"handleCancel"
class=
"btn-cancle"
>
取消
</el-button>
<el-button
@
click=
"handleSubmit"
type=
"primary"
>
确定
</el-button>
<el-button
@
click=
"handleSubmit"
type=
"primary"
>
确定
</el-button>
...
@@ -816,4 +816,7 @@ export default {
...
@@ -816,4 +816,7 @@ export default {
width
:
200px
;
width
:
200px
;
height
:
200px
;
height
:
200px
;
}
}
.gl-footer
{
z-index
:
999
;
}
</
style
>
</
style
>
\ No newline at end of file
\ No newline at end of file
src/views/material/components/materialGroup.vue
View file @
7a0179d
...
@@ -61,7 +61,7 @@ export default {
...
@@ -61,7 +61,7 @@ export default {
})
})
})
})
this
.
eventBus
.
$on
(
'editMaterialGroup'
,
data
=>
{
this
.
eventBus
.
$on
(
'editMaterialGroup'
,
data
=>
{
data
.
businessType
=
data
.
businessType
.
toString
()
//
data.businessType = data.businessType.toString()
this
.
$apis
.
material
.
editMaterialGroup
(
data
).
then
(
res
=>
{
this
.
$apis
.
material
.
editMaterialGroup
(
data
).
then
(
res
=>
{
if
(
res
)
{
if
(
res
)
{
this
.
getMaterialList
()
this
.
getMaterialList
()
...
...
src/views/material/components/textBox.vue
View file @
7a0179d
...
@@ -90,4 +90,7 @@ export default {
...
@@ -90,4 +90,7 @@ export default {
.w-e-text-container
{
.w-e-text-container
{
z-index
:
1
!important
;
z-index
:
1
!important
;
}
}
.w-e-toolbar
{
z-index
:
2
!important
;
}
</
style
>
</
style
>
\ No newline at end of file
\ No newline at end of file
src/views/material/index.vue
View file @
7a0179d
...
@@ -49,9 +49,7 @@
...
@@ -49,9 +49,7 @@
<el-tooltip
effect=
"dark"
placement=
"top"
:content=
"scope.scope.materialContentRpcResponse.materialName"
:disabled=
"scope.scope.materialContentRpcResponse.materialName.length
< 16
"
>
<el-tooltip
effect=
"dark"
placement=
"top"
:content=
"scope.scope.materialContentRpcResponse.materialName"
:disabled=
"scope.scope.materialContentRpcResponse.materialName.length
< 16
"
>
<span>
{{
scope
.
scope
.
materialContentRpcResponse
.
materialName
}}
</span>
<span>
{{
scope
.
scope
.
materialContentRpcResponse
.
materialName
}}
</span>
</el-tooltip>
</el-tooltip>
<el-popover
<el-popover
placement=
"top"
trigger=
"click"
>
placement=
"top"
trigger=
"click"
>
<div>
<div>
<img
class=
"img-plus"
src=
"@/assets/material/car.png"
alt=
""
>
<img
class=
"img-plus"
src=
"@/assets/material/car.png"
alt=
""
>
</div>
</div>
...
@@ -72,11 +70,10 @@
...
@@ -72,11 +70,10 @@
<span
v-if=
"scope.scope.materialType == 3"
>
图文
</span>
<span
v-if=
"scope.scope.materialType == 3"
>
图文
</span>
</div>
</div>
<span
slot=
"auth-button"
slot-scope=
"scope"
>
<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>
<GLButton
type=
"text"
fn=
"详情"
@
click=
"handleDetail(scope.scope)"
>
详情
</GLButton>
<!--
<el-button
type=
"text"
@
click=
"addMaterial(2, scope.scope)"
>
编辑
</el-button>
-->
<!--
<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=
"编辑"
@
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"
>
<el-popover
placement=
"right"
trigger=
"click"
>
<ul>
<ul>
<li>
<li>
...
@@ -325,7 +322,7 @@ export default {
...
@@ -325,7 +322,7 @@ export default {
let
clientHeight
=
document
.
documentElement
.
clientHeight
let
clientHeight
=
document
.
documentElement
.
clientHeight
let
offTop
=
document
.
querySelector
(
'.tabelList'
).
offsetTop
let
offTop
=
document
.
querySelector
(
'.tabelList'
).
offsetTop
console
.
log
(
clientHeight
,
offTop
);
console
.
log
(
clientHeight
,
offTop
);
this
.
boxHeight
=
clientHeight
-
offTop
-
40
+
'px'
this
.
boxHeight
=
clientHeight
-
offTop
+
'px'
this
.
findAllDictData
(
'business_type'
)
this
.
findAllDictData
(
'business_type'
)
this
.
firstCome
()
this
.
firstCome
()
this
.
getListApi
()
this
.
getListApi
()
...
@@ -438,10 +435,11 @@ export default {
...
@@ -438,10 +435,11 @@ export default {
},
},
getListApi
()
{
getListApi
()
{
var
params
=
this
.
getParams
()
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
params
.
pageNum
=
this
.
$refs
.
materialRef
.
page
.
pageNum
this
.
$apis
.
material
.
materialList
(
params
).
then
(
res
=>
{
this
.
$apis
.
material
.
materialList
(
params
).
then
(
res
=>
{
this
.
materialTableData
=
res
.
data
this
.
materialTableData
=
res
.
data
console
.
log
(
this
.
materialTableData
,
'sdggfb'
)
this
.
tableTotal
=
res
.
count
this
.
tableTotal
=
res
.
count
})
})
},
},
...
...
src/views/material/materialDetail.vue
View file @
7a0179d
...
@@ -54,7 +54,7 @@
...
@@ -54,7 +54,7 @@
<div
class=
"content-item-desc"
v-if=
"detailInfo.materialType == 3"
v-html=
"detailInfo.materialUrl"
></div>
<div
class=
"content-item-desc"
v-if=
"detailInfo.materialType == 3"
v-html=
"detailInfo.materialUrl"
></div>
</div>
</div>
<div
class=
"content-item-image"
>
<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"
/>
<img
src=
"@/assets/material/pdf.png"
alt=
""
v-if=
"detailInfo.materialType == 1"
/>
</div>
</div>
</div>
</div>
...
@@ -151,10 +151,6 @@
...
@@ -151,10 +151,6 @@
<div
class=
"phone-content"
>
<div
class=
"phone-content"
>
<h4
class=
"phone-content-title"
>
{{
detailInfo
.
materialName
}}
</h4>
<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"
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>
</div>
</div>
</el-dialog>
</el-dialog>
...
@@ -182,7 +178,8 @@ export default {
...
@@ -182,7 +178,8 @@ export default {
selectTime
:
[],
selectTime
:
[],
routerInfo
:
''
,
routerInfo
:
''
,
detailInfo
:
{},
detailInfo
:
{},
overviewInfo
:
{}
overviewInfo
:
{},
imgSrc
:
[]
}
}
},
},
mounted
()
{
mounted
()
{
...
@@ -197,7 +194,6 @@ export default {
...
@@ -197,7 +194,6 @@ export default {
params
.
id
=
this
.
routerInfo
.
id
params
.
id
=
this
.
routerInfo
.
id
params
.
flag
=
0
params
.
flag
=
0
this
.
$apis
.
material
.
materialDetail
(
params
).
then
(
res
=>
{
this
.
$apis
.
material
.
materialDetail
(
params
).
then
(
res
=>
{
console
.
log
(
res
,
'dhakfh'
)
this
.
detailInfo
=
res
this
.
detailInfo
=
res
if
(
this
.
detailInfo
.
tagJson
)
{
if
(
this
.
detailInfo
.
tagJson
)
{
this
.
detailInfo
.
tagJson
=
eval
(
this
.
detailInfo
.
tagJson
)
this
.
detailInfo
.
tagJson
=
eval
(
this
.
detailInfo
.
tagJson
)
...
@@ -206,6 +202,12 @@ export default {
...
@@ -206,6 +202,12 @@ export default {
}
}
if
(
this
.
detailInfo
.
materialType
==
3
)
{
if
(
this
.
detailInfo
.
materialType
==
3
)
{
this
.
detailInfo
.
materialUrl
=
decodeURIComponent
(
this
.
detailInfo
.
materialUrl
)
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 {
...
@@ -280,7 +282,7 @@ export default {
display
:
flex
;
display
:
flex
;
.content-item
{
.content-item
{
box-sizing
:
border-box
;
box-sizing
:
border-box
;
width
:
321
px
;
width
:
296
px
;
height
:
117px
;
height
:
117px
;
background
:
#f5f5f5
;
background
:
#f5f5f5
;
border-radius
:
2px
;
border-radius
:
2px
;
...
@@ -438,16 +440,24 @@ export default {
...
@@ -438,16 +440,24 @@ export default {
height
:
600px
;
height
:
600px
;
position
:
relative
;
position
:
relative
;
.img-phone
{
.img-phone
{
height
:
5
00
px
;
height
:
5
58
px
;
width
:
312px
;
width
:
312px
;
position
:
absolute
;
position
:
absolute
;
top
:
10
%
;
top
:
4
%
;
left
:
2
5%
;
left
:
1
5%
;
}
}
.phone-content
{
.phone-content
{
position
:
absolute
;
position
:
absolute
;
top
:
20%
;
top
:
15%
;
left
:
30%
;
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
{
&-title
{
width
:
100%
;
width
:
100%
;
height
:
30px
;
height
:
30px
;
...
@@ -460,6 +470,7 @@ export default {
...
@@ -460,6 +470,7 @@ export default {
}
}
}
}
.content-item-image
{
.content-item-image
{
margin-top
:
-5px
;
img
{
img
{
width
:
85px
;
width
:
85px
;
height
:
85px
;
height
:
85px
;
...
@@ -468,4 +479,8 @@ export default {
...
@@ -468,4 +479,8 @@ export default {
.el-tag
{
.el-tag
{
margin-right
:
4px
;
margin-right
:
4px
;
}
}
p
{
margin
:
0
!important
;
padding-right
:
10px
;
}
</
style
>
</
style
>
\ No newline at end of file
\ 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 {
...
@@ -391,6 +391,8 @@ export default {
},
},
'editForm.object.additionalType'
(
val
)
{
'editForm.object.additionalType'
(
val
)
{
var
idx
=
this
.
editFormDataChannel
.
findIndex
(
item
=>
item
.
name
==
'pushChannelType'
)
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
)
{
if
(
this
.
condLimitObj
.
hasQw
)
{
this
.
editFormDataChannel
[
idx
].
optionList
[
2
].
isDisabled
=
[
1
,
2
,
3
].
includes
(
val
)
this
.
editFormDataChannel
[
idx
].
optionList
[
2
].
isDisabled
=
[
1
,
2
,
3
].
includes
(
val
)
}
}
...
@@ -400,16 +402,8 @@ export default {
...
@@ -400,16 +402,8 @@ export default {
created
()
{
created
()
{
this
.
getDay
(
'weekList'
,
7
)
this
.
getDay
(
'weekList'
,
7
)
this
.
getDay
(
'monthList'
,
31
)
this
.
getDay
(
'monthList'
,
31
)
console
.
log
(
this
.
condLimitObj
)
// console.log(this.condLimitObj)
// 有企微 - 企业微信、微信朋友圈
this
.
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
},
},
mounted
()
{
mounted
()
{
...
@@ -426,6 +420,18 @@ export default {
...
@@ -426,6 +420,18 @@ export default {
},
},
methods
:
{
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
)
{
getDay
(
attrName
,
day
)
{
let
weekNameList
=
[
'一'
,
'二'
,
'三'
,
'四'
,
'五'
,
'六'
,
'日'
]
let
weekNameList
=
[
'一'
,
'二'
,
'三'
,
'四'
,
'五'
,
'六'
,
'日'
]
for
(
var
i
=
0
;
i
<
day
;
i
++
)
{
for
(
var
i
=
0
;
i
<
day
;
i
++
)
{
...
@@ -619,7 +625,7 @@ export default {
...
@@ -619,7 +625,7 @@ export default {
.
then
(()
=>
{
.
then
(()
=>
{
this
.
cancelJump
()
this
.
cancelJump
()
})
})
.
catch
(()
=>
{})
.
catch
(()
=>
{
})
}
else
{
}
else
{
this
.
cancelJump
()
this
.
cancelJump
()
}
}
...
...
src/views/sop/sopAnalysis/touchList.vue
View file @
7a0179d
...
@@ -109,12 +109,15 @@ export default {
...
@@ -109,12 +109,15 @@ export default {
label
:
'初次查看事件'
,
label
:
'初次查看事件'
,
prop
:
'firstViewDate'
,
prop
:
'firstViewDate'
,
formatter
:
cellValue
=>
{
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
:
'查看次数'
,
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