Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-drainage
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 0bc65d14
authored
Jan 10, 2023
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
c2badd54
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
28 deletions
package.json
src/mixins/word.js
src/utils/util.js
src/views/channel/addCode.vue
package.json
View file @
0bc65d1
...
...
@@ -14,7 +14,7 @@
"el-tree-transfer"
:
"^2.2.6"
,
"glsx-common"
:
"^1.4.6"
,
"glsx-components"
:
"^1.5.4"
,
"glsx-components_beta"
:
"^1.0.
3
"
,
"glsx-components_beta"
:
"^1.0.
5
"
,
"glsx-table"
:
"^1.0.9"
,
"vue-draggable-resizable"
:
"^2.3.0"
,
"vuedraggable"
:
"^2.24.3"
,
...
...
src/mixins/word.js
View file @
0bc65d1
...
...
@@ -22,6 +22,7 @@ export default {
name
:
'图片'
,
funcName
:
''
,
type
:
'img'
,
// limitPx: 1555200,
// togetherItem: [ATT_TYPE.TEXT], //只允许文本和图片
// limitSize: 10, //限制图片大小
// limitNum: 2, //限制图片数量
...
...
src/utils/util.js
View file @
0bc65d1
...
...
@@ -122,17 +122,7 @@ util.isShowBtn = function(value, permissions) {
if
(
value
&&
itm
.
path
==
value
)
{
isShowStatus
=
true
}
if
(
!
value
&&
itm
.
path
==
'/'
+
location
.
pathname
.
split
(
'/'
)
.
slice
(
-
2
)
.
join
(
'/'
)
&&
itm
.
meta
&&
itm
.
meta
.
permissions
.
includes
(
permissions
)
)
{
if
(
!
value
&&
itm
.
meta
&&
itm
.
meta
.
permissions
.
includes
(
permissions
))
{
isShowStatus
=
true
}
if
(
itm
.
children
)
{
...
...
src/views/channel/addCode.vue
View file @
0bc65d1
...
...
@@ -340,22 +340,23 @@ export default {
// window.removeEventListener('resize', this.resize)
// },
mounted
()
{
// if (util.isShowBtn(null, '插入推荐频道')) {
// this.btnList.push({
// name: '插入推荐频道',
// type: 'channelLink',
// funName: 'channelLink',
// getMerchantList: this.$apis.welcomeword.getMerchantList,
// channelPreview: this.$apis.welcomeword.channelPreview
// })
// }
this
.
btnList
.
push
({
name
:
'插入推荐频道'
,
type
:
'channelLink'
,
funName
:
'channelLink'
,
getMerchantList
:
this
.
$apis
.
welcomeword
.
getMerchantList
,
channelPreview
:
this
.
$apis
.
welcomeword
.
channelPreview
})
console
.
log
(
util
.
isShowBtn
(
null
,
'插入推荐频道'
))
if
(
util
.
isShowBtn
(
null
,
'到店咨询客户数据'
))
{
this
.
btnList
.
push
({
name
:
'插入推荐频道'
,
type
:
'channelLink'
,
funName
:
'channelLink'
,
getMerchantList
:
this
.
$apis
.
welcomeword
.
getMerchantList
,
channelPreview
:
this
.
$apis
.
welcomeword
.
channelPreview
})
}
// this.btnList.push({
// name: '插入推荐频道',
// type: 'channelLink',
// funName: 'channelLink',
// getMerchantList: this.$apis.welcomeword.getMerchantList,
// channelPreview: this.$apis.welcomeword.channelPreview
// })
const
{
id
,
codeUuid
}
=
this
.
$route
.
params
if
(
id
)
{
this
.
codeId
=
id
...
...
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