Commit 1a11cc2a by 杨明

fixed

1 parent 88517f95
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn * @Author: yangming yangming@didihu.com.cn
* @Date: 2022-09-15 15:23:08 * @Date: 2022-09-15 15:23:08
* @LastEditors: yangming yangming@didihu.com.cn * @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 * @FilePath: \scrm-micro-authorize\src\api\modules\common.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
*/ */
......
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 => { const conditionPage = params => {
params.method = 'entmicro.api.wechatcloudcontrol.batchmoment.condition.page' params.method = 'entmicro.api.wechatcloudcontrol.batchmoment.condition.page'
...@@ -39,10 +47,19 @@ const merchantList = params => { ...@@ -39,10 +47,19 @@ const merchantList = params => {
sign: true 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 { export default {
merchantList, merchantList,
conditionPage, conditionPage,
batchmomentRecord, batchmomentRecord,
batchmomentSave batchmomentSave,
compressionUpload
} }
/* /*
* @Author: your name * @Author: your name
* @Date: 2022-02-10 19:00:41 * @Date: 2022-02-10 19:00:41
* @LastEditTime: 2022-09-22 14:30:10 * @LastEditTime: 2022-09-30 14:07:00
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: yangming yangming@didihu.com.cn
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: \scrm-micro-pay\src\setup\qiankun.js * @FilePath: \scrm-micro-pay\src\setup\qiankun.js
...@@ -33,8 +33,9 @@ export async function bootstrap({ history, common, messenger, globalState, route ...@@ -33,8 +33,9 @@ export async function bootstrap({ history, common, messenger, globalState, route
Vue.prototype.$messenger = messenger Vue.prototype.$messenger = messenger
Vue.prototype.$globalState = globalState Vue.prototype.$globalState = globalState
Vue.prototype.$common = common 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 = 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 // Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
const routesData = common.utils.deepClone(globalState.routers) const routesData = common.utils.deepClone(globalState.routers)
routes = getRoutes(routesData) routes = getRoutes(routesData)
......
...@@ -20,8 +20,8 @@ export default { ...@@ -20,8 +20,8 @@ export default {
commit('SET_PAGE_SIZE', data) commit('SET_PAGE_SIZE', data)
}, },
// 设置token // 设置token
setToken({ commit }, data) { setToken(context, data) {
commit('SET_TOKEN', data) console.log(context, data)
} }
} }
} }
/* /*
* @Author: your name * @Author: your name
* @Date: 2022-02-16 18:09:07 * @Date: 2022-02-16 18:09:07
* @LastEditTime: 2022-02-16 18:09:07 * @LastEditTime: 2022-09-28 15:55:01
* @LastEditors: Please set LastEditors * @LastEditors: yangming yangming@didihu.com.cn
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: \scrm-micro-wechat\src\utils\data.js * @FilePath: \scrm-micro-wechat\src\utils\data.js
*/ */
...@@ -11,6 +11,4 @@ const MODEL = { ...@@ -11,6 +11,4 @@ const MODEL = {
2: '单店企微模式' 2: '单店企微模式'
} }
export {
MODEL
}
\ No newline at end of file \ No newline at end of file
export { MODEL }
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
import url from '@/assets/empty.png' import url from '@/assets/empty.png'
export default { export default {
name: 'SelectMember', name: 'SelectMember',
props: ['selectData'], props: ['selectData', 'taskMerchantId'],
data() { data() {
return { return {
url: url, url: url,
...@@ -103,7 +103,13 @@ export default { ...@@ -103,7 +103,13 @@ export default {
innerTags: [] innerTags: []
} }
}, },
watch: {
taskMerchantId() {
this.listDepartmentTree(false)
}
},
mounted() { mounted() {
console.log(this)
this.listDepartmentTree(false) this.listDepartmentTree(false)
}, },
methods: { methods: {
...@@ -131,7 +137,9 @@ export default { ...@@ -131,7 +137,9 @@ export default {
params.isHavCustomer = true params.isHavCustomer = true
params.isEntmicroCustomer = true params.isEntmicroCustomer = true
params.isFollowerStaff = isFollowerStaff params.isFollowerStaff = isFollowerStaff
// params.loginStatus = 1 params.loginStatus = 1
params.flag = true
params.queryMerchantId = this.taskMerchantId
this.$apis.customerTransform.listDepartmentTree(params).then(res => { this.$apis.customerTransform.listDepartmentTree(params).then(res => {
console.log(res) console.log(res)
this.loading = false this.loading = false
......
<template> <template>
<div> <div>
<div class="container"> <div class="container">
<div class="title"> <div class="title">编辑朋友圈</div>
编辑朋友圈
</div>
<!-- <input type="file" @change="uploadFile" /> -->
<div class="info-box"> <div class="info-box">
<div class="info-content gl-form-page"> <div class="info-content gl-form-page">
<el-form class="basic-form" :model="basicForm" label-width="154px" :rules="basicRules" ref="groupForm"> <el-form class="basic-form" :model="basicForm" label-width="154px" :rules="basicRules" ref="groupForm">
...@@ -41,7 +38,7 @@ ...@@ -41,7 +38,7 @@
</div> </div>
</div> </div>
<GLDialog bigTitle="选择成员" mode="big" :visible.sync="membersVisible" @onOk="handleConfirm" @onCancel="membersVisible = !membersVisible"> <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> </GLDialog>
</div> </div>
<GLFooter> <GLFooter>
...@@ -173,6 +170,8 @@ export default { ...@@ -173,6 +170,8 @@ export default {
} }
}, },
async mounted() { async mounted() {
console.log(this.size)
// this.SET_TOKEN(888)
const merchantList = await this.merchantList() const merchantList = await this.merchantList()
this.optionsMe = merchantList ? merchantList.data : [] this.optionsMe = merchantList ? merchantList.data : []
}, },
...@@ -181,12 +180,23 @@ export default { ...@@ -181,12 +180,23 @@ export default {
// const files = e.target.files // const files = e.target.files
// var formData = new FormData() // var formData = new FormData()
// formData.append('file', files[0]) // formData.append('file', files[0])
// formData.append('pic', files[0].name) // // formData.append('picWidth', 1080)
// formData.append('picWidth', 1080) // // formData.append('picHeight', 1920)
// formData.append('picHeight', 1920) // // fetch('http://192.168.1.170:8086/rpc-scrm-entmicro-container/picture/compression/upload', {
// fetch('http://192.168.1.170:8086/rpc-scrm-entmicro-container/picture/compression/upload', { // // method: 'post',
// method: 'post', // // body: formData
// 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) { previewForm(val) {
......
...@@ -3,7 +3,8 @@ ...@@ -3,7 +3,8 @@
<div class="marketing pro-group"> <div class="marketing pro-group">
<div class="m-b-20 friend-title"> <div class="m-b-20 friend-title">
<div> <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> </div>
<div class="container"> <div class="container">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!