Commit 33c78aa0 by 张立顺

解决合并冲突

2 parents 4bfdebb3 850fb81d
{ {
"name": "scrm-micro-activity-center", "name": "activityCenter",
"version": "1.0.0", "version": "1.0.0",
"description": "A Vue.js project", "description": "A Vue.js project",
"private": true, "private": true,
......
...@@ -54,16 +54,16 @@ const getStaffList = params => { ...@@ -54,16 +54,16 @@ const getStaffList = params => {
sign: true sign: true
}) })
} }
// 企微高级群聊列表
const getGroupList = params => {
params.method = `entmicro.api.wechatcloudcontrol.batchmessaging.group.list`
return http({
url: url1,
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// const insertZoneApi = params => { export default { getStaffList, getMerchantList, getlistDepartmentTree, getActivitylist, insertStaff, getGroupList }
// params.method = `${defaultPath}zoneInfo.insertOrUpdate`
// return http({
// url,
// method: 'POST',
// data: params,
// sign: true,
// returnAll: true
// })
// }
export default { getStaffList, getMerchantList, getlistDepartmentTree, getActivitylist, insertStaff }
...@@ -19,12 +19,8 @@ export const fetchConfig = function(isEnv = true) { ...@@ -19,12 +19,8 @@ export const fetchConfig = function(isEnv = true) {
// return Promise.resolve(cfg) // return Promise.resolve(cfg)
// } // }
//return window.fetch('https://', {}).then(res => res.json()) //return window.fetch('https://', {}).then(res => res.json())
// request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' }) // return new Http().get('https://oss-config.dev.glsx.com.cn/mock/6345096902322627d6b83e83/battles/config')
// return new Http().get('https://oss-config.glsx.com.cn/mock/635fc7a254298ae78614407a/battles/config') return new Http().get('https://oss-config.glsx.com.cn/mock/635fc7a254298ae78614407a/battles/config')
// debugger
// debugger
// console.log(new Http().get('http://192.168.3.171:7300/mock/6345096902322627d6b83e83/battles/config'))
return new Http().get('http://192.168.3.171:7300/mock/6345096902322627d6b83e83/battles/config')
} }
export const config = { export const config = {
install(vue, cfg) { install(vue, cfg) {
......
...@@ -11,9 +11,10 @@ let router = null ...@@ -11,9 +11,10 @@ let router = null
let instance = null let instance = null
Vue.use(ElementUI) Vue.use(ElementUI)
Vue.use(GLTable) Vue.use(GLTable)
export async function bootstrap({ history, common, messenger, globalState, routerBase }) { export async function bootstrap({ history, common, messenger, globalState }) {
const { response, request, sign, secret, sign_common, request_common } = await fetchConfig() const { response, request, sign, secret, sign_common, request_common, merchantId } = await fetchConfig()
Vue.prototype.$history = history Vue.prototype.$history = history
Vue.prototype.$merchantId = merchantId
Vue.prototype.$messenger = messenger Vue.prototype.$messenger = messenger
Vue.prototype.$globalState = globalState Vue.prototype.$globalState = globalState
Vue.prototype.$common = common Vue.prototype.$common = common
......
...@@ -68,6 +68,7 @@ export default { ...@@ -68,6 +68,7 @@ export default {
}, },
watch: { watch: {
filterText(val) { filterText(val) {
console.log(val)
this.$refs.tree.filter(val) this.$refs.tree.filter(val)
}, },
selectlist(val) { selectlist(val) {
...@@ -99,7 +100,8 @@ export default { ...@@ -99,7 +100,8 @@ export default {
}) })
}, },
async getDepartmentTree() { async getDepartmentTree() {
let params = { addChildrensFlag: true, queryMerchantId: this.merchantId } // let params = { addChildrensFlag: true, queryMerchantId: this.merchantId }
let params = { addChildrensFlag: true, queryMerchantId: '44210895' }
let data = await this.$apis.battle.getlistDepartmentTree(params) let data = await this.$apis.battle.getlistDepartmentTree(params)
this.ids = [] this.ids = []
this.departmentList = data this.departmentList = data
...@@ -156,7 +158,7 @@ export default { ...@@ -156,7 +158,7 @@ export default {
}, },
filterNode(value, data) { filterNode(value, data) {
if (!value) return true if (!value) return true
return data.label.indexOf(value) !== -1 return data.name.indexOf(value) !== -1
}, },
search() {}, search() {},
handleNodeClick() { handleNodeClick() {
......
<template>
<div class="el-select-dropdown el-popper group-select" :style="groupStyle">
<slot></slot>
</div>
</template>
<script>
export default {
name: 'ElSelectDropdown',
props: {
appendToBody: {
type: Boolean,
default: true
},
domEl: {
type: Object,
default: () => {}
}
},
componentName: 'selectyy',
data() {
return {
groupStyle: '',
includeData:['el-input__inner','placeholder','el-select__caret el-input__icon el-icon-arrow-up']
}
},
mounted() {
if (this.appendToBody) document.body.appendChild(this.$el)
this.getBoundingClientRect()
window.addEventListener('resize', this.getBoundingClientRect)
document.addEventListener('click', e => {
if (!this.includeData.includes(e.target.className)) {
this.removeEl()
}
})
},
methods: {
getBoundingClientRect() {
let { left, top } = this.domEl.getBoundingClientRect()
this.groupStyle = { left: left + 'px', top: top + 45 + 'px' }
},
removeEl() {
document.body.contains(this.$el) && document.body.removeChild(this.$el)
this.$emit('changeStatu')
}
},
beforeDestroy() {
this.removeEl()
}
}
</script>
<style lang="scss" scoped>
.group-select {
min-width: 284px;
transform-origin: center top;
z-index: 10000;
position: fixed;
top: 740px;
left: 600px;
/deep/ .el-select-dropdown__item {
width: 236px;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
}
</style>
...@@ -9,7 +9,7 @@ const cdn = { ...@@ -9,7 +9,7 @@ const cdn = {
js: [`${CDN_DOMAIN}ajax/libs/vue/2.6.11/vue.min.js`, `${CDN_DOMAIN}ajax/libs/vue-router/3.2.0/vue-router.min.js`, `${CDN_DOMAIN}ajax/libs/element-ui/2.11.1/index.js`, `${CDN_DOMAIN}ajax/libs/vuex/3.6.2/vuex.min.js`, `${CDN_DOMAIN}ajax/libs/echarts/5.1.2/echarts.min.js`, 'https://webapi.amap.com/loader.js'] js: [`${CDN_DOMAIN}ajax/libs/vue/2.6.11/vue.min.js`, `${CDN_DOMAIN}ajax/libs/vue-router/3.2.0/vue-router.min.js`, `${CDN_DOMAIN}ajax/libs/element-ui/2.11.1/index.js`, `${CDN_DOMAIN}ajax/libs/vuex/3.6.2/vuex.min.js`, `${CDN_DOMAIN}ajax/libs/echarts/5.1.2/echarts.min.js`, 'https://webapi.amap.com/loader.js']
} }
module.exports = { module.exports = {
outputDir: `../dist/${packageName}`, outputDir: `dist`,
publicPath, publicPath,
assetsDir: 'static', assetsDir: 'static',
productionSourceMap: false, productionSourceMap: false,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!