Commit e3e693dc by 杨明

bug修复

1 parent 60392414
...@@ -14171,9 +14171,9 @@ ...@@ -14171,9 +14171,9 @@
} }
}, },
"word-edit": { "word-edit": {
"version": "1.3.6", "version": "1.3.7",
"resolved": "https://registry.npmjs.org/word-edit/-/word-edit-1.3.6.tgz", "resolved": "https://registry.npmjs.org/word-edit/-/word-edit-1.3.7.tgz",
"integrity": "sha512-7ZW/27gI21J/QLWQGzHrGgp9SHGc8YgEmSwacdsTJ0x6dwphYQrNuoe2GKVbryr7ZEuKoMu05oa3J/V+RKOsSg==", "integrity": "sha512-jNahE0SKCsLatYzY0Jb263ELNBhMA8MBv+A55nlYe0zm3wol394vwENjjcBg29jbElETYZVLLTOvV0d2lpGTgQ==",
"requires": { "requires": {
"@amap/amap-jsapi-loader": "^1.0.1", "@amap/amap-jsapi-loader": "^1.0.1",
"core-js": "^3.6.5", "core-js": "^3.6.5",
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
"number-precision": "^1.6.0", "number-precision": "^1.6.0",
"vod-js-sdk-v6": "^1.6.2", "vod-js-sdk-v6": "^1.6.2",
"wangeditor": "^4.7.15", "wangeditor": "^4.7.15",
"word-edit": "^1.3.6" "word-edit": "^1.3.7"
}, },
"devDependencies": { "devDependencies": {
"@vue/cli-plugin-babel": "^4.1.0", "@vue/cli-plugin-babel": "^4.1.0",
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: limin * @Author: limin
* @Date: 2021-06-07 14:12:32 * @Date: 2021-06-07 14:12:32
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-09-27 18:08:21 * @LastEditTime: 2024-01-22 17:56:28
*/ */
// 根据环境引入不同配置 process.env.VUE_APP_ENV // 根据环境引入不同配置 process.env.VUE_APP_ENV
// let request = require('@/http/request.js') // let request = require('@/http/request.js')
...@@ -12,10 +12,10 @@ let cfg = require('./conf.js') ...@@ -12,10 +12,10 @@ let cfg = require('./conf.js')
import { Http } from 'glsx-common' import { Http } from 'glsx-common'
let timeout = 30000 //超时时间 let timeout = 30000 //超时时间
export const fetchConfig = function(common) { export const fetchConfig = function(common) {
// let params = { moduleName: 'peregrination', mockUrl: 'https://oss-config.glsx.com.cn/mock/63c12a2e28a427953783403b/link/config', httpOptions: { Headers: { refererurl: location.href }, request: { timeout: 30000 } } } let params = { moduleName: 'tools', mockUrl: 'https://oss-config.glsx.com.cn/mock/6513d53164bbd943bb9cb5cc/tools/config', httpOptions: { Headers: { refererurl: location.href }, request: { timeout: 30000 } } }
// return common.utils.getConfig(params) return common.utils.getConfig(params)
// return new Http().get('https://oss-config.dev.glsx.com.cn/mock/650901f737c9d135bfb68619/tools/config') // return new Http().get('https://oss-config.dev.glsx.com.cn/mock/650901f737c9d135bfb68619/tools/config')
return new Http().get('https://oss-config.glsx.com.cn/mock/6513d53164bbd943bb9cb5cc/tools/config') // return new Http().get('https://oss-config.glsx.com.cn/mock/6513d53164bbd943bb9cb5cc/tools/config')
} }
export const config = { export const config = {
install(vue, cfg) { install(vue, cfg) {
......
...@@ -113,6 +113,7 @@ export default { ...@@ -113,6 +113,7 @@ export default {
{ {
itemName: '攻略', itemName: '攻略',
itemValue: 9, itemValue: 9,
isWuye: true,
itemType: 'strategy', itemType: 'strategy',
getInterfaceApi: this.$apis.welcomeword.strategyList, getInterfaceApi: this.$apis.welcomeword.strategyList,
params: { params: {
...@@ -122,6 +123,7 @@ export default { ...@@ -122,6 +123,7 @@ export default {
{ {
itemName: '群接龙', itemName: '群接龙',
itemValue: 10, itemValue: 10,
isWuye: true,
itemType: 'relayDragon', itemType: 'relayDragon',
getInterfaceApi: this.$apis.welcomeword.getRelayLotteryPage, getInterfaceApi: this.$apis.welcomeword.getRelayLotteryPage,
params: { params: {
...@@ -150,5 +152,14 @@ export default { ...@@ -150,5 +152,14 @@ export default {
// } // }
] ]
} }
},
mounted() {
if (!this.wyMerchantId.includes(this.$globalState.session.merchantId)) {
this.btnList.forEach(item => {
if (item.type == 'activity') {
item.funParams = item.funParams.filter(item => !item.isWuye)
}
})
}
} }
} }
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn * @Author: yangming yangming@didihu.com.cn
* @Date: 2023-09-14 15:04:56 * @Date: 2023-09-14 15:04:56
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-11-16 10:35:09 * @LastEditTime: 2024-01-24 10:05:52
* @FilePath: \scrm-micro-tools\src\setup\qiankun.js * @FilePath: \scrm-micro-tools\src\setup\qiankun.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/ */
...@@ -28,7 +28,7 @@ Vue.use(GLTableButton) ...@@ -28,7 +28,7 @@ Vue.use(GLTableButton)
Vue.use(GLEditor) Vue.use(GLEditor)
Vue.use(GLDialog) Vue.use(GLDialog)
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, request_merchant, merchantId, request_gpt } = await fetchConfig(common) const { response, request, request2, sign, secret, sign_common, request_common, request_merchant, merchantId, request_gpt, wyMerchantId } = await fetchConfig(common)
Vue.prototype.$history = history Vue.prototype.$history = history
Vue.prototype.$messenger = messenger Vue.prototype.$messenger = messenger
Vue.prototype.$globalState = globalState Vue.prototype.$globalState = globalState
...@@ -49,6 +49,7 @@ export async function bootstrap({ history, common, messenger, globalState, route ...@@ -49,6 +49,7 @@ export async function bootstrap({ history, common, messenger, globalState, route
alert: message.error, alert: message.error,
headers: { token: globalState.session.token, 'Content-Type': 'multipart/form-data' } headers: { token: globalState.session.token, 'Content-Type': 'multipart/form-data' }
}) })
Vue.prototype.wyMerchantId = wyMerchantId
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.$http_tag = new common.Http({ response, request, sign, secret, alert: ElementUI.Message.error, headers: { token: globalState.session.token } }) Vue.prototype.$http_tag = new common.Http({ response, request, sign, secret, alert: ElementUI.Message.error, headers: { token: globalState.session.token } })
Vue.prototype.$http_merchant = new common.Http({ response, request: request_merchant, sign, secret, alert: ElementUI.Message.error, headers: { token: globalState.session.token } }) Vue.prototype.$http_merchant = new common.Http({ response, request: request_merchant, sign, secret, alert: ElementUI.Message.error, headers: { token: globalState.session.token } })
......
...@@ -90,7 +90,7 @@ util.downloadIamge = function(imgsrc, name = new Date().getTime()) { ...@@ -90,7 +90,7 @@ util.downloadIamge = function(imgsrc, name = new Date().getTime()) {
canvas.height = image.height canvas.height = image.height
var context = canvas.getContext('2d') var context = canvas.getContext('2d')
context.drawImage(image, 0, 0, image.width, image.height) context.drawImage(image, 0, 0, image.width, image.height)
var url = canvas.toDataURL('image/png') //得到图片的base64编码数据 var url = canvas.toDataURL('image/png', 1) //得到图片的base64编码数据
var a = document.createElement('a') // 生成一个a元素 var a = document.createElement('a') // 生成一个a元素
var event = new MouseEvent('click') // 创建一个单击事件 var event = new MouseEvent('click') // 创建一个单击事件
......
...@@ -108,7 +108,7 @@ ...@@ -108,7 +108,7 @@
<el-switch v-model="autoWelcome" active-color="#5850FF" inactive-color="#999999"></el-switch> <el-switch v-model="autoWelcome" active-color="#5850FF" inactive-color="#999999"></el-switch>
</div> </div>
<div class="welcome-box" v-show="autoWelcome"> <div class="welcome-box" v-show="autoWelcome">
<GLEditor ref="welcome" :form="'customer'" :btnList="btnList" @previewWord="previewForm" :maxNum="20"></GLEditor> <GLEditor ref="welcome" :form="'customer'" :btnList="btnList" @previewWord="previewForm"></GLEditor>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
<template slot="customerName" slot-scope="scope"> <template slot="customerName" slot-scope="scope">
<div class="form-row"> <div class="form-row">
<img :src="scope.scope.avatar" v-if="scope.scope.avatar" /> <img :src="scope.scope.avatar" v-if="scope.scope.avatar" />
{{ scope.scope.customerName }} {{ scope.scope.nickNameList && scope.scope.nickNameList[0].nickName }}
<span style="color: #5850ff">{{ scope.scope.type == 1 ? '@微信' : '@企微' }}</span> <span style="color: #5850ff">{{ scope.scope.type == 1 ? '@微信' : '@企微' }}</span>
</div> </div>
</template> </template>
...@@ -229,7 +229,6 @@ export default { ...@@ -229,7 +229,6 @@ export default {
}) })
}, },
init(item, value, day) { init(item, value, day) {
this.createTime = [] this.createTime = []
this.pStatus = null this.pStatus = null
this.staffIds = null this.staffIds = null
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
}" }"
/> />
</div> </div>
<div class="poster-item-link" @click.stop="downloadIamge(item.autoUrl)">下载海报</div> <div class="poster-item-link" @click.stop="downloadIamge(item.thumbnailUrl)">下载海报</div>
</div> </div>
<div class="poster-item"> <div class="poster-item">
<div class="poster-item-box"> <div class="poster-item-box">
......
...@@ -303,6 +303,7 @@ export default { ...@@ -303,6 +303,7 @@ export default {
{ {
itemName: '问卷调查', itemName: '问卷调查',
itemValue: 7, itemValue: 7,
isWuye: true,
itemType: 'questionnaire', itemType: 'questionnaire',
getInterfaceApi: this.$apis.welcomeword.activityQuestionnaireForm, getInterfaceApi: this.$apis.welcomeword.activityQuestionnaireForm,
params: { params: {
...@@ -322,6 +323,7 @@ export default { ...@@ -322,6 +323,7 @@ export default {
{ {
itemName: '攻略', itemName: '攻略',
itemValue: 9, itemValue: 9,
isWuye: true,
itemType: 'strategy', itemType: 'strategy',
getInterfaceApi: this.$apis.welcomeword.strategyList, getInterfaceApi: this.$apis.welcomeword.strategyList,
params: { params: {
...@@ -331,6 +333,7 @@ export default { ...@@ -331,6 +333,7 @@ export default {
{ {
itemName: '群接龙', itemName: '群接龙',
itemValue: 10, itemValue: 10,
isWuye: true,
itemType: 'relayDragon', itemType: 'relayDragon',
getInterfaceApi: this.$apis.welcomeword.getRelayLotteryPage, getInterfaceApi: this.$apis.welcomeword.getRelayLotteryPage,
params: { params: {
...@@ -439,6 +442,13 @@ export default { ...@@ -439,6 +442,13 @@ export default {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft this.footerWidth = document.documentElement.clientWidth - this.footerLeft
this.boxHeight = clientHeight - 200 this.boxHeight = clientHeight - 200
if (!this.wyMerchantId.includes(this.$globalState.session.merchantId)) {
this.btnList.forEach(item => {
if (item.type == 'activity') {
item.funParams = item.funParams.filter(item => !item.isWuye)
}
})
}
}, },
methods: { methods: {
openMembers() { openMembers() {
......
...@@ -222,6 +222,7 @@ export default { ...@@ -222,6 +222,7 @@ export default {
itemName: '问卷调查', itemName: '问卷调查',
itemValue: 7, itemValue: 7,
itemType: 'questionnaire', itemType: 'questionnaire',
isWuye: true,
getInterfaceApi: this.$apis.welcomeword.activityQuestionnaireForm, getInterfaceApi: this.$apis.welcomeword.activityQuestionnaireForm,
params: { params: {
merchantId: this.$globalState.session.merchantId, merchantId: this.$globalState.session.merchantId,
...@@ -240,6 +241,7 @@ export default { ...@@ -240,6 +241,7 @@ export default {
{ {
itemName: '攻略', itemName: '攻略',
itemValue: 9, itemValue: 9,
isWuye: true,
itemType: 'strategy', itemType: 'strategy',
getInterfaceApi: this.$apis.welcomeword.strategyList, getInterfaceApi: this.$apis.welcomeword.strategyList,
params: { params: {
...@@ -249,6 +251,7 @@ export default { ...@@ -249,6 +251,7 @@ export default {
{ {
itemName: '群接龙', itemName: '群接龙',
itemValue: 10, itemValue: 10,
isWuye: true,
itemType: 'relayDragon', itemType: 'relayDragon',
getInterfaceApi: this.$apis.welcomeword.getRelayLotteryPage, getInterfaceApi: this.$apis.welcomeword.getRelayLotteryPage,
params: { params: {
...@@ -330,6 +333,13 @@ export default { ...@@ -330,6 +333,13 @@ export default {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft this.footerWidth = document.documentElement.clientWidth - this.footerLeft
this.boxHeight = clientHeight - 200 this.boxHeight = clientHeight - 200
if (!this.wyMerchantId.includes(this.$globalState.session.merchantId)) {
this.btnList.forEach(item => {
if (item.type == 'activity') {
item.funParams = item.funParams.filter(item => !item.isWuye)
}
})
}
}, },
methods: { methods: {
openMembers() { openMembers() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!