Commit 38d5a3c8 by xuyl

Merge branch 'v2.11.0' of http://192.168.3.233:8090/saas/scrm-micro-authorize into xuyl_dev_v2.11.0

2 parents 9a048c59 447e7503
......@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2022-09-15 15:23:08
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2022-09-23 09:39:55
* @LastEditTime: 2022-09-26 09:49:34
* @FilePath: \scrm-micro-authorize\src\api\modules\common.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
......
import { http } from '@/main'
/*
* @Author: yangming yangming@didihu.com.cn
* @Date: 2022-09-15 14:42:45
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2022-09-30 14:13:48
* @FilePath: \scrm-micro-authorize\src\api\modules\friendGroup.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
import { http, http_common } from '@/main'
//朋友圈群发任务多条件分页查询
const conditionPage = params => {
params.method = 'entmicro.api.wechatcloudcontrol.batchmoment.condition.page'
......@@ -39,10 +47,19 @@ const merchantList = params => {
sign: true
})
}
const compressionUpload = params => {
return http_common({
url: 'https://scrm.test.glsx.com.cn/rpc-scrm-entmicro-container/file/upload',
// url: 'http://192.168.3.145:8186/rpc-scrm-entmicro-container/video/compression/upload',
method: 'POST',
data: params,
sign: false
})
}
export default {
merchantList,
conditionPage,
batchmomentRecord,
batchmomentSave
batchmomentSave,
compressionUpload
}
......@@ -141,6 +141,15 @@ const createdNameList = params => {
sign: true
})
}
const templateDetail = params => {
params.method = `${path}template.detail`
return http({
url: URL,
method: 'POST',
data: params,
sign: true
})
}
export default {
getCard,
merchant,
......@@ -155,5 +164,6 @@ export default {
createdNameList,
templateUpdate,
templateSave,
templateDetail,
crowdfundingActivity
}
/*
* @Author: your name
* @Date: 2022-02-10 19:00:41
* @LastEditTime: 2022-09-22 14:30:10
* @LastEditTime: 2022-11-02 18:00:40
* @LastEditors: yangming yangming@didihu.com.cn
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: \scrm-micro-pay\src\setup\qiankun.js
......@@ -9,13 +9,13 @@
import Vue from 'vue'
import { message } from '@/plugins/element.js'
import { fetchConfig } from '@/config'
import { GLButton, GLTable, GLCombiForm, GLFooter, GLTableButton, GLDialog, GLEditor } from 'glsx-components' //权限按钮 (根据权限动态创建)
import { GLButton, GLTable, GLCombiForm, GLFooter, GLTableButton, GLDialog } from 'glsx-components' //权限按钮 (根据权限动态创建)
import { getRoutes } from '@/router'
import ElementUI from 'element-ui'
import 'glsx-components/dist/glsx-components.css'
import '@/assets/css/public.scss'
import render from './render'
// import GLEditor from 'glsx-components/src/packages/Editor'
import GLEditor from 'glsx-components/src/packages/Editor'
let routes = []
let router = null
let instance = null
......@@ -26,15 +26,15 @@ Vue.use(GLFooter)
Vue.use(GLTableButton)
Vue.use(GLEditor)
Vue.use(GLDialog)
Vue.use(GLEditor)
export async function bootstrap({ history, common, messenger, globalState, routerBase }) {
const { response, request, sign, sign_common, secret, request_common } = await fetchConfig(true) //globalState.configSwitch
Vue.prototype.$history = history
Vue.prototype.$messenger = messenger
Vue.prototype.$globalState = globalState
Vue.prototype.$common = common
const response_custom = Object.assign({}, { ...response, code_success_value: 'true', data_key: 'result', code_key: 'success' })
Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: 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_common = new common.Http({ response: response_custom, signWay: 'md5', request: request_common, sign: sign_common, secret, alert: ElementUI.Message.error, headers: { TGT: globalState.session.token, 'Content-Type': 'multipart/form-data' } })
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
const routesData = common.utils.deepClone(globalState.routers)
routes = getRoutes(routesData)
......
......@@ -20,8 +20,8 @@ export default {
commit('SET_PAGE_SIZE', data)
},
// 设置token
setToken({ commit }, data) {
commit('SET_TOKEN', data)
setToken(context, data) {
console.log(context, data)
}
}
}
/*
* @Author: your name
* @Date: 2022-02-16 18:09:07
* @LastEditTime: 2022-02-16 18:09:07
* @LastEditors: Please set LastEditors
* @LastEditTime: 2022-09-28 15:55:01
* @LastEditors: yangming yangming@didihu.com.cn
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: \scrm-micro-wechat\src\utils\data.js
*/
const MODEL = {
1: '集团企微模式',
2: '单店企微模式'
1: '集团企微模式',
2: '单店企微模式'
}
export {
MODEL
}
\ No newline at end of file
export { MODEL }
......@@ -55,7 +55,7 @@
import url from '@/assets/empty.png'
export default {
name: 'SelectMember',
props: ['selectData'],
props: ['selectData', 'taskMerchantId'],
data() {
return {
url: url,
......@@ -103,7 +103,13 @@ export default {
innerTags: []
}
},
watch: {
taskMerchantId() {
this.listDepartmentTree(false)
}
},
mounted() {
console.log(this)
this.listDepartmentTree(false)
},
methods: {
......@@ -131,7 +137,9 @@ export default {
params.isHavCustomer = true
params.isEntmicroCustomer = true
params.isFollowerStaff = isFollowerStaff
// params.loginStatus = 1
params.loginStatus = 1
params.flag = true
params.queryMerchantId = this.taskMerchantId
this.$apis.customerTransform.listDepartmentTree(params).then(res => {
console.log(res)
this.loading = false
......
<template>
<div>
<div class="container">
<div class="title">
编辑朋友圈
</div>
<!-- <input type="file" @change="uploadFile" /> -->
<div class="title">编辑朋友圈</div>
<div class="info-box">
<div class="info-content gl-form-page">
<el-form class="basic-form" :model="basicForm" label-width="154px" :rules="basicRules" ref="groupForm">
......@@ -41,7 +38,7 @@
</div>
</div>
<GLDialog bigTitle="选择成员" mode="big" :visible.sync="membersVisible" @onOk="handleConfirm" @onCancel="membersVisible = !membersVisible">
<SelectMember ref="membersForm" v-if="membersVisible" :selectData="selectData"></SelectMember>
<SelectMember ref="membersForm" v-if="membersVisible" :selectData="selectData" :taskMerchantId="basicForm.taskMerchantId"></SelectMember>
</GLDialog>
</div>
<GLFooter>
......@@ -173,6 +170,8 @@ export default {
}
},
async mounted() {
console.log(this.size)
// this.SET_TOKEN(888)
const merchantList = await this.merchantList()
this.optionsMe = merchantList ? merchantList.data : []
},
......@@ -181,12 +180,23 @@ export default {
// const files = e.target.files
// var formData = new FormData()
// formData.append('file', files[0])
// formData.append('pic', files[0].name)
// formData.append('picWidth', 1080)
// formData.append('picHeight', 1920)
// fetch('http://192.168.1.170:8086/rpc-scrm-entmicro-container/picture/compression/upload', {
// method: 'post',
// body: formData
// // formData.append('picWidth', 1080)
// // formData.append('picHeight', 1920)
// // fetch('http://192.168.1.170:8086/rpc-scrm-entmicro-container/picture/compression/upload', {
// // method: 'post',
// // body: formData
// // })
// // window
// // .axios({
// // url: 'http://192.168.3.101:8186/rpc-scrm-entmicro-container/file/upload',
// // method: 'post',
// // data: formData
// // })
// // .then(res => {
// // console.log(res)
// // })
// this.$apis.friendGroup.compressionUpload({ file: files[0] }).then(res => {
// console.log(res)
// })
// },
previewForm(val) {
......
......@@ -3,7 +3,8 @@
<div class="marketing pro-group">
<div class="m-b-20 friend-title">
<div>
<GLButton :size="size" type="primary" fn="新建朋友圈群发" @click="handleEdit(1)">新建朋友圈群发</GLButton>
<!-- <GLButton :size="size" type="primary" fn="新建朋友圈群发" @click="handleEdit(1)">新建朋友圈群发</GLButton> -->
<el-button :size="size" type="primary" fn="新建朋友圈群发" @click="handleEdit(1)">新建朋友圈群发</el-button>
</div>
</div>
<div class="container">
......
/*
* @Author: yangming yangming@didihu.com.cn
* @Date: 2022-09-15 13:59:56
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2022-11-02 17:57:19
* @FilePath: \scrm-micro-authorize\vue.config.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
const path = require('path')
const packageName = require('./package.json').name
const node_env = process.env.NODE_ENV === 'production'
......@@ -8,6 +16,7 @@ module.exports = {
outputDir: `dist/child/${packageName}`,
publicPath,
assetsDir: 'static',
productionSourceMap: false,
configureWebpack: {
resolve: {
alias: {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!