Commit 0bc65d14 by 杨明

fixed

1 parent c2badd54
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
"el-tree-transfer": "^2.2.6", "el-tree-transfer": "^2.2.6",
"glsx-common": "^1.4.6", "glsx-common": "^1.4.6",
"glsx-components": "^1.5.4", "glsx-components": "^1.5.4",
"glsx-components_beta": "^1.0.3", "glsx-components_beta": "^1.0.5",
"glsx-table": "^1.0.9", "glsx-table": "^1.0.9",
"vue-draggable-resizable": "^2.3.0", "vue-draggable-resizable": "^2.3.0",
"vuedraggable": "^2.24.3", "vuedraggable": "^2.24.3",
......
...@@ -22,6 +22,7 @@ export default { ...@@ -22,6 +22,7 @@ export default {
name: '图片', name: '图片',
funcName: '', funcName: '',
type: 'img', type: 'img',
// limitPx: 1555200,
// togetherItem: [ATT_TYPE.TEXT], //只允许文本和图片 // togetherItem: [ATT_TYPE.TEXT], //只允许文本和图片
// limitSize: 10, //限制图片大小 // limitSize: 10, //限制图片大小
// limitNum: 2, //限制图片数量 // limitNum: 2, //限制图片数量
......
...@@ -122,17 +122,7 @@ util.isShowBtn = function(value, permissions) { ...@@ -122,17 +122,7 @@ util.isShowBtn = function(value, permissions) {
if (value && itm.path == value) { if (value && itm.path == value) {
isShowStatus = true isShowStatus = true
} }
if ( if (!value && itm.meta && itm.meta.permissions.includes(permissions)) {
!value &&
itm.path ==
'/' +
location.pathname
.split('/')
.slice(-2)
.join('/') &&
itm.meta &&
itm.meta.permissions.includes(permissions)
) {
isShowStatus = true isShowStatus = true
} }
if (itm.children) { if (itm.children) {
......
...@@ -340,22 +340,23 @@ export default { ...@@ -340,22 +340,23 @@ export default {
// window.removeEventListener('resize', this.resize) // window.removeEventListener('resize', this.resize)
// }, // },
mounted() { mounted() {
// if (util.isShowBtn(null, '插入推荐频道')) { console.log(util.isShowBtn(null, '插入推荐频道'))
// this.btnList.push({ if (util.isShowBtn(null, '到店咨询客户数据')) {
// name: '插入推荐频道', this.btnList.push({
// type: 'channelLink', name: '插入推荐频道',
// funName: 'channelLink', type: 'channelLink',
// getMerchantList: this.$apis.welcomeword.getMerchantList, funName: 'channelLink',
// channelPreview: this.$apis.welcomeword.channelPreview getMerchantList: this.$apis.welcomeword.getMerchantList,
// }) channelPreview: this.$apis.welcomeword.channelPreview
// } })
this.btnList.push({ }
name: '插入推荐频道', // this.btnList.push({
type: 'channelLink', // name: '插入推荐频道',
funName: 'channelLink', // type: 'channelLink',
getMerchantList: this.$apis.welcomeword.getMerchantList, // funName: 'channelLink',
channelPreview: this.$apis.welcomeword.channelPreview // getMerchantList: this.$apis.welcomeword.getMerchantList,
}) // channelPreview: this.$apis.welcomeword.channelPreview
// })
const { id, codeUuid } = this.$route.params const { id, codeUuid } = this.$route.params
if (id) { if (id) {
this.codeId = 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!