Commit 536277c0 by 杨明

fixed

1 parent 2e44a740
NODE_ENV='development'
# must start with VUE_APP_
VUE_APP_ENV = 'development'
VUE_APP_PORT = 6654
VUE_APP_PORT = 6670
This diff could not be displayed because it is too large.
......@@ -13,7 +13,8 @@
"core-js": "^3.4.4",
"el-tree-transfer": "^2.2.6",
"glsx-common": "^1.4.6",
"glsx-components": "^1.5.3",
"glsx-components": "^1.5.4",
"glsx-components_beta": "^1.0.3",
"glsx-table": "^1.0.9",
"vue-draggable-resizable": "^2.3.0",
"vuedraggable": "^2.24.3",
......
......@@ -70,6 +70,17 @@ const getActivity = params => {
sign: true
})
}
//膨胀金活动
const bulgeActivity = params => {
params.method = 'scrm.api.shopmall.all.bulge.activity.page'
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
// 获取素材组列表
const getGroupListApi = params => {
params.method = 'marketing.api.material.group.list'
......@@ -131,6 +142,25 @@ const createdNameList = params => {
sign: true
})
}
const getMerchantList = params => {
params.method = `scrm.api.carlife.merchant.listWithPageByCurMerchant`
return http({
url: 'rop-scrm-carlife/router',
method: 'POST',
data: params,
sign: true
})
}
const channelPreview = params => {
params.method = `scrm.api.shopmall.discover.channel.merchant.preview`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
export default {
getCard,
merchant,
......@@ -144,5 +174,8 @@ export default {
templatePage,
createdNameList,
templateUpdate,
templateSave
templateSave,
bulgeActivity,
getMerchantList,
channelPreview
}
......@@ -4,7 +4,7 @@
* @Author: limin
* @Date: 2021-06-07 14:12:32
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2022-12-01 15:41:17
* @LastEditTime: 2023-01-09 14:34:58
*/
// 根据环境引入不同配置 process.env.VUE_APP_ENV
// let request = require('@/http/request.js')
......
......@@ -105,14 +105,11 @@ export default {
// pdfNo: true
}
// {
// name: '模板',
// type: 'message',
// funName: 'message',
// getSearchApi: this.$apis.welcomeword.createdNameList,
// templateApi: this.$apis.welcomeword.templatePage,
// templateUpdateApi: this.$apis.welcomeword.templateUpdate,
// templateSaveApi: this.$apis.welcomeword.templateSave,
// templateDetailApi: this.$apis.welcomeword.templateDetail
// name: '插入推荐频道',
// type: 'channelLink',
// funName: 'channelLink',
// getMerchantList: this.$apis.welcomeword.getMerchantList,
// channelPreview: this.$apis.welcomeword.channelPreview
// }
]
}
......
......@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2022-11-25 10:20:02
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2022-12-01 14:38:59
* @LastEditTime: 2023-01-09 14:34:52
* @FilePath: \scrm-micro-drainage\src\setup\qiankun.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
......@@ -11,14 +11,15 @@ import Vue from 'vue'
import { fetchConfig } from '@/config'
import ElementUI from 'element-ui'
import { GLTable, GLButton, GLFooter, GLCombiForm } from 'glsx-components' //权限按钮 (根据权限动态创建)
import GLEditor from 'glsx-components_beta/src/packages/Editor'
import { getRoutes } from '@/router'
import render from './render'
Vue.use(ElementUI)
Vue.use(GLTable)
Vue.use(GLFooter)
Vue.use(GLCombiForm)
Vue.use(GLEditor)
// import GLTable from '@/components/glsx-table/index'
// Vue.component('GLTable', GLTable)
// import 'glsx-components/src/theme/theme.scss'
import 'glsx-components/dist/glsx-components.css'
import '@/assets/css/common.scss'
......
......@@ -113,4 +113,33 @@ util.downloadIamge = function(imgsrc, name = new Date().getTime()) {
}
image.src = imgsrc
}
util.isShowBtn = function(value, permissions) {
let isShowStatus = false
const menu = JSON.parse(sessionStorage['SCRM_BASE_MENULIST'])
menuLevel(menu)
function menuLevel(item) {
item.forEach(itm => {
if (value && itm.path == value) {
isShowStatus = true
}
if (
!value &&
itm.path ==
'/' +
location.pathname
.split('/')
.slice(-2)
.join('/') &&
itm.meta &&
itm.meta.permissions.includes(permissions)
) {
isShowStatus = true
}
if (itm.children) {
menuLevel(itm.children)
}
})
}
return isShowStatus
}
export default util
......@@ -127,6 +127,7 @@ import { utils } from 'glsx-common'
import selectEmp from '@/components/selectEmp'
import selectTag from '@/components/selectTag'
import word from '@/mixins/word'
import util from '@/utils/util'
export default {
mixins: [word],
name: 'addCode',
......@@ -275,6 +276,8 @@ export default {
item.attContent = item.attContent.replaceAll('@昵称', '[@昵称]')
} else if (item.attType == 7) {
item.attContent = JSON.stringify(item.attContent)
} else if (item.attType == 5) {
item.attContent = JSON.stringify(item.attContent)
}
return item
})
......@@ -317,7 +320,7 @@ export default {
this.autoWelcome = res.autoWelcome ? true : false
if (res.welcomeInfo.length != 0) {
const previewList = res.welcomeInfo.map(item => {
if (item.attType == 7) item.attContent = JSON.parse(item.attContent)
if (item.attType == 7 || item.attType == 5) item.attContent = JSON.parse(item.attContent)
return item
})
this.$refs.welcome.updateList(previewList)
......@@ -337,6 +340,22 @@ 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
})
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!