Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-authorize
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 1a11cc2a
authored
Nov 02, 2022
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
88517f95
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
62 additions
and
27 deletions
src/api/modules/common.js
src/api/modules/friendGroup.js
src/setup/qiankun.js
src/store/modules/app.js
src/utils/data.js
src/views/friendGroup/components/selectMember.vue
src/views/friendGroup/friendGroupAdd.vue
src/views/friendGroup/index.vue
src/api/modules/common.js
View file @
1a11cc2
...
@@ -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-2
3 09:39:55
* @LastEditTime: 2022-09-2
6 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
*/
*/
...
...
src/api/modules/friendGroup.js
View file @
1a11cc2
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
}
}
src/setup/qiankun.js
View file @
1a11cc2
/*
/*
* @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:1
0
* @LastEditTime: 2022-09-
30 14:07:0
0
* @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
)
...
...
src/store/modules/app.js
View file @
1a11cc2
...
@@ -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
)
{
co
mmit
(
'SET_TOKEN'
,
data
)
co
nsole
.
log
(
context
,
data
)
}
}
}
}
}
}
src/utils/data.js
View file @
1a11cc2
/*
/*
* @Author: your name
* @Author: your name
* @Date: 2022-02-16 18:09:07
* @Date: 2022-02-16 18:09:07
* @LastEditTime: 2022-0
2-16 18:09:07
* @LastEditTime: 2022-0
9-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
}
src/views/friendGroup/components/selectMember.vue
View file @
1a11cc2
...
@@ -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
...
...
src/views/friendGroup/friendGroupAdd.vue
View file @
1a11cc2
<
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
)
{
...
...
src/views/friendGroup/index.vue
View file @
1a11cc2
...
@@ -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"
>
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment