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 447e7503
authored
Nov 03, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'yangm_v2.11.0' into 'v2.11.0'
Yangm v2.11.0 See merge request
!28
2 parents
d6c60b8f
9d207cfb
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
85 additions
and
32 deletions
src/api/modules/common.js
src/api/modules/friendGroup.js
src/api/modules/welcomeword.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
vue.config.js
src/api/modules/common.js
View file @
447e750
...
@@ -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 @
447e750
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/api/modules/welcomeword.js
View file @
447e750
...
@@ -141,6 +141,15 @@ const createdNameList = params => {
...
@@ -141,6 +141,15 @@ const createdNameList = params => {
sign
:
true
sign
:
true
})
})
}
}
const
templateDetail
=
params
=>
{
params
.
method
=
`
${
path
}
template.detail`
return
http
({
url
:
URL
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
export
default
{
export
default
{
getCard
,
getCard
,
merchant
,
merchant
,
...
@@ -155,5 +164,6 @@ export default {
...
@@ -155,5 +164,6 @@ export default {
createdNameList
,
createdNameList
,
templateUpdate
,
templateUpdate
,
templateSave
,
templateSave
,
templateDetail
,
crowdfundingActivity
crowdfundingActivity
}
}
src/setup/qiankun.js
View file @
447e750
/*
/*
* @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-
11-02 18:00:4
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
...
@@ -9,13 +9,13 @@
...
@@ -9,13 +9,13 @@
import
Vue
from
'vue'
import
Vue
from
'vue'
import
{
message
}
from
'@/plugins/element.js'
import
{
message
}
from
'@/plugins/element.js'
import
{
fetchConfig
}
from
'@/config'
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
{
getRoutes
}
from
'@/router'
import
ElementUI
from
'element-ui'
import
ElementUI
from
'element-ui'
import
'glsx-components/dist/glsx-components.css'
import
'glsx-components/dist/glsx-components.css'
import
'@/assets/css/public.scss'
import
'@/assets/css/public.scss'
import
render
from
'./render'
import
render
from
'./render'
//
import GLEditor from 'glsx-components/src/packages/Editor'
import
GLEditor
from
'glsx-components/src/packages/Editor'
let
routes
=
[]
let
routes
=
[]
let
router
=
null
let
router
=
null
let
instance
=
null
let
instance
=
null
...
@@ -26,15 +26,15 @@ Vue.use(GLFooter)
...
@@ -26,15 +26,15 @@ Vue.use(GLFooter)
Vue
.
use
(
GLTableButton
)
Vue
.
use
(
GLTableButton
)
Vue
.
use
(
GLEditor
)
Vue
.
use
(
GLEditor
)
Vue
.
use
(
GLDialog
)
Vue
.
use
(
GLDialog
)
Vue
.
use
(
GLEditor
)
export
async
function
bootstrap
({
history
,
common
,
messenger
,
globalState
,
routerBase
})
{
export
async
function
bootstrap
({
history
,
common
,
messenger
,
globalState
,
routerBase
})
{
const
{
response
,
request
,
sign
,
sign_common
,
secret
,
request_common
}
=
await
fetchConfig
(
true
)
//globalState.configSwitch
const
{
response
,
request
,
sign
,
sign_common
,
secret
,
request_common
}
=
await
fetchConfig
(
true
)
//globalState.configSwitch
Vue
.
prototype
.
$history
=
history
Vue
.
prototype
.
$history
=
history
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 @
447e750
...
@@ -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 @
447e750
/*
/*
* @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
*/
*/
const
MODEL
=
{
const
MODEL
=
{
1
:
'集团企微模式'
,
1
:
'集团企微模式'
,
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 @
447e750
...
@@ -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 @
447e750
<
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 @
447e750
...
@@ -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"
>
...
...
vue.config.js
View file @
447e750
/*
* @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
path
=
require
(
'path'
)
const
packageName
=
require
(
'./package.json'
).
name
const
packageName
=
require
(
'./package.json'
).
name
const
node_env
=
process
.
env
.
NODE_ENV
===
'production'
const
node_env
=
process
.
env
.
NODE_ENV
===
'production'
...
@@ -8,6 +16,7 @@ module.exports = {
...
@@ -8,6 +16,7 @@ module.exports = {
outputDir
:
`dist/child/
${
packageName
}
`
,
outputDir
:
`dist/child/
${
packageName
}
`
,
publicPath
,
publicPath
,
assetsDir
:
'static'
,
assetsDir
:
'static'
,
productionSourceMap
:
false
,
configureWebpack
:
{
configureWebpack
:
{
resolve
:
{
resolve
:
{
alias
:
{
alias
:
{
...
...
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