Commit 0bc65d14 by 杨明

fixed

1 parent c2badd54
......@@ -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",
......
......@@ -22,6 +22,7 @@ export default {
name: '图片',
funcName: '',
type: 'img',
// limitPx: 1555200,
// togetherItem: [ATT_TYPE.TEXT], //只允许文本和图片
// limitSize: 10, //限制图片大小
// limitNum: 2, //限制图片数量
......
......@@ -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) {
......
......@@ -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
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!